Quiet make warning under --disable-shared.
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2
3         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
4         Conditionalize target on [libnss_test1.so-version].
5
6         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
7
8         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
9         (elfobjdir): Move out of conditionals.
10
11         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
12         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
13         (__nss_lookup_function): Conditionalize label remove_from_tree on
14         [!DO_STATIC_NSS || SHARED], matching its only use.
15
16 2012-09-28  David S. Miller  <davem@davemloft.net>
17
18         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
19         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
20         file.
21         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
22         sysdep_routines.
23         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
24         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
25         when HWCAP_SPARC_CRYPTO is present.
26
27 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
28
29         * io/tst-mknodat.c: Create a FIFO instead of a socket.
30
31 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
32
33         [BZ #6530]
34         * stdio-common/vfprintf.c (process_string_arg): Revert
35         2000-07-22 change.
36
37 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
38
39         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
40         for testcase.
41         * stdio-common/tst-sprintf.c: Include <locale.h>
42         (main): Test sprintf's handling of incomplete multibyte
43         characters.
44
45 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
46
47         * elf/dl-runtime.c (VERSYMIDX): Removed.
48         * elf/dl-version.c (VERSYMIDX): Likewise.
49         * elf/do-rel.h (VERSYMIDX): Likewise.
50         (VALIDX): Likewise.
51         * elf/dynamic-link.h (VERSYMIDX): Likewise.
52         * elf/rtld.c (VALIDX): Likewise.
53         (ADDRIDX): Likewise.
54         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
55         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
56         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
58         (VALIDX): Likewise.
59         (ADDRIDX): Likewise.
60
61 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
62
63         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
64
65 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
66
67         [BZ #11438]
68         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
69         to global scope.
70         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
71         addresses are in the same scope as 192.0.2/24.
72         * posix/gai.conf: Document new scope table defaults.
73
74 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
75
76         [BZ #5298]
77         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
78         for ftell.  Compute offsets from write pointers instead.
79         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
80
81 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
82
83         [BZ #14543]
84         * libio/Makefile (tests): New test case tst-fseek.
85         * libio/tst-fseek.c: New test case to verify that fseek/ftell
86         combination works in wide mode.
87         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
88         state when the external buffer state changes.
89
90 2012-09-27  David S. Miller  <davem@davemloft.net>
91
92         [BZ #14376]
93         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
94         pass reloc->r_addend in as the 'high' argument to
95         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
96
97         * sysdeps/sparc/fpu/libm-test-ulps: Update.
98
99 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
100
101         * rt/tst-aio2.c: Include <pthread.h>.
102         * rt/tst-aio3.c: Likewise.
103
104 2012-09-27  Steve Ellcey  <sellcey@mips.com>
105
106         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
107
108 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
109
110         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
111         contents on [SHARED].
112
113 2012-09-26  Marek Polacek  <polacek@redhat.com>
114
115         [BZ #14530]
116         [BZ #13741]
117         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
118         for C++ and GCC <4.3 as well as for non GCC compilers.
119
120 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
121
122         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
123
124 2012-09-25  Roland McGrath  <roland@hack.frob.com>
125
126         * Makefile.in (all, install): Declare with .PHONY.
127         Reported by Michael Hope <michael.hope@linaro.org>.
128
129 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
130
131         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
132         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
133         system header.
134         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
135         Likewise.
136         (sydep_routines): Add the new and the internal functions.
137         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
138         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
140         (GLIBC_2.17): Add the new function.
141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
142         (GLIBC_2.17): Likewise.
143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
144         (GLIBC_2.17): Likewise.
145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
146         (GLIBC_2.17): Likewise.
147         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
148
149 2012-09-25  Alan Modra  <amodra@gmail.com>
150
151         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
152         Add release barrier before setting once_control to say
153         initialisation is done.  Add hints on lwarx.  Use macro in
154         place of isync.
155         (clear_once_control): Add release barrier.
156
157 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
158
159         [BZ #13629]
160         * math/s_clog.c (__clog): Handle more values close to |z| = 1
161         specially.
162         * math/s_clog10.c (__clog10): Likewise.
163         * math/s_clog10f.c (__clog10f): Likewise.
164         * math/s_clog10l.c (__clog10l): Likewise.
165         * math/s_clogf.c (__clogf): Likewise.
166         * math/s_clogl.c (__clogl): Likewise.
167         * math/Makefile (libm-calls): Add x2y2m1.
168         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
169         (__x2y2m1): Likewise.
170         (__x2y2m1l): Likewise.
171         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
172         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
173         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
174         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
175         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
176         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
177         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
178         * sysdeps/i386/fpu/libm-test-ulps: Update.
179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
180
181         [BZ #14621]
182         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
183         int as type of variable DEPTH.
184         (glob): Use size_t instead of int as type of variables NEWCOUNT
185         and OLD_PATHC.
186
187 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
188
189         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
190         Add s_sincosf-sse2.
191         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
192         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
193         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
194         macros for using routine as __sincosf_ia32.
195         Use macro for function declaration and weak_alias.
196         * sysdeps/i386/fpu/libm-test-ulps: Update.
197
198         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
199         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
200
201         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
202         subnormal argument.
203         * math/s_cexpf.c (__cexpf): Likewise.
204         * math/s_csinf.c (__csinf): Likewise.
205         * math/s_csinhf.c (__csinhf): Likewise.
206         * math/s_ctanf.c (__ctanf): Likewise.
207         * math/s_ctanhf.c (__ctanhf): Likewise.
208         * math/s_ccosh.c (__ccoshf): Likewise.
209         * math/s_cexp.c (__cexpl): Likewise.
210         * math/s_csin.c (__csin): Likewise.
211         * math/s_csinh.c (__csinh): Likewise.
212         * math/s_ctan.c (__ctan): Likewise.
213         * math/s_ctanh.c (ctanh): Likewise.
214         * math/s_ccoshl.c (__ccoshl): Likewise.
215         * math/s_cexpl.c (__cexpl): Likewise.
216         * math/s_csinl.c (__csinl): Likewise.
217         * math/s_csinhl.c (__csinhl): Likewise.
218         * math/s_ctanl.c (__ctanl): Likewise.
219         * math/s_ctanhl.c (__ctanhl): Likewise.
220
221 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
222
223         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
224         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
225         (_IO_off_t): Define to __off_t, not _G_off_t.
226         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
227         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
228         (_IO_wint_t): Define to wint_t, not _G_wint_t.
229         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
230         type of __dummy and __dummy2 fields.
231         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
232         (_G_ssize_t): Likewise.
233         (_G_off_t): Likewise.
234         (_G_pid_t): Likewise.
235         (_G_uid_t): Likewise.
236         (_G_wchar_t): Likewise.
237         (_G_wint_t): Likewise.
238         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
239         (_G_ssize_t): Likewise.
240         (_G_off_t): Likewise.
241         (_G_pid_t): Likewise.
242         (_G_uid_t): Likewise.
243         (_G_wchar_t): Likewise.
244         (_G_wint_t): Likewise.
245         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
246         (_G_ssize_t): Likewise.
247         (_G_off_t): Likewise.
248         (_G_pid_t): Likewise.
249         (_G_uid_t): Likewise.
250         (_G_wchar_t): Likewise.
251         (_G_wint_t): Likewise.
252
253 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
254
255         * malloc/arena.c: Include malloc-sysdep.h.
256         (shrink_heap): Use check_may_shrink_heap to decide if madvise
257         is sufficient to shrink the heap or an unmap is needed.
258         * sysdeps/generic/malloc-sysdep.h: New file.  Define
259         new function check_may_shrink_heap.
260         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
261         new function check_may_shrink_heap.
262
263 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
264
265         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
266         comments.
267
268 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
269
270         * catgets/test-gencat.sh: Add "set -e".
271         * elf/tst-pathopt.sh: Likewise.
272         * grp/tst_fgetgrent.sh: Likewise.
273         * iconvdata/run-iconv-test.sh: Likewise.
274         * intl/tst-gettext.sh: Likewise.
275         * intl/tst-gettext2.sh: Likewise.
276         * intl/tst-gettext4.sh: Likewise.
277         * intl/tst-gettext6.sh: Likewise.
278         * intl/tst-translit.sh: Likewise.
279         * io/ftwtest-sh: Likewise.
280         * libio/test-freopen.sh: Likewise.
281         * malloc/tst-mtrace.sh: Likewise.
282         * posix/globtest.sh: Likewise.
283         * posix/tst-getconf.sh: Likewise.
284         * posix/wordexp-tst.sh: Likewise.
285         * stdio-common/tst-printf.sh: Likewise.
286         * stdio-common/tst-unbputc.sh: Likewise.
287         * stdlib/tst-fmtmsg.sh: Likewise.
288         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
289         * catgets/Makefile: Do not specify -e option when running
290         testsuite shell scripts.
291         * elf/Makefile: Likewise.
292         * grp/Makefile: Likewise.
293         * iconvdata/Makefile: Likewise.
294         * intl/Makefile: Likewise.
295         * io/Makefile: Likewise.
296         * libio/Makefile: Likewise.
297         * malloc/Makefile: Likewise.
298         * posix/Makefile: Likewise.
299         * stdio-common/Makefile: Likewise.
300         * stdlib/Makefile: Likewise.
301         * sysdeps/x86_64/Makefile: Likewise.
302
303         * io/ftwtest-sh: Add copyright header.
304         * posix/globtest.sh: Likewise.
305         * posix/tst-getconf.sh: Likewise.
306         * posix/wordexp-tst.sh: Likewise.
307         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
308
309 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
310
311         [BZ #13679]
312         * Makeconfig (+link): Defined as $(+link-static) if
313         $(build-shared) isn't yes.
314         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
315         isn't yes.
316         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
317
318         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
319
320         [BZ #14562]
321         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
322         new chunk size with MALLOC_ALIGN_MASK.
323
324 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
325
326         [BZ #5044]
327         * stdio-common/printf_fphex.c: Include <stdbool.h> and
328         <rounding-mode.h>.
329         (__printf_fphex): Determine rounding using get_rounding_mode and
330         round_away.
331         * stdio-common/tst-printf-round.c (struct hex_test): New
332         structure.
333         (hex_tests): New variable.
334         (test_hex_in_one_mode): New function.
335         (do_test): Also run tests for hex float output.
336
337 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
338
339         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
340         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
341         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
342         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
343         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
344         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
345         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
346         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
347
348 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
349
350         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
351         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
352         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
353         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
354
355 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
356
357         [BZ #14579]
358         * elf/rtld.c (dl_main): Limit the check for self loading to normal
359         mode only.
360         * elf/tst-rtld-load-self.sh: New test.
361         * elf/Makefile: Run it.
362
363 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
364
365         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
366         (tst-writev-ENV): Remove.
367         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
368
369 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
370
371         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
372
373 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
374
375         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
376         unconditional.
377         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
378         Likewise.
379         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
380         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
381         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
382         Likewise.
383
384 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
385
386         [BZ #14587]
387         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
388         * config.make.in (have-cpp-asm-debuginfo): Removed.
389         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
390         * configure: Regenerated.
391
392 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
393
394         [BZ #5044]
395         * stdio-common/printf_fp.c: Include <stdbool.h> and
396         <rounding-mode.h>.
397         (___printf_fp): Determine rounding using get_rounding_mode and
398         round_away.
399         * stdio-common/tst-printf-round.c: New file.
400         * stdio-common/Makefile (tests): Add tst-printf-round.
401         (link-libm): New variable.
402         ($(objpfx)tst-printf-round): Depend in $(link-libm).
403
404 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
405
406         [BZ #14576]
407         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
408         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
409         Likewise.
410         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
411         Likewise.
412
413 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
414
415         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
416         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
417         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
418         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
419
420 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
421
422         [BZ #14518]
423         * include/rounding-mode.h: New file.
424         * sysdeps/generic/get-rounding-mode.h: Likewise.
425         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
426         * stdlib/strtod_l.c: Include <rounding-mode.h>.
427         (MAX_VALUE): New macro.
428         (MIN_VALUE): Likewise.
429         (overflow_value): New function.
430         (underflow_value): Likewise.
431         (round_and_return): Use overflow_value and underflow_value to
432         determine return values in overflow and underflow cases.  Use
433         round_away to determine rounding depending on rounding mode.
434         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
435         determine return values in overflow and underflow cases.
436         * stdlib/tst-strtod-round.c: Include <fenv.h>.
437         (struct test_results): New structure.
438         (struct test): Use struct test_results to store expected results
439         for all rounding modes.
440         (TEST): Include expected results for all rounding modes.
441         (test_in_one_mode): New function.
442         (do_test): Use test_in_one_mode to compute and check results.
443         Check results for all rounding modes.
444         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
445         $(link-libm).
446
447 2012-12-09  Allan McRae  <allan@archlinux.org>
448
449         * sysdeps/i386/fpu/libm-test-ulps: Update
450
451 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
452
453         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
454         (_G_int32_t): Likewise.
455         (_G_uint16_t): Likewise.
456         (_G_uint32_t): Likewise.
457         (_G_HAVE_BOOL): Likewise.
458         (_G_HAVE_ATEXIT): Likewise.
459         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
460         (_G_HAVE_IO_FILE_OPEN): Likewise.
461         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
462         (_G_int32_t): Likewise.
463         (_G_uint16_t): Likewise.
464         (_G_uint32_t): Likewise.
465         (_G_HAVE_BOOL): Likewise.
466         (_G_HAVE_ATEXIT): Likewise.
467         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
468         (_G_HAVE_IO_FILE_OPEN): Likewise.
469         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
470         (_G_int32_t): Likewise.
471         (_G_uint16_t): Likewise.
472         (_G_uint32_t): Likewise.
473         (_G_HAVE_BOOL): Likewise.
474         (_G_HAVE_ATEXIT): Likewise.
475         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
476         (_G_HAVE_IO_FILE_OPEN): Likewise.
477
478 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
479
480         * csu/libc-tls.c: Update copyright years.
481
482 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
483
484         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
485         [!_G_USING_THUNKS]: Remove conditional code.
486         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
487         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
488
489         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
490         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
491         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
492         (_G_VTABLE_LABEL_PREFIX): Likewise.
493         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
494         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
495         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
496         (_G_VTABLE_LABEL_PREFIX): Likewise.
497         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
498         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
499         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
500         (_G_VTABLE_LABEL_PREFIX): Likewise.
501         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
502
503 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
504
505         * libio/Makefile: Include ../Makeconfig before tests.
506         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
507         only if $(build-shared) is yes.
508
509         * iconv/gconv_db.c: Update copyright years.
510
511 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
512
513         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
514         unwind info if defined PIC. Fix special cases description.
515         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
516
517         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
518         DP_HI_MASK entry.
519         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
520
521 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
522
523         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
524
525         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
526         is NULL.
527
528         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
529         (LDLIBS-tst-chk4): This.
530         (LDFLAGS-tst-chk5): Renamed to ...
531         (LDLIBS-tst-chk5): This.
532         (LDFLAGS-tst-chk6): Renamed to ...
533         (LDLIBS-tst-chk6): This.
534         (LDFLAGS-tst-lfschk4): Renamed to ...
535         (LDLIBS-tst-lfschk4): This.
536         (LDFLAGS-tst-lfschk5): Renamed to ...
537         (LDLIBS-tst-lfschk5): This.
538         (LDFLAGS-tst-lfschk6): Renamed to ...
539         (LDLIBS-tst-lfschk6): This.
540
541         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
542         on $(common-objpfx)soversions.mk.
543
544 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
545
546         [BZ #10014]
547         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
548         example host name.
549
550 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
551
552         * malloc/arena.c (arena_get_retry): New function that gets
553         another arena for the caller to try its request on.
554         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
555         current arena cannot fulfill the request.
556         (__libc_memalign): Likewise.
557         (__libc_memalign): Likewise.
558         (__libc_pvalloc): Likewise.
559         (__libc_calloc): Likewise.
560
561 2012-09-05  John Tobey  <john.tobey@gmail.com>
562
563         [BZ #13542]
564         * manual/arith.texi (Operations on Complex): Fix description
565         of carg branch cut.
566
567 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
568
569         [BZ #10014]
570         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
571         host name.
572
573         [BZ #10038]
574         * manual/memory.texi (Memory): Make order of menu items match
575         order of sections.
576
577 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
578
579         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
580         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
581         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
582
583 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
584
585         * csu/libc-tls.c (static_dtv): Renamed to ...
586         (_dl_static_dtv): This.  Make it global.
587         (_dl_initial_dtv): Removed.
588         (__libc_setup_tls): Updated.
589         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
590         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
591         DL_INITIAL_DTV.
592
593 2012-09-06  Petr Machata  <pmachata@redhat.com>
594
595         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
596         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
597         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
598         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
599
600 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
601
602         [BZ #14545]
603         * csu/libc-tls.c (_dl_initial_dtv): New variable.
604         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
605         freeing dtv[-1].
606
607 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
608
609         [BZ #14544]
610         * Makeconfig (link-static-before-libc): Replace $(+prector)
611         with $(+prectorT).
612         (link-static-after-libc): Replace $(+postctor) with
613         $(+postctorT).
614         (link-bounded): Replace $(+prector)/$(+postctor) with
615         $(+prectorT)/$(+postctorT).
616         (+prectorT): New macro.
617         (+postctorT): Likewise.
618
619 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
620
621         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
622         (round_str): Handle values above the maximum for IBM long double
623         as inexact.
624         * stdlib/tst-strtod-round.c (tests): Regenerated.
625
626 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
627
628         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
629         assembler flag.
630         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
631         zarch_nohighgprs around the zarch optimized routines.
632         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
633         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
634         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
635         for zarch.
636
637 2012-09-05  David S. Miller  <davem@davemloft.net>
638
639         * sysdeps/sparc/fpu/libm-test-ulps: Update.
640
641         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
642         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
643         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
644         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
645         entries.
646
647 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
648
649         * malloc/arena.c: Fold copyright years.
650         * malloc/mcheck.c, malloc/memusage.c: Likewise.
651
652 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
653
654         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
655
656 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
657
658         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
659
660 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
661
662         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
663         change internal state upon failure.
664
665 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
666
667         * malloc/mcheck.c (mcheck_check_all): Fix typo.
668         * malloc/memusage.c (mmap): Likewise.
669         (mmap64, mremap): Likewise.  Adjust name in comment.
670
671 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
672
673         * libio/fileops.c: Fix typos in comments.
674         * libio/oldfileops.c: Likewise.
675         * libio/wfileops.c: Likewise.
676
677 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
678
679         [BZ #1349]
680         * malloc/Makefile (tests): Add tst-malloc-usable test case.
681         (tst-malloc-usable-ENV): Set environment for test case.
682         * malloc/hooks.c (malloc_check_get_size): New function to get
683         requested size.
684         * malloc/malloc.c (musable): Use malloc_check_get_size.
685         * malloc/tst-malloc-usable.c: New test case.
686
687 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
688
689         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
690
691 2012-09-05  Allan McRae  <allan@archlinux.org>
692
693         [BZ #13966]
694         * configure.in (CXX_SYSINCLUDES): Use compiler output to
695         determine header location.
696         * configure: Regenerated.
697
698 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
699
700         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
701         float format.
702         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
703         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
704         format.
705         (test): Regenerate.
706
707 2012-09-04  David S. Miller  <davem@davemloft.net>
708
709         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
710         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
711         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
712
713 2012-09-04  Florian Weimer  <fweimer@redhat.com>
714
715         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
716         failures.
717
718         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
719
720 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
721
722         [BZ #9914]
723         * libio/iogetdelim.c: Include <limits.h>.
724         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
725         + len + 1 would overflow.
726
727 2012-09-03  Andreas Jaeger  <aj@suse.de>
728
729         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
730         * sysdeps/i386/fpu/libm-test-ulps: Update.
731
732 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
733
734         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
735         Add s_sinf-sse2, s_conf-sse2.
736
737         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
738         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
739         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
740         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
741
742         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
743         for using routine as __sinf_ia32.
744         Use macro for function declaration and weak_alias.
745         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
746         for using routine as __cosf_ia32.
747         Use macro for function declaration and weak_alias.
748
749         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
750         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
751
752         * sysdeps/x86_64/fpu/s_sinf.S: New file.
753         * sysdeps/x86_64/fpu/s_cosf.S: New file.
754         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
755
756         * math/libm-test.inc (cos_test): Add more test cases.
757         (sin_test): Likewise.
758         (sincos_test): Likewise.
759
760 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
761
762         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
763         (IFUNC_RESOLVE): Make pointers to the specialized implementations
764         hidden.
765         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
766
767 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
768
769         [BZ #14538]
770         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
771         first element of the GOT.
772         (elf_machine_load_address): Return the difference between
773         the runtime address of _DYNAMIC and elf_machine_dynamic ().
774
775 2012-09-01  Allan McRae  <allan@archlinux.org>
776
777         [BZ #13412]
778         * configure.in (AWK): Require gawk version 3.0 or later.
779         * configure: Regenerated.
780
781 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
782
783         * sysdeps/unix/sysv/linux/kernel-features.h
784         (__ASSUME_POSIX_CPU_TIMERS): Remove.
785         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
786         [__NR_clock_getres]: Make code unconditional.
787         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
788         (clock_getcpuclockid): Remove code left unreachable by removal of
789         conditionals.
790         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
791         code unconditional.
792         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
793         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
794         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
795         Make code unconditional.
796         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
797         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
798         * sysdeps/unix/sysv/linux/clock_settime.c
799         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
800         conditional code.
801         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
802         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
803
804 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
805
806         [BZ #14476]
807         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
808         scripts/test-installation.pl.
809
810         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
811         and $ld_so_version if it is set.
812
813 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
814
815         [BZ #14516]
816         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
817         failure if reading from procfs failed.
818         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
819
820 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
821
822         * sysdeps/unix/sysv/linux/kernel-features.h
823         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
824         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
825         Remove conditional code.
826         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
827         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
828         Remove conditional code.
829         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
830         * sysdeps/unix/sysv/linux/i386/fxstat.c
831         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
832         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
833         * sysdeps/unix/sysv/linux/i386/fxstatat.c
834         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
835         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
836         * sysdeps/unix/sysv/linux/i386/lxstat.c
837         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
838         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
839         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
840         Remove conditional code.
841         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
842         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
843         Remove conditional code.
844         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
845         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
846         <kernel-features.h>.
847         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
848         Remove.
849         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
850         Remove conditional code.
851         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
852         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
853         Remove conditional.
854
855 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
856
857         [BZ #5400]
858         * NEWS: Add fixed bug number.
859
860 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
861
862         [BZ #14519]
863         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
864         underflowing exponent in case of negative sign.
865         * stdlib/tst-strtod-round-data: Add more tests.
866         * stdlib/tst-strtod-round.c (tests): Regenerated.
867
868         [BZ #3479]
869         * stdlib/strtod_l.c (NDIG): Remove.
870         (HEXNDIG): Likewise.
871         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
872         smallest representable value.
873         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
874         lie within an exact representation of 1/2 ulp of the result.
875         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
876         unconditionally.
877         (TENS_P9_IDX): Define unconditionally.
878         (TENS_P9_SIZE): Likewise.
879         (TENS_P10_IDX): Likewise.
880         (TENS_P10_SIZE): Likewise.
881         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
882         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
883         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
884         entries for 10^2^13 and 10^2^14.
885         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
886         (TENS_P13_IDX): Define.
887         (TENS_P13_SIZE): Likewise.
888         (TENS_P14_IDX): Likewise.
889         (TENS_P14_SIZE): Likewise.
890         (_fpioconst_pow10): Change array size to
891         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
892         unconditional.
893         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
894         1024]: Add entries for 10^2^13 and 10^2^14.
895         [LAST_POW10 > _LAST_POW10]: Remove #error.
896         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
897         (_fpioconst_pow10): Change array size to
898         FPIOCONST_POW10_ARRAY_SIZE.
899         * stdlib/gen-fpioconst.c: New file.
900         * stdlib/gen-tst-strtod-round.c: Likewise.
901         * stdlib/tst-strtod-round-data: Likewise.
902         * stdlib/tst-strtod-round.c: Likewise.
903         * stdlib/Makefile (tests): Add tst-strtod-round.
904
905         [BZ #14459]
906         * stdlib/strtod_l.c: Include <stdint.h>.
907         (NDEBUG): Do not define.
908         (round_and_return): Change EXPONENT parameter to type intmax_t.
909         Rearrange calculations to avoid internal overflow possibilities.
910         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
911         Rearrange calculations to avoid internal overflow possibilities.
912         Assert that number fits inside MPNSIZE limbs.
913         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
914         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
915         calculations and add assertions to avoid internal overflow
916         possibilities.  Add casts to avoid signed/unsigned operations.
917         * stdlib/tst-strtod-overflow.c: New file.
918         * stdlib/Makefile (tests): Add tst-strtod-overflow.
919
920 2012-08-25  Marek Polacek  <polacek@redhat.com>
921
922         * time/time.h: Fix some typos in comments.
923
924 2012-08-23  Roland McGrath  <roland@hack.frob.com>
925
926         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
927         * posix/tst-rfc3484-2.c: Likewise.
928         * posix/tst-rfc3484-3.c: Likewise.
929
930 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
931
932         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
933         (EF_ARM_ABI_FLOAT_HARD): Likewise.
934
935 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
936
937         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
938         #include of fxstatat64.c.
939
940 2012-08-22  Roland McGrath  <roland@hack.frob.com>
941
942         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
943         * shadow/getspent_r.c: Likewise.
944         * shadow/getspnam.c: Likewise.
945         * shadow/getspnam_r.c: Likewise.
946         * gshadow/getsgent.c: Likewise.
947         * gshadow/getsgent_r.c: Likewise.
948         * gshadow/getsgnam.c: Likewise.
949         * gshadow/getsgnam_r.c: Likewise.
950         * inet/getnetbyad.c: Likewise.
951         * inet/getnetbyad_r.c: Likewise.
952         * inet/getnetbynm.c: Likewise.
953         * inet/getnetbynm_r.c: Likewise.
954         * inet/getnetent.c: Likewise.
955         * inet/getnetent_r.c: Likewise.
956         * inet/getproto.c: Likewise.
957         * inet/getproto_r.c: Likewise.
958         * inet/getprtent.c: Likewise.
959         * inet/getprtent_r.c: Likewise.
960         * inet/getprtname.c: Likewise.
961         * inet/getprtname_r.c: Likewise.
962         * inet/getrpcbyname.c: Likewise.
963         * inet/getrpcbyname_r.c: Likewise.
964         * inet/getrpcbynumber.c: Likewise.
965         * inet/getrpcbynumber_r.c: Likewise.
966         * inet/getrpcent.c: Likewise.
967         * inet/getrpcent_r.c: Likewise.
968         * inet/getaliasent.c: Likewise.
969         * inet/getaliasent_r.c: Likewise.
970         * inet/getaliasname.c: Likewise.
971         * inet/getaliasname_r.c: Likewise.
972         * nscd/getgrgid_r.c: Likewise.
973         * nscd/getgrnam_r.c: Likewise.
974         * nscd/gethstbyad_r.c: Likewise.
975         * nscd/gethstbynm3_r.c: Likewise.
976         * nscd/getpwnam_r.c: Likewise.
977         * nscd/getpwuid_r.c: Likewise.
978         * nscd/getsrvbynm_r.c: Likewise.
979         * nscd/getsrvbypt_r.c: Likewise.
980         * nscd/gai.c: Likewise.
981
982         * configure.in (build_nscd): New substituted variable, set
983         by --disable-build-nscd and defaults to $use_nscd.
984         * configure: Regenerated.
985         * config.make.in (build-nscd): New substituted variable.
986         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
987         Change conditional to require [$(build-nscd) = yes] as well.
988         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
989
990         [BZ# 13696]
991         * configure.in (use_nscd): New substituted variable, set by
992         --disable-nscd.  If enabled, define USE_NSCD.
993         * configure: Regenerated.
994         * config.h.in: Add USE_NSCD.
995         * config.make.in (use-nscd): New substituted variable.
996         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
997         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
998         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
999         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1000         (CFLAGS-getgrnam_r.c): Likewise.
1001         (CFLAGS-initgroups.c): Likewise.
1002         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1003         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1004         Variables removed.
1005         * inet/getnetgrent_r.c
1006         (nscd_setnetgrent): New function, broken out of ...
1007         (setnetgrent): ... here.  Call it.
1008         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1009         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1010         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1011         * nscd/Makefile (routines, aux): Move definitions after include of
1012         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1013         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1014         Conditionalize on [USE_NSCD].
1015         (is_nscd, nscd_init_cb): Likewise.
1016         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1017         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1018         * nss/nss_db/db-init.c: Likewise.
1019         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1020         [USE_NSCD].
1021         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1022         (make_request): Use it.
1023         (cache_valid_p): New function.
1024         (__check_pf): Use it.
1025         * NEWS: Add item for --disable-nscd.
1026
1027 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1028
1029         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1030         to support sed >= 4.2.1-20-ga9bf076.
1031         * configure: Regenerated.
1032
1033 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1034
1035         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1036         Conditionalize whole body on [IREL].
1037
1038 2012-08-22  Jeff Law <law@redhat.com>
1039
1040         [BZ #14505]
1041         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1042         if the family is PF_UNSPEC.
1043
1044 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1045
1046         * Makerules (lib-version): Rename from V.
1047         (install-lib-nosubdir): Change V to lib-version.
1048
1049 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1050
1051         [BZ #14252]
1052         * powerpc32/power6/wcschr.c: New file.
1053         * powerpc32/power6/wcscpy.c: New file.
1054         * powerpc32/power6/wcsrchr.c: New file.
1055         * powerpc64/power6/wcschr.c: New file.
1056         * powerpc64/power6/wcscpy.c: New file.
1057         * powerpc64/power6/wcsrchr.c: New file.
1058
1059 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1060
1061         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1062         (two_way_short_needle): Use it.
1063         * string/strstr.c (AVAILABLE1_USES_J): Define.
1064         * string/strcasestr.c: Likewise.
1065
1066         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1067         array references.
1068         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1069
1070         [BZ #11607]
1071         * NEWS: Add an entry.
1072         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1073         define their defaults.
1074         (two_way_short_needle): Detect end-of-string on-the-fly.
1075         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1076         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1077         * string/bug-strcasestr1.c: New test.
1078         * string/Makefile: Run it.
1079
1080 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1081
1082         [BZ #11607]
1083         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1084         the first character.
1085
1086 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1087
1088         * csu/elf-init.c (__libc_csu_irel): Function removed.
1089         * csu/libc-start.c (apply_irel): New function.
1090         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1091
1092 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1093
1094         * sysdeps/unix/sysv/linux/kernel-features.h
1095         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1096         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1097         <kernel-features.h>.
1098         [__NR_fadvise64_64]: Make code unconditional.
1099         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1100         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1101         !__NR_fadvise64_64)]: Likewise.
1102         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1103         !__NR_fadvise64_64))]: Likewise.
1104         [__NR_fadvise64]: Make code unconditional.
1105         [!__NR_fadvise64]: Remove conditional code.
1106         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1107         <kernel-features.h>.
1108         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1109         unconditional.
1110         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1111         conditional code.
1112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1113         not include <kernel-features.h>.
1114         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1115         unconditional.
1116         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1117         conditional code.
1118         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1119         include <kernel-features.h>.
1120         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1121         unconditional.
1122         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1123         conditional code.
1124
1125 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1126
1127         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1128         slight instruction rearrangements per scrollpipe analysis.
1129         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1130
1131 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1132
1133         * manual/syslog.texi (syslog; vsyslog, closelog):
1134         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1135         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1136
1137         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1138         DSOCAPS to match condition on defining it.
1139
1140 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1141
1142         * sysdeps/unix/sysv/linux/kernel-features.h
1143         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1145         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1146         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1148         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1149         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1151         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1152         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1153
1154         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1155         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1156
1157         * sysdeps/unix/sysv/linux/kernel-features.h
1158         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1159         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1160         unconditional.
1161         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1162         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1163         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1164         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1165         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1166         Make code unconditional.
1167         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1168         (__mmap64) [!__NR_mmap2]: Likewise.
1169         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1170         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1171         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1172         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1173         [__NR_mmap2]: Make code unconditional.
1174         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1175         (__mmap64) [!__NR_mmap2]: Likewise.
1176
1177 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1178
1179         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1180
1181 2012-08-18  Andreas Jaeger  <aj@suse.de>
1182
1183         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1184
1185 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1186
1187         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1188         * include/unistd.h (__have_sock_cloexec): Likewise.
1189         (__have_pipe2): Likewise.
1190         (__have_dup3): Likewise.
1191
1192 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1193
1194         [BZ #9685]
1195         * include/unistd.h (__have_pipe2): Change define into an extern int.
1196         (__have_dup3): Likewise.
1197         * socket/have_sock_cloexec.c: Include fcntl.h.
1198         (__have_pipe2): New variable.
1199         (__have_dup3): Likewise.
1200
1201 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1202
1203         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1204
1205 2012-08-17  Marek Polacek  <polacek@redhat.com>
1206
1207         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1208         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1209
1210 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1211
1212         * configure.in: Add AC_SUBST for sysheaders.
1213         * configure: Regenerated.
1214         * config.make.in (sysheaders): New substituted variable.
1215
1216         * sysdeps/unix/mkfifo.c: Moved ...
1217         * sysdeps/posix/mkfifo.c: ... here.
1218         * sysdeps/unix/mkfifoat.c: Moved ...
1219         * sysdeps/posix/mkfifoat.c: ... here.
1220
1221         * sysdeps/unix/utime.c: Moved ...
1222         * sysdeps/posix/utime.c: ... here.
1223
1224         * sysdeps/unix/time.c: Moved ...
1225         * sysdeps/posix/time.c: ... here.
1226         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1227         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1228
1229         * sysdeps/unix/nice.c: Moved ...
1230         * sysdeps/posix/nice.c: ... here.
1231
1232         * sysdeps/unix/alarm.c: Moved ...
1233         * sysdeps/posix/alarm.c: ... here.
1234
1235         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1236
1237 2012-08-17  Jeff Law <law@redhat.com>
1238
1239         * intl/Makefile (codeset_mo): New variable.
1240         ($(codeset_mo)): New target.
1241         (tst-codeset.out): Depend on that.  Remove explicit rule.
1242         (tst-gettext3.out, tst-gettext5.out): Likewise.
1243         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1244         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1245         * intl/tst-codeset.sh: Remove.
1246         * intl/tst-gettext3.sh: Likewise.
1247         * intl/tst-gettext5.sh: Likewise.
1248
1249 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1250
1251         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1252         * sysdeps/unix/syscalls.list: ... here.
1253
1254         * sysdeps/posix/getaddrinfo.c
1255         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1256         (gaiconf_init, gaiconf_reload): Use them.
1257         [!_STATBUF_ST_NSEC]
1258         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1259         Define using time_t rather than struct timespec.
1260
1261         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1262         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1263         Macros removed.
1264         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1265         [!NO_THREADS].
1266         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1267         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1268         Likewise.
1269
1270         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1271         __libc_cleanup_push argument.
1272
1273         * bits/param.h: New file.
1274         * misc/sys/param.h: New file.
1275         * include/sys/param.h: New file.
1276         * misc/Makefile (headers): Add bits/param.h.
1277         * sysdeps/generic/sys/param.h: File removed.
1278         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1279         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1280         * sysdeps/mach/hurd/bits/param.h: New file.
1281         * sysdeps/mach/hurd/sys/param.h: New file.
1282
1283         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1284         last change.
1285
1286         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1287         [_IO_MTSAFE_IO].
1288         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1289         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1290         New macros.
1291
1292         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1293         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1294         rather than -D_IO_MTSAFE_IO conditionally.
1295         * stdio-common/Makefile (CPPFLAGS): Likewise.
1296         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1297         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1298         Use $(libio-mtsafe).
1299         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1300         of -D_IO_MTSAFE_IO.
1301         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1302         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1303         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1304         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1305         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1306         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1307         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1308         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1309         (CFLAGS-fread_u_chk.c): Likewise.
1310         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1311         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1312         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1313         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1314         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1315         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1316         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1317         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1318         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1319
1320         * libio/Makefile: Test [$(libc-reentrant) = yes]
1321         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1322
1323         * Makeconfig
1324         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1325         * sysdeps/pthread/configure: File removed.
1326         * sysdeps/pthread/Makeconfig: New file.
1327         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1328         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1329
1330 2012-08-16  Gary Benson  <gbenson@redhat.com>
1331
1332         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1333         unmapping the first object in a namespace.
1334
1335 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1336
1337         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1338         (__internal_setnetgrent): ... this.  Add internal_function to
1339         definition.  Add libc_hidden_def.
1340         (setnetgrent): Update caller.
1341         (internal_endnetgrent): Renamed to ...
1342         (__internal_endnetgrent): ... this.  Add internal_function to
1343         definition.  Add libc_hidden_def.
1344         (endnetgrent): Update caller.
1345         (internal_getnetgrent_r): Renamed to ...
1346         (__internal_getnetgrent_r): ... this.  Add internal_function to
1347         definition.  Add libc_hidden_def.
1348         (__getnetgrent_r): Update caller.
1349         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1350
1351 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1352
1353         * stdlib/longlong.h: Update from GCC.
1354
1355 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1356
1357         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1358         on _QL, which is set by umul_ppmm but never used.
1359         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1360         variables, which are set by GMP macros but never used.
1361         * stdio-common/_itowa.c (_itowa): Likewise.
1362         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1363         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1364
1365 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1366
1367         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1368         struct La_sh_regs is not constant.
1369         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1370         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1371         and struct La_sparc64_regs are not constant.
1372
1373 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1374
1375         * sysdeps/unix/sysv/linux/kernel-features.h
1376         (__ASSUME_POSIX_TIMERS): Remove.
1377         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1378         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1379         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1380         Make code unconditional.
1381         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1382         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1383         Make code unconditional.
1384         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1385         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1386         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1387         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1388         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1389         Make code unconditional.
1390         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1391         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1392         (__libc_missing_posix_timers): Remove.
1393
1394 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1395
1396         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1397         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1398
1399         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1400
1401         * elf/dl-sym.c: Include <stdlib.h>.
1402
1403         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1404         constants, which avoids warnings in 32-bit builds.
1405
1406         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1407         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1408
1409         * misc/lseek.c: File moved to ...
1410         * io/lseek.c: ... here.
1411
1412         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1413
1414         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1415         shifting LEN more than 31 bits at once.
1416
1417 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1418
1419         [BZ #14195]
1420         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1421         segmentation fault for a case of two empty input strings.
1422         * string/test-strncasecmp.c (check1): Renamed to...
1423         (bz12205): ...this.
1424         (bz14195): Add new testcase for two empty input strings and N > 0.
1425         (test_main): Call new testcase, adapt for renamed function.
1426
1427 2012-08-15  Andreas Jaeger  <aj@suse.de>
1428
1429         [BZ #14090]
1430         * crypt/md5test2.c: New test, based on test supplied by Serge
1431         Belyshev <belyshev@depni.sinp.msu.ru>.
1432         * crypt/Makefile (xtests): Add md5test-giant..
1433         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1434
1435 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1436
1437         [BZ #14090]
1438         * crypt/md5.c (md5_process_block): Don't assume the buffer
1439         length is less than 2**32.
1440         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1441         length is less than 2**64.
1442
1443 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1444
1445         * string/str-two-way.h: Include <sys/param.h>.
1446         (MAX): Macro removed.
1447
1448         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1449         Move #define and #undef of memmove to just before and after
1450         including <string.h>.
1451
1452         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1453         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1454         and after including <string.h>.  Move declarations of
1455         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1456         to before #include "string/memmove.c".
1457
1458         * include/dirent.h: Declare __getdirentries.
1459
1460         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1461         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1462
1463 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1464
1465         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1466         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1467         * sysdeps/i386/configure: Regenerated.
1468         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1469         STABS_CURRENT_FILE, and STABS_FUN.
1470         (END): Remove call to STABS_FUN_END.
1471         (STABS_CURRENT_FILE1): Delete.
1472         (STABS_CURRENT_FILE): Likewise.
1473         (STABS_FUN): Likewise.
1474         (STABS_FUN_END): Likewise.
1475         (STABS_FUN2): Likewise.
1476         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1477         * sysdeps/x86_64/configure: Regenerated.
1478
1479 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1480
1481         * elf/dl-open.c: Include <atomic.h>.
1482         * elf/dl-lookup.c: Likewise.
1483
1484 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1485
1486         * sysdeps/unix/sysv/linux/kernel-features.h
1487         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1488         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1489         unconditionally.
1490         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1491         unconditionally.
1492         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1493         condition on __ASSUME_CLONE_THREAD_FLAGS.
1494
1495 2012-08-14  Andreas Jaeger  <aj@suse.de>
1496
1497         * sysdeps/i386/fpu/libm-test-ulps: Update.
1498
1499 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1500
1501         * include/atomic.h (atomic_exchange_and_add): Split into ...
1502         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1503         New atomic macros.
1504
1505 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1506
1507         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1508
1509 2012-08-13  Jeff Law <law@redhat.com>
1510
1511         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1512         null byte in the output string.
1513
1514 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1515
1516         * sysdeps/unix/sysv/linux/kernel-features.h
1517         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1518         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1519         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1520         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1521         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1522         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1523         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1524
1525 2012-08-09  Jeff Law <law@redhat.com>
1526
1527         [BZ #13939]
1528         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1529         When avoid_arena is set, don't retry in the that arena.  Pick the
1530         next one, whatever it might be.
1531         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1532         (arena_lock): Pass in new parameter to arena_get2.
1533         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1534         arena_get2.
1535         (__libc_malloc): Unify retrying after main arena failure with
1536         __libc_memalign version.
1537         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1538
1539 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1540
1541         [BZ #14166]
1542         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1543         to __redirect_strstr.
1544         (__strstr_sse42): Use typeof __redirect_strstr.
1545         (__strstr_ia32): Likewise.
1546         (__libc_strstr): New prototype.
1547         (strstr): Renamed to ...
1548         (__libc_strstr): This.
1549         (strstr): New strong alias of __libc_strstr.
1550         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1551         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1552         __redirect_time.
1553         Include <time.h>.
1554         (__libc_time): New prototype.
1555         (time_ifunc): Replace time with __libc_time.
1556         (time): New strong alias and hidden definition of __libc_time.
1557         (__GI_time): Remove strong alias.
1558         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1559         Include <stddef.h>.
1560         (memmove): Redefined to __redirect_memmove.
1561         (__memmove_sse2): Use typeof __redirect_memmove.
1562         (__memmove_ssse3): Likewise.
1563         (__memmove_ssse3_back): Likewise.
1564         (__libc_memmove): New prototype.
1565         (memmove): Renamed to ...
1566         (__libc_memmove): This.
1567         (memmove): New strong alias of __libc_memmove.
1568
1569 2012-08-08  Mark Salter  <msalter@redhat.com>
1570
1571         * elf/elf.h
1572         (R_MN10300_TLS_GD): Define.
1573         (R_MN10300_TLS_LD): Likewise.
1574         (R_MN10300_TLS_LDO): Likewise.
1575         (R_MN10300_TLS_GOTIE): Likewise.
1576         (R_MN10300_TLS_IE): Likewise.
1577         (R_MN10300_TLS_LE): Likewise.
1578         (R_MN10300_TLS_DTPMOD): Likewise.
1579         (R_MN10300_TLS_DTPOFF): Likewise.
1580         (R_MN10300_TLS_TPOFF): Likewise.
1581         (R_MN10300_SYM_DIFF): Likewise.
1582         (R_MN10300_ALIGN): Likewise.
1583         (R_MN10300_NUM): Update.
1584
1585 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1586
1587         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1588         Remove.
1589
1590 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1591
1592         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1593
1594         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1595         sysdeps/unix -> sysdeps/posix move.
1596         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1597
1598 2012-08-07      Allan McRae     <allan@archlinux.org>
1599
1600         [BZ #14303]
1601         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1602         (SUNOS_CPP): Likewise.
1603         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1604         not found.
1605         (open_input): Call CPP using execvp.
1606
1607 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1608
1609         * sysdeps/unix/sysv/linux/kernel-features.h
1610         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1611         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1612         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1613         (__ASSUME_WAITID_SYSCALL): Likewise.
1614         * sysdeps/unix/sysv/linux/dl-execstack.c
1615         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1616         code unconditional.
1617         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1618         conditional code.
1619         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1620         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1621         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1622         code.
1623         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1624         unconditional.
1625         [__ASSUME_WAITID_SYSCALL]: Likewise.
1626         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1627
1628 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1629
1630         * sysdeps/unix/closedir.c: Renamed to ...
1631         * sysdeps/posix/closedir.c: ... here.
1632         * sysdeps/unix/dirfd.c: Renamed to ...
1633         * sysdeps/posix/dirfd.c: ... here.
1634         * sysdeps/unix/dirstream.h: Renamed to ...
1635         * sysdeps/posix/dirstream.h: ... here.
1636         * sysdeps/unix/fdopendir.c: Renamed to ...
1637         * sysdeps/posix/fdopendir.c: ... here.
1638         * sysdeps/unix/opendir.c: Renamed to ...
1639         * sysdeps/posix/opendir.c: ... here.
1640         * sysdeps/unix/readdir.c: Renamed to ...
1641         * sysdeps/posix/readdir.c: ... here.
1642         * sysdeps/unix/readdir_r.c: Renamed to ...
1643         * sysdeps/posix/readdir_r.c: ... here.
1644         * sysdeps/unix/rewinddir.c: Renamed to ...
1645         * sysdeps/posix/rewinddir.c: ... here.
1646         * sysdeps/unix/seekdir.c: Renamed to ...
1647         * sysdeps/posix/seekdir.c: ... here.
1648         * sysdeps/unix/telldir.c: Renamed to ...
1649         * sysdeps/posix/telldir.c: ... here.
1650         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1651         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1652         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1653         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1654
1655         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1656         * bits/fcntl.h: ... here.
1657
1658         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1659         not 0.
1660         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1661         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1662         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1663         (struct flock): Move l_start, l_len to the beginning.
1664         Use __pid_t for l_pid.
1665         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1666         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1667         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1668         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1669         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1670         [__USE_LARGEFILE64] (struct flock64): New type.
1671         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1672
1673         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1674         * bits/dirent.h: ... here.
1675
1676         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1677         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1678
1679 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1680
1681         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1682         Change from 2.6.0 to 2.6.16.
1683         * sysdeps/unix/sysv/linux/configure: Regenerated.
1684         * sysdeps/unix/sysv/linux/kernel-features.h
1685         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1686         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1687         version.
1688         (__ASSUME_UTIMES): Likewise.
1689         (__ASSUME_CLONE_STOPPED): Remove.
1690         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1691         architectures, not kernel version.
1692         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1693         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1694         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1695         (__ASSUME_WAITID_SYSCALL): Likewise.
1696         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1697         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1698         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1699         refer to older versions.
1700
1701 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1702
1703         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1704         Define alphasort64 as an alias.
1705         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1706         Define versionsort64 as an alias.
1707         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1708         Define scandir64 as an alias.
1709         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1710         Define scandirat64 as an alias.
1711         * dirent/alphasort64.c (alphasort64):
1712         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1713         * dirent/versionsort64.c: Likewise.
1714         * dirent/scandir64.c: Likewise.
1715         * dirent/scandirat64.c: Likewise.
1716         * sysdeps/wordsize-64/alphasort.c: File removed.
1717         * sysdeps/wordsize-64/alphasort64.c: File removed.
1718         * sysdeps/wordsize-64/scandir.c: File removed.
1719         * sysdeps/wordsize-64/scandir64.c: File removed.
1720         * sysdeps/wordsize-64/scandirat.c: File removed.
1721         * sysdeps/wordsize-64/scandirat64.c: File removed.
1722         * sysdeps/wordsize-64/versionsort.c: File removed.
1723         * sysdeps/wordsize-64/versionsort64.c: File removed.
1724         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1725         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1726         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1727         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1728         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1729         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1730         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1731         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1732
1733         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1734         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1735         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1736         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1737         [defined __arch64__ || defined __sparcv9]
1738         (__INO_T_MATCHES_INO64_T): New macro.
1739         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1740         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1741         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1742         * sysdeps/unix/sysv/linux/bits/dirent.h
1743         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1744         (_DIRENT_MATCHES_DIRENT64): New macro.
1745
1746         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1747         Define lockf64 as an alias.
1748         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1749         Define fseeko64 as an alias.
1750         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1751         Define ftello64 as an alias.
1752         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1753         Define _IO_fgetpos64 and fgetpos64 as aliases.
1754         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1755         Define _IO_fsetpos64 and fsetpos64 as aliases.
1756         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1757         Conditionalize body on this.
1758         * libio/fseeko64.c: Likewise.
1759         * libio/ftello64.c: Likewise.
1760         * libio/iofgetpos64.c: Likewise.
1761         * libio/iofsetpos64.c: Likewise.
1762         * sysdeps/wordsize-64/lockf.c: File removed.
1763         * sysdeps/wordsize-64/lockf64.c: File removed.
1764         * sysdeps/wordsize-64/fseeko.c: File removed.
1765         * sysdeps/wordsize-64/fseeko64.c: File removed.
1766         * sysdeps/wordsize-64/ftello.c: File removed.
1767         * sysdeps/wordsize-64/ftello64.c: File removed.
1768         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1769         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1770         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1771         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1772         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1773         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1774         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1775         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1776         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1777         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1778         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1779         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1780         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1781         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1782
1783         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1784         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1785         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1786         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1787         [defined __arch64__ || defined __sparcv9]
1788         (__OFF_T_MATCHES_OFF64_T): New macro.
1789         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1790         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1791         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1792         (__OFF_T_MATCHES_OFF64_T): New macro.
1793
1794 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1795
1796         * stdlib/secure-getenv.c (__secure_getenv): Replace
1797         GLIBC_2_16 with GLIBC_2_17.
1798
1799 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1800
1801         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1802         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1803
1804 2012-08-03  David S. Miller  <davem@davemloft.net>
1805
1806         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1807
1808 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1809
1810         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1811         Remove.
1812         (__ASSUME_CORRECT_SI_PID): Likewise.
1813         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1814         (__ASSUME_TMPFS_NAME): Likewise.
1815         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1816         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1817         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1818         (HAVE_AUX_SECURE): Make definition unconditional.
1819         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1820         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1821
1822 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1823
1824         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1825         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1826         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1827         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1828         __eloop_threshold instead of SYMLOOP_MAX.
1829
1830         * sysdeps/generic/eloop-threshold.h: New file.
1831         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1832         of MAXSYMLINKS.
1833         * elf/chroot_canon.c (chroot_canon): Likewise.
1834
1835 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1836
1837         [BZ #13717]
1838         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1839         Change to 2.6.0 everywhere.
1840         * sysdeps/unix/sysv/linux/configure: Regenerated.
1841         * sysdeps/unix/sysv/linux/kernel-features.h
1842         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1843         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1844         kernel versions.
1845         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1846         (__ASSUME_FUTEX_REQUEUE): Remove.
1847         (__ASSUME_STATFS64): Define unconditionally.
1848         (__ASSUME_AT_SECURE): Likewise.
1849         (__ASSUME_CORRECT_SI_PID): Likewise.
1850         (__ASSUME_TGKILL): Define without depending on kernel version for
1851         i386.
1852         (__ASSUME_UTIMES): Likewise.
1853         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1854         kernel version.
1855         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1856         (__ASSUME_TMPFS_NAME): Likewise.
1857         * README: Update reference to Linux kernel versions.
1858
1859 2012-08-02  Marek Polacek  <polacek@redhat.com>
1860
1861         [BZ# 14150]
1862         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1863         libc_cv_asm_type_prefix with %.
1864         * configure: Regenerated.
1865         * include/libc-symbols.h: Remove comment about
1866         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1867         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1868         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1869         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1870         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1871         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1872         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1873         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1874         * elf/tst-unique2mod1.c: Likewise.
1875         * elf/tst-unique1mod2.c: Likewise.
1876         * elf/tst-unique1mod1.c: Likewise.
1877         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1878         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1879         Replace ASM_TYPE_DIRECTIVE with .type.
1880         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1881         * sysdeps/i386/sysdep.h: Likewise.
1882         * sysdeps/x86_64/sysdep.h: Likewise.
1883         * sysdeps/sh/sysdep.h: Likewise.
1884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1885         Do not define ASM_TYPE_DIRECTIVE.
1886         * sysdeps/powerpc/sysdep.h: Likewise.
1887         * sysdeps/powerpc/powerpc32/sysdep.h:
1888         Replace ASM_TYPE_DIRECTIVE with .type.
1889         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1890         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1891         * sysdeps/i386/fpu/e_powf.S: Likewise.
1892         * sysdeps/i386/fpu/e_expl.S: Likewise.
1893         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1894         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1895         * sysdeps/i386/fpu/e_pow.S: Likewise.
1896         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1897         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1898         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1899         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1900         * sysdeps/i386/fpu/e_log2.S: Likewise.
1901         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1902         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1903         * sysdeps/i386/fpu/e_powl.S: Likewise.
1904         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1905         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1906         * sysdeps/i386/fpu/e_logl.S: Likewise.
1907         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1908         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1909         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1910         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1911         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1912         * sysdeps/i386/fpu/e_log.S: Likewise.
1913         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1914         * sysdeps/i386/fpu/e_logf.S: Likewise.
1915         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1916         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1917         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1918         * sysdeps/i386/fpu/e_log10.S: Likewise.
1919         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1920         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1921         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1922         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1923         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1924         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1925         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1926         * sysdeps/i386/i686/strtok.S: Likewise.
1927         * sysdeps/i386/i386-mcount.S: Likewise.
1928         * sysdeps/i386/strtok.S: Likewise.
1929         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1930         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1931         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1932         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1933         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1934         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1935         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1936         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1937         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1938         * sysdeps/x86_64/_mcount.S: Likewise.
1939         * sysdeps/x86_64/strtok.S: Likewise.
1940         * sysdeps/sh/_mcount.S: Likewise.
1941
1942 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1943
1944         * libio/iofopen.c: Include <fcntl.h>.
1945         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1946         (_IO_fopen64, fopen64): Define as aliases.
1947         * libio/iofopen64.c: Include <fcntl.h>.
1948         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1949         Conditionalize body on this.
1950         * sysdeps/wordsize-64/iofopen.c: File removed.
1951         * sysdeps/wordsize-64/iofopen64.c: File removed.
1952
1953 2012-08-01  Marek Polacek  <polacek@redhat.com>
1954
1955         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1956         Use dlfcn directly instead of a variable.
1957         (binfmt-subdir): Do not define.
1958         (dlfcn): Likewise.
1959
1960 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1961
1962         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1963         Remove all definitions.
1964         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1965         <kernel-features.h>.
1966         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1967         (miss_F_GETOWN_EX): Remove all definitions.
1968         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1969         macro definition.
1970         [!__ASSUME_FCNTL64]: Remove conditional code.
1971         [__ASSUME_FCNTL64]: Make code unconditional.
1972         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1973         <kernel-features.h>.
1974         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1975         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1976         (lockf64) [__NR_fcntl64]: Make code unconditional.
1977         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1978
1979         * sysdeps/unix/sysv/linux/kernel-features.h
1980         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1981         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1982         Make code unconditional.
1983         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1984         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1986         [__NR_vfork]: Make code unconditional.
1987         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1988         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1990         [__NR_vfork]: Make code unconditional.
1991         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1992         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1993
1994 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1995
1996         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1997         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1998
1999         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2000         Define mkstemp64 as an alias.
2001         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2002         Define mkstemps64 as an alias.
2003         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2004         Define mkostemp64 as an alias.
2005         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2006         Define mkostemps64 as an alias.
2007         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2008         Conditionalize body on this.
2009         * misc/mkostemp64.c: Likewise.
2010         * misc/mkostemps64.c: Likewise.
2011         * misc/mkstemps64.c: Likewise.
2012         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2013         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2014         * sysdeps/wordsize-64/mkostemp.c: File removed.
2015         * sysdeps/wordsize-64/mkstemp.c: File removed.
2016         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2017         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2018         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2019         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2020
2021         [BZ #14138]
2022         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2023         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2024         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2025         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2026
2027         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2028         compat_symbol macros from <shlib-compat.h> rather than the underlying
2029         default_symbol_version and symbol_version macros, so that DEFAULT
2030         lines in shlib-versions are respected.
2031         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2032
2033 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2034
2035         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2036         Declare with warn_unused_result.
2037         (setgid, setregid, setegid, setresgid): Likewise.
2038         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2039         Likewise.
2040         * WUR-REPORT: Remove set*id functions.
2041
2042 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2043
2044         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2045
2046 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2047
2048         * include/sys/socket.h (__libc_accept, __libc_accept4):
2049         Add attribute_hidden.
2050         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2051
2052         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2053         use of PTR_MANGLE.
2054         * inet/getnetgrent_r.c (setup): Likewise.
2055
2056         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2057
2058 2012-07-31  David S. Miller  <davem@davemloft.net>
2059
2060         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2061
2062 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2063
2064         [BZ #13629]
2065         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2066         value between 1.0 and 2.0 and smaller part has absolute value less
2067         than 1.0.
2068         * math/s_clog10.c (__clog10): Likewise.
2069         * math/s_clog10f.c (__clog10f): Likewise.
2070         * math/s_clog10l.c (__clog10l): Likewise.
2071         * math/s_clogf.c (__clogf): Likewise.
2072         * math/s_clogl.c (__clogl): Likewise.
2073         * math/libm-test.inc (clog_test): Add more tests.
2074         (clog10_test): Likewise.
2075         * sysdeps/i386/fpu/libm-test-ulps: Update.
2076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2077
2078 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2079
2080         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2081         Exit with zero in case no suitable GID is found, and write a
2082         message to standard error.
2083
2084 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2085
2086         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2087         rather than to 1.
2088         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2089         (MAXPATHLEN): Removed.
2090         (NOGROUP, NODEV): New macros.
2091         (setbit, clrbit, isset, isclr): New macros.
2092         (howmany, roundup, powerof2): New macros.
2093         (DEV_BSIZE): New macro.
2094
2095         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2096         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2097
2098         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2099         definition on [!__NO_LONG_DOUBLE_MATH].
2100
2101         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2102         PTR_MANGLE and PTR_DEMANGLE.
2103
2104         * socket/accept4.c (accept4): Rename to __libc_accept4.
2105         Define accept4 as a weak alias.
2106
2107         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2108         on [_DIRENT_HAVE_D_TYPE].
2109         * io/ftw.c (ftw_dir): Likewise.
2110
2111         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2112
2113         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2114
2115         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2116         Use the BSD numbers rather than the arbitrary ones we had.
2117         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2118         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2119         (SIGXCPU, SIGXFSZ): New macros.
2120         (_NSIG): Now 32.
2121
2122         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2123         initializer on [_LIBC_REENTRANT].
2124
2125         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2126         definitions inside [_POSIX_MAPPED_FILES].
2127
2128         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2129
2130         * dirent/opendir.c: Include <fcntl.h>.
2131
2132         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2133         (__libc_getspecific): Likewise.
2134         (__libc_key_create): Likewise.
2135
2136         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2137         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2138         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2139         (tmpfile64): Define as alias.
2140         * sysdeps/wordsize-64/tmpfile.c: File removed.
2141         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2142         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2143         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2144
2145         * stdio-common/vfscanf.c: Include <stdbool.h>.
2146         * nss/makedb.c: Likewise.
2147         * stdio-common/_i18n_number.h: Likewise.
2148         * argp/argp-help.c: Likewise.
2149         * posix/wordexp.c: Likewise.
2150         * sysdeps/posix/spawni.c: Likewise.
2151         * nss/nss_files/files-initgroups.c: Likewise.
2152         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2153         * nss/nss_files/files-initgroups.c: Likewise.
2154         * nss/nss_db/db-netgrp.c: Likewise.
2155         * nss/nss_db/db-initgroups.c: Likewise.
2156         * io/fchmodat.c: Include <sys/stat.h>.
2157
2158         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2159         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2160
2161         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2162         [HAVE_MMAP].
2163
2164         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2165         Add multiple inclusion protection.
2166
2167 2012-07-27  David S. Miller  <davem@davemloft.net>
2168
2169         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2170
2171 2012-07-27  Gary Benson  <gbenson@redhat.com>
2172
2173         [BZ #14298]
2174         * elf/rtld.c: Include <stap-probe.h>.
2175         (dl_main): Added static probes "init_start" and "init_complete".
2176         * elf/dl-load.c: Include <stap-probe.h>.
2177         (lose): Take new parameter "nsid".
2178         Added static probe "map_failed".
2179         (_dl_map_object_from_fd): Pass namespace id to lose.
2180         Added static probe "map_start".
2181         (open_verify): Pass namespace id to lose.
2182         * elf/dl-open.c: Include <stap-probe.h>.
2183         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2184         and "reloc_complete".
2185         * elf/dl-close.c: Include <stap-probe.h>.
2186         (_dl_close_worker): Added static probes "unmap_start" and
2187         "unmap_complete".
2188         * elf/rtld-debugger-interface.txt: New file documenting the above.
2189
2190 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2191
2192         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2193         rather than a string variable.
2194         * sunrpc/rpc_main.c (h_output): Likewise.
2195         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2196
2197 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2198
2199         * inet/check_native.c: New file.
2200
2201 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2202
2203         [BZ #13629]
2204         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2205         if larger part has absolute value 1.0.
2206         * math/s_clog10.c (__clog10): Likewise.
2207         * math/s_clog10f.c (__clog10f): Likewise.
2208         * math/s_clog10l.c (__clog10l): Likewise.
2209         * math/s_clogf.c (__clogf): Likewise.
2210         * math/s_clogl.c (__clogl): Likewise.
2211         * math/libm-test.inc (clog_test): Add more tests.
2212         (clog10_test): Likewise.
2213         * sysdeps/i386/fpu/libm-test-ulps: Update.
2214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2215
2216         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2217         (pltexit): Likewise.
2218         (La_regs): Likewise.
2219         (La_retval): Likewise.
2220         (int_retval): Likewise.
2221         Update #error for removed macros to refer only to definitions in
2222         tst-audit.h.
2223         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2224         macro.
2225         (pltexit): Likewise.
2226         (La_regs): Likewise.
2227         (La_retval): Likewise.
2228         (int_retval): Likewise.
2229         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2230         macro.
2231         (pltexit): Likewise.
2232         (La_regs): Likewise.
2233         (La_retval): Likewise.
2234         (int_retval): Likewise.
2235         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2236         macro.
2237         (pltexit): Likewise.
2238         (La_regs): Likewise.
2239         (La_retval): Likewise.
2240         (int_retval): Likewise.
2241         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2242         macro.
2243         (pltexit): Likewise.
2244         (La_regs): Likewise.
2245         (La_retval): Likewise.
2246         (int_retval): Likewise.
2247         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2248         macro.
2249         (pltexit): Likewise.
2250         (La_regs): Likewise.
2251         (La_retval): Likewise.
2252         (int_retval): Likewise.
2253         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2254         macro.
2255         (pltexit): Likewise.
2256         (La_regs): Likewise.
2257         (La_retval): Likewise.
2258         (int_retval): Likewise.
2259         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2260         macro definitions in tst-audit.h.
2261         * sysdeps/i386/tst-audit.h: New file.
2262         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2263         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2264         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2265         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2266         * sysdeps/sh/tst-audit.h: Likewise.
2267         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2268         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2269         * sysdeps/x86_64/tst-audit.h: Likewise.
2270
2271 2012-07-26  Andreas Jaeger  <aj@suse.de>
2272
2273         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2274         ptrace.
2275
2276         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2277         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2278         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2279         PTRACE_O_MASK.
2280         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2281         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2282         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2283
2284         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2285         value.
2286
2287         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2288         _sigsys.
2289         (si_call_addr, si_syscall, si_arch): Define new macro.
2290         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2291         _sigsys.
2292         (si_call_addr, si_syscall, si_arch): Define new marcro.
2293         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2294         _sigsys.
2295         (si_call_addr, si_syscall, si_arch): Define new macro.
2296         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2297         _sigsys.
2298         (si_call_addr, si_syscall, si_arch): Define new macro.
2299
2300 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2301
2302         [BZ #13717]
2303         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2304         Change to 2.4.21 where previously 2.4.1.
2305         * sysdeps/unix/sysv/linux/configure: Regenerated.
2306         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2307         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2308         Linux kernel version.
2309         (__ASSUME_STD_AUXV): Remove.
2310         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2311         kernel version.
2312         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2313         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2314         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2315         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2316         (__ASSUME_NETLINK_SUPPORT): Likewise.
2317         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2318         (__no_netlink_support): Remove conditional definition.
2319         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2320         Remove.
2321         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2322         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2323         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2324         (if_nameindex_ioctl): Remove.
2325         (if_nameindex_netlink): Do not handle __no_netlink_support.
2326         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2327         code.
2328         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2329         Remove conditional code.
2330         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2331         code.
2332         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2333         unconditional.
2334         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2335         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2336         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2337         Remove.
2338         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2339         [!__ASSUME_STD_AUXV]: Remove conditional code.
2340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2341         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2342         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2344         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2345         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2346         code.
2347         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2349         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2350         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2351         conditional code.
2352         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2354         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2355         code.
2356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2357         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2358         conditional code.
2359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2360         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2361         code unconditional.
2362         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2363         conditional code.
2364         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2365         unconditional.
2366         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2367         conditional code.
2368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2369         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2370         unconditional.
2371         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2372         conditional code.
2373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2374         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2375         code unconditional.
2376         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2377         conditional code.
2378         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2379         unconditional.
2380         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2381         conditional code.
2382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2383         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2384         code unconditional.
2385         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2386         conditional code.
2387         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2388         unconditional.
2389         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2390         conditional code.
2391
2392 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2393
2394         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2395         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2396         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2397         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2398         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2399         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2400         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2401         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2402         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2403         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2404         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2405         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2406         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2407         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2408         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2409         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2410         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2411         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2412         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2413         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2414         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2415         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2416         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2417
2418 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2419
2420         * Versions.def: Add GLIBC_2.17.
2421         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2422         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2423         Introduce __libc_secure_getenv.
2424         * stdlib/Versions (2.17): Add secure_getenv
2425         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2426         * stdlib/secure-getenv.c: Rename __secure_getenv to
2427         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2428         symbol __secure_getenv for GLIBC_2.0.
2429         * stdlib/tst-secure-getenv.c: New.
2430         * stdlib/Makefile (tests): Add testcase.
2431         * manual/startup.texi (Environment Access): Document
2432         secure_getenv.
2433         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2434         __libc_secure_getenv.
2435         * inet/ruserpass.c (ruserpass): Likewise.
2436         * malloc/mtrace.c (mtrace): Likewise.
2437         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2438         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2439         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2440         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2441         HAVE_SECURE_GETENV.
2442         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2443         __secure_getenv to __libc_secure_getenv.
2444         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2446         Likewise.
2447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2448         Likewise.
2449         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2450         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2451         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2452         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2453         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2454         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2455         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2456
2457 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2458
2459         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2460         (struct La_i86_retval): Likewise.
2461         (struct La_x86_64_regs): Likewise.
2462         (struct La_x86_64_retval): Likewise.
2463         (struct La_x32_regs): Likewise.
2464         (struct La_x32_retval): Likewise.
2465         (struct La_ppc32_regs): Likewise.
2466         (struct La_ppc32_retval): Likewise.
2467         (struct La_ppc64_regs): Likewise.
2468         (struct La_ppc64_retval): Likewise.
2469         (struct La_sh_regs): Likewise.
2470         (struct La_sh_retval): Likewise.
2471         (struct La_s390_32_regs): Likewise.
2472         (struct La_s390_32_retval): Likewise.
2473         (struct La_s390_64_regs): Likewise.
2474         (struct La_s390_64_retval): Likewise.
2475         (struct La_sparc32_regs): Likewise.
2476         (struct La_sparc32_retval): Likewise.
2477         (struct La_sparc64_regs): Likewise.
2478         (struct La_sparc64_retval): Likewise.
2479         (struct audit_ifaces): Remove architecture-specific pltenter and
2480         pltexit members.
2481         * sysdeps/i386/ldsodefs.h: New file.
2482         * sysdeps/powerpc/ldsodefs.h: Likewise.
2483         * sysdeps/s390/ldsodefs.h: Likewise.
2484         * sysdeps/sh/ldsodefs.h: Likewise.
2485         * sysdeps/sparc/ldsodefs.h: Likewise.
2486         * sysdeps/x86_64/ldsodefs.h: Likewise.
2487
2488 2012-07-25  Marek Polacek  <polacek@redhat.com>
2489
2490         [BZ #6808]
2491         * math/libm-test.inc (yn_test): Add another test.
2492         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2493         to ERANGE when the result is +-Inf.
2494         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2495         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2496         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2497         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2498
2499 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2500
2501         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2502         equal to 0.
2503         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2504         clock_t.
2505         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2506
2507 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2508
2509         * configure.in <sysdeps resolving>: Correct printing
2510         Implies_before.
2511         * configure: Regenerate.
2512
2513 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2514
2515         * math/w_ilogb.c: Include <limits.h>.
2516         * math/w_ilogbl.c: Likewise.
2517
2518 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2519
2520         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2521         va_copy.  Document allowing for unavailable va_copy only as
2522         pre-C99 compatibility.
2523         * manual/string.texi (Copying and Concatenation): Use va_copy
2524         instead of __va_copy in concat example.
2525
2526 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2527
2528         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2529         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2530         it if not null.
2531
2532         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2533         with O_NOLINK passed to __file_name_lookup.
2534
2535         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2536         with O_NOLINK passed to __file_name_lookup.
2537
2538         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2539         negative N or less than NGIDS.
2540
2541         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2542         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2543         enough.  Use memcpy instead of strncpy.
2544
2545 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2546
2547         * elf/Makefile (check-data): Remove.
2548         (localplt.data): New vpath directive.
2549         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2550         instead of $(check-data).
2551         * scripts/data/localplt-generic.data: Move to ...
2552         * sysdeps/generic/localplt.data: ... here.
2553         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2554         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2555         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2557         ... here.
2558         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2560         ... here.
2561         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2562         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2563         ... here.
2564         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2565         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2566         ... here.
2567         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2568         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2569         ... here.
2570         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2571         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2572         ... here.
2573
2574 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2575
2576         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2577         PPC32 and PPC64 files.
2578         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2579         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2580
2581 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2582
2583         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2584         __makecontext_ret to ...
2585         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2586         ... here and call exit if uc_link is NULL.  New file.
2587         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2588         __makecontext_ret.S.
2589         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2590         __makecontext_ret to ...
2591         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2592         ... here and call exit if uc_link is NULL.  New file.
2593         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2594         __makecontext_ret.S.
2595
2596 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2597
2598         * elf/elf.h (R_390_IRELATIVE): New definition.
2599         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2600         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2601         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2602         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2603         (elf_machine_lazy_rel): Likewise.
2604         * sysdeps/s390/dl-irel.h: New file.
2605         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2606         * sysdeps/s390/s390-64/memset.S: New asm code.
2607         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2608         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2609         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2610         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2611         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2612         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2613         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2614         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2615         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2616         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2617         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2618         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2619         * sysdeps/s390/s390-32/memset.S: New asm code.
2620         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2621
2622 2012-07-17  Marek Polacek  <polacek@redhat.com>
2623
2624         [BZ #14349]
2625         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2626         * sysdeps/s390/s390-64/configure.in: Likewise.
2627         * sysdeps/sparc/configure.in: Likewise.
2628         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2629         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2630         * sysdeps/i386/configure.in: Likewise.
2631         * sysdeps/x86_64/configure.in: Likewise.
2632         * sysdeps/sh/configure.in: Likewise.
2633         * sysdeps/s390/s390-32/configure: Regenerated.
2634         * sysdeps/s390/s390-64/configure: Likewise.
2635         * sysdeps/x86_64/configure: Likewise.
2636         * sysdeps/sh/configure: Likewise.
2637         * sysdeps/powerpc/powerpc64/configure: Likewise.
2638         * sysdeps/powerpc/powerpc32/configure: Likewise.
2639         * sysdeps/sparc/configure: Likwise.
2640         * sysdeps/i386/configure: Likewise.
2641
2642         * elf/dl-open.c: Comment fixes.
2643
2644 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2645
2646         * Makefile [CXX] (check-data): Remove.
2647         [CXX] (c++-types.data): New vpath directive.
2648         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2649         vpath.  Do not allow for C++ type data being missing.
2650         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2651         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2652         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2653         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2654         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2655         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2656         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2658         ... here.
2659         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2661         ... here.
2662         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2664         ... here.
2665         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2666         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2667         ... here.
2668         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2669         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2670         ... here.
2671         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2672         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2673         ... here.
2674         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2675         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2676         ... here.
2677         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2678         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2679
2680         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2681         definitions to architecture-specific files.
2682         (TLS_IE): Likewise.
2683         (TLS_LD): Likewise.
2684         (TLS_GD): Likewise.
2685         * sysdeps/i386/tls-macros.h: New file.
2686         * sysdeps/powerpc/tls-macros.h: Likewise.
2687         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2688         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2689         * sysdeps/sh/tls-macros.h: Likewise.
2690         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2691         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2692         * sysdeps/x86_64/tls-macros.h: Likewise.
2693
2694 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2695
2696         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2697         zero value for regular exit case.
2698
2699         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2700         (__start_context): Preserve zero value for regular exit case.
2701
2702 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2703             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2704
2705         * manual/setjmp.texi (setcontext): Clarify normal process
2706         termination when uc_link is the null pointer.
2707         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2708         exit call.
2709
2710 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2711
2712         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2713         preprocessor.  Test for each exception mask separately.
2714
2715 2012-07-16  Andreas Jaeger  <aj@suse.de>
2716
2717         * po/ru.po: Update from translation team.
2718
2719 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2720
2721         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2722         equal to 0.
2723         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2724         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2725         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2726         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2727         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2728
2729 2012-07-13  Andreas Jaeger  <aj@suse.de>
2730
2731         * po/fr.po: Update from translation team.
2732
2733 2012-07-12  Marek Polacek  <polacek@redhat.com>
2734
2735         [BZ #14173]
2736         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2737         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2738         loop condition.
2739
2740 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2741
2742         [BZ #13717]
2743         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2744         Change to 2.4.1 where previously 2.4.0.
2745         * sysdeps/unix/sysv/linux/configure: Regenerated.
2746         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2747         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2748         version.
2749         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2750         (__ASSUME_AT_CLKTCK): Remove.
2751         (__ASSUME_AT_PAGESIZE): Likewise.
2752         (__ASSUME_AT_XID): Likewise.
2753         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2754         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2755         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2756         unconditionally.
2757         (HAVE_AUX_PAGESIZE): Likewise.
2758         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2759         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2760         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2761
2762 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2763
2764         [BZ #14307]
2765         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2766         the temporary buffer used to invoke __gethostbyname2_r,
2767         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2768         host_data / struct gaih_addrtuple.
2769         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2770         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2771         header file nss/nsswitch.h.
2772         * nss/nsswitch.h (global scope): Add definition of implementation
2773         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2774         resolv/nss_dns/dns-host.c).
2775
2776 2012-07-11  Andreas Jaeger  <aj@suse.de>
2777
2778         * po/fr.po: Update from translation team.
2779
2780         * po/sv.po: Update from translation team
2781         * po/fr.po: Another update from translation team.
2782
2783 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2784
2785         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2786         for subnormals or multiply small sinh result by itself.
2787         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2788         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2789
2790 2012-07-11  David S. Miller  <davem@davemloft.net>
2791
2792         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2793
2794 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2795
2796         [BZ #14347]
2797         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2798         (INTERNAL_MARK): Shift it here.
2799
2800 2012-07-10  Marek Polacek  <polacek@redhat.com>
2801
2802         [BZ #14151]
2803         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2804         libc_cv_asm_global_directive with .globl.
2805         * configure: Regenerated.
2806         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2807         with .globl.
2808         * sysdeps/i386/configure: Regenerated.
2809         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2810         with .globl.
2811         * sysdeps/x86_64/configure: Regenerated.
2812         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2813         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2814         * elf/tst-unique2mod2.c: Likewise.
2815         * elf/tst-unique2mod1.c: Likewise.
2816         * elf/tst-unique1mod2.c: Likewise.
2817         * elf/tst-unique1mod1.c: Likewise.
2818         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2819         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2820         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2821         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2822         * sysdeps/mach/sysdep.h: Likewise.
2823         * sysdeps/i386/sysdep.h: Likewise.
2824         * sysdeps/i386/i386-mcount.S: Likewise.
2825         * sysdeps/x86_64/_mcount.S: Likewise.
2826         * sysdeps/x86_64/sysdep.h: Likewise.
2827         * sysdeps/sh/_mcount.S: Likewise.
2828         * sysdeps/sh/sysdep.h: Likewise.
2829         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2830         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2831         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2832         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2833         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2834         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2835         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2836         * locale/localeinfo.h: Likewise.
2837         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2838         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2839
2840 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2841
2842         [BZ #14336]
2843         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2844         system".
2845         * manual/message.texi (The Uniforum approach): Likewise.
2846         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2847         (glibc iconv Implementation): Likewise.
2848
2849 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2850
2851         [BZ #14337]
2852         * math/s_clog.c (__clog): Avoid scaling a value down where that
2853         could result in underflow.
2854         * math/s_clog10.c (__clog10): Likewise.
2855         * math/s_clog10f.c (__clog10f): Likewise.
2856         * math/s_clog10l.c (__clog10l): Likewise.
2857         * math/s_clogf.c (__clogf): Likewise.
2858         * math/s_clogl.c (__clogl): Likewise.
2859         * math/libm-test.inc (clog_test): Add more tests.
2860         (clog10_test): Likewise.
2861         * sysdeps/i386/fpu/libm-test-ulps: Update.
2862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2863
2864 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2865
2866         [BZ #14283]
2867         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2868         by 7 not 8 to examine high bit of fractional part.
2869
2870         [BZ #14042]
2871         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2872         for call to __mcount_internal.
2873         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2874         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2875         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2876
2877 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2878
2879         [BZ #14154]
2880         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2881         approximation for values within 0x1p-13f of an odd multiple of
2882         pi/4.
2883         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2884         exception.  Add more tests.
2885         * sysdeps/i386/fpu/libm-test-ulps: Update.
2886
2887         [BZ #6778]
2888         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2889         inputs and return -1 for them.  Do not check for +Inf in case not
2890         reachable for +Inf.
2891         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2892         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2893         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2894         and return -1 for them.  Do not check for +Inf in case not
2895         reachable for +Inf.
2896         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2897         define.
2898         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2899         and return -1 for them.  Do not check for +Inf in case not
2900         reachable for +Inf.
2901         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2902         spurious underflow.
2903         * sysdeps/i386/fpu/libm-test-ulps: Update.
2904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2905
2906 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2907
2908         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2909
2910 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2911
2912         [BZ #14157]
2913         [BZ #14331]
2914         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2915         could result in spurious underflow.  Scale down values above
2916         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2917         * math/s_csqrtf.c (__csqrtf): Likewise.
2918         * math/s_csqrtl.c (__csqrtl): Likewise.
2919         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2920         spurious underflow.
2921         * sysdeps/i386/fpu/libm-test-ulps: Update.
2922         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2923
2924 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2925
2926         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2927         xopen-msg.sed.
2928         * catgets/xopen-msg.awk: New file.
2929         * catgets/xopen-msg.sed: Removed.
2930
2931         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2932         po2text.sed.
2933         * intl/po2test.awk: New file.
2934         * intl/po2test.sed: Removed.
2935
2936 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2937
2938         [BZ #14328]
2939         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2940         or multiply small sinh result by itself.
2941         * math/s_ctanf.c (__ctanf): Likewise.
2942         * math/s_ctanh.c (__ctanh): Likewise.
2943         * math/s_ctanhf.c (__ctanhf): Likewise.
2944         * math/s_ctanhl.c (__ctanhl): Likewise.
2945         * math/s_ctanl.c (__ctanl): Likewise.
2946         * math/libm-test.inc (ctan_test_tonearest): New function.
2947         (ctan_test_towardzero): Likewise.
2948         (ctan_test_downward): Likewise.
2949         (ctan_test_upward): Likewise.
2950         (ctanh_test_tonearest): Likewise.
2951         (ctanh_test_towardzero): Likewise.
2952         (ctanh_test_downward): Likewise.
2953         (ctanh_test_upward): Likewise.
2954         (main): Call these new functions.
2955         * sysdeps/i386/fpu/libm-test-ulps: Update.
2956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2957
2958 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2959
2960         * .gitignore: Delete /ports entry.
2961
2962 2012-07-03  Andreas Jaeger  <aj@suse.de>
2963
2964         * po/bg.po: Update from translation team.
2965         * po/cs.po: Likewise.
2966         * po/de.po: Likewise.
2967         * po/hr.po: Likewise.
2968         * po/nl.pl: Likewise.
2969         * po/pl.po: Likewise.
2970         * po/vi.po: Likewise.
2971
2972 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2973
2974         * Makeconfig [!+link] (+link-before-libc): New variable.
2975         [!+link] (+link-after-libc): Likewise.
2976         [!+link] (+link-tests): Likewise.
2977         [!+link] (+link): Define in terms of $(+link-before-libc) and
2978         $(+link-after-libc).
2979         [!+link-static] (+link-static-before-libc): New variable.
2980         [!+link-static] (+link-static-after-libc): Likewise.
2981         [!+link-static] (+link-static-tests): Likewise.
2982         [!+link-static] (+link-static): Define in terms of
2983         $(+link-static-before-libc) and $(+link-static-after-libc).
2984         [build-shared] (link-libc-before-gnulib): New variable.
2985         [build-shared] (link-libc-tests): Likewise.
2986         [build-shared] (link-libc): Define in terms of
2987         $(link-libc-before-gnulib).
2988         [!build-shared] (link-libc-tests): New variable.
2989         (link-libc-static-tests): New variable.
2990         [!gnulib] (gnulib-arch): New variable.
2991         [!gnulib] (gnulib-tests): Likewise.
2992         [!gnulib] (static-gnulib-arch): Likewise.
2993         [!gnulib] (static-gnulib-tests): Likewise.
2994         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2995         Define with "=" instead of ":=".
2996         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2997         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2998         * Rules (binaries-all-notests): New variable.
2999         (binaries-all-tests): Likewise.
3000         (binaries-static-notests): Likewise.
3001         (binaries-static-tests): Likewise.
3002         (binaries-all): Define using $(binaries-all-notests) and
3003         $(binaries-all-tests).
3004         (binaries-static): Define using $(binaries-static-notests) and
3005         $(binaries-static-tests).
3006         (binaries-shared-tests): New variable.
3007         (binaries-shared-notests): Likewise.
3008         (binaries-shared): Remove variable.
3009         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3010         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3011         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3012         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3013         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3014         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3015         * elf/Makefile (sln-modules): New variable.
3016         (extra-objs): Add $(sln-modules:=.o).
3017         (ldconfig-modules): Add static-stubs.
3018         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3019         * elf/static-stubs.c: New file.
3020
3021         [BZ #14283]
3022         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3023         by 7 not 8 to examine high bit of fractional part.  Use volatile
3024         variables when splitting into final array of floats if
3025         __FLT_EVAL_METHOD__ != 0.
3026         * math/libm-test.inc (cos_test): Add another test.
3027         (sin_test): Likewise.
3028         * sysdeps/i386/fpu/libm-test-ulps: Update.
3029
3030         [BZ #14273]
3031         * math/libm-test.inc (cosh_test): Add more tests.
3032
3033         * version.h (RELEASE): Set to "development".
3034         (VERSION): Set to "2.16.90".
3035
3036 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3037
3038         * NEWS: Update copyright. Remove last-updated date.
3039         Mention math library bug fixes and timezone data changes.
3040         * README: Mention GNU/Hurd, x32, and HPPA support status.
3041
3042 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3043
3044         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3045
3046 2012-06-27  Andreas Jaeger  <aj@suse.de>
3047
3048         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3049
3050 2012-06-25  Andreas Jaeger  <aj@suse.de>
3051
3052         * sysdeps/s390/fpu/libm-test-ulps: Update.
3053
3054 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3055             Thomas Schwinge  <thomas@codesourcery.com>
3056
3057         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3058         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3059         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3060         fanotify_mark.
3061
3062 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3063
3064         * sysdeps/mach/start.c: Remove file.
3065         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3066         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3067         * sysdeps/sh/init-first.c: Likewise.
3068
3069         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3070         registers for frame unwinding purposes, add CFI directives.
3071         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3072         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3073         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3074         Likewise.
3075
3076         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3077         __fortify_fail returning.
3078         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3079
3080         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3081         sysdeps/sh/____longjmp_chk.S.
3082         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3083         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3084         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3085         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3086
3087         * sysdeps/sh/abort-instr.h: New file.
3088         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3089         process in case exit returns.
3090
3091         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3092         initialize the GOT register before use.
3093
3094         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3095         calculation of ARGC > 4.
3096
3097         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3098         meaningful names to some local labels.
3099
3100 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3101             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3102
3103         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3104         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3105         (__arch_compare_and_exchange_val_16_acq): Likewise.
3106         (__arch_compare_and_exchange_val_32_acq): Likewise.
3107         (atomic_exchange_and_add): Fix gUSA sequence.
3108         (atomic_add): Likewise.
3109         (atomic_add_negative): Likewise.
3110         (atomic_add_zero): Likewise.
3111         (atomic_bit_test_set): Likewise.
3112
3113 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3114
3115         [BZ #13579]
3116         * include/link.h (struct link_map): Add l_free_initfini.
3117         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3118         l_initfini.
3119         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3120         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3121         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3122         set.
3123
3124 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3125
3126         * configure.in: Use AC_LANG_SOURCE.
3127         * configure: Regenerate.
3128
3129 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3130
3131         * configure.in (libc_cv_localstatedir): New substituted variable.
3132         * configure: Regenerated.
3133         * config.make.in (localstatedir): New variable, substituted from
3134         libc_cv_localstatedir.
3135         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3136         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3137         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3138         * sysdeps/gnu/configure: Regenerated.
3139
3140 2012-06-21  Jeff Law  <law@redhat.com>
3141
3142         [BZ #14277]
3143         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3144         free.  Simplify list management for _LIBC case.
3145
3146 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3147
3148         [BZ #14273]
3149         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3150         Clear sign bit of 64-bit integer value before comparing against
3151         overflow value.
3152
3153         * sysdeps/mach/configure: Regenerated.
3154
3155 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3156
3157         [BZ #14278]
3158         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3159
3160 2012-06-21  Jeff Law  <law@redhat.com>
3161
3162         [BZ #13882]
3163         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3164         uint16_t for elements in the "seen" array to avoid char overflows.
3165         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3166         * elf/dl-open.c (dl_open_worker): Likewise.
3167
3168 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3169
3170         * scripts/list-sources.sh: Scan PORTS for translations.
3171         * po/libc.pot: Regenerated.
3172
3173 2012-06-21  Andreas Jaeger  <aj@suse.de>
3174
3175         [BZ #12194]
3176         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3177         warning.
3178         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3179         * bits/byteswap-16.h (__bswap_16): Likewise.
3180         * bits/byteswap.h (__bswap_constant_16): Likewise.
3181
3182 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3183
3184         [BZ #14117]
3185         * sysdeps/i386/fpu_control.h: Removed.
3186         * sysdeps/x86_64/fpu_control.h: Moved to ...
3187         * sysdeps/x86/fpu_control.h: Here.
3188
3189         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3190         (_FPU_SETCW): Likewise.
3191
3192 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3193
3194         [BZ #14117]
3195         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3196         * sysdeps/x86/fpu/bits/mathinline.h: This.
3197         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3198
3199         [BZ #14050]
3200         [BZ #14117]
3201         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3202         functions if __x86_64__ is defined.
3203
3204 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3205
3206         * string/endian.h: Add !__ASSEMBLER__ condition for including
3207         conversion interfaces.
3208
3209 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3210
3211         [BZ #14241]
3212         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3213         of ABS(x) in calculating zero to negative powers other than odd
3214         integers.
3215         * math/libm-test.inc (pow_test): Add more tests.
3216
3217 2012-06-15  Andreas Jaeger  <aj@suse.de>
3218
3219         * manual/contrib.texi (Contributors): Update entry of Liubov
3220         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3221         Machado Filho.
3222
3223 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3224
3225         * string/string.h: Add __wur to GNU version of strerror_r.
3226
3227 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3228
3229         [BZ #14229]
3230         * string/Makefile (tests): Add tst-strtok_r.
3231         * string/tst-strtok_r.c: New file.
3232         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3233         RAX_LP/RDX_LP on SAVE_PTR.
3234
3235 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3236
3237         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3238
3239 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3240
3241         * libm_test.inc (csqrt_test): Allow more spurious underflow
3242         exceptions.
3243         (j0_test): Likewise.
3244         (j1_test): Likewise.
3245         (y0_test): Likewise.
3246         (y1_test): Likewise.
3247
3248 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3249
3250         * po/Makefile (libc.pot): Use UTF-8 charset.
3251
3252 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3253
3254         [BZ #14210]
3255         Suppress sign-conversion warning from FD_SET.
3256         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3257         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3258         not unsigned long int.
3259         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3260
3261 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3262
3263         [BZ #14050]
3264         [BZ #14117]
3265         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3266         __extern_always_inline instead of __extern_inline.
3267         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3268         (__signbit): Likewise.
3269         (__signbitl): Support C++ namespace.
3270         (lrintf): New inline function.
3271         (lrint): Likewise.
3272         (llrintf): Likewise.
3273         (llrint): Likewise.
3274         (fmaxf): Likewise.
3275         (fmax): Likewise.
3276         (fminf): Likewise.
3277         (fmin): Likewise.
3278         (rint): Likewise.
3279         (rintf): Likewise.
3280         (ceil): Likewise.
3281         (ceilf): Likewise.
3282         (floor): Likewise.
3283         (floorf): Likewise.
3284         (nearbyint): Likewise.
3285         (nearbyintf): Likewise.
3286
3287 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3288
3289         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3290         non-default versions.
3291
3292 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3293
3294         [BZ #14218]
3295         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3296
3297 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3298
3299         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3300         (FE_UPWARD, FE_DOWNWARD): Don't define.
3301         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3302         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3303
3304         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3305         reading it.
3306         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3307         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3308
3309 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3310
3311         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3312         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3313         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3314         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3315
3316 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3317
3318         [BZ #14117]
3319         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3320         * sysdeps/i386/fpu/Implies: New file.
3321         * sysdeps/x86_64/fpu/Implies: Likewise.
3322         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3323         * sysdeps/x86/fpu/bits/fenv.h: This.
3324
3325         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3326         __SSE_MATH__.
3327
3328 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3329
3330         [BZ #14134]
3331         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3332         character 0xffff that matches the last element of the
3333         conversion table.
3334
3335 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3336
3337         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3338         fmodl commit.
3339
3340 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3341
3342         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3343         values higher than 25.6283.
3344
3345 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3346
3347         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3348         subnormal exponent extraction and add some __builtin_expect.
3349         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3350         Fix for subnormal mantissa calculation.
3351
3352 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3353
3354         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3355         cpu2 is -1 and errno is not ENOSYS.
3356
3357 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3358
3359         [BZ #14117]
3360         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3361         * sysdeps/x86/bits/string.h: This.
3362         * sysdeps/x86_64/bits/string.h: Removed.
3363
3364         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3365         if not compiling for x86-64, but compiling for >= i486.
3366
3367         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3368         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3369
3370         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3371         New macro from Linux kernel 3.4.0.
3372         (FP_XSTATE_MAGIC2): Likewise.
3373         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3374         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3375         (struct _fpx_sw_bytes): New struct.
3376         (struct _xsave_hdr): Likewise.
3377         (struct _ymmh_state): Likewise.
3378         (struct _xstate): Likewise.
3379
3380         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3381         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3382         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3383         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3384         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3385         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3386
3387         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3388         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3389         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3390         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3391         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3392         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3393
3394 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3395
3396         [BZ #13743]
3397         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3398         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3399         (sysdep_headers): Include sys/platform/ppc.h.
3400         * sysdeps/powerpc/test-gettimebase.c: Test for
3401         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3402         * manual/Makefile (appendices): Include platform.texi.
3403         * manual/contrib.texi (Contributors): Update @node pointers.
3404         * manual/maint.texi (Maintenance): Likewise.
3405         (Platform): New node.
3406         * manual/platform.texi: New file.  Document the new features.
3407
3408 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3409             Jakub Jelinek  <jakub@redhat.com>
3410
3411         [BZ #14188]
3412         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3413         where __builtin_expect is unavailable.
3414
3415 2012-06-03  David S. Miller  <davem@davemloft.net>
3416
3417         * stdlib/longlong.h: Updated from GCC.
3418
3419 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3420
3421         [BZ #14042]
3422         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3423         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3424         __mcount_internal.
3425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3426         (GLIBC_2.16): Likewise.
3427
3428 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3429
3430         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3431
3432 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3433
3434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3435         (default-abi): New variable.
3436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3437         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3438         variable.
3439         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3440         Likewise.
3441         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3442         Likewise.
3443         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3444         Likewise.
3445
3446         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3447         definition.  Document in comment.
3448
3449 2012-06-01  David S. Miller  <davem@davemloft.net>
3450
3451         * stdlib/longlong.h: Updated from GCC.
3452
3453 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3454
3455         [BZ #14117]
3456         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3457         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3458         sys/debugreg.h sys/io.h here.
3459         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3460         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3461         sys/io.h.
3462         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3463         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3464         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3465         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3466         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3467         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3468
3469         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3470         Define only if __x86_64__ is defined.
3471
3472 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3473
3474         [BZ #14048]
3475         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3476         Use int64_t for variable i.
3477         * math/libm-test.inc (fmod_test): Add more tests.
3478
3479         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3480         z computation is not scheduled after fetestexcept.
3481         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3482         Use math_force_eval instead of asm to ensure calculation scheduled
3483         before exception test.
3484         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3485         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3486
3487 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3488
3489         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3490         computation is not scheduled after fetestexcept.
3491
3492 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3493
3494         [BZ #14117]
3495         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3496         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3497
3498 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3499
3500         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3501         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3502
3503 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3504
3505         [BZ #14117]
3506         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3507         <bits/wordsize.h>.
3508         (__WCHAR_MIN): Support __WORDSIZE == 64.
3509         (__WCHAR_MAX): Likewise.
3510
3511         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3512         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3513
3514         [BZ #14183]
3515         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3516         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3517
3518         [BZ #14117]
3519         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3520         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3521
3522         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3523         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3524
3525         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3526         Defined to 1 if __x86_64__ isn't defined.
3527         (_STAT_VER_LINUX_OLD): New.
3528         (st_atime): Remove duplicate.
3529         (st_mtime): Likewise.
3530         (st_ctime): Likewise.
3531
3532 2012-05-31  David S. Miller  <davem@davemloft.net>
3533
3534         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3535         entries.
3536
3537 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3538
3539         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3540         gen-libm-test.pl.
3541
3542         [BZ #14132]
3543         * elf/dl-reloc.c: Include <_itoa.h>.
3544         (_dl_reloc_bad_type): Remove use of INTUSE.
3545         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3546         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3547         * stdio-common/psiginfo.c (psiginfo): Likewise.
3548         * stdio-common/psignal.c (psignal): Likewise.
3549         * string/strsignal.c (strsignal): Likewise.
3550         * include/signal.h (_sys_siglist): Declare hidden proto.
3551         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3552         INTVARDEF with libc_hidden_data_def.
3553         * stdio-common/itoa-udigits.c: Likewise.
3554         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3555         (_itoa_lower_digits_internal): Remove declaration.
3556         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3557         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3558         (_sys_sigabbrev_internal): Remove aliases.
3559         (_sys_siglist): Define hidden alias.
3560
3561 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3562
3563         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3564         bits/sysctl.h.
3565
3566 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3567
3568         [BZ #14117]
3569         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3570         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3571
3572         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3573         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3574         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3575         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3576         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3577         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3578
3579         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3580         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3581         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3582
3583         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3584         with __addr.
3585         (insw): Likewise.
3586         (insl): Likewise.
3587         (outsb): Likewise.
3588         (outsw): Likewise.
3589         (outsl): Likewise.
3590
3591         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3592         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3593         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3594
3595         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3596         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3597         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3598         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3599         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3600         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3601
3602         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3603         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3604
3605         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3606         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3607
3608         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3609         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3610         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3611
3612         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3613         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3614         to ...
3615         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3616
3617         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3618         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3619         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3620
3621         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3622         for x86-64.
3623         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3624
3625 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3626
3627         * math/math.h (M_El): Use two more decimal places.
3628         (M_LOG2El): Likewise.
3629         (M_LOG10El): Likewise.
3630         (M_LN2l): Likewise.
3631         (M_LN10l): Likewise.
3632         (M_PIl): Likewise.
3633         (M_PI_2l): Likewise.
3634         (M_PI_4l): Likewise.
3635         (M_1_PIl): Likewise.
3636         (M_2_PIl): Likewise.
3637         (M_2_SQRTPIl): Likewise.
3638         (M_SQRT2l): Likewise.
3639         (M_SQRT1_2l): Likewise.
3640
3641 2012-05-31  David S. Miller  <davem@davemloft.net>
3642
3643         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3644         values between float registers.
3645         * sysdeps/sparc/sparc64/memset.S: Likewise.
3646         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3647
3648 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3649
3650         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3651         -D_FORTIFY_SOURCE=1.
3652         (CPPFLAGS-tst-longjmp_chk.c): Define.
3653         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3654         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3655         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3656         CFLAGS-tst-wchar-h.c.
3657
3658 2012-05-31  Marek Polacek  <polacek@redhat.com>
3659
3660         [BZ #14132]
3661         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3662         __endmntent_internal): Remove declaration.
3663         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3664         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3665         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3666
3667 2012-05-30  David S. Miller  <davem@davemloft.net>
3668
3669         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3670         (___Q_simulate_exceptions): Use real FP ops rather than writing
3671         into the %fsr.
3672         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3673         Likewise.
3674
3675 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3676
3677         [BZ #14117]
3678         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3679         * sysdeps/x86/bits/xtitypes.h: This.
3680
3681         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3682         * sysdeps/x86/bits/wordsize.h: This.
3683
3684         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3685         * sysdeps/x86/bits/huge_vall.h: This.
3686
3687         * sysdeps/i386/bits/select.h: Removed.
3688         * sysdeps/x86_64/bits/select.h: Renamed to ...
3689         * sysdeps/x86/bits/select.h: This.
3690
3691         * sysdeps/i386/bits/setjmp.h: Removed.
3692         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3693         * sysdeps/x86/bits/setjmp.h: This.
3694
3695         * sysdeps/i386/bits/mathdef.h: Removed.
3696         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3697         * sysdeps/x86/bits/mathdef.h: This.
3698
3699 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3700
3701         [BZ #14132]
3702         * include/sys/socket.h (__connect_internal)
3703         (__libc_sa_len_internal): Remove declaration.
3704         (__connect, __libc_sa_len): Declare hidden_proto.
3705         (SA_LEN): Remove use of INTUSE.
3706         * socket/connect.c: Add libc_hidden_def.
3707         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3708         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3709         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3710         alias.
3711         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3712         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3713         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3714         of adding _internal alias.
3715
3716 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3717
3718         [BZ #14117]
3719         * sysdeps/i386/bits/link.h: Removed.
3720         * sysdeps/i386/bits/linkmap.h: Likewise.
3721         * sysdeps/x86_64/bits/link.h: Renamed to ...
3722         * sysdeps/x86/bits/link.h: This.
3723         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3724         * sysdeps/x86/bits/linkmap.h: This.
3725
3726         * sysdeps/i386/bits/endian.h: Removed.
3727         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3728         * sysdeps/x86/bits/endian.h: This.
3729
3730         * sysdeps/i386/bits/byteswap.h: Removed.
3731         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3732         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3733         * sysdeps/x86/bits/byteswap.h: This.
3734         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3735         * sysdeps/x86/bits/byteswap-16.h: This.
3736         * sysdeps/i386/Implies: Add x86.
3737         * sysdeps/x86_64/Implies: Likewise.
3738
3739 2012-05-30  David S. Miller  <davem@davemloft.net>
3740
3741         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3742         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3743         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3744         (FP_TRAPPING_EXCEPTIONS): Define.
3745         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3746         (FP_TRAPPING_EXCEPTIONS): Define.
3747         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3748         subnormals only when inexact has been signalled or underflow
3749         exceptions are enabled.
3750         (_FP_PACK_CANONICAL): Likewise.
3751
3752 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3753
3754         [BZ #14183]
3755         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3756         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3757
3758 2012-05-30  Richard Henderson  <rth@twiddle.net>
3759
3760         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3761         with #ifndef NOT_IN_libc.
3762
3763         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3764         marked to avoid plt entry.
3765
3766 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3767
3768         [BZ #14112]
3769         * Makeconfig (default-abi): New macro.
3770         (abi-includes): Likewise.
3771         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3772         $(abi-$(default-abi)-lib-soname) for soname if defined.
3773         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3774         abi-variants.
3775         * Makefile (installed-stubs): Likewise.
3776         * include/stubs-biarch.h: Removed.
3777         * scripts/lib-names.awk: Only handle one library at a time.
3778         * scripts/soversions.awk: Remove WORDSIZE support.
3779         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3780         entries.
3781         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3782         Removed.
3783         (syscall-list-default-condition): Likewise.
3784         (syscall-list-default-condition): Likewise.
3785         (syscall-list-includes): Likewise.
3786         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3787         syscall-list-* with abi-*.  Handle undefined abi-variants.
3788         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3789         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3790         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3791         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3792         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3793         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3794         Removed.
3795         (syscall-list-32-options): Likewise.
3796         (syscall-list-32-condition): Likewise.
3797         (syscall-list-64-options): Likewise.
3798         (syscall-list-64-condition): Likewise.
3799         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3800         macro.
3801         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3802         Renamed to ...
3803         (abi-*): This.
3804         (abi-64-ld-soname): New macro.
3805         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3806         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3807         Renamed to ...
3808         (abi-*): This.
3809         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3810         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3811
3812 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3813
3814         * sysdeps/unix/sysv/linux/kernel-features.h
3815         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3816         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3817         include <kernel-features.h>.
3818         [!__NR_ftruncate64]: Remove conditional code.
3819         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3820         [__NR_ftruncate64]: Make code unconditional.
3821         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3822         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3823         include <kernel-features.h>.
3824         [!__NR_ftruncate64]: Remove conditional code.
3825         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3826         [__NR_ftruncate64]: Make code unconditional.
3827         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3829         include <kernel-features.h>.
3830         [!__NR_ftruncate64]: Remove conditional code.
3831         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3832         [__NR_ftruncate64]: Make code unconditional.
3833         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3835         include <kernel-features.h>.
3836         [!__NR_ftruncate64]: Remove conditional code.
3837         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3838         [__NR_ftruncate64]: Make code unconditional.
3839         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3840
3841         * configure.in (libc_cv_fpie): Weaken to a compile test using
3842         LIBC_TRY_CC_OPTION.
3843         * configure: Regenerated.
3844
3845 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3846
3847         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3848         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3849         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3851         Refreshed.
3852         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3853         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3854         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3855         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3856         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3858         Refreshed.
3859
3860 2012-05-27  David S. Miller  <davem@davemloft.net>
3861
3862         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3863         (___Q_zero): New.
3864         (__Q_simulate_exceptions): Return void.  Change to simulate
3865         exceptions by writing into the %fsr.
3866         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3867         (__Qp_handle_exceptions): Likewise.
3868         (numbers): Delete.
3869         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3870         __Qp_handle_exceptions.
3871         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3872         __Qp_handle_exceptions.
3873         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3874         as unused and give dummy FP_RND_NEAREST initializer.
3875         (FP_INHIBIT_RESULTS): Define.
3876         (___Q_simulate_exceptions): Update declaration.
3877         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3878         formatting.
3879         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3880         as unused and give dummy FP_RND_NEAREST initializer.
3881         (__Qp_handle_exceptions): Update declaration.
3882         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3883         formatting.
3884
3885 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3886
3887         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3888         the temporary FPU control word.
3889         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3890         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3891         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3892         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3893         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3894         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3895         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3896         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3897         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3898         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3899         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3900
3901 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3902
3903         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3904         fields.
3905
3906 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3907
3908         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3909         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3910         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3911         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3912         Likewise.
3913         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3914         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3915         Likewise.
3916
3917 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3918
3919         * po/h.po: Update from translation team.
3920
3921 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3922
3923         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3924
3925         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3926         handling of denormals.
3927         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3928         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3929         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3930         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3931         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3932         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3933         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3934         Likewise.
3935
3936 2012-05-26  Marek Polacek  <polacek@redhat.com>
3937
3938         [BZ #14152]
3939         * math/libm-test.inc (fma_test): Don't always expect underflow
3940         exception.
3941
3942 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3943
3944         [BZ #12416]
3945         * elf/tst-execstack.c: Include stackinfo.h.
3946         (do_test): Adjust test case to ensure that pthread_getattr_np
3947         behaviour remains the same after marking stack executable.
3948
3949 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3950
3951         * sysdeps/unix/sysv/linux/kernel-features.h
3952         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3953         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3954         kernel-features.h.
3955         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3956         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3957         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3958         kernel-features.h.
3959         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3960         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3961
3962 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3963
3964         * configure.in: Define the default includes to being none.
3965         * configure: Regenerated.
3966
3967 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3968
3969         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3970         * sysdeps/x86_64/setjmp.S: Likewise.
3971         * sysdeps/i386/bsd-setjmp.S: Likewise.
3972         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3973         * sysdeps/i386/setjmp.S: Likewise.
3974         * sysdeps/i386/__longjmp.S: Likewise.
3975         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3976         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3977
3978         * include/stap-probe.h: New file.
3979         * configure.in: Handle --enable-systemtap.
3980         * configure: Regenerated.
3981         * config.h.in (USE_STAP_PROBE): New #undef.
3982         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3983         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3984         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3985
3986 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3987
3988         [BZ #13717]
3989         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3990         to 2.4.0 where earlier.
3991         * sysdeps/unix/sysv/linux/configure: Regenerated.
3992         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3993         <kernel-features.h>.
3994         [__ASSUME_32BITUIDS]: Make code unconditional.
3995         [!__ASSUME_32BITUIDS]: Remove conditional code.
3996         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3997         <kernel-features.h>.
3998         [__ASSUME_32BITUIDS]: Make code unconditional.
3999         [!__ASSUME_32BITUIDS]: Remove conditional code.
4000         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4001         [__ASSUME_32BITUIDS]: Make code unconditional.
4002         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4003         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4004         <kernel-features.h>.
4005         [__ASSUME_32BITUIDS]: Make code unconditional.
4006         [!__ASSUME_32BITUIDS]: Remove conditional code.
4007         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4008         <kernel-features.h>.
4009         [__ASSUME_32BITUIDS]: Make code unconditional.
4010         [!__ASSUME_32BITUIDS]: Remove conditional code.
4011         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4012         <kernel-features.h>.
4013         [__ASSUME_32BITUIDS]: Make code unconditional.
4014         [!__ASSUME_32BITUIDS]: Remove conditional code.
4015         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4016         <kernel-features.h>.
4017         [__ASSUME_32BITUIDS]: Make code unconditional.
4018         [!__ASSUME_32BITUIDS]: Remove conditional code.
4019         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4020         <kernel-features.h>.
4021         [__ASSUME_32BITUIDS]: Make code unconditional.
4022         [!__ASSUME_32BITUIDS]: Remove conditional code.
4023         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4024         <kernel-features.h>.
4025         [__ASSUME_32BITUIDS]: Make code unconditional.
4026         [!__ASSUME_32BITUIDS]: Remove conditional code.
4027         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4028         <kernel-features.h>.
4029         [__ASSUME_32BITUIDS]: Make code unconditional.
4030         [!__ASSUME_32BITUIDS]: Remove conditional code.
4031         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4032         <kernel-features.h>.
4033         [__ASSUME_32BITUIDS]: Make code unconditional.
4034         [!__ASSUME_32BITUIDS]: Remove conditional code.
4035         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4036         <kernel-features.h>.
4037         [__ASSUME_32BITUIDS]: Make code unconditional.
4038         [!__ASSUME_32BITUIDS]: Remove conditional code.
4039         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4040         <kernel-features.h>.
4041         [__ASSUME_32BITUIDS]: Make code unconditional.
4042         [!__ASSUME_32BITUIDS]: Remove conditional code.
4043         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4044         <kernel-features.h>.
4045         [__NR_setresgid] (__setresgid): Do not declare.
4046         [__ASSUME_32BITUIDS]: Make code unconditional.
4047         [!__ASSUME_32BITUIDS]: Remove conditional code.
4048         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4049         <kernel-features.h>.
4050         [__NR_setresuid] (__setresuid): Do not declare.
4051         [__ASSUME_32BITUIDS]: Make code unconditional.
4052         [!__ASSUME_32BITUIDS]: Remove conditional code.
4053         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4054         <kernel-features.h>.
4055         [__ASSUME_32BITUIDS]: Make code unconditional.
4056         [!__ASSUME_32BITUIDS]: Remove conditional code.
4057         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4058         <kernel-features.h>.
4059         [__ASSUME_32BITUIDS]: Make code unconditional.
4060         [!__ASSUME_32BITUIDS]: Remove conditional code.
4061         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4062         <kernel-features.h>.
4063         [__ASSUME_32BITUIDS]: Make code unconditional.
4064         [!__ASSUME_32BITUIDS]: Remove conditional code.
4065         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4066         <kernel-features.h>.
4067         [__ASSUME_32BITUIDS]: Make code unconditional.
4068         [!__ASSUME_32BITUIDS]: Remove conditional code.
4069         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4070         <kernel-features.h>.
4071         [__ASSUME_32BITUIDS]: Make code unconditional.
4072         [!__ASSUME_32BITUIDS]: Remove conditional code.
4073         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4074         <kernel-features.h>.
4075         [__ASSUME_32BITUIDS]: Make code unconditional.
4076         [!__ASSUME_32BITUIDS]: Remove conditional code.
4077         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4078         <kernel-features.h>.
4079         [__ASSUME_32BITUIDS]: Make code unconditional.
4080         [!__ASSUME_32BITUIDS]: Remove conditional code.
4081         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4082         <kernel-features.h>.
4083         [__ASSUME_32BITUIDS]: Make code unconditional.
4084         [!__ASSUME_32BITUIDS]: Remove conditional code.
4085         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4086         <kernel-features.h>.
4087         [__ASSUME_32BITUIDS]: Make code unconditional.
4088         [!__ASSUME_32BITUIDS]: Remove conditional code.
4089         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4090         <kernel-features.h>.
4091         [__ASSUME_32BITUIDS]: Make code unconditional.
4092         [!__ASSUME_32BITUIDS]: Remove conditional code.
4093         * sysdeps/unix/sysv/linux/kernel-features.h
4094         (__ASSUME_SETRESUID_SYSCALL): Remove.
4095         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4096         (__ASSUME_32BITUIDS): Likewise.
4097         (__ASSUME_LDT_WORKS): Likewise.
4098         (__ASSUME_O_DIRECTORY): Likewise.
4099         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4100         architecture but not kernel version.
4101         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4102         (__ASSUME_MMAP2_SYSCALL): Likewise.
4103         (__ASSUME_STAT64_SYSCALL): Likewise.
4104         (__ASSUME_IPC64): Likewise.
4105         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4106         <kernel-features.h>.
4107         [__ASSUME_32BITUIDS]: Make code unconditional.
4108         [!__ASSUME_32BITUIDS]: Remove conditional code.
4109         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4110         <kernel-features.h>.
4111         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4112         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4113         132096]: Remove conditional code.
4114         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4115         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4116         <kernel-features.h>.
4117         [__ASSUME_32BITUIDS]: Make code unconditional.
4118         [!__ASSUME_32BITUIDS]: Remove conditional code.
4119         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4120         <kernel-features.h>.
4121         [__ASSUME_32BITUIDS]: Make code unconditional.
4122         [!__ASSUME_32BITUIDS]: Remove conditional code.
4123         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4124         <kernel-features.h>.
4125         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4126         unconditional.
4127         (__setresgid): Do not declare.
4128         [__ASSUME_32BITUIDS]: Make code unconditional.
4129         [!__ASSUME_32BITUIDS]: Remove conditional code.
4130         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4131         <kernel-features.h>.
4132         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4133         unconditional.
4134         (__setresuid): Do not declare.
4135         [__ASSUME_32BITUIDS]: Make code unconditional.
4136         [!__ASSUME_32BITUIDS]: Remove conditional code.
4137         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4138         <kernel-features.h>.
4139         [__ASSUME_32BITUIDS]: Make code unconditional.
4140         [!__ASSUME_32BITUIDS]: Remove conditional code.
4141         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4142         <kernel-features.h>.
4143         [__ASSUME_32BITUIDS]: Make code unconditional.
4144         [!__ASSUME_32BITUIDS]: Remove conditional code.
4145
4146 2012-05-25  Richard Henderson  <rth@twiddle.net>
4147
4148         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4149         dl_hwcap to ifunc resolver.
4150         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4151         elf_ifunc_invoke.
4152         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4153         dl_hwcap to ifunc resolver.
4154         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4155
4156 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4157
4158         [BZ #14153]
4159         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4160         for |x| <= 2**-26, not 2**-57.
4161         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4162         exception.
4163
4164 2012-05-24  Jeff Law  <law@redhat.com>
4165
4166         * stdio-common/Makefile (tests): Add bug25.
4167         * stdio-common/bug25.c: New test.
4168
4169 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4170
4171         [BZ #13576]
4172         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4173         multiple of MALLOC_ALIGNMENT in size.
4174         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4175
4176 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4177
4178         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4179         Require >= 256.
4180         (FILENAME_MAX): Use macro-int-constant.
4181         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4182         (_IOFBF): Use macro-int-constant.
4183         (_IOLBF): Likewise.
4184         (_IONBF): Likewise.
4185         (SEEK_CUR): Likewise.
4186         (SEEK_END): Likewise.
4187         (SEEK_SET): Likewise.
4188         (TMP_MAX): Likewise.
4189         (EOF): Use macro-int-constant.  Require < 0.
4190         (NULL): Use macro-constant.  Require == 0.
4191         (stdin): Require type to be FILE *.
4192         (stdout): Likewise.
4193         (stderr): Likewise.
4194         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4195         macro-int-constant.
4196         (EXIT_SUCCESS): Likewise.
4197         (NULL): Use macro-constant.  Require == 0.
4198         (RAND_MAX): Use macro-int-constant.
4199         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4200         [C99-based standards] (strtof): Require function.
4201         [C99-based standards] (strtold): Likewise.
4202         [C99-based standards] (strtoll): Likewise.
4203         [C99-based standards] (strtoull): Likewise.
4204         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4205         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4206         [ISO || ISO99 || ISO11] (math.h): Likewise.
4207         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4208         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4209         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4210
4211 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4212
4213         [BZ #14132]
4214         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4215         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4216         * intl/dgettext.c (DCGETTEXT): Likewise.
4217         * intl/gettext.c (DCGETTEXT): Likewise.
4218         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4219         * posix/regex_internal.h (gettext): Likewise.
4220         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4221         Remove declaration.
4222         * include/argz.h (__argz_count_internal)
4223         (__argz_stringify_internal): Remove declaration.
4224         (__argz_count, __argz_stringify): Declare hidden proto.
4225         * intl/dcgettext.c: Remove use of INTDEF.
4226         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4227         * string/argz-stringify.c: Likewise.
4228         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4229         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4230         Declare hidden proto.
4231         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4232         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4233         Declare hidden proto.
4234         * include/stdio.h (__asprintf_internal): Don't declare.
4235         (__asprintf): Don't define as macro.  Declare hidden proto.
4236         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4237         (__fsetlocking): Declare hidden proto.
4238         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4239         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4240         hidden proto.
4241         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4242         (_IO_setlinebuf): Remove use of INTUSE.
4243         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4244         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4245         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4246         Remove declaration.
4247         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4248         (_IO_do_flush): Remove use of INTUSE.
4249         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4250         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4251         (_IO_adjust_column, _IO_least_wmarker)
4252         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4253         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4254         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4255         (_IO_default_doallocate, _IO_wdefault_doallocate)
4256         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4257         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4258         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4259         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4260         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4261         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4262         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4263         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4264         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4265         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4266         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4267         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4268         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4269         proto.
4270         (_IO_flush_all_internal, _IO_adjust_column_internal)
4271         (_IO_default_uflow_internal, _IO_default_finish_internal)
4272         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4273         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4274         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4275         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4276         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4277         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4278         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4279         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4280         (_IO_file_close_internal, _IO_file_close_it_internal)
4281         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4282         (_IO_file_init_internal, _IO_file_attach_internal)
4283         (_IO_file_fopen_internal, _IO_file_read_internal)
4284         (_IO_file_sync_internal, _IO_file_seek_internal)
4285         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4286         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4287         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4288         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4289         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4290         (_IO_list_all_internal, _IO_link_in_internal)
4291         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4292         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4293         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4294         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4295         (_IO_do_write_internal, _IO_padn_internal)
4296         (_IO_getline_info_internal, _IO_getline_internal)
4297         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4298         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4299         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4300         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4301         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4302         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4303         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4304         with libc_hidden_ver, remove use of INTUSE.
4305         * libio/genops.c: Likewise.
4306         * libio/freopen.c: Likewise.
4307         * libio/freopen64.c: Likewise.
4308         * libio/iofclose.c: Likewise.
4309         * libio/iofdopen.c: Likewise.
4310         * libio/iofflush.c: Likewise.
4311         * libio/iofflush_u.c: Likewise.
4312         * libio/iofgets.c: Likewise.
4313         * libio/iofgets_u.c: Likewise.
4314         * libio/iofopen.c: Likewise.
4315         * libio/iofopncook.c: Likewise.
4316         * libio/iofread.c: Likewise.
4317         * libio/iofread_u.c: Likewise.
4318         * libio/ioftell.c: Likewise.
4319         * libio/iofwrite.c: Likewise.
4320         * libio/iogetline.c: Likewise.
4321         * libio/iogets.c: Likewise.
4322         * libio/iogetwline.c: Likewise.
4323         * libio/iopadn.c: Likewise.
4324         * libio/iopopen.c: Likewise.
4325         * libio/ioseekoff.c: Likewise.
4326         * libio/ioseekpos.c: Likewise.
4327         * libio/iosetbuffer.c: Likewise.
4328         * libio/iosetvbuf.c: Likewise.
4329         * libio/ioungetc.c: Likewise.
4330         * libio/ioungetwc.c: Likewise.
4331         * libio/iovdprintf.c: Likewise.
4332         * libio/iovsprintf.c: Likewise.
4333         * libio/iovsscanf.c: Likewise.
4334         * libio/memstream.c: Likewise.
4335         * libio/obprintf.c: Likewise.
4336         * libio/oldfileops.c: Likewise.
4337         * libio/oldiofclose.c: Likewise.
4338         * libio/oldiofdopen.c: Likewise.
4339         * libio/oldiofopen.c: Likewise.
4340         * libio/oldiopopen.c: Likewise.
4341         * libio/oldstdfiles.c: Likewise.
4342         * libio/putc.c: Likewise.
4343         * libio/setbuf.c: Likewise.
4344         * libio/setlinebuf.c: Likewise.
4345         * libio/stdfiles.c: Likewise.
4346         * libio/strops.c: Likewise.
4347         * libio/vasprintf.c: Likewise.
4348         * libio/vscanf.c: Likewise.
4349         * libio/vsnprintf.c: Likewise.
4350         * libio/vswprintf.c: Likewise.
4351         * libio/wfiledoalloc.c: Likewise.
4352         * libio/wfileops.c: Likewise.
4353         * libio/wgenops.c: Likewise.
4354         * libio/wmemstream.c: Likewise.
4355         * libio/wstrops.c: Likewise.
4356         * libio/__fpurge.c: Likewise.
4357         * libio/__fsetlocking.c: Likewise.
4358         * assert/assert.c: Likewise.
4359         * debug/fgets_chk.c: Likewise.
4360         * debug/fgets_u_chk.c: Likewise.
4361         * debug/fread_chk.c: Likewise.
4362         * debug/fread_u_chk.c: Likewise.
4363         * debug/gets_chk.c: Likewise.
4364         * debug/obprintf_chk.c: Likewise.
4365         * debug/vasprintf_chk.c: Likewise.
4366         * debug/vdprintf_chk.c: Likewise.
4367         * debug/vsnprintf_chk.c: Likewise.
4368         * debug/vsprintf_chk.c: Likewise.
4369         * malloc/mtrace.c: Likewise.
4370         * misc/error.c: Likewise.
4371         * misc/syslog.c: Likewise.
4372         * stdio-common/asprintf.c: Likewise.
4373         * stdio-common/fxprintf.c: Likewise.
4374         * stdio-common/getw.c: Likewise.
4375         * stdio-common/isoc99_fscanf.c: Likewise.
4376         * stdio-common/isoc99_scanf.c: Likewise.
4377         * stdio-common/isoc99_vfscanf.c: Likewise.
4378         * stdio-common/isoc99_vscanf.c: Likewise.
4379         * stdio-common/isoc99_vsscanf.c: Likewise.
4380         * stdio-common/printf-prs.c: Likewise.
4381         * stdio-common/printf_fp.c: Likewise.
4382         * stdio-common/printf_fphex.c: Likewise.
4383         * stdio-common/printf_size.c: Likewise.
4384         * stdio-common/putw.c: Likewise.
4385         * stdio-common/scanf.c: Likewise.
4386         * stdio-common/sprintf.c: Likewise.
4387         * stdio-common/tmpfile.c: Likewise.
4388         * stdio-common/vfprintf.c: Likewise.
4389         * stdio-common/vfscanf.c: Likewise.
4390         * stdlib/strfmon_l.c: Likewise.
4391         * sunrpc/openchild.c: Likewise.
4392         * sunrpc/xdr_stdio.c: Likewise.
4393         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4394         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4395
4396 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4397
4398         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4399
4400         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4401         in the third column, to generate for the shared library an IFUNC
4402         that uses _dl_vdso_vsym.
4403         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4404         * Makeconfig (object-suffixes-noshared): New variable.
4405
4406         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4407         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4408         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4409         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4410
4411         [BZ #14132]
4412         * include/sys/time.h (__gettimeofday): Remove macro.
4413         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4414         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4415         Remove INTDEF.
4416         (__gettimeofday): Add libc_hidden_def.
4417         (gettimeofday): Add libc_hidden_weak.
4418         * sysdeps/mach/gettimeofday.c: Likewise.
4419         * sysdeps/posix/gettimeofday.c: Likewise.
4420         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4421         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4422         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4423         (__gettimeofday_internal): Remove strong_alias.
4424         (__gettimeofday): Add libc_hidden_def.
4425         (gettimeofday): Add libc_hidden_weak.
4426         * sysdeps/unix/syscalls.list (gettimeofday):
4427         Remove __gettimeofday_internal alias.
4428
4429 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4430             H.J. Lu  <hongjiu.lu@intel.com>
4431
4432         [BZ #12495]
4433         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4434         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4435         (largebin_index_32_big): New.
4436         (largebin_index): Use it for 16-byte alignment.
4437         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4438         correction with front_misalign.
4439
4440 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4441
4442         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4443         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4444         Likewise.
4445         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4446         Likewise.
4447         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4448         Likewise.
4449         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4450         Likewise.
4451         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4452         Likewise.
4453         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4454         Likewise.
4455         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4456         Likewise.
4457         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4458         Likewise.
4459         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4460         Likewise.
4461         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4462         Likewise.
4463         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4464         Likewise.
4465         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4466         Likewise.
4467
4468         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4469         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4470
4471 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4472
4473         [BZ #10846]
4474         [BZ #14036]
4475         * math/libm-test.inc (exp_test): Add test from bug 14036.
4476         (pow_test): Add test from bug 10846.
4477
4478         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4479         and other flags.
4480         (special_function): Do not include flags in test name.
4481         (parse_args): Likewise.
4482         * sysdeps/i386/fpu/libm-test-ulps: Update.
4483         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4484         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4485         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4487
4488         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4489         exceptions.
4490         * math/libm-test.inc ("Philosophy"): Update comment about
4491         exception testing.
4492         (UNDERFLOW_EXCEPTION): New macro.
4493         (UNDERFLOW_EXCEPTION_OK): Likewise.
4494         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4495         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4496         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4497         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4498         (INVALID_EXCEPTION_OK): Update value.
4499         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4500         (OVERFLOW_EXCEPTION_OK): Likewise.
4501         (IGNORE_ZERO_INF_SIGN): Likewise.
4502         (test_exceptions): Handle underflow exceptions.
4503         (acos_test): Update for underflow exception expectations.
4504         (cexp_test): Likewise.
4505         (clog_test): Likewise.
4506         (clog10_test): Likewise.
4507         (csqrt_test): Likewise.
4508         (ctan_test): Likewise.
4509         (ctanh_test): Likewise.
4510         (exp_test): Likewise.
4511         (exp10_test): Likewise.
4512         (exp2_test): Likewise.
4513         (expm1_test): Likewise.
4514         (fma_test): Likewise.
4515         (j0_test): Likewise.
4516         (jn_test): Likewise.
4517         (nexttoward_test): Likewise.
4518         (pow_test): Likewise.
4519         (scalbn_test): Likewise.
4520         (scalbln_test): Likewise.
4521         (tan_test): Likewise.
4522         (y1_test): Likewise.
4523         * sysdeps/i386/fpu/libm-test-ulps: Update.
4524         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4525
4526 2012-05-23  David S. Miller  <davem@davemloft.net>
4527
4528         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4529         (__libc_sigaction): Remove unused local variables.
4530
4531 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4532
4533         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4534
4535 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4536
4537         mktime: avoid signed integer overflow
4538         * time/mktime.c (__mktime_internal): Do not mishandle the case
4539         where diff == INT_MIN.
4540
4541         mktime: simplify computation of average
4542         * time/mktime.c (ranged_convert): Use new time_t_avg function
4543         instead of rolling our own (probably-slower) code.
4544
4545         mktime: do not assume signed right shift propagates sign bit
4546         * time/mktime.c (isdst_differ): New static function.
4547         (__mktime_internal): No need to normalize tm_isdst now.
4548         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4549         tm_isdst values.
4550
4551         mktime: merge another wrapv change from gnulib
4552         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4553         from some compilers.
4554
4555         mktime: remove incorrect attempt at unusual arithmetics
4556         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4557         The code didn't really work on such machines anyway.
4558         (TYPE_MINIMUM): Assume two's complement.
4559         (twos_complement_arithmetic): Verify that long_int and time_t
4560         are two's complement (or unsigned, in the latter case).
4561
4562         mktime: check signed shifts on long_int and time_t, too
4563         * time/mktime.c (SHR): Check that shifts work as desired
4564         on the types long_int and time_t too, as SHR is used on
4565         such types.
4566
4567         mktime: do not assume 'long' is wide enough
4568         * time/mktime.c (verify): Move decl up.
4569         (long_int): New type.
4570         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4571         to remove assumption in the code that 'long' is wide enough to
4572         store year values.  This assumption is not true on x32 and on
4573         some non-glibc platforms.
4574
4575         mktime: merge wrapv change from gnulib
4576         * time/mktime.c (WRAPV): New macro.
4577         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4578         (guess_time_tm, __mktime_internal): Do not assume that signed
4579         integer overflow wraps around; modern compilers generate code
4580         where this assumption is no longer valid.
4581
4582 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4583
4584         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4585         Replace "jmp L(pseudo_end)" with "ret".
4586         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4587         Likewise.
4588
4589 2012-05-23  Andreas Jaeger  <aj@suse.de>
4590
4591         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4592         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4593
4594 2012-05-23  Andreas Jaeger  <aj@suse.de>
4595             Maximilian Attems  <max@stro.at>
4596
4597         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4598         New macros.
4599
4600 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4601
4602         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4603         code so that pseudo_end is just ret and the stack pointer is
4604         correct also for static library in error case.
4605
4606 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4607
4608         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4609         move to syscalls.list.
4610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4614
4615         * manual/install.texi (Running make install): Do not mention Linux
4616         kernel version for which pt_chown is not needed.
4617         (Linux): Do not mention problems with nscd with 2.0 kernels.
4618         * INSTALL: Regenerated.
4619
4620 2012-05-23  Andreas Jaeger  <aj@suse.de>
4621
4622         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4623         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4624         macro.
4625         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4626         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4627         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4628         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4629         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4630         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4631         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4632         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4633         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4634         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4635         * sysdeps/unix/sysv/linux/bits/in.h
4636         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4637
4638 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4639
4640         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4641         (PREPARE_VERSION): Just use assert instead, it will be elided
4642         under [NDEBUG] anyway.
4643
4644 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4645
4646         * sysdeps/unix/sysv/linux/Makefile: Include
4647         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4648         (sysdep_routines): Remove sysctl.
4649         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4650         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4651         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4652         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4653         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4654
4655 2012-05-22  Andreas Jaeger  <aj@suse.de>
4656
4657         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4658         that pseudo_end is just ret and the stack pointer is correct also
4659         for static library in error case.
4660
4661 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4662
4663         [BZ #14122]
4664         * nss/nsswitch.c (defconfig_entries): New variable.
4665         (__nss_database_lookup): Don't leak defconfig entries.
4666         (nss_parse_service_list): Don't leak on error paths.
4667         (free_database_entries): New function.
4668         (free_defconfig): New function.
4669         (free_mem): Move common code to free_database_entries.
4670
4671 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4672
4673         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4674         Add arch_prctl.
4675         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4676
4677         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4678         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4679         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4680         New macro.
4681         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4682         (INTERNAL_SYSCALL_TYPES): Likewise.
4683         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4684         (LOAD_REGS_TYPES_[1-6]): Likewise.
4685         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4686         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4687
4688 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4689
4690         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4691         copysignl for GLIBC_2_0.
4692         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4693         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4694         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4695         logbl for GLIBC_2_0.
4696         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4697         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4698
4699 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4700
4701         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4702         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4703
4704         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4705         Use "neg %eax".
4706
4707         * time/mktime.c: Update copyright years.
4708
4709 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4710
4711         mktime: merge comment-quoting-style change from gnulib
4712         * time/mktime.c: Quote 'like this' in comments.
4713         The GNU coding standards suggest that we no longer quote `like this',
4714         as "`" and "'" are typically rendered asymmetrically nowadays.
4715         The typical gnulib style is to quote 'like this' when quoting
4716         code, and "like this" when quoting English.
4717
4718         * time/mktime.c (compile-command): Add "-I.".
4719
4720         mktime: merge mktime-internal.h change from gnulib
4721         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4722
4723         mktime: merge time_r change from gnulib
4724         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4725
4726         mktime: merge DEBUG change from gnulib
4727         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4728         case system <time.h> has a #define.
4729
4730         mktime: merge <sys/types.h> change from gnulib
4731         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4732         since <time.t> is now guaranteed to define time_t.
4733
4734         mktime: merge HAVE_CONFIG_H change from gnulib
4735         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4736
4737 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4738
4739         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4740         Use "neg %eax".
4741
4742         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4743         __rlim_t cast.
4744         (struct rusage): Use anonymous union to pad each field to
4745         __syscall_slong_t.
4746
4747 2012-05-21  David S. Miller  <davem@davemloft.net>
4748
4749         * Makefules (o-iterator): Remove .s cases.
4750         (compile-command.s): Delete.
4751         (COMPILE.s): Delete.
4752         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4753
4754 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4755
4756         * configure.in (libc_cv_predef_stack_protector): Only consider
4757         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4758         * configure: Regenerated.
4759
4760 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4761
4762         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4763         New macro.  Use R*LP on int and pointer.
4764         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4765         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4766         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4767         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4768
4769         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4770         [__WORDSIZE_TIME64_COMPAT32] instead of
4771         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4772         (struct utmp): Likewise.
4773         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4774         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4775         Renamed to ...
4776         (__WORDSIZE_TIME64_COMPAT32): This.
4777         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4778         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4779         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4780         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4781         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4782         (__WORDSIZE_TIME64_COMPAT32): New macro.
4783
4784 2012-05-21  Andreas Jaeger  <aj@suse.de>
4785
4786         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4787         only if [SHARED]. Add prototype for __wcschr_ia32.
4788
4789 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4790
4791         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4792         of %rbp unmolested in the jmp_buf while mangling the low bits.
4793         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4794         unmolested high bits of %rbp while demangling the low bits.
4795         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4796
4797 2012-05-21  Andreas Jaeger  <aj@suse.de>
4798
4799         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4800         * sunrpc/svc_simple.c: Use it for registerrpc.
4801         * sunrpc/xcrypt.c: Use it for passwd2des.
4802
4803         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4804
4805 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4806
4807         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4808         Don't define if [__SYSCALL_WORDSIZE != 32].
4809         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4810         New macro.
4811
4812 2012-05-21  Bruno Haible  <bruno@clisp.org>
4813             Andreas Jaeger  <aj@suse.de>
4814
4815         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4816         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4817         inptr and inend for must_buffer_ch.
4818         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4819         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4820         * stdio-common/Makefile (tests): Remove bug15.
4821         (bug15-ENV): Remove macro.
4822         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4823         anymore.
4824
4825 2012-05-19  Andreas Jaeger  <aj@suse.de>
4826             Roland McGrath  <roland@hack.frob.com>
4827
4828         * manual/contrib.texi: Completely rewritten. It contains now an
4829         alphabetical list of contributors and their contributions.
4830
4831 2012-05-21  Richard Henderson  <rth@twiddle.net>
4832
4833         * misc/getauxval.c (__getauxval): Use unsigned long int.
4834         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4835         (getauxval): Use unsigned long int.
4836
4837 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4838
4839         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4840
4841 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4842
4843         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4844         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4845         __alignof__ (long double).
4846
4847 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4848
4849         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4850
4851 2012-05-20  Richard Henderson  <rth@twiddle.net>
4852
4853         * misc/getauxval.c: New file.
4854         * misc/sys/auxv.h: New file.
4855         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4856         (routines): Add getauxval.
4857         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4858         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4859         * elf/dl-sysdep.c (_dl_auxv): Remove.
4860         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4861         * elf/dl-support.c (_dl_auxv): New variable.
4862         (_dl_aux_init): Initialize it.
4863         * manual/startup.texi (Auxiliary Vector): New node.
4864         * sysdeps/generic/bits/hwcap.h: New file.
4865         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4866         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4867         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4868         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4869         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4870         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4872         Update.
4873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4874         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4875         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4876         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4878         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4879         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4880         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4881
4882 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4883
4884         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4885
4886 2012-05-19  David S. Miller  <davem@davemloft.net>
4887
4888         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4889
4890 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4891
4892         [BZ #14123]
4893         * math/s_ccosh.c: Include <float.h>
4894         (__ccosh): Avoid internal overflow calculating sinh and cosh
4895         values before multiplying by sin and cos values.
4896         * math/s_ccoshf.c: Likewise.
4897         * math/s_ccoshl.c: Likewise.
4898         * math/s_csin.c: Likewise.
4899         * math/s_csinf.c: Likewise.
4900         * math/s_csinl.c: Likewise.
4901         * math/s_csinh.c: Likewise.
4902         * math/s_csinhf.c: Likewise.
4903         * math/s_csinhl.c: Likewise.
4904         * math/libm-test.inc (ccos_test): Add more tests.
4905         (ccosh_test): Likewise.
4906         (csin_test): Likewise.
4907         (csinh_test): Likewise.
4908         * sysdeps/i386/fpu/libm-test-ulps: Update.
4909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4910
4911 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4912
4913         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4914         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4915
4916         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4917
4918 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4919
4920         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4921         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4922         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4923         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4924         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4925         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4926         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4927         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4928         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4929         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4930         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4931         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4932         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4933         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4934         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4935         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4936         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4937         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4938         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4939         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4940         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4941         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4942         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4943         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4944         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4945         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4946         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4947         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4948         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4949         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4950         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4951
4952 2012-05-18  Andreas Jaeger  <aj@suse.de>
4953
4954         * csu/.gitignore: Delete.
4955
4956 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4957
4958         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4959         (timex): Use __syscall_slong_t.
4960
4961 2012-05-18  Andreas Jaeger  <aj@suse.de>
4962             Carlos O'Donell  <carlos_odonell@mentor.com>
4963
4964         * manual/install.texi (Configuring and compiling): Update
4965         description about files modified in the source directory.
4966         * INSTALL: Regenerated.
4967
4968 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4969
4970         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4971         value.  Use "or" to set return value to -1.
4972         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4973         negate return value.
4974
4975 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4976
4977         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4978         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4979         failure if the compiler has Graphite support disabled.
4980         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4981         Likewise.
4982         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4983         CFLAGS-memmove.c): Likewise.
4984         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4985         Likewise.
4986
4987 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4988
4989         * sysdeps/x86_64/x32/_itoa.h: New file.
4990
4991         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4992         getdents system call only if kernel and user dirents have the
4993         same d_ino and d_off.
4994
4995         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4996         LLONG_MAX != LONG_MAX.
4997         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4998         (_fitoa_word): Likewise.
4999
5000         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5001         years.
5002         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5003         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5004         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5005
5006         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5007         include <bits/wordsize.h>.  Check __x86_64__ instead of
5008         __WORDSIZE.
5009         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5010         if __x86_64__ is defined.  Use anonymous union on fpstate.
5011
5012         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5013         anonymous union.
5014
5015 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5016
5017         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5018         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5019         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5020         Refer to _rtld_local_ro instead of _rtld_global_ro.
5021         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5022         Likewise.
5023         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5024         Likewise.
5025         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5026         Likewise.
5027         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5028         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5029         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5030
5031         * sysdeps/powerpc/powerpc32/dl-machine.c
5032         (__elf_machine_runtime_setup) [PROF]: Don't reference
5033         _dl_prof_resolve.
5034
5035 2012-05-18  Andreas Jaeger  <aj@suse.de>
5036
5037         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5038         function only available for GCCs before 3.4 since GCC 3.4
5039         introduced a builtin.
5040         (lrint): Likewise.
5041         (llrintf): Likewise.
5042         (llrint): Likewise.
5043         (fmaxf): Likewise.
5044         (fmax): Likewise.
5045         (fminf): Likewise.
5046         (fmin): Likewise.
5047         (rint): Likewise.
5048         (rintf): Likewise.
5049         (nearbyint): Likewise.
5050         (nearbyintf): Likewise.
5051         (ceil): Likewise.
5052         (ceilf): Likewise.
5053         (floor): Likewise.
5054         (floorf): Likewise.
5055
5056 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5057
5058         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5059         on both fields and cast pointer to __syscall_ulong_t.
5060
5061         * bits/types.h (__fsword_t): New type.
5062         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5063         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5064         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5065         (__FSWORD_T_TYPE): Likewise.
5066         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5067         (__FSWORD_T_TYPE): Likewise.
5068         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5069         (__FSWORD_T_TYPE): Likewise.
5070         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5071         (__FSWORD_T_TYPE): Likewise.
5072         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5073         __SWORD_TYPE with __fsword_t.
5074         (statfs64): Likewise.
5075
5076 2012-05-17  David S. Miller  <davem@davemloft.net>
5077
5078         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5079
5080 2012-05-17  Andreas Jaeger  <aj@suse.de>
5081
5082         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5083         warning.
5084
5085 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5086
5087         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5088
5089 2012-05-17  Andreas Jaeger  <aj@suse.de>
5090
5091         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5092         when it is used.
5093
5094 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5095
5096         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5097
5098 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5099
5100         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5101         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5102
5103 2012-05-17  Andreas Jaeger  <aj@suse.de>
5104             Carlos O'Donell  <carlos_odonell@mentor.com>
5105
5106         [BZ #14059]
5107         * sysdeps/x86_64/multiarch/init-arch.h
5108         (bit_YMM_Usable): Rename to...
5109         (bit_AVX_Usable): ... this.
5110         (bit_FMA4_Usable): New macro.
5111         (bit_XMM_state): New macro.
5112         (bit_YMM_state): New macro.
5113         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5114         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5115         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5116         (CPUID_OSXSAVE): New macro.
5117         (CPUID_AVX): New macro.
5118         (CPUID_FMA4): New macro.
5119         (index_YMM_Usable): Rename to...
5120         (index_AVX_Usable): ... this.
5121         (HAS_AVX): Use HAS_ARCH_FEATURE.
5122         (HAS_FMA4): Likewise.
5123         (HAS_YMM_USABLE): Remove.
5124         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5125         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5126         are present.
5127         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5128         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5129         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5130         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5131         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5132
5133 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5134
5135         * math/libm-test.c: Support platforms without multiple rounding modes.
5136         * math/bug-nextafter.c: Support platforms without FP exceptions.
5137         * math/bug-nexttoward.c: Likewise.
5138         * math/test-fenv.c: Likewise.
5139         * math/test-misc.c: Likewise.
5140         * stdlib/bug-getcontext.c: Likewise.
5141
5142 2012-05-17  Andreas Jaeger  <aj@suse.de>
5143
5144         * manual/examples/search.c (critter_cmp): Change signature to
5145         avoid warnings.
5146         * manual/string.texi (Collation Functions): Likewise.
5147
5148 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5149
5150         * bits/types.h: Fold copyright years.
5151         * bits/typesizes.h: Likewise.
5152         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5153         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5154         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5155         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5156         * time/time.h: Likewise.
5157
5158 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5159
5160         [BZ #208]
5161         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5162         in instead of returning them.  Return void.
5163         (__libc_mallinfo): Accumulate over all arenas.
5164         (__malloc_stats): Adjust for change in int_mallinfo interface.
5165
5166 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5167
5168         [BZ #10375]
5169         * configure.in (NM): Add AC_CHECK_TOOL for it.
5170         (libc_extra_cflags): New substituted variable.
5171         Check for -fstack-protector being used implicitly.
5172         * configure: Regenerated.
5173         * config.make.in (config-extra-cflags): New variable,
5174         gets @libc_extra_cflags@.
5175         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5176
5177         [BZ #10375]
5178         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5179         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5180         * configure: Regenerated.
5181         * config.make.in (CPPUNDEFS): New substituted variable.
5182         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5183         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5184         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5185
5186 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5187
5188         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5189         (mq_attr): Use __syscall_slong_t.
5190
5191 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5192
5193         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5194         Check __x86_64__ instead of __WORDSIZE.
5195         (_STAT_VER_LINUX): Likewise.
5196         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5197         __syscall_ulong_t and __syscall_slong_t.
5198         (stat64): Likewise.
5199
5200 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5201
5202         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5203
5204 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5205
5206         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5207
5208 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5209
5210         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5211         __syscall_ulong_t.
5212
5213         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5214         include <bits/wordsize.h>.  Check __x86_64__ instead of
5215         __WORDSIZE.
5216         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5217         defined.
5218         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5219
5220         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5221         include <bits/wordsize.h>.  Check __x86_64__ instead of
5222         __WORDSIZE.
5223         (user_regs_struct): Use "__extension__ unsigned long long"
5224         instead of "unsigned long" if __x86_64__ is defined.
5225         (user): Likewise.  Pad after pointer field if __ILP32__ is
5226         defined.
5227
5228 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5229
5230         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5231         versions 5 to 9.
5232         * configure: Regenerated.
5233         * manual/install.texi (texinfo): Increase version requirement to
5234         4.5 or later.
5235         * INSTALL: Regenerated.
5236
5237         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5238
5239 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5240
5241         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5242
5243         * sysdeps/x86_64/x32/ffs.c: New file.
5244
5245         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5246         __syscall_ulong_t.
5247         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5248         defined.  Use __syscall_ulong_t.
5249         (shminfo): Use __syscall_ulong_t.
5250         (shm_info): Likewise.
5251
5252         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5253         __syscall_ulong_t.
5254
5255         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5256         <bits/wordsize.h>.
5257         (msgqnum_t): Use __syscall_ulong_t.
5258         (msglen_t): Likewise.
5259         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5260         __syscall_ulong_t.
5261
5262         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5263         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5264
5265         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5266
5267         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5268         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5269
5270         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5271         __syscall_slong_t.
5272
5273         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5274         include <bits/wordsize.h>.  Check __x86_64__ instead of
5275         __WORDSIZE.
5276
5277         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5278         "unsigned long long int" if __x86_64__ is defined.
5279         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5280
5281         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5282         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5283         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5284
5285         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5286         <stdint.h>.
5287         (GET_PC): Cast to uintptr_t first.
5288         (GET_FRAME): Likewise.
5289         (GET_STACK): Likewise.
5290
5291         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5292         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5293         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5294         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5295         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5296         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5297         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5298         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5299         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5300         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5301         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5302         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5303         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5304         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5305         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5306         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5307         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5308         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5309         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5310         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5311         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5312         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5313         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5314         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5315         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5316         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5317         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5318         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5319         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5320
5321 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5322
5323         * Makerules (+depfiles): Also collect depfiles from .oS in
5324         $(extra-objs).
5325         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5326         .oS, $(libnldbl-routines)).
5327
5328         * Makerules (native-compile-mkdep-flags): Define.
5329         * sunrpc/Makefile (extra-objs): Add $(addprefix
5330         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5331         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5332         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5333         calling $(make-target-directory).
5334
5335 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5336
5337         * bits/types.h (__snseconds_t): Removed.
5338         * time/time.h (struct timespec): Replace __snseconds_t with
5339         __syscall_slong_t.
5340         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5341         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5342         Likewise.
5343         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5344         (__SNSECONDS_T_TYPE): Likewise.
5345         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5346         (__SNSECONDS_T_TYPE): Likewise.
5347         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5348         (__SNSECONDS_T_TYPE): Likewise.
5349
5350 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5351
5352         * sysdeps/mach/hurd/bits/typesizes.h
5353         (__SYSCALL_SLONG_TYPE): New macro.
5354         (__SYSCALL_ULONG_TYPE): Likewise.
5355
5356 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5357
5358         * bits/types.h (__syscall_slong_t): New type.
5359         (__syscall_ulong_t): Likewise.
5360
5361         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5362         (__SYSCALL_ULONG_TYPE): Likewise.
5363         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5364         (__SYSCALL_SLONG_TYPE): Likewise.
5365         (__SYSCALL_ULONG_TYPE): Likewise.
5366         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5367         (__SYSCALL_SLONG_TYPE): Likewise.
5368         (__SYSCALL_ULONG_TYPE): Likewise.
5369         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5370         (__SYSCALL_SLONG_TYPE): Likewise.
5371         (__SYSCALL_ULONG_TYPE): Likewise.
5372
5373 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5374
5375         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5376         Add sigaltstack-offsets.sym.
5377         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5378         <sigaltstack-offsets.h>.
5379         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5380         longjmp_msg pointer.
5381         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5382         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5383         signal stack.
5384         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5385
5386 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5387
5388         * elf/stackguard-macros.h: Remove file.
5389         * sysdeps/generic/stackguard-macros.h: New file.
5390         * sysdeps/i386/stackguard-macros.h: Likewise.
5391         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5392         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5393         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5394         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5395         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5396         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5397         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5398         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5399         <elf/stackguard-macros.h>.
5400
5401         [BZ #14109]
5402         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5403         __aligned__ in attribute.
5404         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5405         (gregset_t): Likewise.
5406
5407 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5408
5409         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5410         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5411         * sysdeps/x86_64/x32/Implies-after: New file.
5412
5413 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5414
5415         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5416         and access return value for _dl_profile_fixup.  Use R10_LP to
5417         load frame size.
5418
5419 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5420
5421         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5422
5423 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5424
5425         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5426         * sysdeps/x86_64/x32/sysdep.h: New file.
5427
5428 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5429
5430         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5431         * sysdeps/x86_64/setjmp.S: Likewise.
5432
5433 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5434
5435         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5436         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5437         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5438         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5439         remove unused global constant.
5440
5441 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5442
5443         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5444         include of <not-cancel.h>.
5445
5446 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5447
5448         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5449
5450 2012-05-15  Jeff Law  <law@redhat.com>
5451             Andreas Jaeger  <aj@suse.de>
5452
5453         [BZ #13594]
5454         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5455         out from...
5456         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5457         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5458         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5459         code changing __hst_map_handle.map.
5460
5461 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5462
5463         * configure.in (sysnames): Look for Implies-before and Implies-after
5464         files.
5465         * configure: Regenerated.
5466
5467 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5468
5469         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5470         8-byte data alignment with LP_SIZE alignment.
5471
5472 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5473
5474         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5475         into R10_LP.
5476
5477 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5478
5479         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5480
5481 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5482
5483         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5484         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5485         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5486         Likewise.
5487         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5488
5489 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5490
5491         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5492         (stackinfo_sub_sp): Likewise.
5493
5494 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5495
5496         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5497         RAX_LP.
5498
5499 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5500
5501         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5502         into R*_LP.
5503
5504 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5505
5506         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5507         sizes into R*_LP.
5508
5509 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5510
5511         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5512
5513 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5514
5515         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5516         into R11_LP and load __x86_64_shared_cache_size_half into
5517         R8_LP.
5518
5519 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5520
5521         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5522         R8_LP.
5523
5524 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5525
5526         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5527         logb for POWER7.
5528         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5529         logbf for POWER7.
5530         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5531         logbl for POWER7.
5532         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5533         powerpc32/power7/fpu/s_logb.c via #include.
5534         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5535         powerpc32/power7/fpu/s_logbf.c via #include.
5536         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5537         powerpc32/power7/fpu/s_logbl.c via #include.
5538
5539 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5540
5541         * README.libm: Remove file.
5542
5543 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5544
5545         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5546         count for x32.  Use R*_LP and omit operand-size suffix.
5547
5548 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5549
5550         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5551         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5552         * sysdeps/x86_64/x32/shlib-versions: New file.
5553
5554 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5555
5556         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5557         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5558         Use _dl_fatal_printf instead.
5559
5560 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5561
5562         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5563         set if not set by the user.  Do not allow for being unset.
5564         * sysdeps/unix/sysv/linux/configure: Regenerated.
5565
5566 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5567
5568         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5569         the `q' suffix from lea and replace .quad with ASM_ADDR.
5570
5571 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5572
5573         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5574         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5575         instead of $17.
5576         (PTR_DEMANGLE): Likewise.
5577
5578 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5579
5580         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5581         (LP_OP): Likewise.
5582         (ASM_ADDR): Likewise.
5583         (RAX_LP): Likewise.
5584         (RBP_LP): Likewise.
5585         (RBX_LP): Likewise.
5586         (RCX_LP): Likewise.
5587         (RDI_LP): Likewise.
5588         (RSI_LP): Likewise.
5589         (RSP_LP): Likewise.
5590         (R8_LP): Likewise.
5591         (R9_LP): Likewise.
5592         (R10_LP): Likewise.
5593         (R10_LP): Likewise.
5594         (R11_LP): Likewise.
5595         (R12_LP): Likewise.
5596         (R13_LP): Likewise.
5597         (R14_LP): Likewise.
5598         (R15_LP): Likewise.
5599
5600 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5601
5602         * sysdeps/x86_64/x32/dl-machine.h: New file.
5603
5604 2012-05-14  Andreas Jaeger  <aj@suse.de>
5605
5606         * manual/Makefile (subdir): Remove export of subdir.
5607         (all): Remove target.
5608         (.PHONY): Remove all from list.
5609         (mkinstalldirs): Remove.
5610         (.PHONY): Remove installdirs from list.
5611         ($(inst_infodir)/libc.info): Use make-target-directory.
5612         (installdirs): Remove.
5613         (subdir_%): Remove.
5614         (glibc-targets): Remove.
5615         (lib): Remove.
5616         (stubs): Remove.
5617         ($(objpfx)stubs ../po/manual.pot): Remove.
5618         ($(objpfx)stamp%): Remove.
5619         (make-target-directory): Remove.
5620         (subdir_install): Remove.
5621         (routines): Remove.
5622         (aux): Remove.
5623         (sources): Remove.
5624         (objects): Remove.
5625         (headers): Remove.
5626
5627         [BZ #13750]
5628         * manual/.gitignore: Remove, it's not needed anymore.
5629         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5630         all files in it.
5631         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5632         directory.
5633         (texis): Renamed to $(objpfx)texis.
5634         (texis-path): New, contains path to generated files.
5635         (chapters.%): Use texis-path for complete path, add extra argument
5636         libc-texinfo.sh.
5637         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5638         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5639         (summary,texi, stamp-summary): Use complete path of
5640         files. Generate files in build dir.
5641         (dir-add.texi): Build in build dir.
5642         (libm-err.texi,stamp-libm-err): Likewise.
5643         (version.texi, stamp-version): Likewise.
5644         (.%c.texi): Likewise.
5645         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5646         (mostlyclean): Remove target.
5647         (realclean): Remove target.
5648         (generated): Add new variable with contents from mostlyclean and
5649         realclean, remove entries duplicated in common-mostlyclean, add
5650         stamp-libm-err and stamp-version.
5651         (generated-dirs): Add libc directory.
5652         ($(inst_infodir)/libc.info): Install files from build dir.
5653
5654         * manual/install.texi (Configuring and compiling): Adjust since
5655         the info files are not part of the tar ball anymore.
5656
5657 2012-05-14  Andreas Jaeger  <aj@suse.de>
5658
5659         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5660         variable.
5661
5662 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5663
5664         [BZ #13717]
5665         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5666         to 2.2.0 where earlier.
5667         * sysdeps/unix/sysv/linux/configure: Regenerated.
5668         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5669         Remove conditional code.
5670         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5671         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5672         Remove conditional code.
5673         [!__NR_lchown]: Likewise.
5674         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5675         [__NR_lchown]: Likewise.
5676         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5677         comment referencing __ASSUME_LCHOWN_SYSCALL.
5678         * sysdeps/unix/sysv/linux/i386/sigaction.c
5679         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5680         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5681         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5682         Remove conditional code.
5683         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5684         (__protocol_available): Remove #if 0 code.
5685         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5686         conditional code.
5687         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5688         * sysdeps/unix/sysv/linux/kernel-features.h
5689         (__ASSUME_GETCWD_SYSCALL): Don't define.
5690         (__ASSUME_REALTIME_SIGNALS): Likewise.
5691         (__ASSUME_PREAD_SYSCALL): Likewise.
5692         (__ASSUME_PWRITE_SYSCALL): Likewise.
5693         (__ASSUME_POLL_SYSCALL): Likewise.
5694         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5695         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5696         non-SPARC.
5697         (__ASSUME_SIOCGIFNAME): Don't define.
5698         (__ASSUME_MSG_NOSIGNAL): Likewise.
5699         (__ASSUME_SENDFILE): Define unconditionally.
5700         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5701         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5702         conditional code.
5703         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5704         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5705         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5706         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5707         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5708         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5709         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5711         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5712         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5714         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5715         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5717         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5718         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5720         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5721         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5723         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5724         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5726         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5727         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5729         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5730         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5732         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5733         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5734         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5735         Remove conditional code.
5736         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5737         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5738         Remove conditional code.
5739         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5740         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5741         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5742         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5743         Remove conditional code.
5744         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5745         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5746         Remove conditional code.
5747         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5748         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5749         Remove conditional code.
5750         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5751         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5752         Remove conditional code.
5753         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5754         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5755         Remove conditional code.
5756         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5757         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5758         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5759         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5760         * sysdeps/unix/sysv/linux/sigaction.c
5761         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5762         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5763         * sysdeps/unix/sysv/linux/sigpending.c
5764         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5765         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5766         * sysdeps/unix/sysv/linux/sigprocmask.c
5767         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5768         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5769         * sysdeps/unix/sysv/linux/sigsuspend.c
5770         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5771         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5772         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5773         (__libc_missing_rt_sigs): Remove.
5774         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5775         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5776         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5777         Remove conditional code.
5778         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5779         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5780         return 1.
5781         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5782         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5783         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5784         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5785
5786 2012-05-14  Andreas Jaeger  <aj@suse.de>
5787
5788         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5789         it's not used in glibc.
5790         (__coshm1): Likewise.
5791         (__acosh1p): Likewise.
5792         (__sgn): Likewise.
5793
5794         * manual/string.texi (Copying and Concatenation): Add missing
5795         variable in concat example.
5796         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5797
5798 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5799
5800         [BZ #14103]
5801         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5802         __builtin_clzl with __builtin_clzll.
5803
5804 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5805
5806         [BZ #14104]
5807         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5808         libc_freeres_ptr.
5809
5810 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5811
5812         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5813         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5814         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5815         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5816
5817 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5818
5819         * NEWS: Update ia64 info.
5820
5821 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5822
5823         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5824         used as bcopy.
5825
5826 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5827
5828         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5829         * sysdeps/unix/syscalls.list (dup3): Likewise.
5830         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5831         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5832
5833 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5834
5835         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5836         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5837
5838 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5839
5840         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5841         thread pointer.
5842         (TLS_IE): Use mov/add instead of movq/addq to load thread
5843         pointer.
5844         (TLS_GD_PREFIX): New.
5845         (TLS_GD): Use it.
5846
5847 2012-05-11  David S. Miller  <davem@davemloft.net>
5848
5849         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5850         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5851         (_FPU_SETCW): Likewise.
5852
5853 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5854
5855         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5856         is 32-byte aligned.
5857
5858 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5859
5860         [BZ #11837]
5861         * iconvdata/gb18030.c: Update tables.
5862         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5863         characters specially.
5864         (BODY for TO_LOOP): Add encoding of missing ranges.
5865
5866 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5867
5868         [BZ #13673]
5869         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5870         * sysdeps/mach/hurd/dup3.c: Likewise.
5871         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5872         * sysdeps/powerpc/memmove.c:: Likewise.
5873
5874 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5875
5876         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5877         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5878
5879 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5880
5881         * elf/elf.h (R_X86_64_RELATIVE64): New.
5882         (R_X86_64_NUM): Updated.
5883         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5884         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5885         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5886         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5887         tst-quad1pie tst-quad2pie
5888         (modules-names): Add tst-quadmod1 tst-quadmod2.
5889         ($(objpfx)tst-quad1): New dependency.
5890         ($(objpfx)tst-quad2): Likewise.
5891         ($(objpfx)tst-quad1pie): Likewise.
5892         ($(objpfx)tst-quad2pie): Likewise.
5893         * sysdeps/x86_64/tst-quad1.c: New file.
5894         * sysdeps/x86_64/tst-quad1pie.c: New file.
5895         * sysdeps/x86_64/tst-quad2.c: Likewise.
5896         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5897         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5898         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5899         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5900         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5901
5902 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5903
5904         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5905         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5906         * streams/stropts.h (t_scalar_t): Define type.
5907
5908         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5909         (_PATH_PRESERVE): Set to "/var/lib".
5910         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5911
5912         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5913         instead of int.
5914
5915         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5916         if __dir_mkfile succeeded.
5917
5918         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5919         checking for _hurd_dtablesize.  Unlock it right after having
5920         finished _hurd_dtable allocation.
5921
5922 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5923
5924         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5925         * sysdeps/mach/hurd/configure: Regenerated.
5926         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5927         special-casing to...
5928         * sysdeps/gnu/configure.in: ... this new file.
5929         * sysdeps/unix/sysv/linux/configure: Regenerated.
5930         * sysdeps/gnu/configure: New generated file.
5931
5932         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5933         for Linux: use nsec instead of usec, as well as:
5934         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5935         members of type struct timespec.
5936         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5937         New macros.
5938         (struct stat64): Likewise.
5939         (_STATBUF_ST_NSEC): New macro.
5940         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5941
5942         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5943         __strtoul_internal rather than strtoul.
5944
5945 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5946
5947         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5948         and reject them.
5949
5950 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5951
5952         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5953         which preserves existing values.
5954         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5955
5956 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5957
5958         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5959         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5960         greater than FD_SETSIZE.
5961
5962 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5963
5964         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5965         allocated, call __vm_protect to finish enabling the existing space, and
5966         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5967         allocate the remainder.
5968
5969 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5970
5971         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5972         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5973
5974 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5975
5976         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5977         sysdeps/mach/hurd/readlink.c.
5978
5979         * posix/tst-sysconf.c (posix_options): Only use
5980         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5981         _POSIX_SYNCHRONIZED_IO when they are defined
5982         * sysdeps/mach/hurd/bits/posix_opt.h:
5983         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5984         (_XOPEN_REALTIME): Undefine macro.
5985         (_XOPEN_REALTIME_THREADS): Undefine macro.
5986         (_XOPEN_SHM): Undefine macro.
5987         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5988         macro to -1.
5989         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5990         macro to -1.
5991         (_POSIX_ASYNC_IO): Undefine macro.
5992         (_POSIX_PRIORITIZED_IO): Undefine macro.
5993         (_POSIX_SPIN_LOCKS): Define macro to -1.
5994
5995         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5996         SA_NODEFER, SA_RESETHAND.
5997         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5998         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5999         F_DUPFD_CLOEXEC.
6000
6001 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6002
6003         * elf/Makefile (pldd-modules): Define unconditionally.
6004
6005 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6006
6007         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6008
6009 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6010
6011         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6012         Return ENOENT when name is empty.
6013         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6014
6015 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6016
6017         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6018
6019         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6020
6021 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6022
6023         Fix mlock in all cases except non-readable pages.
6024         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6025         instead of VM_PROT_ALL as parameter to __vm_wire function.
6026
6027         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6028         (__mkdir): When path is `/', just fail with EEXIST.
6029         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6030
6031 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6032
6033         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6034         <sys/uio.h> (for writev).
6035         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6036         and <sys/param.h> (for MIN).
6037
6038 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6039
6040         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6041         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6042         if interrupted.
6043
6044 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6045
6046         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6047         Depend on against $(link-rpcuserlibs).
6048
6049 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6050
6051         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6052         (__libc_stack_end): Do not use attribute_relro.
6053         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6054         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6055         to libthread-provided value.
6056         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6057         attribute_relro.
6058
6059 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6060
6061         [BZ #3748]
6062         * bits/libc-lock.h (__libc_once_get): New macro.
6063         * sysdeps/mach/bits/libc-lock.h: Likewise.
6064         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6065         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6066         instead of using implementation details.
6067
6068         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6069         * libio/freopen.c: Likewise.
6070         * libio/freopen64.c: Likewise.
6071         * misc/syslog.c: Likewise.
6072         * nscd/connections.c: Likewise.
6073         * nscd/netgroupcache.c: Likewise.
6074         * sysdeps/posix/getcwd.c: Likewise.
6075
6076 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6077
6078         * math/w_ilogbf.c: Add #include <limits.h>.
6079
6080 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6081
6082         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6083         path instead of returning without unlocking.
6084
6085         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6086         immediate-write ioctls.
6087         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6088
6089 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6090
6091         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6092         __builtin_frame_address instead of making assumptions about the
6093         location of the return address relative to DATA.  Force early load of
6094         the return address.
6095         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6096         __builtin_frame_address.
6097
6098         dup3 for GNU Hurd.
6099         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6100         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6101         implement dup3 and do some further code clean-ups.
6102         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6103         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6104
6105 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6106
6107         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6108
6109         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6110         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6111         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6112         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6113         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6114         d->port.lock.
6115
6116         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6117         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6118         when handler == SIG_ERR, not when handler != SIG_ERR.
6119
6120 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6121
6122         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6123         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6124         definitions.
6125
6126         accept4 for GNU Hurd.
6127         * include/sys/socket.h (__libc_accept4): New prototype.
6128         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6129         to implement __libc_accept4.
6130         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6131         __libc_accept4.
6132         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6133
6134         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6135         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6136         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6137         signal-defines.sym.
6138
6139 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6140
6141         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6142
6143 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6144
6145         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6146         assertion on O_CLOEXEC flag.
6147         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6148         * hurd/intern-fd.c: Likewise.
6149         * hurd/port2fd.c: Likewise.
6150
6151 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6152
6153         [BZ #3906]
6154         * bits/in.h (IPV6_PKTINFO): Define new macro.
6155         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6156
6157 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6158
6159         [BZ #13954]
6160         [BZ #13955]
6161         [BZ #13956]
6162         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6163         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6164         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6165         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6166         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6167         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6168         * math/libm-test.inc (logb_test) : Additional logb tests.
6169
6170 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6171             Andreas Jaeger  <aj@suse.de>
6172
6173         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6174         * configure: Regenerated.
6175         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6176         * config.make.in (link-obsolete-rpc): New substituted variable.
6177         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6178         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6179         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6180         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6181         so that libc.a contains the symbols.
6182         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6183         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6184         * sunrpc/auth_none.c: Likewise.
6185         * sunrpc/auth_unix.c: Likewise.
6186         * sunrpc/authdes_prot.c: Likewise.
6187         * sunrpc/authuxprot.c: Likewise.
6188         * sunrpc/clnt_gen.c: Likewise.
6189         * sunrpc/clnt_perr.c: Likewise.
6190         * sunrpc/clnt_raw.c: Likewise.
6191         * sunrpc/clnt_simp.c: Likewise.
6192         * sunrpc/clnt_tcp.c: Likewise.
6193         * sunrpc/clnt_udp.c: Likewise.
6194         * sunrpc/clnt_unix.c: Likewise.
6195         * sunrpc/des_crypt.c: Likewise.
6196         * sunrpc/des_soft.c: Likewise.
6197         * sunrpc/get_myaddr.c: Likewise.
6198         * sunrpc/key_call.c: Likewise.
6199         * sunrpc/key_prot.c: Likewise.
6200         * sunrpc/netname.c: Likewise.
6201         * sunrpc/pm_getmaps.c: Likewise.
6202         * sunrpc/pm_getport.c: Likewise.
6203         * sunrpc/pmap_clnt.c: Likewise.
6204         * sunrpc/pmap_prot.c: Likewise.
6205         * sunrpc/pmap_prot2.c: Likewise.
6206         * sunrpc/pmap_rmt.c: Likewise.
6207         * sunrpc/publickey.c: Likewise.
6208         * sunrpc/rpc_cmsg.c: Likewise.
6209         * sunrpc/rpc_common.c: Likewise.
6210         * sunrpc/rpc_dtable.c: Likewise.
6211         * sunrpc/rpc_prot.c: Likewise.
6212         * sunrpc/rpc_thread.c: Likewise.
6213         * sunrpc/rtime.c: Likewise.
6214         * sunrpc/svc.c: Likewise.
6215         * sunrpc/svc_auth.c: Likewise.
6216         * sunrpc/svc_raw.c: Likewise.
6217         * sunrpc/svc_run.c: Likewise.
6218         * sunrpc/svc_tcp.c: Likewise.
6219         * sunrpc/svc_udp.c: Likewise.
6220         * sunrpc/svc_unix.c: Likewise.
6221         * sunrpc/svcauth_des.c: Likewise.
6222         * sunrpc/xcrypt.c: Likewise.
6223         * sunrpc/xdr.c: Likewise.
6224         * sunrpc/xdr_array.c: Likewise.
6225         * sunrpc/xdr_float.c: Likewise.
6226         * sunrpc/xdr_intXX_t.c: Likewise.
6227         * sunrpc/xdr_mem.c: Likewise.
6228         * sunrpc/xdr_rec.c: Likewise.
6229         * sunrpc/xdr_ref.c: Likewise.
6230         * sunrpc/xdr_sizeof.c: Likewise.
6231         * sunrpc/xdr_stdio.c: Likewise.
6232
6233 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6234
6235         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6236         change.  Update copyright years.
6237
6238 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6239
6240         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6241
6242 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6243             Joseph Myers  <joseph@codesourcery.com>
6244             Paul Pluzhnikov  <ppluzhnikov@google.com>
6245
6246         [BZ #14012]
6247         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6248         requiring rpcgen.
6249         [cross-compiling] (extra-libs): Likewise.
6250         [cross-compiling] (extra-libs-others): Likewise.
6251         [cross-compiling] (librpcsvc-routines): Likewise.
6252         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6253         [cross-compiling] (omit-deps): Likewise.
6254         (sunrpc-CPPFLAGS): New variable.
6255         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6256         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6257         (cross-rpcgen-objs): New variable.
6258         (extra-objs): Append $(cross-rpcgen-objs).
6259         ($(cross-rpcgen-objs)): New rule.
6260         ($(objpfx)cross-rpcgen): Likewise.
6261         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6262         comment.
6263         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6264         ($(objpfx)x%.stmp): Likewise.
6265         * sunrpc/proto.h [IS_IN_build] (_): Define.
6266         [IS_IN_build] (_libc_intl_domainname): Likewise.
6267
6268 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6269
6270         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6271         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6272         and R_X86_64_TPOFF64.
6273
6274 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6275
6276         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6277         sysdeps/unix/sysv/syscalls.list.
6278         (stime): Likewise.
6279         (utime): Likewise.
6280         * sysdeps/unix/sysv/syscalls.list: Remove file.
6281
6282 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6283
6284         [BZ #3440]
6285         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6286         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6287         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6288         (__LC_IDENTIFICATION): Make these macros useful in #if
6289         expressions, as required by C99.
6290
6291 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6292
6293         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6294         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6295         after this.
6296
6297 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6298
6299         * stdlib/longlong.h: Updated from GCC.
6300
6301 2012-05-09  Andreas Jaeger  <aj@suse.de>
6302
6303         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6304         default is first entry.
6305         (run_mode): Set type.
6306         (main): Remove informal message about syslog.
6307         (options): Fix typo.
6308
6309         [BZ #14053]
6310         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6311         to asm.
6312         (lrint): Likewise.
6313         (llrintf): Likewise.
6314         (llrint): Likewise.
6315         (rint): Likewise.
6316         (rintf): Likewise.
6317         (nearbyint): Likewise.
6318         (nearbyintf): Likewise.
6319
6320 2012-05-09  Andreas Jaeger  <aj@suse.de>
6321             Pedro Alves  <palves@redhat.com>
6322
6323         * nscd/nscd.c (run_mode): Use enum.
6324         (main): Cleanup coding style issue.
6325
6326 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6327             Andreas Jaeger  <aj@suse.de>
6328
6329         * nscd/nscd.c (go_background): Replaced with...
6330         (run_mode): ... this.
6331         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6332         (options): Add -F --foreground.
6333         (main): Implement it.
6334         (parse_opt): Parse it.
6335
6336 2012-05-09  Andreas Jaeger  <aj@suse.de>
6337
6338         [BZ #14083]
6339         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6340         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6341         -Wconversion warning.
6342         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6343         Likewise.
6344
6345 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6346
6347         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6348         == 0.
6349         (LC_ALL): Use macro-int-constant.
6350         (LC_COLLATE): Likewise.
6351         (LC_CTYPE): Likewise.
6352         (LC_MESSAGES): Likewise.
6353         (LC_MONETARY): Likewise.
6354         (LC_NUMERIC): Likewise.
6355         (LC_TIME): Likewise.
6356         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6357         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6358         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6359         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6360         Specify type.
6361         [C99-based standards] (float_t): Expect type.
6362         [C99-based standards] (double_t): Expect type.
6363         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6364         type.
6365         [C99-based standards] (HUGE_VALL): Likewise.
6366         [C99-based standards] (INFINITY): Likewise.
6367         [C99-based standards] (NAN): Likewise.
6368         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6369         [C99-based standards] (FP_NAN): Likewise.
6370         [C99-based standards] (FP_NORMAL): Likewise.
6371         [C99-based standards] (FP_SUBNORMAL): Likewise.
6372         [C99-based standards] (FP_ZERO): Likewise.
6373         [C99-based standards] (FP_FAST_FMA): Use
6374         optional-macro-int-constant.  Specify type.  Require == 1.
6375         [C99-based standards] (FP_FAST_FMAF): Likewise.
6376         [C99-based standards] (FP_FAST_FMAL): Likewise.
6377         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6378         [C99-based standards] (FP_ILOGBNAN): Likewise.
6379         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6380         Specify type.
6381         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6382         [C99-based standards] (math_errhandling): Specify type.
6383         [ISO99 || ISO11] (signgam): Do not allow.
6384         [non-C99-based standards] (copysignf): Do not allow.
6385         [non-C99-based standards] (exp2f): Likewise.
6386         [non-C99-based standards] (log2f): Likewise.
6387         [non-C99-based standards] (modff): Allow.
6388         [non-C99-based standards] (erff): Do not allow.
6389         [non-C99-based standards] (erfcf): Likewise.
6390         [non-C99-based standards] (gammaf): Likewise.
6391         [non-C99-based standards] (hypotf): Likewise.
6392         [non-C99-based standards] (j0f): Likewise.
6393         [non-C99-based standards] (j1f): Likewise.
6394         [non-C99-based standards] (jnf): Likewise.
6395         [non-C99-based standards] (lgammaf): Likewise.
6396         [non-C99-based standards] (tgammaf): Likewise.
6397         [non-C99-based standards] (y0f): Likewise.
6398         [non-C99-based standards] (y1f): Likewise.
6399         [non-C99-based standards] (ynf): Likewise.
6400         [non-C99-based standards] (isnanf): Likewise.
6401         [non-C99-based standards] (acoshf): Likewise.
6402         [non-C99-based standards] (asinhf): Likewise.
6403         [non-C99-based standards] (atanhf): Likewise.
6404         [non-C99-based standards] (cbrtf): Likewise.
6405         [non-C99-based standards] (expm1f): Likewise.
6406         [non-C99-based standards] (ilogbf): Likewise.
6407         [non-C99-based standards] (log1pf): Likewise.
6408         [non-C99-based standards] (logbf): Likewise.
6409         [non-C99-based standards] (nextafterf): Likewise.
6410         [non-C99-based standards] (remainderf): Likewise.
6411         [non-C99-based standards] (rintf): Likewise.
6412         [non-C99-based standards] (scalbf): Likewise.
6413         [non-C99-based standards] (copysignl): Likewise.
6414         [non-C99-based standards] (exp2l): Likewise.
6415         [non-C99-based standards] (log2l): Likewise.
6416         [non-C99-based standards] (modfl): Allow.
6417         [non-C99-based standards] (erfl): Do not allow.
6418         [non-C99-based standards] (erfcl): Likewise.
6419         [non-C99-based standards] (gammal): Likewise.
6420         [non-C99-based standards] (hypotl): Likewise.
6421         [non-C99-based standards] (j0l): Likewise.
6422         [non-C99-based standards] (j1l): Likewise.
6423         [non-C99-based standards] (jnl): Likewise.
6424         [non-C99-based standards] (lgammal): Likewise.
6425         [non-C99-based standards] (tgammal): Likewise.
6426         [non-C99-based standards] (y0l): Likewise.
6427         [non-C99-based standards] (y1l): Likewise.
6428         [non-C99-based standards] (ynl): Likewise.
6429         [non-C99-based standards] (isnanl): Likewise.
6430         [non-C99-based standards] (acoshl): Likewise.
6431         [non-C99-based standards] (asinhl): Likewise.
6432         [non-C99-based standards] (atanhl): Likewise.
6433         [non-C99-based standards] (cbrtl): Likewise.
6434         [non-C99-based standards] (expm1l): Likewise.
6435         [non-C99-based standards] (ilogbl): Likewise.
6436         [non-C99-based standards] (log1pl): Likewise.
6437         [non-C99-based standards] (logbl): Likewise.
6438         [non-C99-based standards] (nextafterl): Likewise.
6439         [non-C99-based standards] (remainderl): Likewise.
6440         [non-C99-based standards] (rintl): Likewise.
6441         [non-C99-based standards] (scalbl): Likewise.
6442         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6443         [non-C99-based standards] (FP_*): Do not allow.
6444         [C99-based standards] (FP_*): Change to
6445         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6446         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6447         allow.
6448         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6449         (SIG_ERR): Likewise.
6450         [X/Open-based standards] (SIG_HOLD): Likewise.
6451         (SIG_IGN): Likewise.
6452         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6453         positive value.
6454         (SIGFPE): Likewise.
6455         (SIGILL): Likewise.
6456         (SIGINT): Likewise.
6457         (SIGSEGV): Likewise.
6458         (SIGTER): Likewise.
6459         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6460         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6461         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6462         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6463         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6464         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6465         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6466         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6467         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6468         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6469         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6470         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6471         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6472         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6473         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6474         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6475         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6476         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6477         [X/Open-based standards] (SIGTRAP): Likewise.
6478         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6479         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6480         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6481         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6482         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6483         allow.
6484
6485 2012-05-08  Ian Wienand  <ianw@vmware.com>
6486
6487         [BZ #14080]
6488         * time/tzset.c (__tzset_parse_tz): Update default rules for
6489         daylight time changes in the Energy Policy Act of 2005.
6490
6491 2012-05-09  Andreas Jaeger  <aj@suse.de>
6492
6493         [BZ #13983]
6494         * elf/ldconfig.c (parse_conf): Change string to make clear that
6495         ldconfig only issued a warning if ld.so.conf does not exist.
6496
6497 2012-05-08  David S. Miller  <davem@davemloft.net>
6498
6499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6500         movxtod instead of popping the value on the stack.
6501
6502         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6503
6504 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6505
6506         * config.h.in: Add HAVE_ARM_PCS_VFP.
6507
6508 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6509
6510         [BZ #13979]
6511         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6512         checking but the checks are disabled for any reason.
6513
6514 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6515
6516         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6517         and ELF64_R_TYPE with ELFW(R_TYPE).
6518
6519 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6520
6521         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6522         (ulimit): Likewise.
6523
6524         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6525         (settimeofday): Likewise.
6526
6527 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6528
6529         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6530         a struct th_u2 inside the union, and move tu_block/tu_code into
6531         a new th_u3 union of tu_block/tu_code inside of that.  Move
6532         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6533         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6534         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6535         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6536         (th_stuff): Change to th_u1.tu_stuff.
6537         (th_data): Define.
6538         (th_msg): Change to th_u1.th_u2.tu_data.
6539
6540 2012-05-07  David S. Miller  <davem@davemloft.net>
6541
6542         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6543
6544         [BZ #14074]
6545         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6546         (SETUP_PIC_REG): Use it.
6547         (SETUP_PIC_REG_LEAF): Use it.
6548
6549 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6550
6551         [BZ #13885]
6552         [BZ #13923]
6553         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6554         USE_AS_EXPM1L.
6555         (EXPL_FINITE): Likewise.
6556         (FLDLOG): Likewise.
6557         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6558         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6559         e_expl.S.
6560         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6561         USE_AS_EXPM1L.
6562         (EXPL_FINITE): Likewise.
6563         (FLDLOG): Likewise.
6564         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6565         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6566         e_expl.S.
6567         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6568         test of -max_value argument for long double.
6569         * sysdeps/i386/fpu/libm-test-ulps: Update.
6570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6571
6572 2012-05-06  David S. Miller  <davem@davemloft.net>
6573
6574         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6575         quad soft-float symbols whose references which are compiler
6576         generated.
6577         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6578
6579 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6580
6581         [BZ #13884]
6582         [BZ #13914]
6583         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6584         USE_AS_EXP10L.
6585         (EXPL_FINITE): Likewise.
6586         (FLDLOG): Likewise.
6587         (c0): Likewise.
6588         (c1): Likewise.
6589         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6590         Adjust comments for base varying.
6591         (__expl_finite): Change alias to EXPL_FINITE.
6592         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6593         e_expl.S.
6594         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6595         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6596         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6597         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6598         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6599         USE_AS_EXP10L.
6600         (EXPL_FINITE): Likewise.
6601         (FLDLOG): Likewise.
6602         (c0): Likewise.
6603         (c1): Likewise.
6604         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6605         Adjust comments for base varying.
6606         (__expl_finite): Change alias to EXPL_FINITE.
6607         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6608         tests for bugs.
6609         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6610
6611         [BZ #14064]
6612         * math/libm-test.inc (check_float_internal): Correct ulp
6613         calculation for subnormal expected results.
6614
6615 2012-05-06  Andreas Jaeger  <aj@suse.de>
6616
6617         * Makeconfig (+math-flags): New, set to -frounding-math.
6618         (+cflags): Add +math-flags so that all of glibc gets compiled with
6619         it.
6620
6621         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6622
6623 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6624
6625         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6626         Disable one test.
6627
6628         [BZ #13787]
6629         [BZ #13922]
6630         [BZ #14036]
6631         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6632         (__ieee754_expl): Allow for and saturate large arguments.
6633         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6634         (u_threshold): Likewise.
6635         (__exp): Call __ieee754_exp before checking for overflow and
6636         underflow.
6637         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6638         (u_threshold): Likewise.
6639         (__expf): Call __ieee754_expf before checking for overflow and
6640         underflow.
6641         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6642         (u_threshold): Likewise.
6643         (__expl): Call __ieee754_expl before checking for overflow and
6644         underflow.
6645         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6646         (__ieee754_expl): Allow for and saturate large arguments.
6647         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6648         missing overflow exception on overflow.
6649         (expm1_test): Do not allow missing overflow exception on overflow.
6650
6651         * sysdeps/i386/fpu/e_expl.c: Move to ...
6652         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6653         rather than using inline asm.
6654         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6655         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6656         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6657
6658         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6659         (nice): Likewise.
6660         (poll): Likewise.
6661         (signal): Likewise.
6662         (time): Likewise.
6663         (times): Likewise.
6664
6665 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6666
6667         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6668         sysdeps/unix/common/syscalls.list.
6669         (fchmod): Likewise.
6670         (fchown): Likewise.
6671         (ftruncate): Likewise.
6672         (getrusage): Likewise.
6673         (gettimeofday): Likewise.
6674         (setpgid): Likewise.
6675         (setregid): Likewise.
6676         (setreuid): Likewise.
6677         (sigaction): Likewise.
6678         (truncate): Likewise.
6679         (vhangup): Likewise.
6680         * sysdeps/unix/common/syscalls.list: Remove file.
6681         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6682         * sysdeps/unix/sysv/linux/Implies: Likewise.
6683
6684 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6685
6686         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6687         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6688         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6689         Moved to ...
6690         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6691         Here.
6692         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6693         to ...
6694         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6695         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6696         to ...
6697         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6698         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6699         to ...
6700         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6701         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6702         to ...
6703         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6704         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6705         to ...
6706         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6707         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6708         to ...
6709         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6710         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6711         to ...
6712         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6713         Here.
6714         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6715         to ...
6716         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6717         Here.
6718         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6719         to ...
6720         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6721         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6722         Moved to ...
6723         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6724         Here.
6725         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6726         to ...
6727         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6728
6729 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6730
6731         * sysdeps/unix/common/bits/dirent.h: Remove file.
6732         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6733
6734         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6735         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6736         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6737         * sysdeps/unix/bsd/isatty.c: Likewise.
6738         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6739         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6740         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6741
6742 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6743
6744         [BZ #13563]
6745         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6746         long double comparison inaccuracies.
6747         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6748         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6749
6750 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6751
6752         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6753         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6754
6755 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6756
6757         [BZ #14049]
6758         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6759         nonzero digits before rounding a hex value.
6760         * stdlib/tst-strtod.c (tests): Add another test.
6761
6762 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6763
6764         * sysdeps/s390/fpu/libm-test-ulps: Update.
6765
6766 2012-05-03  Andreas Jaeger  <aj@suse.de>
6767
6768         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6769         does not get optimized out.
6770         (malloc_opt_barrier): New.
6771
6772 2012-05-03  Andreas Jaeger  <aj@suse.de>
6773             Roland McGrath  <roland@hack.frob.com>
6774
6775         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6776         intermediate file deletion.
6777         (generated): Add .symlist files.
6778
6779 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6780
6781         [BZ #13775]
6782         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6783         Redirect under this condition.
6784         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6785         [__USE_GNU] (__dprintf_chk): Not under this condition.
6786         [__USE_GNU] (__vdprintf_chk): Likewise.
6787         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6788         under this condition.
6789         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6790         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6791         [__USE_XOPEN2K8] (vdprintf): Likewise.
6792         [__USE_GNU] (__dprintf_chk): Not under this condition.
6793         [__USE_GNU] (__vdprintf_chk): Likewise.
6794         [__USE_GNU] (dprintf): Likewise.
6795         [__USE_GNU] (vdprintf): Likewise.
6796
6797 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6798
6799         * elf/Makefile (common-generated): Set this instead of generated for
6800         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6801         $(all-built-dso)-derived lists.
6802
6803 2012-05-03  Andreas Jaeger  <aj@suse.de>
6804
6805         * sysdeps/i386/fpu/libm-test-ulps: Update.
6806
6807         * FAQ: Removed.
6808         * FAQ.in: Likewise.
6809         * scripts/gen-FAQ.pl: Likewise.
6810         * manual/install.texi (Installation): Point to online location of
6811         FAQ.
6812         * Makefile (files-for-dist): Remove FAQ.
6813         (FAQ): Remove.
6814
6815 2012-05-02  Allan McRae  <allan@archlinux.org>
6816
6817         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6818         (LDFLAGS-reldepmod5.so): Likewise.
6819         (LDFLAGS-reldep6mod1.so): Likewise.
6820         (LDFLAGS-reldep6mod4.so): Likewise.
6821         (LDFLAGS-reldep8mod3.so): Likewise.
6822         (LDFLAGS-unload4mod1.so): Likewise.
6823         (LDFLAGS-unload4mod2.so): Likewise.
6824         (LDFLAGS-tst-initorder): Likewise.
6825         (LDFLAGS-tst-initordera2.so): Likewise.
6826         (LDFLAGS-tst-initordera3.so): Likewise.
6827         (LDFLAGS-tst-initordera4.so): Likewise.
6828         (LDFLAGS-tst-initorderb2.so): Likewise.
6829         (LDFLAGS-noload): Likewise.
6830         (LDFLAGS-next): Likewise.
6831         (LDFLAGS-order2mod1.so): Likewise.
6832         (LDFLAGS-order2mod2.so): Likewise.
6833         (LDFLAGS-tst-initorder2): Likewise.
6834         (LDFLAGS-tst-initorder2a.so): Likewise.
6835         (LDFLAGS-tst-initorder2b.so): Likewise.
6836         (LDFLAGS-tst-initorder2c.so): Likewise.
6837         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6838
6839 2012-05-02  David S. Miller  <davem@davemloft.net>
6840
6841         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6842
6843 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6844
6845         [BZ #14055]
6846         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6847
6848 2012-05-02  Andreas Jaeger  <aj@suse.de>
6849
6850         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6851         since we manipulate rounding mode.
6852         (CPPFLAGS-test-idouble.c): Likewise.
6853         (CPPFLAGS-test-ifloat.c): Likewise.
6854         (CFLAGS-test-ldouble.c): Likewise.
6855         (CFLAGS-test-double.c): Likewise.
6856         (CFLAGS-test-float.c): Likewise.
6857         (CFLAGS-test-misc.c): Likewise.
6858         (CFLAGS-test-test-fenv.c): Likewise.
6859
6860 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6861
6862         [BZ #2550]
6863         [BZ #2570]
6864         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6865         comparisons to determine direction to adjust input.
6866
6867 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6868
6869         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6870         output to the target.
6871
6872         * scripts/localplt.awk: New file.
6873         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6874         (check-localplt-CFLAGS): Variable removed.
6875         ($(all-built-dso:=.jmprel)): New static pattern rule.
6876         (generated): Add those targets.
6877         (localplt-built-dso): New variable.
6878         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6879
6880         * elf/check-localplt.c: File removed.
6881
6882         * scripts/check-execstack.awk: New file.
6883         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6884         (check-execstack-CFLAGS): Variable removed.
6885         ($(objpfx)check-execstack.h): Target removed.
6886         ($(objpfx)execstack-default): New target.
6887         (generated): Add that instead of check-execstack.h.
6888         ($(all-built-dso:=.phdr)): New static pattern rule.
6889         (generated): Add those targets.
6890         * elf/check-execstack.c: File removed.
6891
6892         * scripts/check-textrel.awk: New file.
6893         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6894         (check-textrel-CFLAGS): Variable removed.
6895         (all-built-dso): Use := to define.o
6896         ($(all-built-dso:=.dyn)): New static pattern rule.
6897         (generated): Add those targets.
6898         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6899         * config.make.in (READELF): New substituted variable.
6900         * elf/check-textrel.c: File removed.
6901
6902 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6903
6904         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6905         allow.
6906         * conform/data/ctype.h-data [C99-based standards] (isblank):
6907         Expect function.
6908         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6909         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6910         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6911         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6912         Specify type.  Require positive value.
6913         (EILSEQ): Likewise.
6914         (ERANGE): Likewise.
6915         [ISO || POSIX] (EILSEQ): Do not expect.
6916         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6917         Specify type.  Require positive value.
6918         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6919         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6920         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6921         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6922         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6923         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6924         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6925         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6926         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6927         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6928         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6929         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6930         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6931         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6932         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6933         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6934         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6935         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6936         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6937         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6938         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6939         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6940         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6941         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6942         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6943         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6944         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6945         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6946         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6947         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6948         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6949         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6950         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6951         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6952         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6953         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6954         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6955         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6956         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6957         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6958         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6959         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6960         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6961         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6962         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6963         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6964         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6965         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6966         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6967         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6968         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6969         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6970         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6971         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6972         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6973         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6974         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6975         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6976         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6977         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6978         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6979         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6980         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6981         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6982         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6983         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6984         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6985         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6986         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6987         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6988         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6989         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6990         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6991         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6992         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6993         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6994         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6995         Require >= 2.
6996         (FLT_ROUNDS): Expect as macro, not constant.
6997         (FLT_MANT_DIG): Use macro-int-constant.
6998         (DBL_MANT_DIG): Likewise.
6999         (LDBL_MANT_DIG): Likewise.
7000         (FLT_DIG): Likewise.
7001         (DBL_DIG): Likewise.
7002         (LDBL_DIG): Likewise.
7003         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7004         (DBL_MIN_EXP): Likewise.
7005         (LDBL_MIN_EXP): Likewise.
7006         (FLT_MAX_EXP): Use macro-int-constant.
7007         (DBL_MAX_EXP): Likewise.
7008         (LDBL_MAX_EXP): Likewise.
7009         (FLT_MAX_10_EXP): Likewise.
7010         (DBL_MAX_10_EXP): Likewise.
7011         (LDBL_MAX_10_EXP): Likewise.
7012         (FLT_MAX): Use macro-constant.
7013         (DBL_MAX): Likewise.
7014         (LDBL_MAX): Likewise.
7015         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7016         (DBL_EPSILON): Likewise.
7017         (LDBL_EPSILON): Likewise.
7018         (FLT_MIN): Likewise.
7019         (DBL_MIN): Likewise.
7020         (LDBL_MIN): Likewise.
7021         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7022         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7023         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7024         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7025         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7026         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7027         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7028         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7029         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7030         [ISO11] (FLT_TRUE_MIN): Likewise.
7031         [ISO11] (LDBL_TRUE_MIN): Likewise.
7032         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7033         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7034         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7035         (SCHAR_MAX): Likewise.
7036         (UCHAR_MAX): Likewise.
7037         (CHAR_MIN): Likewise.
7038         (CHAR_MAX): Likewise.
7039         (MB_LEN_MAX): Use macro-int-constant.
7040         (SHRT_MIN): Use macro-int-constant.  Specify type.
7041         (SHRT_MAX): Likewise.
7042         (USHRT_MAX): Likewise.
7043         (INT_MAX): Likewise.
7044         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7045         bound negative.
7046         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7047         bound with "U".
7048         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7049         bound with "L".
7050         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7051         bound negative.  Suffix upper bound with "L".
7052         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7053         bound with "UL".
7054         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7055         Specify type.
7056         [C99-based standards] (LLONG_MAX): Likewise.
7057         [C99-based standards] (ULLONG_MAX): Likewise.
7058         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7059         == 0.
7060         [ISO11] (max_align_t): Require type.
7061         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7062
7063         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7064         from $CFLAGS, without defining away __attribute__ calls.
7065         (checknamespace): Use $CFLAGS_namespace.
7066
7067         * conform/conformtest.pl (@keywords): Only include C99 keywords
7068         for standards based on C99 or C11.
7069
7070         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7071         Disable tests.
7072         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7073         UNIX98]: Likewise.
7074
7075         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7076         usability of symbols in #if.
7077
7078         * conform/conformtest.pl: If macro or constant types start
7079         "promoted:", expect the symbol to be of the following type
7080         promoted by the integer promotions.
7081
7082         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7083         in one place.  Also handle "macro-constant".
7084
7085         * conform/conformtest.pl: Only accept expected macro values with
7086         "==".  Parse all "macro" lines in one place.
7087         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7088
7089         * conform/conformtest.pl: Handle braced types on "constant" lines
7090         instead of handling "typed-constant".
7091         * conform/data/signal.h-data: Use "constant" instead of
7092         "typed-constant".
7093
7094         * conform/conformtest.pl: Handle "optional-" at start of lines in
7095         one place rather than duplicating several cases.  Handle each
7096         format of "macro" line with initial "optional-".
7097
7098         * conform/conformtest.pl: Only accept expected constant or
7099         optional-constant values with "==".  Parse all "constant" lines in
7100         one place.  Parse all "optional-constant" lines in one place.
7101         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7102         * conform/data/fmtmsg.h-data: Likewise.
7103         * conform/data/netinet/in.h-data: Likewise.
7104         * conform/data/tar.h-data: Likewise.
7105         * conform/data/limits.h-data: Use "==" form on "constant" and
7106         "optional-constant" lines.
7107
7108         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7109         Use -std=c99 for XOPEN2K.
7110         (@knownproblems): Remove.
7111         (newtoken): Don't check %isknown.
7112
7113         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7114         Do not expect macro.
7115         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7116         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7117         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7118         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7119         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7120         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7121         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7122         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7123         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7124         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7125         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7126         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7127         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7128         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7129         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7130         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7131         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7132         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7133         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7134         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7135         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7136         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7137         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7138         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7139         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7140         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7141         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7142         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7143         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7144         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7145         [XPG3] (acosh): Likewise.
7146         [XPG3] (asinh): Likewise.
7147         [XPG3] (atanh): Likewise.
7148         [XPG3] (cbrt): Likewise.
7149         [XPG3] (expm1): Likewise.
7150         [XPG3] (ilogb): Likewise.
7151         [XPG3] (log1p): Likewise.
7152         [XPG3] (logb): Likewise.
7153         [XPG3] (nextafter): Likewise.
7154         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7155         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7156         [XPG3] (remainder): Likewise.
7157         [XPG3] (rint): Likewise.
7158         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7159         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7160         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7161         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7162         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7163         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7164         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7165         [UNIX98 || XOPEN2K] (scalb): Expect.
7166         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7167         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7168         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7169         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7170         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7171         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7172         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7173         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7174         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7175         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7176         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7177         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7178         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7179         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7180         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7181         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7182         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7183         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7184         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7185         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7186         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7187         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7188         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7189         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7190         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7191         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7192         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7193         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7194         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7195         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7196         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7197         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7198         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7199         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7200         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7201         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7202         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7203         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7204         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7205         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7206         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7207         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7208         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7209         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7210         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7211         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7212         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7213         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7214         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7215         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7216         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7217         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7218         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7219         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7220         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7221         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7222         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7223         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7224         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7225         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7226         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7227         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7228         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7229         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7230         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7231         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7232         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7233         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7234         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7235         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7236         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7237         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7238         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7239         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7240         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7241         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7242         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7243         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7244         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7245         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7246         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7247         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7248         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7249         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7250         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7251         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7252         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7253         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7254         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7255         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7256         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7257         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7258         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7259         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7260         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7261         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7262         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7263         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7264         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7265         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7266         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7267         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7268         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7269         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7270         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7271         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7272         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7273         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7274         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7275         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7276         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7277         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7278         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7279         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7280         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7281         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7282         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7283         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7284         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7285         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7286         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7287         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7288         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7289         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7290         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7291         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7292         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7293         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7294         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7295         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7296         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7297         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7298         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7299         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7300         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7301         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7302         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7303
7304         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7305         _XOPEN_SOURCE_EXTENDED for XPG4.
7306
7307         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7308
7309         * Makeconfig (localtime): Remove variable.
7310         (inst_localtime-file): Likewise.
7311
7312 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7313
7314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7315         Update.
7316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7317         Update.
7318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7319         Update.
7320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7321         Update.
7322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7323         Update.
7324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7325         Update.
7326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7327         Update.
7328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7329         Update.
7330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7331         Update.
7332
7333 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7334
7335         [BZ #2550]
7336         [BZ #2570]
7337         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7338         comparisons to determine direction to adjust input.
7339         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7340         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7341         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7342         Likewise.
7343         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7344         Likewise.
7345         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7346         Likewise.
7347         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7348         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7349         Likewise.
7350         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7351         Likewise.
7352         * math/libm-test.inc (nexttoward_test): Add more tests.
7353
7354 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7355
7356         [BZ #14040]
7357         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7358         in version GLIBC_2.1, not GLIBC_2.0.
7359         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7360         Likewise.
7361
7362 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7363
7364         [BZ #13942]
7365         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7366         (1 - x) * (1 + x).
7367         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7368         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7369         * math/libm-test.inc (acos_test): Add more tests.
7370         (asin_test): Likewise.
7371         * sysdeps/i386/fpu/libm-test-ulps: Update.
7372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7373
7374         [BZ #14034]
7375         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7376         of square root.
7377         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7378         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7379         * math/libm-test.inc (acos_test_tonearest): New function.
7380         (acos_test_towardzero): Likewise.
7381         (acos_test_downward): Likewise.
7382         (acos_test_upward): Likewise.
7383         (asin_test_tonearest): Likewise.
7384         (asin_test_towardzero): Likewise.
7385         (asin_test_downward): Likewise.
7386         (asin_test_upward): Likewise.
7387         (main): Call the new functions.
7388         * sysdeps/i386/fpu/libm-test-ulps: Update.
7389         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7390
7391         [BZ #13884]
7392         [BZ #13924]
7393         * math/e_exp10.c: Include <float.h>.
7394         (__ieee754_exp10): Handle underflow here rather than multiplying
7395         large negative argument by M_LN10.
7396         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7397         of __ieee754_expf.
7398         * math/e_exp10l.c: Include <float.h>.
7399         (__ieee754_exp10l): Handle underflow here rather than multiplying
7400         large negative argument by M_LN10l.
7401         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7402         spurious overflow exception on underflow.
7403
7404 2012-04-29  Marek Polacek  <polacek@redhat.com>
7405
7406         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7407         (__fortify_function): New macro.
7408         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7409         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7410         __extern_always_inline.
7411         * libio/bits/stdio2.h: Likewise.
7412         * libio/bits/stdio.h: Likewise.
7413         * string/string.h: Likewise.
7414         * string/bits/string3.h: Likewise.
7415         * include/stdio.h: Likewise.
7416         * stdlib/bits/stdlib.h: Likewise.
7417         * stdlib/stdlib.h: Likewise.
7418         * rt/bits/mqueue2.h: Likewise.
7419         * rt/mqueue.h: Likewise.
7420         * posix/bits/unistd.h: Likewise.
7421         * posix/unistd.h: Likewise.
7422         * io/bits/poll2.h: Likewise.
7423         * io/bits/fcntl2.h: Likewise.
7424         * io/fcntl.h: Likewise.
7425         * io/sys/poll.h: Likewise.
7426         * misc/bits/syslog.h: Likewise.
7427         * misc/bits/syslog-ldbl.h: Likewise.
7428         * misc/sys/syslog.h: Likewise.
7429         * socket/bits/socket2.h: Likewise.
7430         * socket/sys/socket.h: Likewise.
7431         * debug/tst-chk1.c: Likewise.
7432         * wcsmbs/bits/wchar2.h: Likewise.
7433         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7434         * wcsmbs/wchar.h: Likewise.
7435
7436 2012-04-29  Andreas Jaeger  <aj@suse.de>
7437
7438         * Makerules (tests): Remove enable-check-abi protection.
7439         (check-abi-warn): Remove.
7440         (check-abi-%): Remove check-abi-warn usage.
7441
7442         * configure.in: Remove check-abi configure option.
7443         * configure: Regenerated.
7444         * config.make.in (enable-check-abi): Remove.
7445
7446 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7447
7448         [BZ #14033]
7449         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7450         double functions to double *_finite functions.
7451
7452         [BZ #13941]
7453         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7454         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7455         LDBL_MIN_EXP.
7456         * stdio-common/Makefile (tests): Add tst-sprintf3.
7457         * stdio-common/tst-sprintf3.c: New file.
7458
7459         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7460         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7461
7462 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7463
7464         * conform/conformtest.pl: Remove duplicate typed-constant
7465         handling.
7466
7467 2012-04-28  David S. Miller  <davem@davemloft.net>
7468
7469         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7470         (check-abi-%): Remove AWK script prerequisite and explicit
7471         abilist directory.
7472         (check-abi): Rewrite to just diff the symlist with the abilist.
7473         (config-tls, config-abi-config): Delete, no longer used.
7474         (update-abi-%): Remove AWK script and explicit abilist directory.
7475         (update-abi): Rewrite to simply compare and conditionally copy the
7476         symlist and the sysdep abilist file.  Remove update-abi-config
7477         checks.
7478         * abilist/ld.abilist: Remove.
7479         * abilist/libBrokenLocale.abilist: Remove.
7480         * abilist/libanl.abilist: Remove.
7481         * abilist/libcrypt.abilist: Remove.
7482         * abilist/libdl.abilist: Remove.
7483         * abilist/librt.abilist: Remove.
7484         * abilist/libthread_db.abilist: Remove.
7485         * abilist/libutil.abilist: Remove.
7486         * scripts/extract-abilist.awk: Remove.
7487         * scripts/merge-abilist.awk: Remove.
7488         * sysdeps/generic/libcidn.abilist: New file.
7489         * sysdeps/generic/libnss_compat.abilist: New file.
7490         * sysdeps/generic/libnss_db.abilist: New file.
7491         * sysdeps/generic/libnss_dns.abilist: New file.
7492         * sysdeps/generic/libnss_files.abilist: New file.
7493         * sysdeps/generic/libnss_hesiod.abilist: New file.
7494         * sysdeps/generic/libnss_nis.abilist: New file.
7495         * sysdeps/generic/libnss_nisplus.abilist: New file.
7496         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7497         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7498         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7499         file.
7500         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7501         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7502         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7503         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7504         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7505         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7506         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7507         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7508         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7509         file.
7510         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7511         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7512         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7513         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7514         file.
7515         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7516         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7517         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7518         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7519         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7520         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7521         file.
7522         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7523         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7524         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7525         file.
7526         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7527         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7528         New file.
7529         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7530         New file.
7531         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7532         New file.
7533         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7534         New file.
7535         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7536         New file.
7537         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7538         New file.
7539         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7540         New file.
7541         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7542         New file.
7543         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7544         New file.
7545         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7546         New file.
7547         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7548         New file.
7549         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7550         New file.
7551         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7552         New file.
7553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7554         file.
7555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7556         New file.
7557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7558         New file.
7559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7560         file.
7561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7562         New file.
7563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7564         New file.
7565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7566         file.
7567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7568         New file.
7569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7570         New file.
7571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7572         New file.
7573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7574         New file.
7575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7576         New file.
7577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7578         New file.
7579         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7580         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7581         file.
7582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7583         New file.
7584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7585         file.
7586         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7587         file.
7588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7589         file.
7590         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7591         file.
7592         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7593         file.
7594         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7595         New file.
7596         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7597         file.
7598         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7599         file.
7600         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7601         New file.
7602         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7603         file.
7604         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7605         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7606         file.
7607         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7608         New file.
7609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7610         file.
7611         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7612         file.
7613         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7614         file.
7615         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7616         file.
7617         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7618         file.
7619         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7620         New file.
7621         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7622         file.
7623         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7624         file.
7625         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7626         New file.
7627         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7628         file.
7629         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7630         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7631         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7632         file.
7633         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7634         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7635         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7636         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7637         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7638         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7639         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7640         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7641         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7642         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7643         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7644         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7645         file.
7646         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7647         New file.
7648         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7649         file.
7650         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7651         file.
7652         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7653         file.
7654         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7655         file.
7656         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7657         file.
7658         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7659         New file.
7660         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7661         New file.
7662         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7663         file.
7664         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7665         New file.
7666         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7667         file.
7668         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7669         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7670         file.
7671         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7672         New file.
7673         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7674         file.
7675         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7676         file.
7677         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7678         file.
7679         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7680         file.
7681         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7682         file.
7683         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7684         New file.
7685         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7686         New file.
7687         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7688         file.
7689         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7690         New file.
7691         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7692         file.
7693
7694 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7695
7696         * conform/conformtest.pl: Fix typo in handling typed-constant from
7697         allow-header.
7698
7699 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7700
7701         * README: Cut down references to pre-2.6 Linux kernels and
7702         Linuxthreads.  Update lists of configurations in libc and ports
7703         and sort alphabetically.  Say "or newer" with Linux kernel version
7704         requirements.
7705
7706         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7707
7708 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7709
7710         [BZ #887]
7711         * math/libm-test.inc (logb_test_downward): New test to expose
7712         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7713         rounding mode.
7714
7715 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7716
7717         [BZ #14027]
7718         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7719         to be done.
7720         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7721         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7722
7723 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7724
7725         * sysdeps/unix/i386/brk.S: Remove file.
7726         * sysdeps/unix/i386/dl-brk.S: Likewise.
7727         * sysdeps/unix/i386/pipe.S: Likewise.
7728         * sysdeps/unix/i386/sigreturn.S: Likewise.
7729         * sysdeps/unix/i386/syscall.S: Likewise.
7730         * sysdeps/unix/i386/vfork.S: Likewise.
7731         * sysdeps/unix/i386/wait.S: Likewise.
7732
7733         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7734         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7735
7736         * configure.in (arm*-none*): Do not allow without
7737         --enable-hacker-mode.
7738         (netbsd*): Remove case setting base_os.
7739         (386bsd*): Likewise.
7740         (freebsd*): Likewise.
7741         (bsdi*): Likewise.
7742         (osf*): Likewise.
7743         (sunos*): Likewise.
7744         (ultrix*): Likewise.
7745         (newsos*): Likewise.
7746         (dynix*): Likewise.
7747         (*bsd*): Likewise.
7748         (sysv*): Likewise.
7749         (isc*): Likewise.
7750         (esix*): Likewise.
7751         (sco*): Likewise.
7752         (minix*): Likewise.
7753         (irix4*): Likewise.
7754         (irix6*): Likewise.
7755         (solaris[2-9]*): Likewise.
7756         (none): Likewise.
7757         * configure: Regenerated.
7758
7759 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7760
7761         [BZ #11521]
7762         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7763         overflow or cancellation in calculating denominator.
7764         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7765         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7766         down expression to avoid unexpected rounding in newer GCCs.
7767         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7768
7769 2012-04-26  David S. Miller  <davem@davemloft.net>
7770
7771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7772         long-double compat symbols.
7773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7779         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7781         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7782         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7783         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7784         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7785         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7786
7787 2012-04-25  David S. Miller  <davem@davemloft.net>
7788
7789         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7790         HWCAP_* values only after the memory barriers have been defined.
7791         (atomic_full_barrier): Define.
7792         (atomic_read_barrier): Define.
7793         (atomic_write_barrier): Define.
7794
7795 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7796
7797         * shlib-versions: Add libgcc_s version information.
7798         * sysdeps/generic/libgcc_s.h: Remove.
7799         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7800         libgcc_s.h.
7801         * sysdeps/gnu/unwind-resume.c: Likewise.
7802         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7803
7804 2012-04-25  David S. Miller  <davem@davemloft.net>
7805
7806         * sysdeps/unix/sparc/brk.S: Delete.
7807         * sysdeps/unix/sparc/dl-brk.S: Delete.
7808         * sysdeps/unix/sparc/pipe.S: Delete.
7809         * sysdeps/unix/sparc/sysdep.S: Delete.
7810         * sysdeps/unix/sparc/sysdep.h: Delete.
7811         * sysdeps/unix/sparc/vfork.S: Delete.
7812         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7813         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7814         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7815         ret_ERRVAL, r0, r1, MOVE): Define.
7816         (JUMPTARGET): Remove.
7817         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7818         sysdeps/unix/sparc/sysdep.h
7819         (ENTRY, END): Remove.
7820         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7821
7822 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7823
7824         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7825         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7826         -DIS_IN_build.
7827
7828         * timezone/README: Update upstream location and email address for
7829         tzcode and tzdata.
7830         * timezone/zdump.c: Update from tzcode 2012b.
7831         * timezone/zic.c: Likewise.
7832
7833         * configure.in (libc_cv_as_needed): Remove test.
7834         * configure: Regenerated.
7835         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7836         conditional definition.
7837         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7838         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7839         * config.make.in (have-as-needed): Remove variable.
7840
7841 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7842             Paul Pluzhnikov  <ppluzhnikov@google.com>
7843
7844         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7845         strings correctly.
7846
7847 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7848
7849         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7850         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7851         * sysdeps/sh/strlen.S: Likewise.
7852
7853 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7854
7855         * sysdeps/unix/fork.S: Remove file.
7856         * sysdeps/unix/i386/fork.S: Likewise.
7857         * sysdeps/unix/sparc/fork.S: Likewise.
7858
7859         * sysdeps/unix/system.c: Remove file.
7860         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7861
7862         * sysdeps/unix/getegid.S: Remove file.
7863         * sysdeps/unix/geteuid.S: Likewise.
7864
7865 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7866
7867         * scripts/check-localplt.awk: New file.
7868         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7869         of diff.
7870         * scripts/data/localplt-generic.data: Add a comment.
7871
7872         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7873         NODE when __dir_mkfile failed.
7874         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7875         Reported by Ludovic Courtès <ludo@gnu.org>.
7876
7877 2012-04-24  Andreas Jaeger  <aj@suse.de>
7878
7879         * Makerules (common-clean): Also remove gen-as-const-headers
7880         files.
7881
7882 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7883
7884         * Makerules (native-compile): Do not change working directory for
7885         build.  Use $(OUTPUT_OPTION) in command.
7886         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7887
7888 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7889
7890         [BZ #13886]
7891         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7892         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7893         * math/libm-test.inc (floor_test): Add more tests.
7894         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7895
7896 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7897
7898         * sysdeps/unix/getdents.c: Remove file.
7899         * sysdeps/unix/sysv/getdents.c: Likewise.
7900         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7901
7902         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7903         sysdeps/unix/mman/syscalls.list.
7904         (mmap): Likewise.
7905         (mprotect): Likewise.
7906         (msync): Likewise.
7907         (munmap): Likewise.
7908         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7909         * sysdeps/unix/mman/syscalls.list: Remove.
7910         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7911
7912         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7913         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7914         * configure: Regenerated.
7915         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7916         $(libgcc_s_suffix).
7917         * config.make.in (libgcc_s_suffix): Remove variable.
7918
7919 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7920
7921         * sysdeps/unix/sysv/gethostname.c: Move to ...
7922         * sysdeps/posix/gethostname.c: ... here.
7923
7924         * sysdeps/unix/execve.S: Remove file.
7925
7926         * sysdeps/unix/_exit.S: Remove file.
7927
7928 2012-04-23  Andreas Jaeger  <aj@suse.de>
7929
7930         [BZ #13739]
7931         * manual/Makefile: Remove make dist support, there's no
7932         need for a stand-alone documentation tar ball.
7933         (TEXI2DVI): Define always, it's not in Makeconfig.
7934         (dist): Removed.
7935         (tar-it): Removed.
7936         (edition): Removed.
7937         (glibc-doc-$(edition).tar): Removed
7938         (%.Z): Removed.
7939         (%.gz): Removed.
7940         (%.uu): Removed.
7941         (ETAGS): Remove, it's in Makeconfig.
7942         (move-if-change): Remove, it's in Makeconfig.
7943
7944 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7945
7946         [BZ #13970]
7947         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7948         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7949         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7950         (strtod_l, strtof_l, strtold_l): Remove __wur.
7951         It is not necessarily an error to ignore strtol's return value.
7952         One can reliably look at the stored endptr to decide whether
7953         the number had valid syntax.
7954
7955 2012-04-21  Andreas Jaeger  <aj@suse.de>
7956
7957         [BZ #13739]
7958         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7959
7960 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7961
7962         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7963         * sysdeps/unix/sysv/Versions: Remove file.
7964
7965 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7966
7967         [BZ #13927]
7968         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7969
7970 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7971
7972         [BZ #7064]
7973         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7974         version from __vm86.
7975
7976 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7977
7978         * sysdeps/unix/common/lxstat.c: Remove file.
7979         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7980
7981         * sysdeps/unix/sysv/Makefile: Remove file.
7982
7983         * sysdeps/unix/sysv/direct.h: Remove file.
7984
7985         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7986         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7987         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7988         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7989         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7990         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7991         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7992
7993         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7994
7995         * sysdeps/unix/xmknod.c: Remove file.
7996         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7997
7998         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7999
8000         * sysdeps/unix/sysv/i386/time.S: Remove file.
8001
8002         * sysdeps/unix/fxstat.c: Remove file.
8003         * sysdeps/unix/xstat.c: Likewise.
8004         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8005
8006         * sysdeps/unix/sysv/sigaction.c: Remove file.
8007
8008         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8009         (sysdep_headers): Remove variable.
8010         [termio.h not in sysdep_headers] (generated): Likewise.
8011         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8012         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8013         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8014         * sysdeps/unix/sysv/tcflow.c: Likewise.
8015         * sysdeps/unix/sysv/tcflush.c: Likewise.
8016         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8017         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8018         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8019         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8020         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8021
8022         * sysdeps/unix/siglist.c: Remove file.
8023
8024         * sysdeps/unix/getppid.S: Remove file.
8025
8026         * sysdeps/unix/mkdir.c: Remove file.
8027         * sysdeps/unix/rmdir.c: Likewise.
8028
8029 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8030
8031         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8032         ERR_MAX value.
8033         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8034         errlist-compat value.
8035
8036 2012-04-18  David S. Miller  <davem@davemloft.net>
8037
8038         * sysdeps/generic/memcopy.h (reg_char): Delete.
8039         * debug/strcat_chk.c: Use char, not reg_char.
8040         * debug/strcpy_chk.c: Likewise.
8041         * debug/strncat_chk.c: Likewise.
8042         * debug/strncpy_chk.c: Likewise.
8043         * string/memchr.c: Likewise.
8044         * string/memrchr.c: Likewise.
8045         * string/rawmemchr.c: Likewise.
8046         * string/strcat.c: Likewise.
8047         * string/strchr.c: Likewise.
8048         * string/strchrnul.c: Likewise.
8049         * string/strcmp.c: Likewise.
8050         * string/strcpy.c: Likewise.
8051         * string/strncat.c: Likewise.
8052         * string/strncmp.c: Likewise.
8053         * string/strncpy.c: Likewise.
8054
8055 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8056
8057         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8058         __builtin_memcopy is called when src and dest ranges are known to not
8059         overlap.
8060
8061 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8062
8063         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8064         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8065         fwd_align_merge macro call.
8066         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8067         bwd_align_merge macro call.
8068         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8069
8070 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8071
8072         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8073         bwd_align_merge macros.
8074         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8075         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8076         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8077
8078 2012-04-18  David S. Miller  <davem@davemloft.net>
8079
8080         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8081
8082 2012-04-18  Andreas Jaeger  <aj@suse.de>
8083
8084         [BZ# 6794]
8085         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8086         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8087         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8088
8089         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8090         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8091         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8092
8093         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8094         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8095         Adjust for changed ldbl-128 files.
8096
8097         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8098         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8099         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8100
8101 2012-04-17  David S. Miller  <davem@davemloft.net>
8102
8103         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8104
8105 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8106
8107         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8108         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8109         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8110         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8111         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8112         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8113
8114 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8115
8116         [BZ #6794]
8117         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8118         * math/libm-test.inc: Add ilogb errno and exception tests.
8119         * math/w_ilogb.c: New file: ilogb wrapper.
8120         * math/w_ilogbf.c: New file: ilogbf wrapper.
8121         * math/w_ilogbl.c: New file: ilogbl wrapper.
8122         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8123         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8124         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8125         exception being thrown with 0.0 as argument.
8126         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8127         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8128         exception being thrown with 0.0 as argument.
8129         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8130         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8131         exception being thrown with 0.0 as argument.
8132         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8133         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8134         exception being thrown with 0.0 as argument.
8135         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8136         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8137         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8138         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8139         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8140         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8141         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8142         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8143         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8144
8145 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8146
8147         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8148         with altivec.
8149
8150 2012-04-16  Marek Polacek  <polacek@redhat.com>
8151
8152         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8153
8154 2012-04-16  Marek Polacek  <polacek@redhat.com>
8155
8156         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8157         operands of fdivp instruction.
8158
8159 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8160
8161         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8162         * elf/tst-auditmod3b.c: Likewise.
8163         * elf/tst-auditmod4b.c: Likewise.
8164         * elf/tst-auditmod5b.c: Likewise.
8165         * elf/tst-auditmod6b.c: Likewise.
8166         * elf/tst-auditmod6c.c: Likewise.
8167         * elf/tst-auditmod7b.c: Likewise.
8168         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8169         * sysdeps/x86_64/preconfigure.in: Likewise.
8170         * sysdeps/x86_64/preconfigure: Regenerated.
8171
8172 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8173
8174         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8175         __ILP32__.
8176
8177 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8178
8179         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8180         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8181
8182 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8183
8184         [BZ #13973]
8185         * locale/iso-639.def: Fix gl language name. Spotted by
8186         Yaron Shahrabani.
8187
8188 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8189
8190         [BZ #2074]
8191         * libio/libio.h (__io_write_fn): Update comment.
8192
8193 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8194
8195         [BZ #2074]
8196         * stdio.texi (Hook Functions): The user provided writer function
8197         is not allowed to return -1.
8198
8199 2012-04-11  David S. Miller  <davem@davemloft.net>
8200
8201         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8202
8203 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8204
8205         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8206         Add a leading slash to rtkaio.
8207
8208 2012-04-11  Jim Meyering  <meyering@redhat.com>
8209
8210         [BZ #11959]
8211         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8212         It is not necessarily an error to ignore fwrite's return
8213         value.  One can reliably use ferror to test for errors after
8214         the fact.
8215
8216 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8217
8218         * bits/types.h (__snseconds_t): New type.
8219         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8220
8221         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8222         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8223         (__SNSECONDS_T_TYPE): Likewise.
8224         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8225         (__SNSECONDS_T_TYPE): Likewise.
8226         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8227         (__SNSECONDS_T_TYPE): Likewise.
8228
8229 2012-04-10  Andreas Jaeger  <aj@suse.de>
8230
8231         [BZ #2636]
8232         * manual/time.texi (Processor Time): Return type of times is
8233         elapsed real time since an arbitrary point in the past.
8234         (CPU Time): Move CLK_TCK from here...
8235         (Processor Time): ...to here.  Correct description.
8236         * manual/conf.texi (Constants for Sysconf): Correct description of
8237         _SC_CLK_TCK.
8238
8239 2012-04-10  David S. Miller  <davem@davemloft.net>
8240
8241         [BZ #13967]
8242         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8243         where the is a gap between DT_REL(A) and DT_JMPREL.
8244
8245 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8246
8247         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8248         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8249         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8250
8251 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8252
8253         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8254         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8255         (dl_main): Handle --inhibit-cache.
8256         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8257         _dl_inhibit_cache.
8258         * elf/dl-load.c (_dl_map_object): Use it.
8259         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8260
8261 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8262
8263         [BZ #13872]
8264         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8265         (__ieee754_powl): Saturate large exponents rather than testing for
8266         overflow of y*log2(x).
8267         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8268         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8269         exceptions.
8270
8271         [BZ #11521]
8272         * math/s_ctan.c: Include <float.h>.
8273         (__ctan): Avoid internal overflow or cancellation in calculating
8274         denominator.
8275         * math/s_ctanf.c: Likewise.
8276         * math/s_ctanl.c: Likewise.
8277         * math/s_ctanh.c: Likewise.
8278         * math/s_ctanhf.c: Likewise.
8279         * math/s_ctanhl.c: Likewise.
8280         * math/libm-test.inc (ctan_test): Add more tests.
8281         (ctanh_test): Likewise.
8282         * sysdeps/i386/fpu/libm-test-ulps: Update.
8283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8284
8285 2012-04-09  Andreas Jaeger  <aj@suse.de>
8286
8287         [BZ #6894]
8288         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8289         is an optional BSD extension.
8290
8291         [BZ #10254]
8292         * manual/stdio.texi (Opening Streams): Document additional fopen
8293         parameters.
8294
8295 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8296
8297         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8298         %eax without telling the compiler.
8299
8300 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8301
8302         [BZ # 13963]
8303         * manual/install.texi: Use sourceware.org.
8304
8305 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8306
8307         [BZ #13873]
8308         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8309         (__ieee754_pow): Generate overflow and underflow using huge*huge
8310         and tiny*tiny rather than just returning constant infinity or zero
8311         for large exponents.
8312         * math/libm-test.inc (pow_test): Require overflow exceptions for
8313         applicable cases of large exponents.
8314
8315         [BZ #706]
8316         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8317         (__ieee754_pow): Use iterative multiplication algorithm only for
8318         integer exponents with absolute value below 1024.  Check for odd
8319         integer exponents when using algorithm for real exponents.
8320         * math/libm-test.inc (pow_test): Add more tests.
8321         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8322
8323 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8324
8325         [BZ #13705]
8326         * math/libm-test.inc (exp_test): Do not allow overflow exception
8327         on underflow test.
8328
8329 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8330
8331         [BZ #13705]
8332         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8333         instead of __kernel_standard_f.
8334
8335 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8336
8337         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8338         * sysdeps/x86_64/memset_chk.S: Likewise.
8339
8340 2012-04-08  Andreas Jaeger  <aj@suse.de>
8341
8342         [BZ #10153]
8343         * manual/startup.texi (Environment Access): Describe return value
8344         for putenv and setenv.
8345
8346         [BZ #6895]
8347         * manual/filesys.texi (Directory Entries): Add description for
8348         DT_LNK.
8349
8350         [BZ #6890]
8351         * manual/filesys.texi (Directory Entries): Clarify that it's file
8352         system not operating system in the description of DT_UNKNOWN.
8353
8354         [BZ #6578]
8355         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8356
8357 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8358
8359         [BZ #6649]
8360         * manual/llio.texi (Opening and Closing Files): Add cross
8361         reference to explain mode argument.
8362
8363 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8364
8365         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8366         * sysdeps/x86_64/memset_chk.S: Likewise.
8367
8368 2012-04-07  David S. Miller  <davem@davemloft.net>
8369
8370         * elf/elf.h (R_SPARC_WDISP10): Define.
8371         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8372         R_SPARC_SIZE32.
8373         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8374         R_SPARC_SIZE64 and R_SPARC_H34.
8375
8376 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8377
8378         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8379         conditions and remove no longer applicable assertion.
8380
8381 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8382
8383         * bits/byteswap.h: Include <features.h>.
8384         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8385         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8386
8387 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8388
8389         * bits/byteswap.h (__bswap_16): Removed.
8390         Include <bits/byteswap-16.h> to get __bswap_16.
8391         * sysdeps/i386/bits/byteswap.h: Likewise.
8392         * sysdeps/s390/bits/byteswap.h: Likewise.
8393         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8394         * bits/byteswap-16.h: New file.
8395         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8396         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8397         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8398         * string/Makefile (headers): Add bits/byteswap-16.h.
8399
8400 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8401
8402         [BZ #13895]
8403         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8404         extra indirection.
8405         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8406         * nss/tst-nss-static.c: New.
8407
8408 2012-04-06  Robert Millan  <rmh@gnu.org>
8409
8410         [BZ #6486]
8411         * manual/llio.texi (File Position Primitive): lseek
8412         refers to WHENCE when it really means OFFSET.
8413
8414 2012-04-06  Andreas Jaeger  <aj@suse.de>
8415
8416         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8417         strncmp declarations.
8418
8419         * abilist/libc.abilist: Add __poll and __ppoll.
8420
8421 2012-04-05  David S. Miller  <davem@davemloft.net>
8422
8423         * scripts/check-local-headers.sh: Accept a host triplet in the
8424         path matched by the exclude regexp.
8425
8426         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8427         definition.
8428         * sysdeps/powerpc/powerpc32/dl-machine.h
8429         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8430         * sysdeps/s390/s390-32/dl-machine.h
8431         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8432         * sysdeps/sparc/sparc32/dl-machine.h
8433         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8434         * sysdeps/sparc/sparc64/dl-machine.h
8435         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8436
8437         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8438         lazy binding.
8439         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8440         undefined symbol errors.
8441
8442         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8443         DT_NEEDED entries.
8444
8445 2012-04-05  Michael Matz  <matz@suse.de>
8446
8447         [BZ #13592]
8448         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8449
8450 2012-04-05  Andreas Jaeger  <aj@suse.de>
8451
8452         [BZ #13908]
8453         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8454         comment.
8455
8456 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8457
8458         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8459         which ROUND is no valid rounding mode.
8460
8461 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8462
8463         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8464         read again.
8465         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8466
8467 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8468
8469         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8470         an exception using FPU order intentionally.
8471
8472 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8473
8474         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8475         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8476         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8477         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8478
8479 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8480
8481         [BZ #12340]
8482         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8483         EINVAL when BUFLEN is too smal.
8484
8485 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8486
8487         [BZ #13553]
8488         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8489         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8490
8491 2012-04-03  Andreas Jaeger  <aj@suse.de>
8492
8493         [BZ #13938]
8494         * manual/setjmp.texi (System V contexts): Fix sentence.
8495
8496         [BZ #13926]
8497         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8498         New macro for this case.
8499         [!__GNUC__] (__bswap_64): New inline function for this case.
8500         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8501         * bits/byteswap.h: Likewise.
8502         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8503         ull, guard with __GLIBC_HAVE_LONG_LONG.
8504
8505         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8506         __GLIBC_HAVE_LONG_LONG.
8507
8508         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8509         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8510
8511 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8512
8513         [BZ #13691]
8514         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8515         inptr and inend, rather than using last_ch.
8516
8517 2012-04-02  David S. Miller  <davem@davemloft.net>
8518
8519         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8520         * stdio-common/printf-parse.h (read_int): Change return type to
8521         'int', return -1 on INT_MAX overflow.
8522         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8523         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8524         overflows INT_MAX.  Check for overflow of in-format-string precision
8525         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8526         SIZE_MAX not INT_MAX for integer overflow test.
8527         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8528         skip the construct in the format string but do not record anything.
8529         * stdio-common/bug22.c: Adjust to test both width/prevision
8530         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8531         explicitly for proper errno values.
8532
8533 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8534
8535         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8536         CHAR_MAX.
8537         * string/test-strcmp.c [! WIDE]: Likewise.
8538         * time/tst-mktime2.c: Likewise for INT_MAX.
8539         * string/test-string.h: #include <sys/param.h> for MIN.
8540
8541         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8542         * sysdeps/i386/init-first.c (init): Likewise.
8543         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8544         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8545         * sysdeps/sh/init-first.c (init): Likewise.
8546
8547 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8548
8549         * po/ru.po: Update from translation team.
8550         * po/vi.po: Likewise.
8551
8552 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8553
8554         * resolv/nss_dns/dns-host.c: Merge copyright years.
8555
8556 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8557
8558         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8559         Optimize memcpy with prefetch if
8560         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8561         src, dst pointers have unequal 16 byte alignments.
8562
8563 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8564
8565         [BZ #13928]
8566         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8567         from a CNAME entry and return the minimum ttl for the query.
8568         (gaih_getanswer_slice): Likewise.
8569
8570 2012-03-30  Jeff Law  <law@redhat.com>
8571
8572         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8573         due to long keys.
8574         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8575         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8576
8577         * resolv/nss_dns/dns-host.c: Update copyright year.
8578
8579 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8580
8581         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8582         requests to save a system call.  Fix check that all bytes are sent.
8583
8584         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8585         comments for sendmmsg.
8586
8587 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8588
8589         [BZ #13691]
8590         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8591         with only 1 character between 0x0041 and 0x01b0.
8592         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8593         * wcsmbs/tst-mbsnrtowcs.c: New file.
8594
8595 2012-03-29  David S. Miller  <davem@davemloft.net>
8596
8597         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8598         small copies by hand.
8599
8600 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8601
8602         [BZ #13761]
8603         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8604         _nss_compat_initgroups_dyn): Fall back to malloc/free
8605         for large group memberships.
8606
8607 2012-03-28  David S. Miller  <davem@davemloft.net>
8608
8609         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8610         that branches into memcpy.
8611         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8612         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8613         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8614         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8615         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8616         bits.
8617         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8618         implementation too.
8619         * sysdeps/sparc/mempcpy.S: New file.
8620
8621         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8622         the IFUNC routine in the libc case.
8623         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8624
8625         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8626         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8627         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8628         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8629         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8630         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8631         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8632         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8633
8634         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8635         loop to 256 bytes instead of 64 bytes and fix test signedness.
8636
8637         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8638         * sysdeps/sparc/sparc32/Makefile: rather than here...
8639         * sysdeps/sparc/sparc64/Makefile: and here.
8640
8641 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8642
8643         * malloc/mallocbug.c: Avoid warnings about unused variables.
8644
8645 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8646
8647         [BZ #13760]
8648         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8649         in the right place. Discard and retry query if response is
8650         larger than input buffer size.
8651
8652 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8653
8654         [BZ #369]
8655         [BZ #2678]
8656         [BZ #3866]
8657         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8658         x for large integer exponent.
8659         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8660         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8661         sign of result as needed afterwards.
8662         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8663         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8664         result for underflowing pow the same as for overflow.
8665         (__kernel_standard_l): Handle powl overflow and underflow here
8666         rather than calling __kernel_standard.
8667         * math/libm-test.inc (pow_test): Add more tests.
8668
8669         [BZ #3868]
8670         [BZ #13879]
8671         [BZ #13910]
8672         [BZ #13911]
8673         [BZ #13912]
8674         [BZ #13913]
8675         [BZ #13915]
8676         [BZ #13916]
8677         [BZ #13917]
8678         [BZ #13918]
8679         [BZ #13919]
8680         [BZ #13920]
8681         [BZ #13921]
8682         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8683         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8684         (__kernel_standard_l): New function.
8685         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8686         __kernel_standard.
8687         * math/w_acosl.c (__acosl): Likewise.
8688         * math/w_asinl.c (__asinl): Likewise.
8689         * math/w_atan2l.c (__atan2l): Likewise.
8690         * math/w_atanhl.c (__atanhl): Likewise.
8691         * math/w_coshl.c (__coshl): Likewise.
8692         * math/w_exp10l.c (__exp10l): Likewise.
8693         * math/w_exp2l.c (__exp2l): Likewise.
8694         * math/w_fmodl.c (__fmodl): Likewise.
8695         * math/w_hypotl.c (__hypotl): Likewise.
8696         * math/w_j0l.c (__j0l, __y0l): Likewise.
8697         * math/w_j1l.c (__j1l, __y1l): Likewise.
8698         * math/w_jnl.c (__jnl, __ynl): Likewise.
8699         * math/w_lgammal.c (__lgammal): Likewise.
8700         * math/w_log10l.c (__log10l): Likewise.
8701         * math/w_log2l.c (__log2l): Likewise.
8702         * math/w_logl.c (__logl): Likewise.
8703         * math/w_powl.c (__powl): Likewise.
8704         * math/w_remainderl.c (__remainderl): Likewise.
8705         * math/w_scalbl.c (sysv_scalbl): Likewise.
8706         * math/w_sinhl.c (__sinhl): Likewise.
8707         * math/w_sqrtl.c (__sqrtl): Likewise.
8708         * math/w_tgammal.c (__tgammal): Likewise.
8709         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8710         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8711         * math/libm-test.inc (acos_test): Add more tests.
8712         (acosh_test): Likewise.
8713         (asin_test): Likewise.
8714         (atanh_test): Likewise.
8715         (exp_test): Likewise.
8716         (exp10_test): Likewise.
8717         (exp2_test): Likewise.
8718         (expm1_test): Likewise.
8719         (lgamma_test): Likewise.
8720         (log_test): Likewise.
8721         (log10_test): Likewise.
8722         (log1p_test): Likewise.
8723         (log2_test): Likewise.
8724         (pow_test): Do not allow some spurious overflow exceptions.
8725         (sqrt_test): Add more tests.
8726         (tgamma_test): Likewise.
8727         (y0_test): Likewise.
8728         (y1_test): Likewise.
8729         (yn_test): Likewise.
8730
8731 2012-03-27  Anton Blanchard  <anton@samba.org>
8732
8733         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8734         MAP_HUGETLB.
8735         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8736         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8737         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8738
8739 2012-03-27  David S. Miller  <davem@davemloft.net>
8740
8741         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8742
8743         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8744         have-as-vis3 check.
8745
8746 2012-03-27  Andreas Jaeger  <aj@suse.de>
8747
8748         * sysdeps/x86_64/elf/configure.in: Moved to ...
8749         * sysdeps/x86_64/configure.in: ... here.
8750         * sysdeps/x86_64/elf/start.S: Moved to ...
8751         * sysdeps/x86_64/start.S: ... here.
8752         * sysdeps/x86_64/elf/configure: Delete.
8753
8754         * sysdeps/x86_64/configure.in: Merge contents from
8755         sysdeps/i386/configure.in (without i686 check).
8756
8757         * sysdeps/i386/elf/Versions: Merge into ...
8758         * sysdeps/i386/Versions: ... this.
8759         * sysdeps/i386/elf/Versions: Delete file.
8760         * sysdeps/i386/elf/start.S: Moved to ...
8761         * sysdeps/i386/start.S: ...here.
8762         * sysdeps/i386/elf/configure.in: Merge into...
8763         * sysdeps/i386/configure.in: ...here.
8764         * sysdeps/i386/elf/configure.in: Delete file.
8765         * sysdeps/i386/elf/configure: Delete file.
8766
8767         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8768         * debug/backtracesyms.c: ... here.
8769         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8770         * debug/backtracesymsfd.c: ... here.
8771         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8772         * sysdeps/generic/ifunc-sel.h: ... here.
8773
8774         * sysdeps/unix/i386/start.c: Delete file.
8775         * sysdeps/unix/sparc/start.c: Delete file.
8776         * sysdeps/unix/start.c: Delete file.
8777
8778         * sysdeps/sh/elf/configure.in: Moved to ...
8779         * sysdeps/sh/configure.in: ... here.
8780         * sysdeps/sh/elf/start.S: Moved to ...
8781         * sysdeps/sh/start.S: ... here.
8782         * sysdeps/sh/elf/configure: Delete file.
8783
8784         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8785         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8786         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8787         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8788         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8789         * sysdeps/powerpc/powerpc64/start.S: here.
8790         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8791         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8792         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8793         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8794         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8795
8796         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8797         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8798         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8799         * sysdeps/powerpc/powerpc32/start.S: ... here.
8800         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8801         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8802         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8803
8804         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8805         * sysdeps/powerpc/ifunc-sel.h: ... here.
8806         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8807         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8808
8809         * sysdeps/sparc/elf/configure.in: Moved to ...
8810         * sysdeps/sparc/configure.in: ... here.
8811         * sysdeps/sparc/elf/configure: Delete file.
8812         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8813         * sysdeps/sparc/sparc32/start.S: ... here.
8814         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8815         * sysdeps/sparc/sparc64/start.S: ... here.
8816         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8817         * sysdeps/sparc/sparc32/Makefile: ... this.
8818         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8819         * sysdeps/sparc/sparc64/Makefile: ... this.
8820
8821         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8822         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
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/setjmp.S: Moved to ...
8826         * sysdeps/s390/s390-32/setjmp.S: ... here.
8827         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8828         * sysdeps/s390/s390-32/configure.in: ... here.
8829         * sysdeps/s390/s390-32/elf/configure: Delete file.
8830         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8831         * sysdeps/s390/s390-32/start.S: ... here.
8832
8833         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8834         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
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/setjmp.S: Moved to ...
8838         * sysdeps/s390/s390-64/setjmp.S: ... here.
8839         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8840         * sysdeps/s390/s390-64/configure.in: ... here
8841         * sysdeps/s390/s390-64/elf/configure: Delete file.
8842         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8843         * sysdeps/s390/s390-64/start.S: ... here.
8844         * sysdeps/s390/s390-64/elf/configure: Delete.
8845
8846         * configure.in: Remove support for elf directories in sysdeps.
8847
8848         * configure: Regenerated.
8849         * sysdeps/i386/configure: Regenerated.
8850         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8851         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8852         * sysdeps/s390/s390-32/configure: Regenerated.
8853         * sysdeps/s390/s390-64/configure: Regenerated.
8854         * sysdeps/sh/configure: Regenerated.
8855         * sysdeps/sparc/configure: Regenerated.
8856         * sysdeps/x86_64/configure: Regenerated.
8857
8858 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8859
8860         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8861
8862         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8863         denormal result into account.
8864
8865 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8866
8867         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8868         Reported by Allan McRae <allan@archlinux.org>.
8869
8870 2012-03-23  Jeff Law  <law@redhat.com>
8871
8872         * nss/getnssent.c (__nss_getent): Fix typo.
8873
8874 2012-03-23  David S. Miller  <davem@davemloft.net>
8875
8876         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8877
8878 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8879
8880         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8881         to pad to uint64_t for each field.
8882         (dl_tls_index): Replace unsigned long with uint64_t.
8883
8884 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8885         Paul Pluzhnikov  <ppluzhnikov@google.com>
8886
8887         [BZ #6528]
8888         * grp/Makefile (otherlibs): Don't set it.
8889         * inet/Makefile (otherlibs): Likewise.
8890         * login/Makefile (otherlibs): Likewise.
8891         * nscd/Makefile (otherlibs): Likewise.
8892         * posix/Makefile (otherlibs): Likewise.
8893         * pwd/Makefile (otherlibs): Likewise.
8894         * rt/Makefile (otherlibs): Likewise.
8895         * sunrpc/Makefile (otherlibs): Likewise.
8896         * nss/Makefile (otherlibs): Likewise.
8897         Add libnss_files to routines and static-only-routines.
8898         ($(objpfx)getent): Remove rule.
8899         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8900         static-only-routines.
8901
8902 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8903
8904         [BZ #13892]
8905         * math/s_cexp.c: Include <float.h>.
8906         (__cexp): Handle exp result overflowing not necessarily
8907         overflowing both real and imaginary parts of result.
8908         * math/s_cexpf.c: Likewise.
8909         * math/s_cexpl.c: Likewise.
8910         * math/libm-test.inc (cexp_test): Add more tests.
8911         * sysdeps/i386/fpu/libm-test-ulps: Update.
8912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8913
8914 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8915
8916         * include/link.h (ELFW): New macro.
8917         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8918         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8919
8920 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8921
8922         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8923         with uint64_t.
8924
8925 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8926
8927         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8928         declaration.
8929         (struct La_x32_retval): Likewise.
8930
8931 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8932
8933         * sysdeps/x86_64/preconfigure.in: New file.
8934         * sysdeps/x86_64/preconfigure: New generated file.
8935
8936 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8937
8938         [BZ #13824]
8939         * math/e_exp2l.c: Include <float.h>.
8940         (__ieee754_exp2l): Handle overflow and underflow cases
8941         separately.  Only pass fractional part of argument to
8942         __ieee754_expl.
8943         * math/libm-test.inc (exp2_test): Add more tests.
8944
8945         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8946         negating x to take absolute value.
8947         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8948         Likewise.
8949         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8950         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8951         Likewise.
8952         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8953         computing low part if x was negated.
8954         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8955
8956 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8957
8958         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8959         la_x32_gnu_pltexit.
8960         (pltexit): Cast int_retval to ptrdiff_t.
8961         * elf/tst-auditmod3b.c: Likewise.
8962         * elf/tst-auditmod4b.c: Likewise.
8963         * elf/tst-auditmod5b.c: Likewise.
8964         * elf/tst-auditmod6b.c: Likewise.
8965         * elf/tst-auditmod6c.c: Likewise.
8966         * elf/tst-auditmod7b.c: Likewise.
8967
8968         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8969         and x32_gnu_pltexit.
8970
8971         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8972         __ELF_NATIVE_CLASS.
8973         (La_x32_regs): New macro.
8974         (La_x32_retval): Likewise.
8975         (la_x32_gnu_pltenter): New function prototype.
8976         (la_x32_gnu_pltexit): Likewise.
8977
8978 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8979
8980         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8981         exponent.
8982
8983         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8984
8985         * configure.in (libc_cv_cc_nofma): Check for option to disable
8986         generation of FMA instructions.
8987         * configure: Regenerate.
8988         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8989         * sysdeps/ieee754/dbl-64/Makefile: New file.
8990         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8991         Remove brandred-fma4.
8992         (CFLAGS-brandred-fma4.c): Remove.
8993         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8994         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8995         define.
8996         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8997         define.
8998
8999 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9000
9001         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9002         LLONG_MAX != LONG_MAX.
9003         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9004         (_fitoa_word): Likewise.
9005         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9006         LLONG_MAX != LONG_MAX.
9007         * stdio-common/_itowa.h: Include <_itoa.h>.
9008         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9009         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9010         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9011         only if not defined.
9012         (_ITOA_WORD_TYPE): Likewise.
9013         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9014         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9015
9016 2012-03-21  David S. Miller  <davem@davemloft.net>
9017
9018         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9019
9020 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9021
9022         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9023         of x86_64 when setting libc_cv_slibdir, libdir and
9024         libc_cv_localedir.
9025         * sysdeps/unix/sysv/linux/configure: Regenerated.
9026
9027 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9028
9029         * manual/lang.texi (Old Varargs): Remove section.
9030         (How Variadic): Update menu.
9031         (va_start): Do not mention varargs.h.
9032
9033 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9034             Joseph Myers  <joseph@codesourcery.com>
9035
9036         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9037         link test.
9038         * configure: Regenerated.
9039
9040 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9041
9042         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9043         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9044         conformtest.pl
9045
9046 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9047
9048         * NOTES: Remove.
9049         * Makefile (files-for-dist): Remove NOTES.
9050         (NOTES): Remove rule.
9051         * README: Don't refer to NOTES.
9052         * manual/creature.texi: Don't include macros.texi.
9053         * manual/intro.texi (creature.texi): Remove comment referring to
9054         NOTES.
9055
9056         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9057         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9058         * configure: Regenerated.
9059         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9060         LIBC_TRY_CC_OPTION.
9061         (libc_cv_as_i686): Likewise.
9062         (libc_cv_cc_avx): Likewise.
9063         (libc_cv_cc_sse2avx): Likewise.
9064         (libc_cv_cc_fma4): Likewise.
9065         (libc_cv_cc_novzeroupper): Likewise.
9066         * sysdeps/i386/configure: Regenerated.
9067
9068         [BZ #13883]
9069         * sysdeps/i386/fpu/s_cexp.S: Remove.
9070         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9071         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9072         * math/libm-test.inc (cexp_test): Add more tests.
9073         * sysdeps/i386/fpu/libm-test-ulps: Update.
9074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9075
9076 2012-03-21  Allan McRae  <allan@archlinux.org>
9077
9078         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9079
9080 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9081
9082         [BZ #13871]
9083         * math/w_exp2.c: Do not include <float.h>.
9084         (o_threshold, u_threshold): Remove.
9085         (__exp2): Calculate result before checking finiteness and calling
9086         __kernel_standard.
9087         * math/w_exp2f.c: Likewise.
9088         * math/w_exp2l.c: Likewise.
9089         * math/libm-test.inc (exp2_test): Require overflow exception for
9090         1e6 input.
9091
9092         [BZ #3866]
9093         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9094         range of signed 64-bit integers before using fistpll.  Remove
9095         checks for whether integers fit in mantissa bits.
9096         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9097         the range of signed 32-bit integers before using fistpl.  Remove
9098         checks for whether integers fit in mantissa bits.
9099         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9100         (__ieee754_powl): Test for y outside the range of signed 64-bit
9101         integers before using fistpll.  Reduce 64-bit values to 63-bit
9102         ones as needed.
9103         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9104         divide-by-zero is raised for zero to large negative powers.
9105         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9106         (__ieee754_powl): Test for y outside the range of signed 64-bit
9107         integers before using fistpll.  Reduce 64-bit values to 63-bit
9108         ones as needed.
9109         * math/libm-test.inc (pow_test): Add more tests.
9110
9111 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9112
9113         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9114         <stdio-common/_itoa.h>.
9115         * debug/segfault.c: Likewise.
9116         * elf/dl-cache.c: Likewise.
9117         * elf/dl-minimal.c: Likewise.
9118         * elf/dl-misc.c: Likewise.
9119         * elf/dl-sysdep.c: Likewise.
9120         * elf/dl-version.c: Likewise.
9121         * elf/rtld.c: Likewise.
9122         * hurd/hurdsock.c: Likewise.
9123         * hurd/lookup-retry.c: Likewise.
9124         * malloc/malloc.c: Likewise.
9125         * malloc/mtrace.c: Likewise.
9126         * nscd/nscd_getgr_r.c: Likewise.
9127         * nscd/nscd_getpw_r.c: Likewise.
9128         * nscd/nscd_getserv_r.c: Likewise.
9129         * posix/getopt_init.c: Likewise.
9130         * posix/wordexp.c: Likewise.
9131         * stdio-common/_itoa.c: Likewise.
9132         * stdio-common/printf_fphex.c: Likewise.
9133         * stdio-common/vfprintf.c: Likewise.
9134         * string/_strerror.c: Likewise.
9135         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9136         * sysdeps/i386/i686/hp-timing.h: Likewise.
9137         * sysdeps/mach/_strerror.c: Likewise.
9138         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9139         * sysdeps/mach/hurd/sethostid.c: Likewise.
9140         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9141         * sysdeps/mach/xpg-strerror.c: Likewise.
9142         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9143         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9144         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9145         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9146         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9147         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9148         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9149         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9150         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9151         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9152         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9153         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9154         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9155         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9156         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9157         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9158         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9159         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9160         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9161         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9162         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9163
9164         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9165
9166         * stdio-common/_itoa.h: Moved to ...
9167         * sysdeps/generic/_itoa.h: Here.
9168
9169         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9170
9171         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9172         instead of "_itoa.h" and "_itowa.h".
9173         * stdio-common/vfprintf.: Likewise.
9174
9175 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9176
9177         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9178         <bits/wordsize.h>.
9179         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9180         (__signbit): Likwise.
9181         (llrintf): Likwise.
9182         (llrint): Likwise.
9183
9184 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9185
9186         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9187         __WORDSIZE != 64.
9188
9189 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9190
9191         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9192         OVERFLOW_EXCEPTION_OK.
9193         * math/libm-test.inc ("Philosophy"): Update comment about
9194         exception testing.
9195         (OVERFLOW_EXCEPTION): Define.
9196         (OVERFLOW_EXCEPTION_OK): Likewise.
9197         (INVALID_EXCEPTION_OK): Renumber.
9198         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9199         (IGNORE_ZERO_INF_SIGN): Likewise.
9200         (test_exceptions): Handle FE_OVERFLOW.
9201         (exp10_test): Expect overflow exceptions.
9202         (exp2_test): Likewise.
9203         (expm1_test): Likewise.
9204         (nextafter_test): Likewise.
9205         (pow_test): Likewise.
9206         (scalbn_test): Likewise.
9207         (scalbln_test): Likewise.
9208
9209 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9210
9211         * sysdeps/x86_64/bits/atomic.h
9212         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9213         64bit integer.
9214         (atomic_exchange_acq): Likewise.
9215         (__arch_exchange_and_add_body): Likewise.
9216         (__arch_add_body): Likewise.
9217         (atomic_add_negative): Likewise.
9218         (atomic_add_zero): Likewise.
9219
9220 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9221
9222         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9223         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9224
9225 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9226
9227         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9228         Check __x86_64__ instead of __WORDSIZE.
9229
9230 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9231
9232         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9233
9234 2012-03-19  David S. Miller  <davem@davemloft.net>
9235
9236         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9237
9238         * sysdeps/sparc/fpu/fenv_private.h: New file.
9239         * sysdeps/sparc/fpu/math_private.h: Use it.
9240         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9241         Remove.
9242         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9243         (libc_feholdexcept_setroundl): Remove.
9244         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9245         Remove.
9246         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9247         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9248
9249 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9250
9251         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9252         int64_t instead of long int.
9253         (INSERT_WORDS64): Likwise.
9254
9255 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9256
9257         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9258         _Unwind_GetCFA return to _Unwind_Ptr first.
9259
9260 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9261
9262         [BZ #13629]
9263         * math/s_clog.c: Include <float.h>.
9264         (__clog): Scale large or subnormal inputs.
9265         * math/s_clogf.c: Likewise.
9266         * math/s_clogl.c: Likewise.
9267         * math/s_clog10.c: Include <float.h>.
9268         (M_LOG10_2): Define.
9269         (__clog10): Scale large or subnormal inputs.
9270         * math/s_clog10f.c: Likewise.
9271         * math/s_clog10l.c: Likewise.
9272         * math/libm-test.inc (clog_test): Add more tests.
9273         (clog10_test): Likewise.
9274         * sysdeps/i386/fpu/libm-test-ulps: Update.
9275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9276
9277         [BZ #11451]
9278         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9279         x and y.
9280         * math/libm-test.inc (atan2_test): Add another test.
9281
9282         * Makerules (common-objdir-compile): Remove.
9283         * sysdeps/unix/Makefile (config-generated): Do not add
9284         $(unix-generated) to variable.
9285         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9286         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9287         Remove rule.
9288         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9289         Likewise.
9290         [generic bits/local_lim.h] (before-compile): Do not append to
9291         variable.
9292         [generic bits/local_lim.h] (common-generated): Likewise.
9293         [generic sys/param.h] (before-compile): Do not append to variable.
9294         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9295         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9296         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9297         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9298         include.
9299         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9300         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9301         [generic sys/param.h] ($(addprefix
9302         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9303         [generic sys/param.h] (common-generated): Do not append to
9304         variable.
9305         [generic sys/param.h] (sysdep_headers): Likewise.
9306         [generic bits/errno.h] (before-compile): Do not append to
9307         variable.
9308         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9309         rule.
9310         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9311         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9312         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9313         [generic bits/errno.h] (common-generated): Do not append to
9314         variable.
9315         [generic bits/ioctls.h] (before-compile): Do not append to
9316         variable.
9317         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9318         rule.
9319         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9320         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9321         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9322         rule.
9323         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9324         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9325         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9326         [generic bits/ioctls.h] (common-generated): Do not append to
9327         variable.
9328         [generic sys/syscall.h] (syscall.h): Remove variable.
9329         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9330         rule.
9331         [generic sys/syscall.h] (before-compile): Do not append to
9332         variable.
9333         [generic sys/syscall.h] (common-generated): Likewise.
9334         * sysdeps/unix/errnos-tmpl.c: Remove file.
9335         * sysdeps/unix/errnos.awk: Likewise.
9336         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9337         * sysdeps/unix/ioctls.awk: Likewise.
9338         * sysdeps/unix/mk-local_lim.c: Likewise.
9339         * sysdeps/unix/snarf-ioctls: Likewise.
9340
9341 2012-03-19  Richard Henderson  <rth@twiddle.net>
9342
9343         * sysdeps/i386/fpu/fenv_private.h: New file.
9344         * sysdeps/i386/fpu/math_private.h: Use it.
9345         (math_opt_barrier, math_force_eval): Remove.
9346         (libc_feholdexcept_setround_53bit): Remove.
9347         (libc_feupdateenv_53bit): Remove.
9348         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9349         (math_opt_barrier, math_force_eval): Remove.
9350         (libc_feholdexcept): Remove.
9351         (libc_feholdexcept_setround): Remove.
9352         (libc_fetestexcept, libc_fesetenv): Remove.
9353         (libc_feupdateenv_test): Remove.
9354         (libc_feupdateenv, libc_feholdsetround): Remove.
9355         (libc_feresetround): Remove.
9356
9357         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9358         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9359
9360         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9361         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9362         (libc_feupdateenv_testl): New.
9363         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9364         (libc_feupdateenv_testf): New.
9365         (libc_feupdateenv): Use libc_feupdateenv_test.
9366         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9367         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9368
9369         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9370         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9371         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9372         (libc_feresetround_noex): New.
9373         (libc_feresetround_noexf): New.
9374         (libc_feresetround_noexl): New.
9375         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9376         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9377         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9378         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9379         SET_RESTORE_ROUND.
9380         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9381         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9382         (__cos): Likewise.
9383         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9384         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9385         SET_RESTORE_ROUND_NOEX.
9386         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9387         SET_RESTORE_ROUND_NOEXF.
9388         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9389         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9390         (libc_feholdsetroundf): New.
9391         (libc_feresetround, libc_feresetroundf): New.
9392
9393         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9394         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9395         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9396
9397         * sysdeps/generic/math_private.h: Include <fenv.h>.
9398         (default_libc_feholdexcept): New.
9399         (default_libc_feholdexcept_setround): New.
9400         (default_libc_fesetenv, default_libc_feupdateenv): New.
9401         (libc_feholdexcept): Only define if undefined.
9402         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9403         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9404         (libc_feholdexcept_setroundl): Likewise.
9405         (libc_feholdexcept_setround_53bit): Likewise.
9406         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9407         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9408         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9409         (libc_feupdateenv_53bit): Likewise.
9410         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9411         (libc_feholdexcept): Convert from macro to inline function.
9412         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9413         (libc_fesetenv, libc_feupdateenv): Likewise.
9414
9415         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9416         not previously defined.
9417         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9418         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9419         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9420         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9421         * sysdeps/ieee754/flt-32/math_private.h: New file.
9422         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9423         math_private.h below SET_FLOAT_WORD.
9424         (__isnan, __isinf_ns, __finite): Remove.
9425         (__isnanf, __isinf_nsf, __finitef): Remove.
9426
9427 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9428
9429         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9430
9431 2012-03-17  David S. Miller  <davem@davemloft.net>
9432
9433         [BZ #6471]
9434         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9435         for 2.16.
9436
9437 2012-03-16  David S. Miller  <davem@davemloft.net>
9438
9439         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9440         warnings.
9441
9442         [BZ #6471]
9443         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9444         properly.
9445         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9446         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9447         sysdep_routines when subdir is sysvipc.
9448         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9449         __getshmlba helper.
9450
9451         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9452
9453 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9454
9455         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9456         [__LP64__].
9457
9458 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9459
9460         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9461         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9462         (__lround): Renamed to ...
9463         (__llround): This.  Replace long int with long long int.
9464         Define lround functions as aliases of llround functions.
9465         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9466
9467 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9468
9469         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9470         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9471         adresses to uintptr_t.  Replace "long int" and "unsigned long
9472         int" with "greg_t" on va_arg.
9473
9474 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9475
9476         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9477         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9478
9479         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9480         Move e_machine check before EI_CLASS check.  Handle x32
9481         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9482         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9483         SKIP_EM_IA_64 and include
9484         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9485
9486         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9487         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9488         (add_system_dir): New macro.
9489
9490         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9491         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9492
9493 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9494
9495         [BZ #2551]
9496         [BZ #2552]
9497         [BZ #2553]
9498         [BZ #2554]
9499         [BZ #2562]
9500         [BZ #2563]
9501         [BZ #2565]
9502         [BZ #2566]
9503         [BZ #2576]
9504         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9505         (y0): Likewise.
9506         * math/w_j0f.c (j0f): Likewise.
9507         (y0f): Likewise.
9508         * math/w_j0l.c (__j0l): Likewise.
9509         (__y0l): Likewise.
9510         * math/w_j1.c (j1): Likewise.
9511         (y1): Likewise.
9512         * math/w_j1f.c (j1f): Likewise.
9513         (y1f): Likewise.
9514         * math/w_j1l.c (__j1l): Likewise.
9515         (__y1l): Likewise.
9516         * math/w_jn.c (jn): Likewise.
9517         (yn): Likewise.
9518         * math/w_jnf.c (jnf): Likewise.
9519         (ynf): Likewise.
9520         * math/w_jnl.c (__jnl): Likewise.
9521         (__ynl): Likewise.
9522         * math/libm-test.inc (j0_test): Add more tests.
9523         (j1_test): Likewise.
9524         (jn_test): Likewise.  Add trailing semicolon to existing test.
9525         (y0_test): Likewise.
9526         (y1_test): Likewise.
9527         * sysdeps/i386/fpu/libm-test-ulps: Update.
9528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9529
9530         [BZ #13851]
9531         [BZ #13854]
9532         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9533         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9534         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9535         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9536         (__tanl): Set errno for infinite argument.
9537         * sysdeps/i386/fpu/mptan.c: Remove.
9538         * sysdeps/i386/fpu/s_tan.S: Likewise.
9539         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9540         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9541         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9542         * math/libm-test.inc (tan_test): Add more tests and enable more
9543         tests for double and long double.
9544         * sysdeps/i386/fpu/libm-test-ulps: Update.
9545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9546
9547 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9548
9549         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9550         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9551
9552 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9553
9554         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9555         * configure.in: Use it for both main tree and add-ons.
9556         * configure: Regenerated.
9557
9558 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9559
9560         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9561
9562 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9563
9564         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9565         in comment.
9566
9567         [BZ #13851]
9568         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9569         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9570         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9571         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9572         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9573         infinite argument.
9574         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9575         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9576         != 0 for prec == 2.
9577         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9578         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9579         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9580         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9581         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9582         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9583         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9584         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9585         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9586         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9587         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9588         * math/libm-test.inc (cos_test): Add more tests and enable more
9589         tests for long double.
9590         (sin_test): Likewise.
9591         (sincos_test): Likewise.
9592         * sysdeps/i386/fpu/libm-test-ulps: Update.
9593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9594
9595 2012-03-16  David S. Miller  <davem@davemloft.net>
9596
9597         * sysdeps/sparc/fpu/math_private.h: New file.
9598
9599 2012-03-15  David S. Miller  <davem@davemloft.net>
9600
9601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9602         file.
9603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9605         file.
9606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9607         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9608         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9609         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9610         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9611         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9612         sysdep routines.
9613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9614
9615         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9616         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9617
9618         * sysdeps/sparc/sparc-ifunc.h: New file.
9619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9620         sparc-ifunc.h
9621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9623         Likewise.
9624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9625         Likewise.
9626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9630         Likewise.
9631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9636         Likewise.
9637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9638         Likewise.
9639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9643         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9644         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9645         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9646         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9647         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9648         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9649         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9650         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9651         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9652         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9653         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9654         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9655         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9656         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9657         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9658         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9659         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9660         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9661         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9662         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9663
9664 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9665
9666         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9667         scaling.
9668         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9669
9670 2012-03-15  Andreas Jaeger  <aj@suse.de>
9671
9672         [BZ #13852]
9673         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9674         ieee754/flt-32 implementation for sin, cos and sincos.
9675         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9676         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9677         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9678         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9679         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9680         ieee754/flt-32 implementation for tan.
9681
9682         * math/libm-test.inc (cos_test): Enable some large input tests for
9683         float as well
9684         (sin_test): Likewise.
9685         (sincos_test): Likewise.
9686         (tan_test): Add tests for large input.
9687
9688         * sysdeps/i386/fpu/libm-test-ulps: Update.
9689
9690 2012-03-15  Andreas Jaeger  <aj@suse.de>
9691
9692         [BZ #13658]
9693         * math/libm-test.inc (cos_test): Add more test cases.
9694         (sin_test): Likewise.
9695         (sincos_test): Likewise.
9696
9697 2012-03-15  Andreas Jaeger  <aj@suse.de>
9698
9699         [BZ #13837]
9700         * math/libm-test.inc (cos_test): Add a test case for large input
9701         value.
9702         (sin_test): Likewise.
9703         (sincos_test): Likewise.
9704
9705 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9706         Joseph Myers  <joseph@codesourcery.com>
9707
9708         [BZ #13658]
9709         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9710         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9711         * sysdeps/i386/fpu/branred.c: Likewise.
9712         * sysdeps/i386/fpu/dosincos.c: Likewise.
9713         * sysdeps/i386/fpu/mpa.c: Likewise.
9714         * sysdeps/i386/fpu/s_cos.S: Likewise.
9715         * sysdeps/i386/fpu/s_sin.S: Likewise.
9716         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9717         * sysdeps/i386/fpu/sincos32.c: Likewise.
9718
9719         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9720         Define.
9721         (libc_feupdateenv_53bit): Define.
9722         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9723         Define.
9724         (libc_feupdateenv_53bit): Define.
9725
9726         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9727         53 bit (without extend i386 double precision).
9728
9729         * math/libm-test.inc (sincos_test): Add tests for large input.
9730         (sin): Likewise.
9731         (cos): Likewise.
9732
9733         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9734
9735 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9736
9737         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9738
9739 2012-03-15  David S. Miller  <davem@davemloft.net>
9740
9741         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9742         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9743         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9744         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9745         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9746         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9747         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9748         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9749         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9751         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9752         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9753         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9754         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9755         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9757         file.
9758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9760         file.
9761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9763         file.
9764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9766         file.
9767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9768         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9769         fmin/fmax sysdep routines.
9770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9771
9772 2012-03-14  David S. Miller  <davem@davemloft.net>
9773
9774         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9775         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9776         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9777         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9778         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9779         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9780         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9781         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9782         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9783         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9784         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9785         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9786         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9787         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9788         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9789         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9790         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9791         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9792         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9793         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9794         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9795         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9796         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9797         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9798         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9799         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9800         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9801         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9802         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9803         routines.
9804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9805         file.
9806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9808         file.
9809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9811         file.
9812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9814         file.
9815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9817         file.
9818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9820         file.
9821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9822         file.
9823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9824         file.
9825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9826         file.
9827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9828         New file.
9829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9830         file.
9831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9832         file.
9833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9835         file.
9836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9838         file.
9839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9841         file.
9842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9844         VIS3 routines.
9845
9846         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9847         New file.
9848
9849         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9850
9851         * sysdeps/sparc/configure.in: New file.
9852         * sysdeps/sparc/configure: Generate.
9853         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9854         * configure: Regenerate.
9855         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9856         * config.make.in (have-as-vis3): New.
9857         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9858         available use -Av9d instead of -Av9a.
9859         * sysdeps/sparc/sparc64/Makefile: Likewise.
9860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9862         New file.
9863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9864         file.
9865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9866         New file.
9867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9868         file.
9869         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9870         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9871         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9872         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9873         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9874
9875         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9876         fzeros/fnegs to load 0x80000000 into a float register instead of
9877         using the stack.
9878         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9879
9880 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9881
9882         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9883         bits/syscall.h.
9884         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9885         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9886         ($(inst_includedir)/bits/syscall.h): Remove rule.
9887         ($(objpfx)bits/syscall.d): Include instead of
9888         $(objpfx)syscall-list.d.
9889         (generated): Change syscall-list.h and syscall-list.d to
9890         bits/syscall.h and bits/syscall.d.
9891
9892 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9893
9894         [BZ #13846]
9895         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9896
9897 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9898
9899         [BZ #13841]
9900         * math/s_csqrt.c: Include <float.h>.
9901         (__csqrt): Scale large or subnormal inputs.
9902         * math/s_csqrtf.c: Likewise.
9903         * math/s_csqrtl.c: Likewise.
9904         * math/libm-test.inc (csqrt_test): Add more tests.
9905         * sysdeps/i386/fpu/libm-test-ulps: Update.
9906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9907
9908         [BZ #13840]
9909         * math/libm-test.inc (hypot_test): Add more tests.
9910
9911 2012-03-13  David S. Miller  <davem@davemloft.net>
9912
9913         [BZ #13840]
9914         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9915         double-precision for the calculation instead of scaling.
9916
9917 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9918
9919         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9920         manipulate bits before adding and subtracting TWO52[sx].
9921         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9922         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9923         Likewise.
9924         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9925
9926 2012-03-13  David S. Miller  <davem@davemloft.net>
9927
9928         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9929         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9930         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9931         rtld-global-offsets.h
9932         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9933
9934         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9935         large parameters.
9936
9937         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9938
9939         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9940         'err' in the ifdef scope in which it is actually used.
9941
9942         * nss/nss_db/db-init.c: Include string.h
9943
9944 2012-03-12  David S. Miller  <davem@davemloft.net>
9945
9946         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9947         masking out of the most significant byte of random value used.
9948         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9949         Fix coding style in previous change.
9950
9951         * sysdeps/unix/sysv/linux/kernel-features.h
9952         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9953         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9954         expression.
9955         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9956         later.
9957
9958 2012-03-11  David S. Miller  <davem@davemloft.net>
9959
9960         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9961         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9962         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9963         for 'resultvar' otherwise things get truncated on 64-bit.
9964
9965         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9966         Fix masking out of the most significant byte of random value used.
9967
9968         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9969
9970 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9971
9972         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9973
9974 2012-03-09  David S. Miller  <davem@davemloft.net>
9975
9976         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9977         variables with appropriate CPP guards.
9978         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9979         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9980         on resulting framesize and the management of the outregs buffer for pltexit.
9981         Preserve floating point return values across _dl_call_pltexit call.
9982         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9983         framesize and the management of the outregs buffer for pltexit.
9984         Preserve floating point return values across _dl_call_pltexit
9985         call.
9986         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9987         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9988         (print_exit): Fix format string for return register value.
9989
9990 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9991
9992         * sunrpc/Makefile (others): Add rpcgen.
9993         ($(objpfx)rpcgen): Remove special build rule and dependency on
9994         libc.
9995         * sunrpc/rpcgen.c: New file.
9996
9997 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9998
9999         [BZ #13673]
10000         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10001         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10002         * sysdeps/i386/crti.S: Likewise.
10003         * sysdeps/i386/crtn.S: Likewise.
10004         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10005         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10006         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10007         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10008         * sysdeps/sh/crti.S: Likewise.
10009         * sysdeps/sh/crtn.S: Likewise.
10010         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10011
10012         [BZ #13673]
10013         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10014         with URL.
10015         * locale/programs/locfile-kw.gperf: Likewise.
10016         * locale/programs/charmap-kw.h: Regenerated.
10017         * locale/programs/locfile-kw.h: Likewise.
10018
10019         [BZ #13673]
10020         * intl/plural.y: Replace FSF snail mail address with URL.
10021         * intl/plural.c: Regenerated.
10022
10023 2012-03-09  Richard Henderson  <rth@twiddle.net>
10024
10025         * include/math_private.h: Remove file.
10026         * math/math_private.h: Move file ...
10027         * sysdeps/generic/math_private.h: ... here.
10028
10029         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10030         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10031         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10032
10033         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10034         and <math_private.h>.
10035         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10036         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10037         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10038         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10039         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10040         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10041         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10042         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10043         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10044         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10045         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10046         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10047         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10048         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10049         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10050         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10051         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10052         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10053         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10054         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10055         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10056         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10057         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10058         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10059         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10060         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10061         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10062         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10063         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10064         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10065         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10066         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10067         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10068         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10069         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10070         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10071         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10072         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10073         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10074         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10075         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10076         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10077         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10078         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10079         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10080         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10081         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10082         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10083         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10084         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10085         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10086         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10087         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10088         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10089         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10090         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10091         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10092         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10093         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10094         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10095         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10096         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10097         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10098         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10099         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10100         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10101         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10102         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10103         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10104         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10105         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10106         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10107         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10108         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10109         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10110         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10111         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10112         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10113         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10114         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10115         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10116         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10117         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10118         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10119         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10120         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10121         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10122         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10123         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10124         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10125         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10126         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10127         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10128         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10129         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10130         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10131         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10132         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10133         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10134         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10135         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10136         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10137         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10138         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10139         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10140         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10141         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10142         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10143         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10144         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10145         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10146         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10147         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10148         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10149         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10150         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10151         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10152         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10153         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10154         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10155         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10156         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10157         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10158         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10159         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10160         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10161         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10162         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10163         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10164         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10165         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10166         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10167         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10168         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10169         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10170         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10171         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10172         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10173         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10174         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10175         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10176         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10177         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10178         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10179         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10180         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10181         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10182         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10183         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10184         * sysdeps/ieee754/k_standard.c: Likewise.
10185         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10186         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10187         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10188         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10189         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10190         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10191         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10192         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10193         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10194         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10195         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10196         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10197         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10198         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10199         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10200         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10201         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10202         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10203         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10204         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10205         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10206         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10207         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10208         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10209         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10210         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10211         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10212         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10213         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10214         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10215         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10216         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10217         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10218         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10219         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10220         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10221         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10222         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10223         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10224         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10225         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10226         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10227         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10228         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10229         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10230         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10231         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10232         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10233         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10234         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10235         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10236         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10237         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10238         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10239         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10240         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10241         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10242         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10243         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10244         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10245         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10246         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10247         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10248         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10249         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10250         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10251         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10252         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10253         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10254         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10255         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10256         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10257         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10258         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10259         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10260         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10261         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10262         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10263         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10264         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10265         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10266         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10267         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10268         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10269         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10270         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10271         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10272         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10273         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10274         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10275         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10276         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10277         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10278         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10279         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10280         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10281         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10282         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10283         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10284         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10285         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10286         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10287         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10288         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10289         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10290         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10291         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10292         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10293         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10294         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10295         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10296         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10297         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10298         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10299         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10300         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10301         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10302         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10303         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10304         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10305         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10306         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10307         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10308         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10309         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10310         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10311         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10312         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10313         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10314         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10315         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10316         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10317         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10318         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10319         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10320         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10321         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10322         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10323         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10324         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10325         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10326         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10327         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10328         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10329         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10330         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10331         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10332         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10333         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10334         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10335         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10336         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10337         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10338         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10339         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10340         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10341         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10342         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10343         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10344         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10345         * sysdeps/ieee754/s_lib_version.c: Likewise.
10346         * sysdeps/ieee754/s_matherr.c: Likewise.
10347         * sysdeps/ieee754/s_signgam.c: Likewise.
10348         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10349         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10350         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10351         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10352         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10353         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10354         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10355         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10356         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10357         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10358         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10359         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10360         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10361         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10362         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10363         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10364         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10365         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10366         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10367         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10368         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10369
10370 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10371
10372         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10373         * sunrpc/rpc_main.c: Likewise.
10374         * sunrpc/rpc_svcout.c: Likewise.
10375
10376 2012-03-09  David S. Miller  <davem@davemloft.net>
10377
10378         * include/math_private.h: New file.
10379
10380 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10381
10382         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10383         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10384         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10385         from <bits/socket_type.h>.
10386         (enum __socket_type): Don't define here.
10387         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10388         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10389         bits/socket_type.h.
10390
10391         [BZ #13566]
10392         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10393         checking __USE_GNU.
10394
10395         * Makerules ($(inst_includedir)/%.h): New rule.
10396         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10397         (install-others): Remove variable setting.
10398         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10399
10400 2012-03-08  Richard Henderson  <rth@twiddle.net>
10401
10402         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10403         from macro to inline function; merge with the
10404         !__LIBC_INTERNAL_MATH_INLINES version.
10405         (__ieee754_sqrtf): Likewise.
10406
10407         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10408         to inline function.
10409         (__rintf, __floor, __floorf): Likewise.
10410
10411         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10412         macro to inline function.
10413         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10414
10415         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10416         not <math/math_private.h>.
10417
10418 2012-03-08  David S. Miller  <davem@davemloft.net>
10419
10420         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10421         copyright year.
10422         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10423
10424 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10425
10426         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10427         normalization.
10428         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10429         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10430
10431 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10432
10433         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10434         be defined individually, they must be defined as a block.  Define
10435         S for printing a string instead of hidint the different by using a
10436         macro for adding the 'l'.
10437         * stdio-common/tst-fphex-wide.c: Adjust.
10438
10439 2012-03-07  Marek Polacek  <polacek@redhat.com>
10440
10441         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10442
10443 2012-03-08  Marek Polacek  <polacek@redhat.com>
10444
10445         [BZ #13806]
10446         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10447         * stdio-common/tst-fphex.c: Define a few macros to make the
10448         test reusable.  Use them.
10449         * stdio-common/tst-fphex-wide.c: New file.
10450
10451 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10452
10453         [BZ #6911]
10454         * manual/macros.texi (gnusystems): New macro.
10455         (nongnusystems): Likewise.
10456         (gnulinuxhurdsystems): Likewise.
10457         (gnuhurdsystems): Likewise..
10458         (gnulinuxsystems): Likewise.
10459         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10460         variants of the GNU system, not "GNU system".
10461         * manual/conf.texi: Likewise.
10462         * manual/errno.texi: Likewise.  Update example of errno macro
10463         expansion.
10464         * manual/filesys.texi: Likewise.
10465         (getumask): Document as specific to GNU/Hurd.
10466         * manual/install.texi: Likewise.  Reword some references to
10467         GNU/Linux.
10468         * manual/intro.texi: Likewise.
10469         * manual/io.texi: Likewise.
10470         (File Name Portability): Detail which constraints are inapplicable
10471         to all GNU systems and which are only inapplicable to GNU/Hurd.
10472         * manual/job.texi: Likewise.
10473         * manual/llio.texi: Likewise.
10474         (O_NOCTTY): Document as present on GNU/Linux.
10475         * manual/maint.texi: Likewise.
10476         * manual/memory.texi: Likewise.
10477         * manual/pattern.texi: Likewise.
10478         * manual/pipe.texi: Likewise.
10479         * manual/process.texi: Likewise.
10480         * manual/resource.texi: Likewise.
10481         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10482         child on GNU/Hurd.
10483         * manual/setjmp.texi: Likewise.
10484         * manual/signal.texi: Likewise.
10485         * manual/startup.texi: Likewise.
10486         * manual/stdio.texi: Likewise.
10487         * manual/terminal.texi: Likewise.
10488         (ONLCR): Document as POSIX.
10489         (OXTABS): Document availability on GNU/Linux as XTABS.
10490         (ONOEOT): Document availability separately from other bits.
10491         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10492         * manual/time.texi: Likewise.
10493         * manual/users.texi: Likewise.
10494         * INSTALL: Regenerated.
10495         * sysdeps/gnu/errlist.c: Regenerated.
10496
10497         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10498         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10499         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10500         puts.
10501         * configure: Regenerated.
10502
10503 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10504
10505         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10506         default includes instead of AC_HEADER_CHECK.
10507         * sysdeps/i386/configure: Regenerated.
10508
10509         [BZ #10716]
10510         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10511         * math/s_cacoshf.c (__cacoshf): Likewise.
10512         * math/s_cacoshl.c (__cacoshl): Likewise.
10513         * math/s_casinh.c (__casinh): Set signs of result from argument.
10514         * math/s_casinhf.c (__casinhf): Likewise.
10515         * math/s_casinhl.c (__casinhl): Likewise.
10516         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10517         (casinh_test): Add more tests.
10518         * sysdeps/i386/fpu/libm-test-ulps: Update.
10519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10520
10521 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10522
10523         * po/zh_TW.po: Update from translation team.
10524
10525         * login/Makefile (distribute): Remove variable.
10526         * catgets/Makefile: Likewise.
10527         * mach/Makefile: Likewise.
10528         * malloc/Makefile: Likewise.
10529         * misc/Makefile: Likewise.
10530         * iconv/Makefile: Likewise.
10531         * nscd/Makefile: Likewise.
10532         * hurd/Makefile: Likewise.
10533         * manual/Makefile: Likewise.
10534         * locale/Makefile: Likewise.
10535         * intl/Makefile: Likewise.
10536         * conform/Makefile: Likewise.
10537         * nss/Makefile: Likewise.
10538         * time/Makefile: Likewise.
10539         * soft-fp/Makefile: Likewise.
10540         * dirent/Makefile: Likewise.
10541         * gmon/Makefile: Likewise.
10542         * po/Makefile: Likewise.
10543         * rt/Makefile: Likewise.
10544         * socket/Makefile: Likewise.
10545         * math/Makefile: Likewise.
10546         * signal/Makefile: Likewise.
10547         * debug/Makefile: Likewise.
10548         * elf/Makefile: Likewise.
10549         * timezone/Makefile: Likewise.
10550         * stdlib/Makefile: Likewise.
10551         * iconvdata/Makefile: Likewise.
10552         * sunrpc/Makefile: Likewise.
10553         * io/Makefile: Likewise.
10554         * argp/Makefile: Likewise.
10555         * inet/Makefile: Likewise.
10556         * hesiod/Makefile: Likewise.
10557         * grp/Makefile: Likewise.
10558         * csu/Makefile: Likewise.
10559         * wctype/Makefile: Likewise.
10560         * crypt/Makefile: Likewise.
10561         * libio/Makefile: Likewise.
10562         * string/Makefile: Likewise.
10563         * nis/Makefile: Likewise.
10564         * resolv/Makefile: Likewise.
10565         * stdio-common/Makefile: Likewise.
10566         * wcsmbs/Makefile: Likewise.
10567         * dlfcn/Makefile: Likewise.
10568         * posix/Makefile: Likewise.
10569
10570         [BZ #6959]
10571         * timezone/Makefile: Don't install timezone files, just the programs
10572         and scripts.
10573
10574 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10575
10576         * nss/databases.def: Add missing gshadow entry.
10577
10578         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10579
10580 2012-03-06  Marek Polacek  <polacek@redhat.com>
10581
10582         [BZ #13726]
10583         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10584         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10585         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10586         * stdio-common/tst-long-dbl-fphex.c: New file.
10587
10588 2012-03-06  David S. Miller  <davem@davemloft.net>
10589
10590         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10591         (set_obp_int): New function.
10592         (get_obp_int): New function.
10593         (__get_clockfreq_via_dev_openprom): Likewise.
10594         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10595         Avoid unused variable warnings on 'val' and use builtin_expect.
10596         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10597         __builtin_expect.
10598         (INLINE_CLONE_SYSCALL): Likewise.
10599
10600 2012-03-05  David S. Miller  <davem@davemloft.net>
10601
10602         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10603
10604 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10605
10606         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10607
10608         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10609         only for |x| >= 40.
10610         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10611
10612 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10613
10614         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10615         Replace gettimeofday with __vdso_gettimeofday.
10616
10617         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10618         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10619         __vdso_clock_gettime and __vdso_getcpu.
10620
10621         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10622         time with __vdso_time.
10623
10624 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10625
10626         * manual/lang.texi (size_t): Note types to which size_t may be
10627         equivalent with the GNU C Library, but do not describe when
10628         differences between them are significant.
10629
10630 2012-03-05  Andreas Jaeger  <aj@suse.de>
10631
10632         * sysdeps/i386/fpu/libm-test-ulps: Update.
10633
10634 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10635
10636         [BZ #3976]
10637         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10638         (__ieee754_pow): Save and restore rounding mode and use
10639         round-to-nearest for main computations.
10640         * math/libm-test.inc (pow_test_tonearest): New function.
10641         (pow_test_towardzero): Likewise.
10642         (pow_test_downward): Likewise.
10643         (pow_test_upward): Likewise.
10644         (main): Call the new functions.
10645         * sysdeps/i386/fpu/libm-test-ulps: Update.
10646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10647
10648         [BZ #3976]
10649         * math/libm-test.inc (cosh_test_tonearest): New function.
10650         (cosh_test_towardzero): Likewise.
10651         (cosh_test_downward): Likewise.
10652         (cosh_test_upward): Likewise.
10653         (sinh_test_tonearest): Likewise.
10654         (sinh_test_towardzero): Likewise.
10655         (sinh_test_downward): Likewise.
10656         (sinh_test_upward): Likewise.
10657         (main): Call the new functions.
10658         * sysdeps/i386/fpu/libm-test-ulps: Update.
10659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10660
10661 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10662
10663         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10664         default stack guard is set in last bytes.
10665         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10666
10667 2012-03-05  Kees Cook  <keescook@chromium.org>
10668
10669         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10670
10671         [BZ #13656]
10672         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10673         possibly allocate from heap instead of stack.
10674         * stdio-common/bug-vfprintf-nargs.c: New file.
10675         * stdio-common/Makefile (tests): Add nargs overflow test.
10676
10677 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10678
10679         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10680
10681 2012-03-03  Marek Polacek  <polacek@redhat.com>
10682
10683         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10684         * math/math_private.h: Likewise.
10685         * stdlib/tst-strtod.c: Likewise.
10686         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10687         * sysdeps/x86_64/bits/atomic.h: Likewise.
10688
10689 2012-03-02  David S. Miller  <davem@davemloft.net>
10690
10691         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10692         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10694         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10695         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10696         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10697         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10698         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10699
10700 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10701
10702         [BZ #13792]
10703         * manual/examples/README: New file, says the example source files
10704         can be used under GPL>=2.
10705         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10706         line containing just "*/".
10707         * manual/examples/add.c: Add copyright header (GPL>=2).
10708         * manual/examples/argp-ex1.c: Likewise.
10709         * manual/examples/argp-ex2.c: Likewise.
10710         * manual/examples/argp-ex3.c: Likewise.
10711         * manual/examples/argp-ex4.c: Likewise.
10712         * manual/examples/atexit.c: Likewise.
10713         * manual/examples/db.c: Likewise.
10714         * manual/examples/dir.c: Likewise.
10715         * manual/examples/dir2.c: Likewise.
10716         * manual/examples/execinfo.c: Likewise.
10717         * manual/examples/filecli.c: Likewise.
10718         * manual/examples/filesrv.c: Likewise.
10719         * manual/examples/fmtmsgexpl.c: Likewise.
10720         * manual/examples/genpass.c: Likewise.
10721         * manual/examples/inetcli.c: Likewise.
10722         * manual/examples/inetsrv.c: Likewise.
10723         * manual/examples/isockad.c: Likewise.
10724         * manual/examples/longopt.c: Likewise.
10725         * manual/examples/memopen.c: Likewise.
10726         * manual/examples/memstrm.c: Likewise.
10727         * manual/examples/mkfsock.c: Likewise.
10728         * manual/examples/mkisock.c: Likewise.
10729         * manual/examples/mygetpass.c: Likewise.
10730         * manual/examples/pipe.c: Likewise.
10731         * manual/examples/popen.c: Likewise.
10732         * manual/examples/rprintf.c: Likewise.
10733         * manual/examples/search.c: Likewise.
10734         * manual/examples/select.c: Likewise.
10735         * manual/examples/setjmp.c: Likewise.
10736         * manual/examples/sigh1.c: Likewise.
10737         * manual/examples/sigusr.c: Likewise.
10738         * manual/examples/stpcpy.c: Likewise.
10739         * manual/examples/strdupa.c: Likewise.
10740         * manual/examples/strftim.c: Likewise.
10741         * manual/examples/strncat.c: Likewise.
10742         * manual/examples/subopt.c: Likewise.
10743         * manual/examples/swapcontext.c: Likewise.
10744         * manual/examples/termios.c: Likewise.
10745         * manual/examples/testopt.c: Likewise.
10746         * manual/examples/testpass.c: Likewise.
10747         * manual/examples/timeval_subtract.c: Likewise.
10748
10749         [BZ #13792]
10750         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10751         function to ...
10752         * manual/timeval_subtract.c.texi: ... here, new file.
10753
10754 2012-03-02  David S. Miller  <davem@davemloft.net>
10755
10756         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10757
10758 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10759
10760         [BZ #3976]
10761         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10762         (__sin): Save and restore rounding mode and use round-to-nearest
10763         for all computations.
10764         (__cos): Save and restore rounding mode and use round-to-nearest
10765         for all computations.
10766         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10767         <fenv.h>.
10768         (tan): Save and restore rounding mode and use round-to-nearest for
10769         all computations.
10770         * math/libm-test.inc (cos_test_tonearest): New function.
10771         (cos_test_towardzero): Likewise.
10772         (cos_test_downward): Likewise.
10773         (cos_test_upward): Likewise.
10774         (sin_test_tonearest): Likewise.
10775         (sin_test_towardzero): Likewise.
10776         (sin_test_downward): Likewise.
10777         (sin_test_upward): Likewise.
10778         (tan_test_tonearest): Likewise.
10779         (tan_test_towardzero): Likewise.
10780         (tan_test_downward): Likewise.
10781         (tan_test_upward): Likewise.
10782         (main): Call the new functions.
10783         * sysdeps/i386/fpu/libm-test-ulps: Update.
10784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10785
10786         [BZ #10135]
10787         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10788         small n, then large n, before computing and testing k+n.
10789         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10790         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10791         Likewise.
10792         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10793         Likewise.
10794         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10795         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10796         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10797         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10798         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10799         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10800         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10801         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10802         * math/libm-test.inc (scalbn_test): Add more tests.
10803         (scalbln_test): Likewise.
10804
10805         * manual/filesys.texi (mode_t): Describe constraints on size and
10806         signedness, not exact equivalence to a particular type.
10807         (ino_t): Likewise.
10808         (ino64_t): Likewise.
10809         (dev_t): Likewise.
10810         (nlink_t): Likewise.
10811         (blkcnt_t): Likewise.
10812         (blkcnt64_t): Likewise.
10813         * manual/llio.texi (off_t): Likewise.
10814
10815         [BZ #3976]
10816         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10817         (__ieee754_exp): Save and restore rounding mode and use
10818         round-to-nearest for all computations.
10819         * math/libm-test.inc (exp_test_tonearest): New function.
10820         (exp_test_towardzero): Likewise.
10821         (exp_test_downward): Likewise.
10822         (exp_test_upward): Likewise.
10823         (main): Call the new functions.
10824         * sysdeps/i386/fpu/libm-test-ulps: Update.
10825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10826
10827 2012-03-01  Chris Demetriou  <cgd@google.com>
10828
10829         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10830         have predictable order.
10831
10832 2012-03-01  David S. Miller  <davem@davemloft.net>
10833
10834         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10835
10836         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10837         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10838         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10839         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10840
10841         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10842         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10843         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10844         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10845         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10846         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10847         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10848         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10849         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10850
10851         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10852
10853         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10854         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10855         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10856
10857         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10858         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10859         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10860         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10861         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10862         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10863         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10864         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10865         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10866         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10867         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10868         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10869         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10870         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10871         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10872         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10873         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10874         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10875         * sysdeps/sparc/elf/configure: Regenerated.
10876
10877 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10878
10879         * configure.in (AS, LD): Require binutils 2.20 or later.
10880         * configure: Regenerated.
10881         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10882         as required minimum version.
10883         * INSTALL: Regenerated.
10884
10885         [BZ #2541]
10886         [BZ #4108]
10887         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10888         before squaring exponent.
10889         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10890         bottom long double and 27 bits of top long double before squaring
10891         exponent.
10892         * math/libm-test.inc (erfc_test): Add more tests.
10893         * sysdeps/i386/fpu/libm-test-ulps: Update.
10894         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10896
10897 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10898
10899         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10900         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10901         containing bit-fields.
10902         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10903         * soft-fp/single.h (_FP_UNION_S): Likewise.
10904         * soft-fp/double.h (_FP_UNION_D): Likewise.
10905
10906 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10907
10908         [BZ #13786]
10909         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10910         not include ../strcmp.S.
10911         [USE_AS_STRNCASECMP_L]: Likewise.
10912         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10913         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10914         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10915         (__strncasecmp_l_ia32): Define as alias to
10916         __strncasecmp_l_nonascii.
10917
10918         [BZ #5794]
10919         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10920         * sysdeps/i386/fpu/libm-test-ulps: Update.
10921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10922
10923         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10925
10926 2012-02-29  Jeff Law  <law@redhat.com>
10927
10928         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10929         out of bounds read.
10930
10931 2012-02-29  Marek Polacek  <polacek@redhat.com>
10932
10933         [BZ #13706]
10934         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10935         * elf/Makefile: Add rules to run tst-unused-dep.out.
10936
10937 2012-02-28  David S. Miller  <davem@davemloft.net>
10938
10939         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10940         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10941         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10942         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10943         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10944         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10945
10946 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10947
10948         * math/libm-test.inc (llround_test): Move one test from
10949         lround_test.  Use TEST_f_L in moved test.
10950         (lround_test): Move misplaced test to llround_test.  Add testcase
10951         from bug 2561.
10952
10953 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10954
10955         * sysdeps/x86_64/fpu/e_expf.S: New file.
10956         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10957
10958 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10959
10960         [BZ #13637]
10961         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10962         of remain_len that may cause incomplete multi-byte character and
10963         false match.
10964         * posix/bug-regex33.c: New file.
10965         * posix/Makefile (tests): Add bug-regex33.
10966
10967 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10968
10969         * manual/macros.texi: New file.
10970         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10971         * manual/libc.texinfo: Include macros.texi.
10972         * manual/creatute.texi: Likewise.
10973         * manual/install.texi: Likewise.
10974         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10975         @glibcadj{} in references to the GNU C Library.
10976         * manual/charset.texi: Likewise.
10977         * manual/conf.texi: Likewise.
10978         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10979         when not using those macros.
10980         * manual/creature.texi: Likewise.
10981         * manual/crypt.texi: Likewise.
10982         * manual/errno.texi: Likewise.
10983         * manual/filesys.texi: Likewise.
10984         * manual/header.texi: Likewise.
10985         * manual/install.texi: Likewise.
10986         * manual/intro.texi: Likewise.
10987         * manual/io.texi: Likewise.
10988         * manual/job.texi: Likewise.
10989         * manual/lang.texi: Likewise.
10990         * manual/libc.texiinfo: Likewise.
10991         * manual/llio.texi: Likewise.
10992         * manual/locale.texi: Likewise.
10993         * manual/maint.texi: Likewise.
10994         * manual/math.texi: Likewise.
10995         * manual/memory.texi: Likewise.
10996         * manual/message.texi: Likewise.
10997         * manual/nss.texi: Likewise.
10998         * manual/pattern.texi: Likewise.
10999         * manual/process.texi: Likewise.
11000         * manual/resource.texi: Likewise.
11001         * manual/search.texi: Likewise.
11002         * manual/setjmp.texi: Likewise.
11003         * manual/signal.texi: Likewise.
11004         * manual/socket.texi: Likewise.
11005         * manual/startup.texi: Likewise.
11006         * manual/stdio.texi: Likewise.
11007         * manual/string.texi: Likewise.
11008         * manual/sysinfo.texi: Likewise.
11009         * manual/syslog.texi: Likewise.
11010         * manual/terminal.texi: Likewise.
11011         * manual/time.texi: Likewise.
11012         * manual/users.texi: Likewise.
11013         * INSTALL: Regenerated.
11014         * NOTES: Regenerated.
11015         * sysdeps/gnu/errlist.c: Regenerated.
11016
11017 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11018
11019         * include/dirent.h: Include <dirstream.h> before
11020         <dirent/dirent.h>.
11021
11022 2012-02-28  David S. Miller  <davem@davemloft.net>
11023
11024         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11025         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11026         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11027         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11028
11029 2012-02-27  David S. Miller  <davem@davemloft.net>
11030
11031         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11033         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11034         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11035
11036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11037         frame pointer instead of stack pointer relative arg slot.
11038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11039         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11040         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11041
11042 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11043
11044         [BZ #3992]
11045         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11046
11047 2012-02-27  David S. Miller  <davem@davemloft.net>
11048
11049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11050         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11052         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11053         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11054         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11055         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11056         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11057
11058 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11059
11060         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11061         later.  Allow versions 5-9.
11062         * configure: Regenerated.
11063         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11064         required minimum version and 4.6 as recommended version.  Do not
11065         mention bugs in GCC 2.7 and 2.8.
11066         * INSTALL: Regenerated.
11067
11068 2012-02-27  David S. Miller  <davem@davemloft.net>
11069
11070         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11071         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11072         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11073         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11074         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11075         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11076         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11077         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11078
11079         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11080         manipulate bits before adding and subtracting TWO112[sx].
11081         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11082
11083 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11084
11085         [BZ #13775]
11086         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11087         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11088         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11089         being in POSIX, because they are in 1003.1-2008.
11090
11091         * rt/tst-aio.c: Include <fcntl.h>.
11092         * rt/tst-aio7.c: Likewise.
11093         * rt/tst-aio64.c: Likewise.
11094
11095         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11096
11097 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11098
11099         * manual/install.texi (--with-headers): Describe headers as
11100         interface headers, not private headers.
11101         (Specific advice for GNU/Linux systems): Describe use of headers
11102         from "make headers_install", not private headers from older
11103         kernels.
11104         * INSTALL: Regenerated.
11105         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11106         Change to 2.6.19.
11107         * sysdeps/unix/sysv/linux/configure: Regenerated.
11108
11109         * manual/llio.texi (fclean): Remove documentation.
11110
11111         * manual/Makefile (libc-texi-generated): New variable.  Include
11112         version.texi.
11113         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11114         $(libc-texi-generated), not duplicated list of files.
11115         (version.texi, stamp-version): New rules.
11116         (realclean): Remove $(libc-texi-generated), not individual files
11117         from that list.  Do not remove dir-add.texinfo.
11118         * manual/libc.texinfo: Comment out uses of edition numbers and
11119         references to printed manual.  Remove last-updated dates.
11120         (EDITION): Comment out.
11121         (ISBN): Likewise.
11122         (VERSION, UPDATED): Remove.
11123         (version.texi): Include.
11124
11125 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11126
11127         * sysdeps/posix/spawni.c: Include <signal.h>.
11128         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11129         * sysdeps/pthread/aio_fsync.c: Likewise.
11130
11131 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11132
11133         * conform/Makefile (tests): Run only when not cross-compiling and
11134         when fast-check is not defined.
11135
11136         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11137         * conform/data/limits.h-data: Fixes for POSIX2008.
11138         * conform/run-conformtest.sh: Run all tests.
11139         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11140         headers.
11141         * include/bits/dlfcn.h: Likewise.
11142         * include/langinfo.h: Likewise.
11143         * include/monetary.h: Likewise.
11144         * include/sys/poll.h: Likewise.
11145
11146         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11147         for __USE_GNU.
11148         * posix/spawn.h: Define __need_sigset_t.
11149         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11150         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11151         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11152         to get sigevent_t only.
11153         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11154         only for __USE_GNU.
11155         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11156         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11157         process_vm_writev only for __USE_GNU.
11158         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11159
11160         * conform/Makefile: For now ignore errors from run-conformtest.
11161         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11162         POSIX to avoid namespace pollution.  Don't prepend headers.
11163         * conform/data/aio.h-data: Fixes for POSIX testing.
11164         * conform/data/fcntl.h-data: Likewise.
11165         * conform/data/glob.h-data: Likewise.
11166         * conform/data/grp.h-data: Likewise.
11167         * conform/data/pthread.h-data: Likewise.
11168         * conform/data/pwd.h-data: Likewise.
11169         * conform/data/signal.h-data: Likewise.
11170         * conform/data/spawn.h-data: Likewise.
11171         * conform/data/stdio.h-data: Likewise.
11172         * conform/data/stdlib.h-data: Likewise.
11173         * conform/data/stropts.h-data: Likewise.
11174         * conform/data/sys/mman.h-data: Likewise.
11175         * conform/data/sys/stat.h-data: Likewise.
11176         * conform/data/sys/types.h-data: Likewise.
11177         * conform/data/sys/wait.h-data: Likewise.
11178         * conform/data/time.h-data: Likewise.
11179         * conform/data/unistd.h-data: Likewise.
11180         * conform/data/utime.h-data: Likewise.
11181
11182         * io/sys/stat.h: fchmod was always in POSIX.
11183         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11184         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11185         * rt/aio.h: Define __need_timespec before including <time.h>.
11186         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11187         struct.  Add forward declaration of pthread_attr_t and use it in
11188         sigevent.
11189         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11190         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11191         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11192         always remove CLK_TCK definition.
11193
11194 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11195
11196         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11197
11198 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11199
11200         * conform/run-conformtest.sh: New file.
11201         * conform/Makefile: Run run-conformtest for tests.
11202         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11203         support.
11204
11205         * conform/data/uchar.h-data: New file.
11206         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11207         * conform/data/arpa/inet.h-data: Likewise.
11208         * conform/data/assert.h-data: Likewise.
11209         * conform/data/complex.h-data: Likewise.
11210         * conform/data/cpio.h-data: Likewise.
11211         * conform/data/ctype.h-data: Likewise.
11212         * conform/data/dirent.h-data: Likewise.
11213         * conform/data/dlfcn.h-data: Likewise.
11214         * conform/data/errno.h-data: Likewise.
11215         * conform/data/fcntl.h-data: Likewise.
11216         * conform/data/float.h-data: Likewise.
11217         * conform/data/fmtmsg.h-data: Likewise.
11218         * conform/data/fnmatch.h-data: Likewise.
11219         * conform/data/ftw.h-data: Likewise.
11220         * conform/data/glob.h-data: Likewise.
11221         * conform/data/grp.h-data: Likewise.
11222         * conform/data/iconv.h-data: Likewise.
11223         * conform/data/inttypes.h-data: Likewise.
11224         * conform/data/langinfo.h-data: Likewise.
11225         * conform/data/libgen.h-data: Likewise.
11226         * conform/data/limits.h-data: Likewise.
11227         * conform/data/locale.h-data: Likewise.
11228         * conform/data/math.h-data: Likewise.
11229         * conform/data/monetary.h-data: Likewise.
11230         * conform/data/mqueue.h-data: Likewise.
11231         * conform/data/ndbm.h-data: Likewise.
11232         * conform/data/net/if.h-data: Likewise.
11233         * conform/data/netdb.h-data: Likewise.
11234         * conform/data/netinet/in.h-data: Likewise.
11235         * conform/data/nl_types.h-data: Likewise.
11236         * conform/data/poll.h-data: Likewise.
11237         * conform/data/pthread.h-data: Likewise.
11238         * conform/data/pwd.h-data: Likewise.
11239         * conform/data/regex.h-data: Likewise.
11240         * conform/data/sched.h-data: Likewise.
11241         * conform/data/search.h-data: Likewise.
11242         * conform/data/semaphore.h-data: Likewise.
11243         * conform/data/setjmp.h-data: Likewise.
11244         * conform/data/signal.h-data: Likewise.
11245         * conform/data/spawn.h-data: Likewise.
11246         * conform/data/stdarg.h-data: Likewise.
11247         * conform/data/stdio.h-data: Likewise.
11248         * conform/data/stdlib.h-data: Likewise.
11249         * conform/data/string.h-data: Likewise.
11250         * conform/data/strings.h-data: Likewise.
11251         * conform/data/stropts.h-data: Likewise.
11252         * conform/data/sys/ipc.h-data: Likewise.
11253         * conform/data/sys/mman.h-data: Likewise.
11254         * conform/data/sys/msg.h-data: Likewise.
11255         * conform/data/sys/resource.h-data: Likewise.
11256         * conform/data/sys/select.h-data: Likewise.
11257         * conform/data/sys/sem.h-data: Likewise.
11258         * conform/data/sys/shm.h-data: Likewise.
11259         * conform/data/sys/socket.h-data: Likewise.
11260         * conform/data/sys/stat.h-data: Likewise.
11261         * conform/data/sys/statvfs.h-data: Likewise.
11262         * conform/data/sys/time.h-data: Likewise.
11263         * conform/data/sys/timeb.h-data: Likewise.
11264         * conform/data/sys/times.h-data: Likewise.
11265         * conform/data/sys/types.h-data: Likewise.
11266         * conform/data/sys/uio.h-data: Likewise.
11267         * conform/data/sys/un.h-data: Likewise.
11268         * conform/data/sys/utsname.h-data: Likewise.
11269         * conform/data/sys/wait.h-data: Likewise.
11270         * conform/data/syslog.h-data: Likewise.
11271         * conform/data/tar.h-data: Likewise.
11272         * conform/data/termios.h-data: Likewise.
11273         * conform/data/utime.h-data: Likewise.
11274         * conform/data/utmpx.h-data: Likewise.
11275         * conform/data/varargs.h-data: Likewise.
11276         * conform/data/wchar.h-data: Likewise.
11277         * conform/data/wctype.h-data: Likewise.
11278         * conform/data/wordexp.h-data: Likewise.
11279
11280         * include/stropts.h: New file.
11281         * include/uchar.h: New file.
11282         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11283         * include/assert.h: Likewise.
11284         * include/ctype.h: Likewise.
11285         * include/dirent.h: Likewise.
11286         * include/dlfcn.h: Likewise.
11287         * include/fcntl.h: Likewise.
11288         * include/fnmatch.h: Likewise.
11289         * include/glob.h: Likewise.
11290         * include/grp.h: Likewise.
11291         * include/libio.h: Likewise.
11292         * include/locale.h: Likewise.
11293         * include/math.h: Likewise.
11294         * include/net/if.h: Likewise.
11295         * include/netdb.h: Likewise.
11296         * include/netinet/in.h: Likewise.
11297         * include/pthread.h: Likewise.
11298         * include/pwd.h: Likewise.
11299         * include/regex.h: Likewise.
11300         * include/sched.h: Likewise.
11301         * include/search.h: Likewise.
11302         * include/setjmp.h: Likewise.
11303         * include/signal.h: Likewise.
11304         * include/stdio.h: Likewise.
11305         * include/stdlib.h: Likewise.
11306         * include/string.h: Likewise.
11307         * include/sys/cdefs.h: Likewise.
11308         * include/sys/mman.h: Likewise.
11309         * include/sys/msg.h: Likewise.
11310         * include/sys/resource.h: Likewise.
11311         * include/sys/select.h: Likewise.
11312         * include/sys/socket.h: Likewise.
11313         * include/sys/stat.h: Likewise.
11314         * include/sys/statvfs.h: Likewise.
11315         * include/sys/time.h: Likewise.
11316         * include/sys/times.h: Likewise.
11317         * include/sys/uio.h: Likewise.
11318         * include/sys/utsname.h: Likewise.
11319         * include/sys/wait.h: Likewise.
11320         * include/termios.h: Likewise.
11321         * include/time.h: Likewise.
11322         * include/ulimit.h: Likewise.
11323         * include/unistd.h: Likewise.
11324         * include/utime.h: Likewise.
11325         * include/wchar.h: Likewise.
11326         * include/wctype.h: Likewise.
11327         * include/wordexp.h: Likewise.
11328
11329         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11330
11331         * time/time.h: TIME_UTC must be a macro.
11332         Make timespec_get available for ISO C11 only as well.
11333
11334 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11335
11336         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11337         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11338
11339 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11340
11341         * configure.in: Use -o not -a in test for unsupported multi-arch.
11342
11343 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11344
11345         * manual/texinfo.tex: Update to version 2012-01-19.16.
11346
11347 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11348
11349         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11350
11351 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11352
11353         [BZ #13738]
11354         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11355         * manual/fdl-1.3.texi: New file.
11356         * manual/fdl-1.1.texi: File removed.
11357
11358         [BZ #13738]
11359         * manual/libc.texinfo (FDL_VERSION): New @set.
11360         Use it for mention of FDL in cover text.
11361         (Documentation License): Use it in @include file name.
11362
11363 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11364             Roland McGrath  <roland@hack.frob.com>
11365
11366         [BZ #5461]
11367         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11368         not LONG_LONG_MAX and LONG_LONG_MIN.
11369         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11370         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11371         name.
11372         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11373
11374 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11375
11376         [BZ #2547]
11377         [BZ #11365]
11378         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11379         manipulate bits before adding and subtracting TWO23[sx].
11380         * math/libm-test.inc (nearbyint_test): Add more tests.
11381
11382 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11383
11384         [BZ #2548]
11385         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11386         bits before adding and subtracting TWO23[sx].
11387         * math/libm-test.inc (rint_test): Add more tests.
11388         (rint_test_tonearest): Likewise.
11389         (rint_test_towardzero): Likewise.
11390         (rint_test_downward): Likewise.
11391         (rint_test_upward: Likewise.
11392
11393 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11394
11395         [BZ #10110]
11396         * include/stdc-predef.h: New file.  Extracted from features.h.
11397         * include/features.h: Include stdc-predef.h.
11398         * Makefile (headers): Add stdc-predef.h.
11399         * CONFORMANCE (Compiler limitations): Update.
11400
11401 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11402
11403         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11404
11405 2012-02-21  David S. Miller  <davem@davemloft.net>
11406
11407         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11408         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11409
11410 2012-02-20  David S. Miller  <davem@davemloft.net>
11411
11412         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11413         using a normal save/restore sequence, rather than allocating a
11414         dummy stack frame just to store a frame pointer and restore.
11415         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11416
11417 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11418
11419         * manual/install.texi: Fix stray word in line-wrapped comment.
11420
11421 2012-02-20  David S. Miller  <davem@davemloft.net>
11422
11423         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11424         both binutils and gcc support GOTDATA.
11425
11426         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11427         "rd %pc" in the PIC register setup sequences.
11428
11429         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11430         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11431         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11432         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11433         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11434         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11435         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11436         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11437         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11438         (SYSCALL_ERROR_HANDLER): Likewise.
11439         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11440         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11441         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11442         (SYSCALL_ERROR_HANDLER): Likewise.
11443
11444         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11445         (HAVE_GCC_GOTDATA): New.
11446         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11447         relocation support in both binutils and gcc.
11448         * sysdeps/sparc/elf/configure: Regenerate.
11449
11450         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11451         * sysdeps/sparc/sparc32/elf/configure: Delete.
11452         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11453         * sysdeps/sparc/sparc64/elf/configure: Delete.
11454         * sysdeps/sparc/elf/configure.in: New file.
11455         * sysdeps/sparc/elf/configure: Generate.
11456
11457         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11458         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11459         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11460         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11461         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11462
11463 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11464
11465         * manual/install.texi: Do not mention specific glibc version
11466         numbers.
11467         * manual/libc.texinfo (VERSION, UPDATED): Update.
11468         (@copying): Use @copyright{} and range of years.
11469
11470 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11471
11472         [BZ #13695]
11473         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11474         [crti.S not in sysdirs] (generated): Do not append.
11475         [crti.S not in sysdirs] (omit-deps): Likewise.
11476         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11477         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11478         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11479         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11480         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11481         Likewise.
11482         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11483         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11484         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11485         * csu/defs.awk: Remove file.
11486         * sysdeps/generic/initfini.c: Likewise.
11487         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11488         variable.
11489         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11490         Likewise.
11491
11492 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11493
11494         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11495         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11496         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11497         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11498         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11499         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11500         <bits/epoll.h>.
11501         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11502         (__EPOLL_PACKED): Define to empty if not defined by
11503         <bits/epoll.h>.
11504         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11505         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11506         bits/epoll.h.
11507
11508 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11509
11510         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11511         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11512         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11513         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11514         <bits/timerfd.h>.
11515         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11516         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11517         bits/timerfd.h.
11518
11519 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11520
11521         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11522         in C locale.
11523         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11524         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11525         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11527
11528 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11529
11530         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11531         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11532
11533 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11534
11535         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11536         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11537         defined.
11538         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11539         Likewise.
11540         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11541         entry for 2.16.
11542
11543 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11544
11545         * math/w_acos.c: Use non-signaling floating-point comparisons.
11546         * math/w_acosf.c: Likewise.
11547         * math/w_acosh.c: Likewise.
11548         * math/w_acoshf.c: Likewise.
11549         * math/w_acoshl.c: Likewise.
11550         * math/w_acosl.c: Likewise.
11551         * math/w_asin.c: Likewise.
11552         * math/w_asinf.c: Likewise.
11553         * math/w_asinl.c: Likewise.
11554         * math/w_atanh.c: Likewise.
11555         * math/w_atanhf.c: Likewise.
11556         * math/w_atanhl.c: Likewise.
11557         * math/w_exp2.c: Likewise.
11558         * math/w_exp2f.c: Likewise.
11559         * math/w_exp2l.c: Likewise.
11560         * math/w_j0.c: Likewise.
11561         * math/w_j0f.c: Likewise.
11562         * math/w_j0l.c: Likewise.
11563         * math/w_j1.c: Likewise.
11564         * math/w_j1f.c: Likewise.
11565         * math/w_j1l.c: Likewise.
11566         * math/w_jn.c: Likewise.
11567         * math/w_jnf.c: Likewise.
11568         * math/w_log.c: Likewise.
11569         * math/w_log10.c: Likewise.
11570         * math/w_log10f.c: Likewise.
11571         * math/w_log10l.c: Likewise.
11572         * math/w_log2.c: Likewise.
11573         * math/w_log2f.c: Likewise.
11574         * math/w_log2l.c: Likewise.
11575         * math/w_logf.c: Likewise.
11576         * math/w_logl.c: Likewise.
11577         * math/w_sqrt.c: Likewise.
11578         * math/w_sqrtf.c: Likewise.
11579         * math/w_sqrtl.c: Likewise.
11580         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11581         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11582         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11583         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11584         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11585
11586 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11587
11588         [BZ #9739]
11589         * manual/string.texi (strnlen): Use correct parameter name in
11590         equivalent expression.
11591
11592 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11593
11594         [BZ #11174]
11595         * manual/users.texi (seteuid): Consistently use neweuid for
11596         argument name.
11597
11598 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11599
11600         [BZ #13704]
11601         * manual/nss.texi (Services in the NSS configuration): Correct
11602         list of services in example configuration file.
11603
11604 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11605
11606         [BZ #11322]
11607         * manual/arith.texi: Remove statements about negative zero
11608         behaving identically to zero.
11609
11610 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11611
11612         [BZ #5993]
11613         * manual/install.texi: Do not document upgrading from libc5.
11614
11615 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11616
11617         [BZ #4596]
11618         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11619
11620 2012-02-18  David S. Miller  <davem@davemloft.net>
11621
11622         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11623         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11624         %o7 across the call.
11625         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11626         instead.
11627         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11628         SETUP_PIC_REG_LEAF.
11629         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11630         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11631         * sysdeps/sparc/crtn.S: Likewise.
11632
11633 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11634
11635         * aout/Makefile: Remove.
11636
11637 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11638
11639         [BZ #13058]
11640         * manual/examples/argp-ex1.c (main): Format definition in GNU
11641         style.
11642         * manual/examples/argp-ex2.c (main): Likewise.
11643         * manual/examples/argp-ex3.c (main): Likewise.
11644         * manual/examples/argp-ex4.c (main): Likewise.
11645         * manual/examples/longopt.c (main): Use new-style prototype
11646         definition.
11647         * manual/examples/strncat.c (main): Specify return type and use
11648         (void) for arguments.
11649         * manual/examples/subopt.c (main): Use char **argv argument.
11650
11651 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11652
11653         [BZ #5077]
11654         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11655         rounding modes.
11656
11657 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11658
11659         [BZ #6907]
11660         * manual/string.texi (strchr): Change when strchrnul is
11661         recommended.
11662
11663 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11664
11665         [BZ #174]
11666         * manual/locale.texi (setlocale): Document LOCPATH.
11667
11668 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11669
11670         [BZ #10210]
11671         * manual/process.texi (execle): Move @dots{} before last argument.
11672
11673 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11674
11675         [BZ #12047]
11676         * manual/charset.texi (Generic Charset Conversion): Fix typo
11677         (LC_TYPE -> LC_CTYPE).
11678
11679 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11680
11681         [BZ #5805]
11682         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11683         (scalbnf): Likewise.
11684         (scalbnl): Likewise.
11685         (scalbln): Likewise.
11686         (scalblnf): Likewise.
11687         (scalblnl): Likewise.
11688         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11689         (vwarnx): Likewise.
11690         (verr): Likewise.
11691         (verrx): Likewise.
11692         * manual/filesys.texi (telldir): Use braces around return type.
11693         * manual/llio.texi (mmap): Add space after comma.
11694         (mmap64): Likewise.
11695         * manual/math.texi (jn): Use @var{} on parameter names.
11696         (jnf): Likewise.
11697         (jnl): Likewise.
11698         (yn): Likewise.
11699         (ynf): Likewise.
11700         (ynl): Likewise.
11701         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11702         line.
11703         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11704         "...".
11705         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11706         (sched_get_priority_max): Likewise.
11707         * manual/signal.texi (sigvec): Add space after comma.
11708         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11709         names.
11710         (if_indextoname): Likewise.
11711         (if_freenameindex): Likewise.
11712         (sendto): Use ',' instead of '.' in prototype.
11713         * manual/startup.texi (syscall): Use @dots{} instead of literal
11714         "...".
11715         * manual/stdio.texi (__fpending): Separate initial words of
11716         paragraph from @deftypefun line.
11717         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11718         "...".
11719         (vsyslog): Use @var{} on parameter names.
11720         * manual/terminal.texi (stty): Use @var{} on parameter names.
11721         * manual/users.texi (getutmp): Use @var{} on parameter names.
11722         (getutmpx): Likewise.
11723
11724 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11725
11726         [BZ #6884]
11727         * manual/stdio.texi (fopen): Fix typos in description of
11728         ",ccs=STRING".
11729
11730 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11731
11732         [BZ #4026]
11733         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11734         get clock_id definition.
11735
11736 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11737
11738         [BZ #4822]
11739         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11740         (madvise): Cast every argument to void on its own.
11741
11742 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11743
11744         [BZ #9902]
11745         * manual/startup.texi (Exit Status): Fix typo.
11746
11747 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11748
11749         [BZ #10140]
11750         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11751         * manual/examples/argp-ex2.c: Likewise.
11752         * manual/examples/argp-ex3.c: Likewise.
11753
11754 2012-02-16  Richard Henderson  <rth@redhat.com>
11755
11756         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11757         * sysdeps/s390/s390-32/initfini.c: Remove.
11758         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11759         * sysdeps/s390/s390-64/initfini.c: Remove.
11760
11761 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11762
11763         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11764         compiler output for sysdeps/generic/initfini.c.
11765         * sysdeps/sh/elf/initfini.c: Remove file.
11766
11767 2012-02-16  David S. Miller  <davem@davemloft.net>
11768
11769         [BZ #11494]
11770         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11771
11772         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11773         * sysdeps/sparc/crti.S: New file.
11774         * sysdeps/sparc/crtn.S: New file.
11775         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11776         * sysdeps/sparc/sparc64/Makefile: Likewise.
11777
11778 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11779
11780         [BZ #3335]
11781         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11782
11783 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11784
11785         [BZ #4822]
11786         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11787
11788         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11789         (write, read, close): Likewise.
11790         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11791
11792 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11793
11794         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11795         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11796         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11797         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11798         <bits/signalfd.h>.
11799         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11800         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11801         bits/signalfd.h.
11802
11803 2012-02-14  Marek Polacek  <polacek@redhat.com>
11804
11805         * sysdeps/x86_64/crti.S: New file.
11806         * sysdeps/x86_64/crtn.S: New file.
11807         * sysdeps/x86_64/elf/initfini.c: Remove file.
11808
11809 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11810
11811         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11812         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11813         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11814         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11815         <bits/inotify.h>.
11816         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11817         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11818         bits/inotify.h.
11819
11820 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11821
11822         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11823         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11824         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11825         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11826         <bits/eventfd.h>.
11827         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11828         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11829         bits/eventfd.h.
11830
11831 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11832
11833         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11834         __feraiseexcept instead of feraiseexcept.
11835
11836         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11837         nanosleep invocations.
11838         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11839         strings, and add error checking for a nanosleep invocations.
11840
11841 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11842
11843         Replace FSF snail mail address with URLs, as per GNU coding standards.
11844         Most of the snail mail addresses were wrong anyway, and omitting
11845         them makes the source code easier to maintain.  Almost all of the
11846         changes are to license notices and to locale LC_IDENTIFICATION
11847         addresses, except for this one:
11848         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11849         not its snail mail address.
11850
11851 2012-02-09  Richard Henderson  <rth@twiddle.net>
11852
11853         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11854         of kernel-features.h.
11855
11856         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11857
11858 2012-02-08  Marek Polacek  <polacek@redhat.com>
11859
11860         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11861         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11862         * sysdeps/gnu/_G_config.h: Likewise.
11863         * sysdeps/generic/_G_config.h: Likewise.
11864
11865 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11866
11867         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11868         tests.
11869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11870
11871         * sysdeps/powerpc/powerpc32/crti.S: New file.
11872         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11873         * sysdeps/powerpc/powerpc64/crti.S: New file.
11874         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11875
11876         * Makeconfig (have-initfini): Don't set.
11877         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11878         * configure.in (nopic_initfini): Don't substitute.
11879         * config.h.in (HAVE_INITFINI): Don't #undef.
11880         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11881         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11882
11883 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11884
11885         Support crti.S and crtn.S provided directly by architectures.
11886         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11887         [crti.S in sysdirs] (omit-deps): Likewise.
11888         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11889         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11890         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11891         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11892         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11893         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11894         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11895         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11896         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11897         compiler output for sysdeps/generic/initfini.c.
11898         * sysdeps/i386/elf/Makefile: Remove file.
11899         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11900
11901 2012-02-07  Marek Polacek  <polacek@redhat.com>
11902
11903         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11904         * sysdeps/gnu/_G_config.h: Likewise.
11905         * sysdeps/mach/hurd/_G_config.h: Likewise.
11906
11907 2012-02-07  Marek Polacek  <polacek@redhat.com>
11908
11909         * math/Makefile (tests): Add tst-CMPLX2.
11910         * math/tst-CMPLX2.c: New file.
11911
11912 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11913
11914         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11915
11916         * math/libm-test.inc (jn_test): Add missing L suffix.
11917
11918 2012-02-06  Marek Polacek  <polacek@redhat.com>
11919
11920         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11921         * sysdeps/i386/fpu/e_powf.S: Likewise.
11922         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11923         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11924         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11925         * sysdeps/i386/fpu/e_pow.S: Likewise.
11926         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11927         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11928         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11929         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11930         * sysdeps/i386/fpu/e_log2.S: Likewise.
11931         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11932         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11933         * sysdeps/i386/fpu/e_powl.S: Likewise.
11934         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11935         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11936         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11937         * sysdeps/i386/fpu/e_logl.S: Likewise.
11938         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11939         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11940         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11941         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11942         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11943         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11944         * sysdeps/i386/fpu/e_log.S: Likewise.
11945         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11946         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11947         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11948         * sysdeps/i386/fpu/e_logf.S: Likewise.
11949         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11950         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11951         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11952         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11953         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11954         * sysdeps/i386/fpu/e_log10.S: Likewise.
11955         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11956         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11957         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11958         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11959         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11960         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11961         * sysdeps/i386/asm-syntax.h: Likewise.
11962         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11963         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11964         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11965         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11966         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11967         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11968         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11969         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11970         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11971         * sysdeps/powerpc/sysdep.h: Likewise.
11972         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11973         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11974
11975 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11976
11977         [BZ #411]
11978         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11979
11980 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11981
11982         * sysdeps/i386/sysdep.h: Include <features.h>.
11983         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11984         version.
11985
11986 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11987
11988         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11989         Define.
11990         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11991         LOAD_PIC_REG_STR.
11992
11993 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11994
11995         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11996         (SETUP_PIC_REG): Use GET_PC_THUNK.
11997         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11998         macro.
11999
12000 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12001
12002         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12003         for non-PIC compilation.
12004         (SETUP_PIC_REG): Add .p2align directive.
12005         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12006         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12007         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12008         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12009         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12010         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12011         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12012         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12013         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12014         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12015         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12016         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12017         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12018         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12019         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12020         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12021         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12022         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12023         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12024         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12025         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12026         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12027         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12028         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12029         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12030         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12031         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12032         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12033         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12034         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12035         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12036         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12037         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12038         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12039         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12040         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12041         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12042         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12043         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12044         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12045         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12046
12047 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12048
12049         * math/tst-CMPLX.c: Include <stdio.h>.
12050
12051 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12052
12053         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12054         float.
12055         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12056         * sysdeps/sparc/bits/mathdef.h: Likewise.
12057
12058 2012-01-31  Marek Polacek  <polacek@redhat.com>
12059
12060         * libio/libio.h: Don't define _PARAMS.
12061         * locale/programs/config.h: Don't define PARAMS.
12062         * stdlib/strtol_l.c: Likewise.
12063         (__strtol_l): Remove PARAMS from the prototype.
12064
12065 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12066
12067         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12068         names.  Just use the correct names.  Remove unnecessary wrapper
12069         functions.
12070         * malloc/arena.c: Likewise.
12071         * malloc/hooks.c: Likewise.
12072
12073         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12074         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12075         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12076
12077 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12078
12079         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12080         into tail calls.
12081         (update_get_addr): New function.
12082         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12083         GET_ADDR_MODULE parameter.
12084
12085 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12086
12087         * crypt/cert.c: Remove __STDC__ conditionals.
12088         * crypt/crypt-entry.c: Likewise.
12089         * crypt/crypt_util.c: Likewise.
12090         * libio/filedoalloc.c: Likewise.
12091         * libio/fileops.c: Likewise.
12092         * libio/genops.c: Likewise.
12093         * libio/iofclose.c: Likewise.
12094         * libio/iofdopen.c: Likewise.
12095         * libio/iofopen.c: Likewise.
12096         * libio/iofopen64.c: Likewise.
12097         * libio/iogetdelim.c: Likewise.
12098         * libio/iopopen.c: Likewise.
12099         * libio/obprintf.c: Likewise.
12100         * libio/oldfileops.c: Likewise.
12101         * libio/oldiofclose.c: Likewise.
12102         * libio/oldiofdopen.c: Likewise.
12103         * libio/oldiofopen.c: Likewise.
12104         * libio/oldiopopen.c: Likewise.
12105         * libio/wfiledoalloc.c: Likewise.
12106         * libio/wgenops.c: Likewise.
12107         * locale/programs/xmalloc.c: Likewise.
12108         * misc/syslog.c: Likewise.
12109         * stdio-common/xbug.c: Likewise.
12110         * string/memchr.c: Likewise.
12111         * string/memcmp.c: Likewise.
12112         * string/memrchr.c: Likewise.
12113         * string/rawmemchr.c: Likewise.
12114         * sysdeps/posix/getcwd.c: Likewise.
12115         * time/strftime_l.c: Likewise.
12116
12117 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12118
12119         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12120         * config.make.in (config-cflags-sse2avx): Define.
12121         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12122         Fix typo.
12123
12124 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12125
12126         * scripts/config.guess: Update from upstream config git repository.
12127         * scripts/config.sub: Likewise.
12128
12129 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12130
12131         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12132         (EM_NUM): Update.
12133         (R_TILEPRO_*, R_TILEGX_*): New macros.
12134
12135         * scripts/firstversions.awk: Fix bug in version range handling.
12136
12137         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12138
12139         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12140
12141         * include/sys/epoll.h: New file.
12142         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12143         libc_hidden_def.
12144
12145 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12146
12147         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12148         Avoid unnecessary __WORDSIZE == 64 test.
12149         (fmaxf): Use VEX format if possible.
12150         (fmax): Likewise.
12151         (fminf): Likewise.
12152         (fmin): Likewise.
12153
12154         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12155         * math/math_private.h: Remove libc_fegetround* and
12156         libc_fesetround*.
12157         * sysdeps/i386/configure.in: Check for -msse2avx.
12158         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12159         also if SSE2AVX is defined.
12160         Remove libc_fegetround* and libc_fesetround*.
12161         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12162         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12163         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12164         of HAS_YMM_USABLE.
12165         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12166         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12167         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12168         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12169         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12170
12171         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12172
12173 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12174
12175         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12176         size is not set.
12177         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12178
12179 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12180
12181         [BZ #13618]
12182         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12183         relocation.
12184         * Makeconfig (libm): Define.
12185         * elf/Makefile: Add rules to build and run tst-relsort1.
12186         * elf/tst-relsort1.c: New file.
12187         * elf/tst-relsort1mod1.c: New file.
12188         * elf/tst-relsort1mod2.c: New file.
12189
12190 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12191
12192         * math/s_ldexp.c: Remove __STDC__ conditionals.
12193         * math/s_ldexpf.c: Likewise.
12194         * math/s_ldexpl.c: Likewise.
12195         * math/s_nextafter.c: Likewise.
12196         * math/s_nexttowardf.c: Likewise.
12197         * math/s_significand.c: Likewise.
12198         * math/s_significandf.c: Likewise.
12199         * math/s_significandl.c: Likewise.
12200         * math/w_jnl.c: Likewise.
12201         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12202         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12203         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12204         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12205         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12206         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12207         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12208         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12209         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12210         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12211         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12212         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12213         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12214         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12215         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12216         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12217         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12218         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12219         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12220         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12221         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12222         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12223         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12224         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12225         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12226         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12227         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12228         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12229         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12230         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12231         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12232         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12233         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12234         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12235         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12236         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12237         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12238         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12239         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12240         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12241         * sysdeps/ieee754/k_standard.c: Likewise.
12242         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12243         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12244         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12245         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12246         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12247         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12248         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12249         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12250         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12251         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12252         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12253         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12255         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12256         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12257         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12258         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12259         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12260         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12261         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12262         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12263         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12265         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12266         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12269         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12270         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12271         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12272         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12273         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12274         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12275         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12276         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12277         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12278         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12281         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12282         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12283         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12284         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12285         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12286         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12287         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12288         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12289         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12290         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12291         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12292         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12293         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12294         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12295         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12296         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12297         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12298         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12299         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12300         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12301         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12302         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12303         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12304         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12305         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12306         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12307         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12308         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12309         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12310         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12311         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12312         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12313         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12314         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12315         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12316         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12317         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12318         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12319         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12320         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12321         * sysdeps/ieee754/s_matherr.c: Likewise.
12322         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12323         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12324         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12325         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12326
12327 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12328
12329         * crypt/md5.h: Remove __STDC__ conditionals.
12330         * libio/libioP.h: Likewise.
12331         * locale/programs/config.h: Likewise.
12332         * sysdeps/generic/sysdep.h: Likewise.
12333         * sysdeps/i386/asm-syntax.h: Likewise.
12334         * sysdeps/s390/asm-syntax.h: Likewise.
12335         * sysdeps/unix/sysdep.h: Likewise.
12336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12338
12339 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12340
12341         * libio/libio.h: Remove __STDC__ conditionals.
12342         * malloc/obstack.h: Likewise.
12343         * math/complex.h: Likewise.
12344         * math/math.h: Likewise.
12345         * sysdeps/generic/_G_config.h: Likewise.
12346         * sysdeps/gnu/_G_config.h: Likewise.
12347         * sysdeps/mach/hurd/_G_config.h: Likewise.
12348         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12349         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12350         * sysdeps/sparc/bits/mathdef.h: Likewise.
12351
12352 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12353
12354         [BZ #13583]
12355         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12356         Clean up HAS_* macros.
12357         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12358         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12359         possible.
12360         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12361         HAS_AVX.
12362         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12363         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12364         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12365         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12366         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12367
12368 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12369
12370         * elf/tst-unique3.cc (gets): Remove declaration.
12371         * elf/tst-unique3lib.cc (gets): Likewise.
12372         * elf/tst-unique3lib2.cc (gets): Likewise.
12373         * elf/tst-unique4.cc (gets): Likewise.
12374
12375 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12376
12377         * include/stdio.h: Add C++ protection.  Add gets declarations and
12378         definitions.
12379         * debug/tst-chk1.c: Don't declare gets here.
12380         * stdio-common/tst-gets.c: Likewise.
12381
12382 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12383
12384         * posix/glob: Remove directory.
12385
12386 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12387
12388         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12389
12390 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12391
12392         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12393         of the non-standard EPFNOSUPPORT.
12394
12395 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12396
12397         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12398         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12399         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12400
12401 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12402
12403         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12404
12405 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12406
12407         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12408         transient errors.
12409         * nscd/grpcache.c (cache_addgr): Likewise.
12410         * nscd/hstcache.c (cache_addhst): Likewise.
12411         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12412         * nscd/pwdcache.c (cache_addpw): Likewise.
12413         * nscd/servicescache.c (cache_addserv): Likewise.
12414
12415 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12416
12417         * malloc/malloc.c: Various cleanups.
12418         * malloc/hooks.c: Likewise.
12419
12420         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12421         * stdlib/bug-fmtmsg1.c: New file.
12422
12423         * stdlib/fmtmsg.c (init): Add missing unlock.
12424         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12425
12426 2012-01-12  Marek Polacek  <polacek@redhat.com>
12427
12428         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12429         and _GNU_SOURCE.
12430
12431 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12432
12433         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12434         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12435         macro to ensure uniqueness of label name.
12436         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12437         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12438
12439 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12440
12441         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12442
12443         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12444         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12445         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12446         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12447
12448 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12449
12450         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12451
12452         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12453         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12454         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12455
12456         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12457
12458         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12459         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12460         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12461         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12462
12463         * math/bits/math-finite.h: Add ldexp support.
12464
12465 2012-01-10  Marek Polacek  <polacek@redhat.com>
12466
12467         * locale/programs/localedef.h (show_archive_content): Add noreturn
12468         attribute.
12469
12470 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12471
12472         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12473
12474 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12475
12476         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12477
12478         * io/Makefile (headers): Add bits/poll2.h.
12479
12480 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12481
12482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12483         typo #include statement.
12484
12485 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12486
12487         * include/sys/cdefs.h: Define __attribute_alloc_size.
12488         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12489         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12490         * elf/pldd.c: Likewise.
12491         * iconv/iconv_charmap.c: Likewise.
12492         * iconv/iconvconfig.c: Likewise.
12493         * iconv/strtab.c: Likewise.
12494         * locale/programs/locale.c: Likewise.
12495         * locale/programs/localedef.h: Likewise.
12496         * locale/programs/simple-hash.c: Likewise.
12497         * nscd/nscd.h: Likewise.
12498         * nss/makedb.c: Likewise.
12499         * sysdeps/generic/ldconfig.h: Likewise.
12500         * locale/programs/localedef.c: Remove xmalloc prototype.
12501         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12502
12503 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12504
12505         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12506         appropriate.
12507
12508 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12509
12510         * math/Makefile (tests): Add tst-CMPLX.
12511         * math/tst-CMPLX.c: New file.
12512
12513         * math/complex.h (CMPLXL): Fix typo.
12514
12515         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12516         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12517         GLIBC_2.16.
12518         * debug/tst-chk1.c: Add poll and ppoll tests.
12519         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12520         * include/sys/poll.h: Add hidden proto for ppoll.
12521         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12522         * sysdeps/mach/hurd/ppoll.c: Likewise.
12523         * io/ppoll.c: Likewise.
12524         * debug/poll_chk.c: New file.
12525         * debug/ppoll_chk.c: New file.
12526         * include/bits/poll2.h: New file.
12527         * io/bits/poll2.h: New file.
12528
12529         [BZ #1350]
12530         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12531
12532         * configure.in: static is always set to yes.  Remove.
12533         * config.make.in: Don't set build-static.
12534         * Makeconfig: Remove use of build-static.
12535         * dlfcn/Makefile: Likewise.
12536         * elf/Makefile: Likewise.
12537         * math/Makefile: Likewise.
12538         * misc/Makefile: Likewise.
12539         * nptl/Makefile: Likewise.
12540         * sysdeps/mach/hurd/Makefile: Likewise.
12541
12542         * configure.in: PWD_P is not used anymore.
12543         * config.make.in: Remove PWD_P entry.
12544
12545         * configure.in: Remove last remnants of RANLIB.
12546         No need to check for signed size_t anymore.
12547         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12548         and IA-64.
12549         Remove __builtin_expect test because we require at least gcc 3.4.
12550         * aclocal.m4: Likewise.
12551
12552         * wcsmbs/mbrtoc16.c: Implement using towc function.
12553         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12554         * wcsmbs/wcsmbsload.c: Likewise.
12555         * iconv/gconv_simple.c: Likewise.
12556         * iconv/gconv_int.h: Likewise.
12557         * iconv/gconv_builtin.h: Likewise.
12558         * iconv/iconv_prog.c: Remove CHAR16 handling.
12559
12560         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12561
12562         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12563
12564         * configure.in: Remove --with-elf and --enable-bounded options.
12565         Dont set base_machine for ia64.  More non-ELF conditions removed.
12566         Remove testing and setting of leading underscore information.
12567         * config.make.in (build-bounded): Set to no.
12568         * config.h.in: Remove NO_UNDERSCORES entry.
12569         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12570         them.
12571         * csu/start.c: Remove !NO_UNDERSCORE code.
12572         * locale/localeinfo.h: Likewise.
12573         * sysdeps/generic/machine-gmon.h: Likewise.
12574         * sysdeps/generic/sysdep.h: Likewise.
12575         * sysdeps/i386/sysdep.h: Likewise.
12576         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12577         * sysdeps/mach/sysdep.h: Likewise.
12578         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12579         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12580         * sysdeps/sh/sysdep.h: Likewise.
12581         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12582         * sysdeps/unix/i386/sysdep.S: Likewise.
12583         * sysdeps/unix/sparc/start.c: Likewise.
12584         * sysdeps/unix/sparc/sysdep.S: Likewise.
12585         * sysdeps/unix/sparc/sysdep.h: Likewise.
12586         * sysdeps/unix/start.c: Likewise.
12587         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12588         * sysdeps/x86_64/sysdep.h: Likewise.
12589
12590 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12591
12592         [BZ #13553]
12593         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12594         for non-gcc.
12595         * argp/argp-fmtstream.h: Use const instead __const.
12596         * argp/argp.h: Likewise.
12597         * assert/assert.h: Likewise.
12598         * bits/fenv.h: Likewise.
12599         * bits/sched.h: Likewise.
12600         * bits/sigset.h: Likewise.
12601         * bits/sigthread.h: Likewise.
12602         * catgets/nl_types.h: Likewise.
12603         * conform/data/pthread.h-data: Likewise.
12604         * crypt/crypt-private.h: Likewise.
12605         * crypt/crypt.h: Likewise.
12606         * crypt/crypt_util.c: Likewise.
12607         * ctype/ctype.h: Likewise.
12608         * debug/execinfo.h: Likewise.
12609         * debug/mbsnrtowcs_chk.c: Likewise.
12610         * debug/mbsrtowcs_chk.c: Likewise.
12611         * debug/wcsnrtombs_chk.c: Likewise.
12612         * debug/wcsrtombs_chk.c: Likewise.
12613         * debug/wcstombs_chk.c: Likewise.
12614         * dirent/dirent.h: Likewise.
12615         * dlfcn/dlfcn.h: Likewise.
12616         * elf/neededtest4.c: Likewise.
12617         * grp/grp.h: Likewise.
12618         * gshadow/gshadow.h: Likewise.
12619         * iconv/gconv.h: Likewise.
12620         * iconv/gconv_int.h: Likewise.
12621         * iconv/gconv_simple.c: Likewise.
12622         * iconv/iconv.h: Likewise.
12623         * iconv/loop.c: Likewise.
12624         * iconv/skeleton.c: Likewise.
12625         * include/aio.h: Likewise.
12626         * include/aliases.h: Likewise.
12627         * include/argz.h: Likewise.
12628         * include/arpa/inet.h: Likewise.
12629         * include/assert.h: Likewise.
12630         * include/dirent.h: Likewise.
12631         * include/dlfcn.h: Likewise.
12632         * include/execinfo.h: Likewise.
12633         * include/fcntl.h: Likewise.
12634         * include/fenv.h: Likewise.
12635         * include/glob.h: Likewise.
12636         * include/grp.h: Likewise.
12637         * include/libintl.h: Likewise.
12638         * include/mntent.h: Likewise.
12639         * include/netdb.h: Likewise.
12640         * include/pwd.h: Likewise.
12641         * include/rpc/netdb.h: Likewise.
12642         * include/sched.h: Likewise.
12643         * include/search.h: Likewise.
12644         * include/shadow.h: Likewise.
12645         * include/signal.h: Likewise.
12646         * include/stdio.h: Likewise.
12647         * include/stdlib.h: Likewise.
12648         * include/string.h: Likewise.
12649         * include/sys/socket.h: Likewise.
12650         * include/sys/stat.h: Likewise.
12651         * include/sys/statfs.h: Likewise.
12652         * include/sys/statvfs.h: Likewise.
12653         * include/sys/syslog.h: Likewise.
12654         * include/sys/time.h: Likewise.
12655         * include/sys/uio.h: Likewise.
12656         * include/time.h: Likewise.
12657         * include/unistd.h: Likewise.
12658         * include/utmp.h: Likewise.
12659         * include/wchar.h: Likewise.
12660         * include/wctype.h: Likewise.
12661         * inet/aliases.h: Likewise.
12662         * inet/arpa/inet.h: Likewise.
12663         * inet/netinet/ether.h: Likewise.
12664         * inet/netinet/in.h: Likewise.
12665         * intl/libintl.h: Likewise.
12666         * io/bits/fcntl2.h: Likewise.
12667         * io/fcntl.h: Likewise.
12668         * io/ftw.h: Likewise.
12669         * io/sys/poll.h: Likewise.
12670         * io/sys/stat.h: Likewise.
12671         * io/sys/statfs.h: Likewise.
12672         * io/sys/statvfs.h: Likewise.
12673         * io/utime.h: Likewise.
12674         * libio/bits/stdio.h: Likewise.
12675         * libio/bits/stdio2.h: Likewise.
12676         * libio/libio.h: Likewise.
12677         * libio/libioP.h: Likewise.
12678         * libio/stdio.h: Likewise.
12679         * locale/lc-ctype.c: Likewise.
12680         * locale/locale.h: Likewise.
12681         * login/utmp.h: Likewise.
12682         * malloc/arena.c: Likewise.
12683         * malloc/malloc.c: Likewise.
12684         * malloc/malloc.h: Likewise.
12685         * malloc/mcheck.c: Likewise.
12686         * malloc/mtrace.c: Likewise.
12687         * math/bits/mathcalls.h: Likewise.
12688         * math/fenv.h: Likewise.
12689         * math/math_private.h: Likewise.
12690         * misc/bits/error.h: Likewise.
12691         * misc/bits/syslog.h: Likewise.
12692         * misc/err.h: Likewise.
12693         * misc/error.h: Likewise.
12694         * misc/fstab.h: Likewise.
12695         * misc/mntent.h: Likewise.
12696         * misc/regexp.h: Likewise.
12697         * misc/search.h: Likewise.
12698         * misc/sgtty.h: Likewise.
12699         * misc/sys/mman.h: Likewise.
12700         * misc/sys/syslog.h: Likewise.
12701         * misc/sys/uio.h: Likewise.
12702         * misc/sys/xattr.h: Likewise.
12703         * misc/ttyent.h: Likewise.
12704         * nis/rpcsvc/ypclnt.h: Likewise.
12705         * nss/nss.h: Likewise.
12706         * posix/bits/unistd.h: Likewise.
12707         * posix/fnmatch.h: Likewise.
12708         * posix/glob.h: Likewise.
12709         * posix/sched.h: Likewise.
12710         * posix/spawn.h: Likewise.
12711         * posix/sys/wait.h: Likewise.
12712         * posix/unistd.h: Likewise.
12713         * posix/wordexp.h: Likewise.
12714         * pwd/pwd.h: Likewise.
12715         * resolv/netdb.h: Likewise.
12716         * resource/sys/resource.h: Likewise.
12717         * rt/aio.h: Likewise.
12718         * rt/bits/mqueue2.h: Likewise.
12719         * rt/mqueue.h: Likewise.
12720         * shadow/shadow.h: Likewise.
12721         * signal/signal.h: Likewise.
12722         * socket/send.c: Likewise.
12723         * socket/sendto.c: Likewise.
12724         * socket/sys/socket.h: Likewise.
12725         * stdio-common/printf.h: Likewise.
12726         * stdlib/bits/stdlib.h: Likewise.
12727         * stdlib/fmtmsg.h: Likewise.
12728         * stdlib/monetary.h: Likewise.
12729         * stdlib/stdlib.h: Likewise.
12730         * stdlib/ucontext.h: Likewise.
12731         * streams/stropts.h: Likewise.
12732         * string/argz.h: Likewise.
12733         * string/bits/string2.h: Likewise.
12734         * string/string.h: Likewise.
12735         * string/strings.h: Likewise.
12736         * sunrpc/rpc/auth.h: Likewise.
12737         * sunrpc/rpc/auth_des.h: Likewise.
12738         * sunrpc/rpc/clnt.h: Likewise.
12739         * sunrpc/rpc/netdb.h: Likewise.
12740         * sunrpc/rpc/pmap_clnt.h: Likewise.
12741         * sunrpc/rpc/xdr.h: Likewise.
12742         * sysdeps/generic/inttypes.h: Likewise.
12743         * sysdeps/generic/net/if.h: Likewise.
12744         * sysdeps/generic/sys/swap.h: Likewise.
12745         * sysdeps/gnu/net/if.h: Likewise.
12746         * sysdeps/gnu/utmpx.h: Likewise.
12747         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12748         * sysdeps/i386/i486/bits/string.h: Likewise.
12749         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12750         * sysdeps/s390/bits/string.h: Likewise.
12751         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12752         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12753         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12754         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12755         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12756         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12757         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12758         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12759         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12760         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12761         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12762         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12763         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12764         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12765         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12766         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12767         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12768         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12769         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12770         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12771         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12772         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12773         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12774         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12775         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12776         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12777         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12778         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12779         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12780         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12781         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12782         * sysvipc/sys/ipc.h: Likewise.
12783         * sysvipc/sys/msg.h: Likewise.
12784         * sysvipc/sys/sem.h: Likewise.
12785         * sysvipc/sys/shm.h: Likewise.
12786         * termios/termios.h: Likewise.
12787         * time/sys/time.h: Likewise.
12788         * time/time.h: Likewise.
12789         * wcsmbs/bits/wchar2.h: Likewise.
12790         * wcsmbs/uchar.h: Likewise.
12791         * wcsmbs/wchar.h: Likewise.
12792         * wctype/wctype.h: Likewise.
12793
12794         [BZ #13551]
12795         * Makeconfig: Remove all but ELF support including AIX support.
12796         * Makerules: Likewise.
12797         * config.h.in: Likewise.
12798         * config.make.in: Likewise.
12799         * configure: Likewise.
12800         * configure.in: Likewise.
12801         * csu/Makefile: Likewise.
12802         * csu/version.c: Likewise.
12803         * debug/Makefile: Likewise.
12804         * dlfcn/Makefile: Likewise.
12805         * elf/Makefile: Likewise.
12806         * extra-lib.mk: Likewise.
12807         * iconv/Makefile: Likewise.
12808         * include/libc-symbols.h: Likewise.
12809         * include/shlib-compat.h: Likewise.
12810         * resolv/Makefile: Likewise.
12811         * resolv/res_libc.c: Likewise.
12812         * rt/Makefile: Likewise.
12813         * sysdeps/i386/asm-syntax.h: Likewise.
12814         * sysdeps/i386/sysdep.h: Likewise.
12815         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12816         * sysdeps/mach/sysdep.h: Likewise.
12817         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12818         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12819         * sysdeps/s390/asm-syntax.h: Likewise.
12820         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12821         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12822         * sysdeps/sh/sysdep.h: Likewise.
12823         * sysdeps/unix/sparc/sysdep.h: Likewise.
12824         * sysdeps/wordsize-32/divdi3.c: Likewise.
12825         * sysdeps/x86_64/sysdep.h: Likewise.
12826
12827         * argp/Versions: Remove _argp_unlock_xxx.
12828
12829         [BZ #13559]
12830         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12831         * abilist/libBrokenLocale.abilist: Likewise.
12832         * abilist/libanl.abilist: Likewise.
12833         * abilist/libc.abilist: Likewise.
12834         * abilist/libcrypt.abilist: Likewise.
12835         * abilist/libdl.abilist: Likewise.
12836         * abilist/libm.abilist: Likewise.
12837         * abilist/libnsl.abilist: Likewise.
12838         * abilist/libpthread.abilist: Likewise.
12839         * abilist/libresolv.abilist: Likewise.
12840         * abilist/librt.abilist: Likewise.
12841         * abilist/libthread_db.abilist: Likewise.
12842         * abilist/libutil.abilist: Likewise.
12843         * abilist/libnss_db.abilist: New file.
12844
12845         * scripts/abilist.awk: Add support for indirect functions.
12846
12847         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12848
12849         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12850
12851         * shlib-versions: Remove entries for ports architectures.
12852
12853         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12854         files in ports.
12855         * elf/stackguard-macros.h: Remove support for IA-64.
12856         * elf/tst-auditmod1.c: Likewise.
12857         * sysdeps/generic/ldsodefs.h: Likewise.
12858
12859         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12860         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12861         configure files.
12862
12863         [BZ #13552]
12864         * configure.in: Remove --enable-omitfp support.
12865         * FAQ.in: Adjust.
12866         * config.make.in: Likewise.
12867         * Makeconfig: Likewise.
12868         * manual/install.texi: Likewise.
12869
12870         In case anyone cares, the IA-64 architecture could move to ports.
12871         * sysdeps/ia64/*: Removed.
12872         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12873         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12874
12875         [BZ #13555]
12876         * configure.in: Remove entries for unsupported architectures.
12877
12878         [BZ #13533]
12879         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12880         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12881         routines.
12882         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12883         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12884         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12885         fall back to using wcrtomb.
12886         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12887         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12888         renaming.
12889         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12890         * wcsmbs/tst-c16c32-1.c: New file.
12891
12892         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12893         local variable.
12894
12895         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12896
12897         * elf/tst-unique3.cc: Add explicit declaration of gets.
12898         * elf/tst-unique3lib.cc: Likewise.
12899         * elf/tst-unique3lib2.cc: Likewise.
12900         * elf/tst-unique4.cc: Likewise.
12901
12902         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12903
12904 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12905
12906         [BZ #13566]
12907         * assert/assert.h (static_assert): Don't define for C++.
12908         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12909         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12910
12911 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12912
12913         * iconv/loop.c (single loop): Fix assertion in storing of
12914         remaining bytes.
12915
12916         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12917
12918 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12919
12920         * posix/getconf.c: Update copyright year.
12921         * nss/getent.c: Likewise.
12922         * nss/makedb.c: Likewise.
12923         * iconv/iconvconfig.c: Likewise.
12924         * iconv/iconv_prog.c: Likewise.
12925         * elf/ldconfig.c: Likewise.
12926         * elf/pldd.c: Likewise.
12927         * elf/sotruss.ksh: Likewise.
12928         * catgets/gencat.c: Likewise.
12929         * csu/version.c: Likewise.
12930         * elf/ldd.bash.in: Likewise.
12931         * elf/sprof.c (print_version): Likewise.
12932         * locale/programs/locale.c: Likewise.
12933         * locale/programs/localedef.c: Likewise.
12934         * login/programs/pt_chown.c: Likewise.
12935         * nscd/nscd.c (print_version): Likewise.
12936         * debug/xtrace.sh: Likewise.
12937         * malloc/memusage.sh: Likewise.
12938         * malloc/mtrace.pl: Likewise.
12939         * debug/catchsegv.sh: Likewise.
12940
12941 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12942
12943         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12944         pure attribute.
12945
12946 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12947
12948         [BZ #13533]
12949         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12950         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12951         transformations.
12952         * iconv/gconv_int.h: Likewise.
12953         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12954         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12955         from libc for GLIBC_2.16.
12956         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12957         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12958         * wcsmbs/uchar.h: Really define mbstate_t.
12959         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12960         * wcsmbs/c16rtomb.c: New file.
12961         * wcsmbs/mbrtoc16.c: New file.
12962         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12963         for C/POSIX locale.
12964         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12965         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12966
12967         * wcsmbs/wchar.h: Add missing __restrict.
12968
12969 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12970
12971         [BZ #13532]
12972         * time/Makefile (routines): Add timespec_get.
12973         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12974         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12975         timespec for ISO C11.
12976         * time/timespec_get.c: New file.
12977         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12978         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12979
12980         [BZ #13531]
12981         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12982         * stdlib/stdlib.h: Declare aligned_alloc.
12983         * Versions.def: Add GLIBC_2.16 for libc.
12984         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12985
12986         [BZ 13527]
12987         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12988         ISO C11.
12989
12990         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12991         code.
12992
12993         [BZ #13528]
12994         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12995
12996         [BZ #13529]
12997         * assert/assert.h (static_assert): Define.
12998
12999         * version.h: Update for 2.16 development version.
13000
13001         [BZ #13526]
13002         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13003         _ISOC11_SOURCE.
13004
13005         * version.h (RELEASE): Bump for 2.15 release.
13006         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13007
13008         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13009         Patch by Marek Polacek <mpolacek@redhat.com>.
13010
13011         * bits/byteswap.h: Protect long long constants with __extension__.
13012         * sysdeps/i386/bits/byteswap.h: Likewise.
13013         * sysdeps/ia64/bits/byteswap.h: Likewise.
13014         * sysdeps/s390/bits/byteswap.h: Likewise.
13015         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13016
13017 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13018
13019         [BZ #13540]
13020         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13021         destination buffer.
13022         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13023
13024 2011-12-23  Marek Polacek  <polacek@redhat.com>
13025
13026         * elf/dl-addr.c (determine_info): Add inline keyword.
13027         * elf/tst-auditmod4b.c (check_avx): Likewise.
13028         * elf/tst-auditmod6b.c (check_avx): Likewise.
13029         * elf/tst-auditmod6c.c (check_avx): Likewise.
13030         * elf/tst-auditmod7b.c (check_avx): Likewise.
13031
13032 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13033
13034         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13035         !__SSE_MATH__.
13036
13037 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13038
13039         [BZ #13540]
13040         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13041         processing for last bytes.
13042
13043 2011-08-06  Bruno Haible  <bruno@clisp.org>
13044
13045         [BZ #13061]
13046         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13047         U+0385, not to U+1FEE.
13048
13049         [BZ #13062]
13050         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13051         entry for U+00A5 U+0301.
13052
13053 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13054
13055         [BZ #13166]
13056         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13057         buffer for the output is too small.
13058
13059         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13060         optimization.
13061
13062         [BZ #13185]
13063         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13064         SSE flags if possible.
13065
13066 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13067
13068         [BZ #13540]
13069         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13070         processing for last bytes.
13071
13072 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13073
13074         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13075         (syscall-list-default-options, syscall-list-default-condition)
13076         (syscall-list-includes): Define.
13077         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13078         list of ABIs and options and #if conditions for each ABI.  Do not
13079         handle common syscalls between ABIs specially.
13080         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13081         Remove.
13082         (syscall-list-variants, syscall-list-32bit-options)
13083         (syscall-list-32bit-condition, syscall-list-64bit-options)
13084         (syscall-list-64bit-condition): Define.
13085         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13086         (syscall-list-variants, syscall-list-32bit-options)
13087         (syscall-list-32bit-condition, syscall-list-64bit-options)
13088         (syscall-list-64bit-condition): Define.
13089         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13090         Remove.
13091         (syscall-list-variants, syscall-list-32bit-options)
13092         (syscall-list-32bit-condition, syscall-list-64bit-options)
13093         (syscall-list-64bit-condition): Define.
13094         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13095         Remove.
13096         (syscall-list-variants, syscall-list-32bit-options)
13097         (syscall-list-32bit-condition, syscall-list-64bit-options)
13098         (syscall-list-64bit-condition): Define.
13099
13100 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13101
13102         * locale/iso-639.def: Add brx entry.
13103
13104         [BZ #13328]
13105         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13106         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13107
13108         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13109         __feraiseexcept_renamed.
13110
13111 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13112
13113         [BZ #13538]
13114         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13115         EPOLLET with unsigned values.
13116         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13117         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13118
13119         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13120         to large cancellation.
13121         * math/s_cacoshf.c: Likewise.
13122         * math/s_cacoshl.c: Likewise.
13123
13124 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13125
13126         [BZ #13305]
13127         [BZ #12786]
13128         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13129         * math/s_cacoshf.c: Likewise.
13130         * math/s_cacoshl.c: Likewise.
13131
13132 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13133
13134         [BZ #13439]
13135         * iconv/gconv.h: Define __GCONV_SWAP.
13136         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13137         * iconvdata/utf-16.c: Likewise.
13138         * iconvdata/utf-32.c: Likewise.
13139
13140 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13141
13142         [BZ #13524]
13143         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13144         numerator after shifting it by one limb.
13145
13146 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13147
13148         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13149         under [__USE_EXTERN_INLINES].
13150
13151 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13152
13153         [BZ #13446]
13154         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13155
13156 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13157
13158         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13159         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13160         optimized code.
13161         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13162         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13163         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13164         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13165         for strncasecmp/strncasecmp_l compilation.
13166         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13167         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13168
13169 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13170
13171         [BZ #13484]
13172         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13173         of __asm__.
13174
13175 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13176
13177         [BZ #13506]
13178         * time/tzfile.c (__tzfile_read): Check values from file header.
13179
13180 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13181
13182         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13183         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13184         * powerpc/powerpc32/dl-start.S: Likewise.
13185         * powerpc/powerpc32/elf/start.S: Likewise.
13186         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13187         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13188         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13189         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13190         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13191         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13192         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13193         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13194         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13195         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13196         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13197         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13198         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13199         * powerpc/powerpc32/memset.S: Likewise.
13200         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13201         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13202         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13203         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13204         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13205         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13206         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13207         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13208         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13209         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13210         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13211         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13212         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13213
13214 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13215
13216         * math/libm-test.inc: Added more nearbyint tests.
13217         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13218         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13219         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13220         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13221
13222 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13223
13224         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13225         FD_CLOEXEC.
13226
13227 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13228
13229         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13230         Add wcscpy-ssse3 wcscpy-c.
13231         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13232         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13233         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13234         * sysdeps/x86_64/wcschr.S: New file.
13235         * sysdeps/x86_64/wcsrchr.S: New file.
13236         * string/test-strcmp.c: Remove checking of wcscmp function for
13237         wrong alignments.
13238         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13239         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13240         wcsrchr-sse2 wcsrchr-c.
13241         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13242         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13243         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13244         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13245         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13246         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13247         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13248         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13249         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13250         * wcsmbc/wcschr.c (WCSCHR): New macro.
13251
13252 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13253
13254         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13255         * wcsmbs/test-wcsrchr.c: New file.
13256         * string/test-strrchr.c: Add wcsrchr support.
13257         (WIDE): New macro.
13258         * wcsmbs/test-wcscpy.c: New file.
13259         * string/test-strcpy.c: Add wcscpy support.
13260         (WIDE): New macro.
13261
13262 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13263
13264         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13265         the inner loop.
13266
13267 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13268
13269         [BZ #13472]
13270         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13271
13272 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13273
13274         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13275         Minor optimizations.
13276
13277         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13278         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13279         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13280
13281 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13282
13283         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13284         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13285         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13286         for gcc to avoid warnings.
13287         * inet/Makefile (tests): Add tst-checks.
13288         * inet/tst-checks.c: New file.
13289
13290         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13291         warning.
13292
13293         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13294         __wmemcmp_sse2.
13295
13296         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13297         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13298
13299         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13300
13301 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13302
13303         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13304         problem.
13305
13306         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13307
13308 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13309
13310         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13311         conditional on GCC version.
13312         (__arch_compare_and_exchange_val_8_acq)
13313         (__arch_compare_and_exchange_val_16_acq)
13314         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13315         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13316         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13317
13318 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13319
13320         * sysdeps/sh/backtrace.c: New file.
13321
13322 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13323
13324         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13325         parenthesis.
13326
13327 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13328
13329         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13330         falling back to utime.
13331
13332 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13333
13334         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13335         expectations for float.
13336
13337 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13338
13339         * locale/weight.h (findidx): Add parameter len.
13340         * locale/weightwc.h (findidx): Likewise.
13341         * posix/fnmatch_loop.c (FCT): Adjust caller.
13342         * posix/regcomp.c (build_equiv_class): Likewise.
13343         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13344         * posix/regexec.c (check_node_accept_bytes): Likewise.
13345         * string/strcoll_l.c (STRCOLL): Likewise.
13346         * string/strxfrm_l.c (STRXFRM): Likewise.
13347
13348 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13349
13350         * Makefile.in: Remove CVSOPT handling.
13351         * configure.in: Remove use of AC_REVISION.
13352         * iconvdata/Makefile (distribute): No need to filter out CVS.
13353         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13354         handling.
13355
13356 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13357
13358         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13359         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13360         [USE_AS_STRNCASECMP_L]: Likewise.
13361         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13362         NO_TLS_DIRECT_SEG_REFS.
13363         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13364         Fix argument offsets for non-PIC.
13365         [USE_AS_STRNCASECMP_L]: Likewise.
13366         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13367         NO_TLS_DIRECT_SEG_REFS.
13368
13369 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13370
13371         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13372         O_CLOEXEC.
13373         * locale/loadlocale.c (_nl_load_locale): Likewise.
13374
13375 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13376
13377         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13378         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13379         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13380         (SYSCALL_GETTIME): Set errno on error.
13381
13382         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13383         count references to noai6ai_cached.
13384
13385 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13386
13387         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13388
13389         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13390         FD_CLOEXEC for /proc/self/maps.
13391
13392         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13393         FD_CLOEXEC for /proc/meminfo.
13394
13395         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13396         gai.conf.
13397
13398         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13399         FD_CLOEXEC for given file.
13400
13401         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13402
13403         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13404         FD_CLOEXEC for /etc/hosts.
13405         (_gethtent): Likewise.
13406
13407         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13408
13409         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13410         cancellation and set FD_CLOEXEC for /etc/netgroup.
13411
13412         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13413         reading /etc/publickey.
13414
13415         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13416         allow cancellation when reading /etc/group.
13417
13418         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13419         cancellation.
13420         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13421
13422         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13423         when using data file.
13424
13425         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13426
13427         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13428         (write_nis_obj): Use "c" and "e" in fopen.
13429
13430         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13431
13432         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13433
13434         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13435
13436         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13437
13438         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13439         locale.alias.
13440
13441         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13442
13443         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13444
13445         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13446
13447         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13448         file parsing and set FD_CLOEXEC.
13449
13450 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13451
13452         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13453
13454 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13455
13456         * malloc/arena.c (arena_get2): Don't call reused_arena when
13457         _int_new_arena failed.
13458
13459 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13460
13461         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13462         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13463         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13464         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13465         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13466         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13467         to compile strcasecmp and strncasecmp.
13468         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13469         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13470
13471         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13472
13473 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13474
13475         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13476         locale-defines.sym to gen-as-const-headers.
13477         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13478         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13479         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13480         to compile strcasecmp and strncasecmp.
13481         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13482         strcasecmp_l and strncasecmp_l.
13483         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13484         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13485         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13486         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13487         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13488         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13489         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13490         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13491         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13492         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13493         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13494
13495 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13496
13497         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13498         result of SYSDEP_GETTIME_CPU to retval.
13499         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13500         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13501
13502         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13503         variable.
13504
13505         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13506         mantissa words.
13507         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13508
13509         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13510         from unused variable.
13511
13512         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13513         DWARF definitions.
13514         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13515         for assembling.
13516
13517         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13518         over namespaces.
13519
13520         * sunrpc/rpc_prot.c (rejected): Fix case value.
13521
13522         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13523         unsigned long long int to avoid warnings in shift.
13524
13525         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13526         of use of trans.
13527         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13528         variable tmp.
13529
13530         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13531         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13532         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13533
13534         * nis/nis_table.c (nis_list): Use variable of correct type for
13535         result of __follow_path call.
13536
13537 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13538
13539         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13540         of math functions ceil, trunc, floor, round, and sqrt, when
13541         avaliable on the platform.
13542         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13543         name clash.
13544         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13545         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13546         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13547
13548 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13549
13550         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13551         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13552
13553 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13554
13555         * include/unistd.h: Fix __readlink return type.
13556         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13557
13558 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13559
13560         * stdlib/ucontext.h: Undo last change for makecontext.
13561
13562 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13563
13564         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13565
13566         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13567         * setjmp/setjmp.h: Mark functions as non-leaf.
13568         * setjmp/bits/setjmp2.h: Likewise.
13569         * stdlib/ucontext.h: Likewise.
13570
13571 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13572
13573         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13574         (reused_arena): Don't check arena limit.
13575         (arena_get2): Atomically check arena limit.
13576
13577 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13578
13579         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13580         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13581
13582         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13583         instructions.
13584
13585 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13586
13587         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13588         handler when locking.
13589
13590         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13591         Fix size of allocated buffer.
13592
13593 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13594
13595         [BZ #10103]
13596         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13597         declarations for long double functions.
13598         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13599
13600         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13601
13602 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13603
13604         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13605         installed.
13606
13607         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13608         is disabled.
13609
13610 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13611
13612         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13613
13614 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13615
13616         * include/alloca.h (stackinfo_alloca_round): Define.
13617         (extend_alloca): Use it.
13618         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13619         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13620         here.
13621
13622         * scripts/check-local-headers.sh: Ignore libaudit.h.
13623
13624         * nscd/Makefile (extra-objs): Make recursively expanded.
13625
13626 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13627
13628         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13629         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13630
13631         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13632         * posix/tst-rfc3484-2.c: Likewise.
13633         * posix/tst-rfc3484-3.c: Likewise.
13634
13635         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13636         process_vm_writev.
13637         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13638         process_vm_writev.
13639         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13640         process_vm_writev from libc using GLIBC_2.15 version.
13641
13642         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13643
13644 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13645
13646         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13647         stack usage.
13648
13649 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13650
13651         [BZ #13367]
13652         * nss/getent.c (initgroups_keys): Show error message in case no group
13653         names are given.
13654
13655         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13656         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13657         __bump_nl_timestamp.
13658         * nscd/connections (nscd_init): When host database is served open
13659         netlink socket and request notification about configuration changes.
13660         (main_loop_poll): Track netlink file descriptor and bump timestamp
13661         in case data becomes available.
13662         (main_loop_epoll): Likewise.
13663         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13664         (database_pers_head): Add extra_data fileds.
13665         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13666         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13667         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13668         Adjust caller.
13669         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13670         in6ai data, call __free_in6ai.
13671         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13672         Add -DHAVE_NETLINK.
13673         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13674         interface information.  Reuse previous data if netlink timestamp
13675         is not changed.
13676         (__bump_nl_timestamp): New function.
13677         (__free_in6ai): New function.
13678
13679 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13680
13681         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13682         close_not_cancel_no_status here.
13683         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13684
13685 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13686
13687         [BZ #13276]
13688         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13689         return value.
13690
13691         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13692         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13693         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13694
13695 2011-07-03  Andreas Jaeger  <aj@suse.de>
13696
13697         [BZ #10709]
13698         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13699         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13700         * math/libm-test.inc (sin_test): Add test case.
13701
13702 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13703
13704         [BZ #13337]
13705         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13706         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13707
13708         * elf/chroot_canon.c (chroot_canon): Cleanups.
13709
13710         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13711
13712         [BZ #13335]
13713         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13714         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13715
13716         * string/test-strchr.c: Make usable for strchrnul testing.
13717         * string/test-strchrnul.c: New file.
13718         * string/Makefile (strop-tests): Add strchrnul.
13719
13720         * po/it.po: Update from translation team.
13721         * po/es.po: Likewise.
13722
13723 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13724
13725         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13726         the three constants needed as parameters.  Drop the others.
13727         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13728         __m128i_strloadu_tolower.
13729         Create and initialize variable zero and use it in all the places
13730         where _mm_setzero_si128 was used.
13731
13732         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13733         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13734         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13735         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13736         anymore.
13737         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13738         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13739         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13740         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13741         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13742         __mpranred, __mptan.
13743         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13744         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13745         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13746         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13747         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13748         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13749         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13750         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13751         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13752
13753 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13754
13755         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13756         redefine if SHARED.
13757         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13758
13759         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13760         wide char related routines to wcsmbs subdir.
13761
13762 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13763
13764         [BZ #13344]
13765         * misc/sys/cdefs.h (__THROWNL): Define.
13766         * posix/unistd.h: Use __THREADNL instead of __THREAD
13767         for memory synchronization functions.
13768
13769 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13770
13771         [BZ #13349]
13772         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13773         doesn't exist.
13774         * manual/stdio.texi (Obstack Streams): Node removed.
13775
13776 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13777
13778         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13779         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13780         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13781
13782         * math/math_private.h (math_force_eval): Allow non-addressable
13783         arguments.
13784         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13785
13786 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13787
13788         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13789         file is not needed.
13790
13791         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13792         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13793         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13794         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13795         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13796         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13797         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13798         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13799         Add AVX variants.
13800         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13801         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13802         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13803         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13804         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13805         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13806         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13807         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13808         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13809         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13810         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13811         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13812         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13813         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13814         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13815         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13816         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13817         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13818         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13819
13820         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13821         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13822
13823         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13824         place.  Use VEX encoding when compiling for AVX.
13825
13826 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13827
13828         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13829         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13830
13831         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13832
13833 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13834
13835         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13836         useless if() expression.
13837         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13838         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13839         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13840         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13841         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13842         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13843         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13844         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13845         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13846         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13847         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13848         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13849         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13850         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13851         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13852         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13853         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13854         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13855         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13856
13857         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13858
13859 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13860
13861         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13862         condition.
13863         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13864
13865 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13866
13867         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13868         .text section.  Avoid duplicate constants.
13869         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13870         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13871         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13872         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13873         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13874         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13875         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13876         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13877         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13878         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13879         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13880         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13881         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13882         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13883         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13884         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13885         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13886         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13887         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13888         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13889         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13890         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13891         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13892         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13893         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13894         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13895         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13896         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13897         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13898         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13899         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13900         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13901         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13902         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13903         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13904         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13905         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13906         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13907         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13908         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13909         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13910         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13911         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13912         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13913         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13914
13915 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13916
13917         * sysdeps/x86_64/dla.h: Move to ...
13918         * sysdeps/x86_64/fpu/dla.h: ...here.
13919         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13920         situations.  Use __builtin_fma only for gcc 4.6 and up.
13921
13922         * config.make.in: Add have-mfma4 entry.
13923         * configure.in: Substitute libc_cv_cc_fma4.
13924         * math/Makefile (dbl-only-routines): Add sincostab.
13925         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13926         Use __sincostab not sincos.
13927         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13928         name is a macro.
13929         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13930         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13931         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13932         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13933         using __copysign.
13934         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13935         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13936         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13937         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13938         and __inv.
13939         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13940         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13941         __copysign.
13942         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13943         define aliases when function name is a macro.
13944         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13945         sysdeps/ieee754/dbl-64/sincos.tbl.
13946         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13947         fma4-enabled routines.
13948         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13949         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13950         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13951         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13952         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13953         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13954         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13955         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13956         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13957         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13958         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13959         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13960         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13961         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13962         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13963         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13964         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13965         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13966         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13967         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13968         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13969         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13970         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13971         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13972         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13973         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13974         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13975         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13976         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13977         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13978
13979         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13980         rename.
13981         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13982         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13983         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13984         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13985         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13986         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13987         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13988         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13989
13990 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13991
13992         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13993
13994 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13995
13996         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13997
13998         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13999         prediction.
14000         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14001
14002         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14003         Remove unused variable magic_bits.
14004         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14005
14006         * string/strnlen.c: Define and use STRNLEN macro.
14007         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14008         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14009         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14010         * wcsmbs/wcslen.c: Define and use WCSLEN.
14011         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14012         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14013         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14014         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14015         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14016         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14017         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14018
14019 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14020
14021         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14022         strnlen-sse2-no-bsf.
14023         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14024         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14025         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14026         Add strnlen support.
14027         (USE_AS_STRNLEN): New macro.
14028         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14029         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14030         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14031         * sysdeps/x86_64/wcslen.S: New file.
14032
14033 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14034
14035         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14036         XMM-moves are used for copying on small sizes.
14037
14038 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14039
14040         * wcsmbs/Makefile (strop-tests): Add wcschr.
14041         * wcsmbs/test-wcschr.c: New file.
14042         * string/test-strchr.c: Update.
14043         Add wcschr support.
14044         (WIDE): New macro.
14045
14046 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14047
14048         * wcsmbs/Makefile (strop-tests): Add wcslen.
14049         * wcsmbs/test-wcslen.c: New file.
14050         * string/test-strlen.c: Update.
14051         Add wcslen support.
14052         (WIDE): New macro.
14053
14054 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14055
14056         * po/it.po: Update from translation team.
14057
14058 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14059
14060         * sysdeps/x86_64/wcscmp.S: Update.
14061         Fix wrong comparison semantics.
14062         wcscmp shall use signed comparison not unsigned.
14063         Don't use substraction to avoid overflow bug.
14064         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14065         * wcsmbc/wcscmp.c: Likewise.
14066         * string/test-strcmp.c: Likewise.
14067         Add new tests to check cases with negative values.
14068
14069 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14070
14071         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14072         * sysdeps/x86_64/dla.h: ...here.  New file.
14073         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14074         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14075         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14076         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14077         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14078         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14079         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14080         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14081         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14082
14083 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14084
14085         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14086         __ynl_finite aliases.
14087
14088 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14089
14090         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14091
14092         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14093         define DLA_FMA.
14094         [DLA_FMA] (EMULV): Use DLA_FMA.
14095         [DLA_FMA] (MUL12): Use EMULV.
14096         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14097         that are not needed.
14098         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14099         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14100         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14101         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14102         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14103         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14104         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14105
14106 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14107
14108         * math/s_nan.c: Undef __nan.
14109         * math/s_nanf.c: Undef __nanf.
14110         * math/s_nanl.c: Undef __nanl.
14111         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14112         "math_private.h".
14113
14114 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14115
14116         * math/s_catan.c: Add branch predictions.
14117         * math/s_catanf.c: Likewise.
14118         * math/s_catanh.c: Likewise.
14119         * math/s_catanhf.c: Likewise.
14120         * math/s_catanhl.c: Likewise.
14121         * math/s_catanl.c: Likewise.
14122         * math/s_cexp.c: Likewise.
14123         * math/s_cexpf.c: Likewise.
14124         * math/s_cexpl.c: Likewise.
14125         * math/s_clog.c: Likewise.
14126         * math/s_clog10.c: Likewise.
14127         * math/s_clog10f.c: Likewise.
14128         * math/s_clog10l.c: Likewise.
14129         * math/s_clogf.c: Likewise.
14130         * math/s_clogl.c: Likewise.
14131         * math/s_csqrt.c: Likewise.
14132         * math/s_csqrtf.c: Likewise.
14133         * math/s_csqrtl.c: Likewise.
14134         * math/s_ctanf.c: Likewise.
14135         * math/s_ctanh.c: Likewise.
14136         * math/s_ctanhf.c: Likewise.
14137         * math/s_ctanhl.c: Likewise.
14138         * math/s_ctanl.c: Likewise.
14139
14140         * math/math_private.h: Define __nan, __nanf, __nanl.
14141         * math/s_cacosh.c: Include <math_private.h>.
14142         * math/s_cacoshl.c: Likewise.
14143         * math/s_casinh.c: Likewise.
14144         * math/s_casinhf.c: Likewise.
14145         * math/s_casinhl.c: Likewise.
14146         * math/s_ccos.c: Rely entire on ccosh.
14147         * math/s_ccosf.c: Rely entire on ccoshf.
14148         * math/s_ccosl.c: Rely entirely on ccoshl.
14149         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14150         Remove tests for FE_INVALID.
14151         * math/s_ccoshf.c: Likewise.
14152         * math/s_ccoshl.c: Likewise.
14153         * math/s_csin.c: Likewise.
14154         * math/s_csinf.c: Likewise.
14155         * math/s_csinh.c Likewise.
14156         * math/s_csinhf.c: Likewise.
14157         * math/s_csinhl.c: Likewise.
14158         * math/s_csinl.c: Likewise.
14159         * math/s_ctan.c: Likewise.
14160         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14161         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14162         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14163
14164 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14165
14166         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14167         compilation problems.
14168
14169         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14170         __builtin_expect.
14171
14172 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14173
14174         * sysdeps/i386/configure.in: Test for -mfma4 option.
14175         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14176         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14177         COMMON_CPUID_INDEX_80000001.
14178         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14179         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14180         use it if FMA3 is not supported.
14181         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14182
14183         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14184         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14185
14186 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14187
14188         [BZ #12892]
14189         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14190         it would create a cycle with a link time dependency.
14191
14192 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14193
14194         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14195         instruction.
14196         * string/Makefile (strop-tests): Add rawmemchr.
14197         * string/test-rawmemchr.c: New file.
14198
14199         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14200         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14201         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14202         when compiling str{,n}casecmp and when AVX is available.  Hook up
14203         new optimized code in initializers.
14204
14205 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14206
14207         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14208         __feraiseexcept instead of feraiseexcept.
14209
14210 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14211
14212         * math/math_private.h: Define defaults for libc_fetestexcept and
14213         libc_feupdateenv.
14214         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14215         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14216         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14217         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14218         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14219         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14220         libc_fetestexcept and libc_feupdateenv.
14221
14222         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14223         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14224         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14225         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14226         libc_feholdexcept_setround.
14227
14228         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14229         Add s_nearbyint-c and s_nearbyintf-c.
14230         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14231         nearbyintf inlines.
14232         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14233         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14234         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14235         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14236
14237         * math/math_private.h: Define defaults for libc_fegetround,
14238         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14239         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14240         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14241         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14242         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14243         standard functions.
14244         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14245         Remove comments and hacks for old compiler versions.
14246         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14247         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14248         libc_feholdexceptl.
14249
14250 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14251
14252         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14253         (__feraiseexcept_renamed): Add __NTH.
14254         (feraiseexcept): Add __NTH.  Rename local variables to fix
14255         namespace violations.
14256
14257 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14258
14259         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14260
14261         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14262
14263         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14264         recently added interfaces.
14265         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14266
14267         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14268         about macro parameter expansion.
14269
14270         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14271         __NO_MATH_INLINES is defined.  Cleanups.
14272
14273         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14274         and __floorf is target has SSE4.1.
14275         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14276         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14277         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14278         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14279
14280         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14281         name.
14282         (floorf): Likewise.
14283
14284         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14285
14286 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14287
14288         * misc/sys/cdefs.h: Fix last change.
14289
14290         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14291         database lookup.
14292
14293 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14294
14295         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14296
14297         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14298         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14299         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14300         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14301         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14302         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14303         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14304         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14305         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14306         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14307         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14308         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14309         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14310         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14311         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14312         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14313         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14314         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14315         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14316         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14317         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14318         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14319
14320         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14321         ceil, ceilf, floor, floorf.
14322
14323         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14324         Perform IRELATIVE relocations last.
14325
14326         * elf/do-rel.h: Add another parameter nrelative, replacing the
14327         local variable with the same name.  Change name of the function
14328         to end in Rel or Rela (uppercase).
14329         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14330         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14331         elf_dynamic_do_##reloc function.
14332
14333 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14334
14335         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14336         is sufficient, at least on modern CPUs.
14337
14338         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14339
14340         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14341         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14342
14343         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14344         __expl_finite.
14345         * math/bits/math-finite.h: Add entries for exp.
14346         * math/e_expl.c: Add __*_finite alias.
14347         * sysdeps/i386/fpu/e_exp.S: Likewise.
14348         * sysdeps/i386/fpu/e_expf.S: Likewise.
14349         * sysdeps/i386/fpu/e_expl.c: Likewise.
14350         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14351         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14352         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14353         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14354         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14355         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14356         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14357
14358         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14359         is sufficient, at least on modern CPUs.
14360
14361         * ctype/ctype-info.c (__ctype_init): Define.
14362         * include/ctype.h (__ctype_init): Declare.
14363         (__ctype_b_loc): The variable is always initialized.
14364         (__ctype_toupper_loc): Likewise.
14365         (__ctype_tolower_loc): Likewise.
14366         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14367         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14368
14369 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14370
14371         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14372
14373         * configure.in: Also look in $cxxmachine/include for C++ system
14374         headers.
14375
14376 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14377
14378         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14379         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14380         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14381         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14382         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14383         (USE_AS_WMEMCMP): New macro.
14384         Fixing indents.
14385         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14386         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14387         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14388         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14389         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14390         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14391         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14392         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14393         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14394         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14395         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14396         (USE_AS_WMEMCMP): New macro.
14397         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14398         * sysdeps/string/test-memcmp.c: Update.
14399         Fix simple_wmemcmp.
14400         Add new tests.
14401         * wcsmbs/wmemcmp.c: Update.
14402         (WMEMCMP): New macro.
14403         Fix overflow bug.
14404
14405 2011-10-12  Andreas Jaeger  <aj@suse.de>
14406
14407         [BZ #13268]
14408         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14409
14410 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14411
14412         * libio/iofwide.c (do_length): Avoid warning.
14413
14414         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14415
14416 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14417
14418         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14419
14420         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14421         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14422         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14423         * sysdeps/i386/i686/fpu/e_log.S: New file.
14424         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14425         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14426
14427         * ctype/ctype.h: Add support for inlined isXXX functions when
14428         compiling C++ code.
14429
14430 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14431
14432         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14433
14434         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14435
14436 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14437
14438         [BZ #13291]
14439         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14440
14441 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14442
14443         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14444         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14445         feraiseexcept.
14446
14447         * sysdeps/x86_64/memrchr.S: Check for zero size.
14448
14449         * string/stratcliff.c: Add memrchr tests.
14450
14451 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14452
14453         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14454         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14455         rawmemchr-sse2 rawmemchr-sse2-bsf.
14456         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14457         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14458         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14459         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14460         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14461         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14462         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14463         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14464         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14465         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14466         * string/memrchr.c (MEMRCHR): New macro.
14467
14468 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14469
14470         Add integration with gcc's -ffinite-math-only and optimize wrapper
14471         functions in libm.
14472         * Versions.def: Define GLIBC_2.15 version for libm.
14473         * math/Makefile (headers): Add bits/math-finite.h.
14474         * math/bits/math-finite.h: New file.
14475         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14476         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14477         * math/e_acoshl.c: Add __*_finite alias.
14478         * math/e_acosl.c: Likewise.
14479         * math/e_asinl.c: Likewise.
14480         * math/e_atan2l.c: Likewise.
14481         * math/e_atanhl.c: Likewise.
14482         * math/e_coshl.c: Likewise.
14483         * math/e_exp10.c: Likewise.
14484         * math/e_exp10f.c: Likewise.
14485         * math/e_exp10l.c: Likewise.
14486         * math/e_exp2l.c: Likewise.
14487         * math/e_fmodl.c: Likewise.
14488         * math/e_gammal_r.c: Likewise.
14489         * math/e_hypotl.c: Likewise.
14490         * math/e_j0l.c: Likewise.
14491         * math/e_j1l.c: Likewise.
14492         * math/e_jnl.c: Likewise.
14493         * math/e_lgammal_r.c: Likewise.
14494         * math/e_log10l.c: Likewise.
14495         * math/e_log2l.c: Likewise.
14496         * math/e_logl.c: Likewise.
14497         * math/e_powl.c: Likewise.
14498         * math/e_sinhl.c: Likewise.
14499         * math/e_sqrtl.c: Likewise.
14500         * math/e_scalb.c: Completely rewritten and optimized.
14501         * math/e_scalbf.c: Likewise.
14502         * math/e_scalbl.c: Likewise.
14503         * math/w_acos.c: Likewise.
14504         * math/w_acosf.c: Likewise.
14505         * math/w_acosl.c: Likewise.
14506         * math/w_acosh.c: Likewise.
14507         * math/w_acoshf.c: Likewise.
14508         * math/w_acoshl.c: Likewise.
14509         * math/w_asin.c: Likewise.
14510         * math/w_asinf.c: Likewise.
14511         * math/w_asinl.c: Likewise.
14512         * math/w_atan2.c: Likewise.
14513         * math/w_atan2f.c: Likewise.
14514         * math/w_atan2l.c: Likewise.
14515         * math/w_atanh.c: Likewise.
14516         * math/w_atanhf.c: Likewise.
14517         * math/w_atanhl.c: Likewise.
14518         * math/w_exp10.c: Likewise.
14519         * math/w_exp10f.c: Likewise.
14520         * math/w_exp10l.c: Likewise.
14521         * math/w_fmod.c: Likewise.
14522         * math/w_fmodf.c: Likewise.
14523         * math/w_fmodl.c: Likewise.
14524         * math/w_j0.c: Likewise.
14525         * math/w_j0f.c: Likewise.
14526         * math/w_j0l.c: Likewise.
14527         * math/w_j1.c: Likewise.
14528         * math/w_j1f.c: Likewise.
14529         * math/w_j1l.c: Likewise.
14530         * math/w_jn.c: Likewise.
14531         * math/w_jnf.c: Likewise.
14532         * math/w_log.c: Likewise.
14533         * math/w_logf.c: Likewise.
14534         * math/w_logl.c: Likewise.
14535         * math/w_log10.c: Likewise.
14536         * math/w_log10f.c: Likewise.
14537         * math/w_log10l.c: Likewise.
14538         * math/w_log2.c: Likewise.
14539         * math/w_log2f.c: Likewise.
14540         * math/w_log2l.c: Likewise.
14541         * math/w_pow.c: Likewise.
14542         * math/w_powf.c: Likewise.
14543         * math/w_powl.c: Likewise.
14544         * math/w_remainder.c: Likewise.
14545         * math/w_remainderf.c: Likewise.
14546         * math/w_remainderl.c: Likewise.
14547         * math/w_scalb.c: Likewise.
14548         * math/w_scalbf.c: Likewise.
14549         * math/w_scalbl.c: Likewise.
14550         * math/w_sqrt.c: Likewise.
14551         * math/w_sqrtf.c: Likewise.
14552         * math/w_sqrtl.c: Likewise.
14553         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14554         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14555         used.
14556         * math/math_private.h: Declare __kernel_standard_f.
14557         * math/w_cosh.c: Remove cruft and optimize a bit.
14558         * math/w_coshf.c: Likewise.
14559         * math/w_coshl.c: Likewise.
14560         * math/w_exp2.c: Likewise.
14561         * math/w_exp2f.c: Likewise.
14562         * math/w_exp2l.c: Likewise.
14563         * math/w_hypot.c: Likewise.
14564         * math/w_hypotf.c: Likewise.
14565         * math/w_hypotl.c: Likewise.
14566         * math/w_lgamma.c: Likewise.
14567         * math/w_lgamma_r.c: Likewise.
14568         * math/w_lgammaf.c: Likewise.
14569         * math/w_lgammaf_r.c: Likewise.
14570         * math/w_lgammal.c: Likewise.
14571         * math/w_lgammal_r.c: Likewise.
14572         * math/w_sinh.c: Likewise.
14573         * math/w_sinhf.c: Likewise.
14574         * math/w_sinhl.c: Likewise.
14575         * math/w_tgamma.c: Likewise.
14576         * math/w_tgammaf.c: Likewise.
14577         * math/w_tgammal.c: Likewise.
14578         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14579         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14580         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14581         Minor optimizations.  Pretty printing.  Remove cruft.
14582         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14583         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14584         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14585         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14586         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14587         * sysdeps/i386/fpu/e_asin.S: Likewise.
14588         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14589         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14590         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14591         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14592         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14593         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14594         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14595         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14596         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14597         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14598         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14599         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14600         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14601         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14602         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14603         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14604         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14605         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14606         * sysdeps/i386/fpu/e_log.S: Likewise.
14607         * sysdeps/i386/fpu/e_log10.S: Likewise.
14608         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14609         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14610         * sysdeps/i386/fpu/e_log2.S: Likewise.
14611         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14612         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14613         * sysdeps/i386/fpu/e_logf.S: Likewise.
14614         * sysdeps/i386/fpu/e_logl.S: Likewise.
14615         * sysdeps/i386/fpu/e_pow.S: Likewise.
14616         * sysdeps/i386/fpu/e_powf.S: Likewise.
14617         * sysdeps/i386/fpu/e_powl.S: Likewise.
14618         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14619         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14620         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14621         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14622         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14623         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14624         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14625         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14626         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14627         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14628         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14629         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14630         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14631         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14632         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14633         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14634         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14635         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14636         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14637         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14638         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14639         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14640         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14641         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14642         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14643         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14644         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14645         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14646         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14647         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14648         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14649         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14650         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14651         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14652         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14653         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14654         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14655         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14656         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14657         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14658         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14659         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14660         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14661         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14662         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14663         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14664         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14665         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14666         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14667         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14668         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14669         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14670         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14671         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14672         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14673         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14674         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14675         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14676         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14677         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14678         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14679         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14680         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14681         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14682         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14683         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14684         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14685         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14686         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14687         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14688         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14689         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14690         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14691         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14692         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14693         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14694         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14695         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14696         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14697         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14698         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14699         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14700         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14701         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14702         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14703         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14704         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14705         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14706         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14707         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14708         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14709         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14710         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14711         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14712         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14713         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14714         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14715         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14716         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14717         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14718         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14719         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14720         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14721         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14722         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14723         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14724         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14725         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14726         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14727         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14728         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14729         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14730         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14731         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14732         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14733         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14734         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14735         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14736         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14737         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14738         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14739         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14740         (__isnanf): Likewise.
14741         (__isinf_ns): Likewise.
14742         (__isinf_nsf): Likewise.
14743         (__finite): Likewise.
14744         (__finitef): Likewise.
14745         (__ieee754_sqrt): Define as macro.
14746         (__ieee754_sqrtf): Define as macro.
14747         (__ieee754_sqrtl): Define as macro.
14748         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14749         inlined copy.
14750         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14751         __FINITE_MATH_ONLY__ consistent.
14752         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14753
14754 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14755
14756         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14757         of rawmemchr.
14758
14759         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14760
14761 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14762
14763         * po/ja.po: Update from translation team.
14764
14765 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14766
14767         * locale/programs/locarchive.c (prepare_address_space): New function.
14768         (create_archive, enlarge_archive, open_archive): Use it.
14769
14770         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14771         inside [SHARED], where it is used.
14772
14773         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14774
14775         * nss/getent.c (netgroup_keys): Remove unused variable.
14776         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14777
14778 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14779
14780         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14781         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14782         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14783         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14784         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14785         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14786         * math/Makefile (libm-calls): Add s_isinf_ns.
14787         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14788         * math/multc3.c: Likewise.
14789         * math/s_casin.c: Likewise.
14790         * math/s_casinf.c: Likewise.
14791         * math/s_casinl.c: Likewise.
14792         * math/s_ccos.c: Likewise.
14793         * math/s_ccosf.c: Likewise.
14794         * math/s_ccosl.c: Likewise.
14795         * math/s_ctan.c: Likewise.
14796         * math/s_ctanf.c: Likewise.
14797         * math/s_ctanh.c: Likewise.
14798         * math/s_ctanhf.c: Likewise.
14799         * math/s_ctanhl.c: Likewise.
14800         * math/s_ctanl.c: Likewise.
14801         * math/w_fmod.c: Likewise.
14802         * math/w_fmodf.c: Likewise.
14803         * math/w_fmodl.c: Likewise.
14804         * math/w_remainder.c: Likewise.
14805         * math/w_remainderf.c: Likewise.
14806         * math/w_remainderl.c: Likewise.
14807         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14808         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14809         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14810         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14811         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14812         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14813         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14814         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14815
14816         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14817         of the number.
14818         * stdio-common/printf_fphex.c: Likewise.
14819         * stdio-common/printf_size.c: Likewise.
14820
14821         * math/e_exp10.c: Include math_private.h using <...> not "...".
14822         * math/e_exp10f.c: Likewise.
14823         * math/e_exp10l.c: Likewise.
14824         * math/e_exp2l.c: Likewise.
14825         * math/e_j0l.c: Likewise.
14826         * math/e_j1l.c: Likewise.
14827         * math/e_jnl.c: Likewise.
14828         * math/e_lgammal_r.c: Likewise.
14829         * math/e_rem_pio2l.c: Likewise.
14830         * math/e_scalb.c: Likewise.
14831         * math/e_scalbf.c: Likewise.
14832         * math/e_scalbl.c: Likewise.
14833         * math/k_cosl.c: Likewise.
14834         * math/k_sinl.c: Likewise.
14835         * math/k_tanl.c: Likewise.
14836         * math/s_cacoshf.c: Likewise.
14837         * math/s_catan.c: Likewise.
14838         * math/s_catanf.c: Likewise.
14839         * math/s_catanh.c: Likewise.
14840         * math/s_catanhf.c: Likewise.
14841         * math/s_catanhl.c: Likewise.
14842         * math/s_catanl.c: Likewise.
14843         * math/s_ccosh.c: Likewise.
14844         * math/s_ccoshf.c: Likewise.
14845         * math/s_ccoshl.c: Likewise.
14846         * math/s_cexp.c: Likewise.
14847         * math/s_cexpf.c: Likewise.
14848         * math/s_cexpl.c: Likewise.
14849         * math/s_clog.c: Likewise.
14850         * math/s_clog10.c: Likewise.
14851         * math/s_clog10f.c: Likewise.
14852         * math/s_clog10l.c: Likewise.
14853         * math/s_clogf.c: Likewise.
14854         * math/s_clogl.c: Likewise.
14855         * math/s_csin.c: Likewise.
14856         * math/s_csinf.c: Likewise.
14857         * math/s_csinh.c: Likewise.
14858         * math/s_csinhf.c: Likewise.
14859         * math/s_csinhl.c: Likewise.
14860         * math/s_csinl.c: Likewise.
14861         * math/s_csqrt.c: Likewise.
14862         * math/s_csqrtf.c: Likewise.
14863         * math/s_csqrtl.c: Likewise.
14864         * math/s_ctan.c: Likewise.
14865         * math/s_ctanf.c: Likewise.
14866         * math/s_ctanh.c: Likewise.
14867         * math/s_ctanhf.c: Likewise.
14868         * math/s_ctanhl.c: Likewise.
14869         * math/s_ctanl.c: Likewise.
14870         * math/s_ldexp.c: Likewise.
14871         * math/s_ldexpf.c: Likewise.
14872         * math/s_ldexpl.c: Likewise.
14873         * math/s_significand.c: Likewise.
14874         * math/s_significandf.c: Likewise.
14875         * math/s_significandl.c: Likewise.
14876         * math/w_acos.c: Likewise.
14877         * math/w_acosf.c: Likewise.
14878         * math/w_acosh.c: Likewise.
14879         * math/w_acoshf.c: Likewise.
14880         * math/w_acoshl.c: Likewise.
14881         * math/w_acosl.c: Likewise.
14882         * math/w_asin.c: Likewise.
14883         * math/w_asinf.c: Likewise.
14884         * math/w_asinl.c: Likewise.
14885         * math/w_atan2.c: Likewise.
14886         * math/w_atan2f.c: Likewise.
14887         * math/w_atan2l.c: Likewise.
14888         * math/w_atanh.c: Likewise.
14889         * math/w_atanhf.c: Likewise.
14890         * math/w_atanhl.c: Likewise.
14891         * math/w_cosh.c: Likewise.
14892         * math/w_coshf.c: Likewise.
14893         * math/w_coshl.c: Likewise.
14894         * math/w_dremf.c: Likewise.
14895         * math/w_exp10.c: Likewise.
14896         * math/w_exp10f.c: Likewise.
14897         * math/w_exp10l.c: Likewise.
14898         * math/w_exp2.c: Likewise.
14899         * math/w_exp2f.c: Likewise.
14900         * math/w_fmod.c: Likewise.
14901         * math/w_fmodf.c: Likewise.
14902         * math/w_fmodl.c: Likewise.
14903         * math/w_hypot.c: Likewise.
14904         * math/w_hypotf.c: Likewise.
14905         * math/w_hypotl.c: Likewise.
14906         * math/w_j0.c: Likewise.
14907         * math/w_j0f.c: Likewise.
14908         * math/w_j0l.c: Likewise.
14909         * math/w_j1.c: Likewise.
14910         * math/w_j1f.c: Likewise.
14911         * math/w_j1l.c: Likewise.
14912         * math/w_jn.c: Likewise.
14913         * math/w_jnf.c: Likewise.
14914         * math/w_jnl.c: Likewise.
14915         * math/w_lgamma.c: Likewise.
14916         * math/w_lgamma_r.c: Likewise.
14917         * math/w_lgammaf.c: Likewise.
14918         * math/w_lgammaf_r.c: Likewise.
14919         * math/w_lgammal.c: Likewise.
14920         * math/w_lgammal_r.c: Likewise.
14921         * math/w_log.c: Likewise.
14922         * math/w_log10.c: Likewise.
14923         * math/w_log10f.c: Likewise.
14924         * math/w_log10l.c: Likewise.
14925         * math/w_log2.c: Likewise.
14926         * math/w_log2f.c: Likewise.
14927         * math/w_log2l.c: Likewise.
14928         * math/w_logf.c: Likewise.
14929         * math/w_logl.c: Likewise.
14930         * math/w_pow.c: Likewise.
14931         * math/w_powf.c: Likewise.
14932         * math/w_powl.c: Likewise.
14933         * math/w_remainder.c: Likewise.
14934         * math/w_remainderf.c: Likewise.
14935         * math/w_remainderl.c: Likewise.
14936         * math/w_scalb.c: Likewise.
14937         * math/w_scalbf.c: Likewise.
14938         * math/w_scalbl.c: Likewise.
14939         * math/w_sinh.c: Likewise.
14940         * math/w_sinhf.c: Likewise.
14941         * math/w_sinhl.c: Likewise.
14942         * math/w_sqrt.c: Likewise.
14943         * math/w_sqrtf.c: Likewise.
14944         * math/w_sqrtl.c: Likewise.
14945         * math/w_tgamma.c: Likewise.
14946         * math/w_tgammaf.c: Likewise.
14947         * math/w_tgammal.c: Likewise.
14948
14949         * po/ja.po: Update from translation team.
14950
14951 2011-09-29  Andreas Jaeger  <aj@suse.de>
14952
14953         [BZ #13179]
14954         * sunrpc/netname.c (netname2host): Fix logic.
14955
14956         [BZ #6779]
14957         [BZ #6783]
14958         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14959         correctly.
14960         * math/w_remainder.c (__remainder): Likewise.
14961         * math/w_remainderf.c (__remainderf): Likewise.
14962         * math/libm-test.inc (remainder_test): Add test cases.
14963
14964 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14965
14966         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14967         sdiv_qrnnd.
14968
14969 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14970
14971         * string/test-memcmp.c: Avoid unncessary #defines.
14972         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14973
14974 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14975
14976         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14977         Use new sse2 version for core i3 - i7 as it's faster
14978         than sse42 version.
14979         (bit_Prefer_PMINUB_for_stringop): New.
14980         * sysdeps/x86_64/rawmemchr.S: Update.
14981         Replace with faster SSE2 version.
14982         * sysdeps/x86_64/memrchr.S: New file.
14983         * sysdeps/x86_64/memchr.S: Update.
14984         Replace with faster SSE2 version.
14985
14986 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14987
14988         * elf/dl-load.c (lose): Add cast to avoid warning.
14989
14990 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14991
14992         * po/ca.po: Update from translation team.
14993
14994         * inet/getnetgrent_r.c: Hook up nscd.
14995         * nscd/Makefile (routines): Add nscd_netgroup.
14996         (nscd-modules): Add netgroupcache.
14997         (CFLAGS-netgroupcache.c): Define.
14998         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14999         (cache_search): Add const to second parameter.
15000         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15001         INNETGR.
15002         (dbs): Add netgrdb entry.
15003         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15004         (verify_persistent_db): Handle netgrdb.
15005         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15006         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15007         GETFDNETGR.
15008         (netgroup_response_header): Define.
15009         (innetgroup_response_header): Define.
15010         (datahead): Add netgroup_response_header and innetgroup_response_header
15011         elements.
15012         * nscd/nscd.conf: Add entries for netgroup cache.
15013         * nscd/nscd.h (dbtype): Add netgrdb.
15014         (_PATH_NSCD_NETGROUP_DB): Define.
15015         (netgroup_iov_disabled): Declare.
15016         (xmalloc, xcalloc, xrealloc): Move declarations here.
15017         (cache_search): Adjust prototype.
15018         Add netgroup-related prototypes.
15019         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15020         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15021         (__nscd_innetgr): Declare.
15022         * nscd/selinux.c (perms): Use access_vector_t as element type and
15023         add netgroup-related initializers.
15024         * nscd/netgroupcache.c: New file.
15025         * nscd/nscd_netgroup.c: New file.
15026         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15027         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15028         For four parameters use innetgr.
15029         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15030         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15031         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15032         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15033
15034         * nscd/connections.c (register_traced_file): Don't register file
15035         for disabled databases.
15036
15037 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15038
15039         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15040
15041         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15042         from tree and freeing node.
15043
15044 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15045
15046         * nss/nsswitch.c (__nss_database_lookup): Handle
15047         nss_parse_service_list out of memory case.
15048
15049 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15050
15051         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15052         out of memory case.
15053
15054 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15055
15056         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15057         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15058         pass it down.
15059         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15060         elf_machine_rela, elf_machine_lazy_rel.
15061         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15062         (ELF_DYNAMIC_DO_REL): Likewise.
15063         (ELF_DYNAMIC_DO_RELA): Likewise.
15064         (ELF_DYNAMIC_RELOCATE): Likewise.
15065         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15066         to ELF_DYNAMIC_DO_REL.
15067         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15068         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15069         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15070         elf_machine_rela.
15071         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15072         skip_ifunc, don't call ifunc function if non-zero.
15073         (elf_machine_rela): Likewise.
15074         (elf_machine_lazy_rel): Likewise.
15075         (elf_machine_lazy_rela): Likewise.
15076         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15077         (elf_machine_lazy_rel): Likewise.
15078         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15079         Likewise.
15080         (elf_machine_lazy_rel): Likewise.
15081         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15082         Likewise.
15083         (elf_machine_lazy_rel): Likewise.
15084         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15085         (elf_machine_lazy_rel): Likewise.
15086         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15087         (elf_machine_lazy_rel): Likewise.
15088         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15089         (elf_machine_lazy_rel): Likewise.
15090         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15091         (elf_machine_lazy_rel): Likewise.
15092         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15093         (elf_machine_lazy_rel): Likewise.
15094         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15095         (elf_machine_lazy_rel): Likewise.
15096
15097 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15098
15099         * nss/nss_files/files-init.c (_nss_files_init): Use static
15100         initialization for all the *_traced_file variables.
15101
15102 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15103
15104         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15105
15106 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15107
15108         [BZ #13226]
15109         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15110
15111 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15112
15113         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15114         Reread the line before reparsing it.
15115
15116 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15117
15118         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15119
15120 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15121             Maxim Kuvyrkov  <maxim@codesourcery.com>
15122             Joseph Myers  <joseph@codesourcery.com>
15123
15124         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15125         if needed for __stack_chk_guard.
15126
15127 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15128
15129         * sysdeps/posix/spawni.c (script_execute): Always define it.
15130         It will be optimized away if unused.
15131         (maybe_script_execute): New function.
15132         (__spawni): Call it.
15133
15134         * Makerules: Don't include tls.make.
15135         (config-tls): Always set to thread.
15136         * tls.make.c: File removed.
15137
15138 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15139
15140         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15141         * config.make.in (CPPFLAGS-config): New substituted variable.
15142
15143 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15144
15145         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15146
15147         [BZ #13192]
15148         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15149         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15150
15151 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15152
15153         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15154         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15155         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15156         (CALL_FAIL): Likewise.
15157         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15158         (CALL_FAIL): Macro removed.
15159         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15160
15161 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15162
15163         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15164         for __FINITE_MATH_ONLY__ == 1.
15165
15166 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15167
15168         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15169         __ieee754_sqrt instead of sqrt.
15170         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15171         __ieee754_sqrtf instead of sqrtf.
15172         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15173         __floorf instead of floorf.
15174         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15175         __floorf, __truncf instead of floorf, truncf.
15176
15177 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15178
15179         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15180
15181         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15182         __extern_always_inline.
15183         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15184         32-bit.
15185
15186 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15187
15188         * elf/rtld.c (dl_main): Also relocate in dependency order when
15189         doing symbol dependency testing.
15190
15191 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15192
15193         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15194         Always define `refsym'.
15195
15196 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15197
15198         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15199         (__FD_ELT): Renamed from __FDELT.
15200         * misc/bits/select2.h (__FD_ELT): Likewise.
15201         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15202         __FD_MASK instead of __FDELT, __FDMASK.
15203         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15204         Likewise.
15205         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15206         Likewise.
15207
15208         * elf/Makefile (gen-ldd): Fix pattern.
15209
15210         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15211         (init_tls): Likewise.
15212
15213 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15214
15215         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15216
15217 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15218
15219         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15220         `struct cmsghdr *' instead of `void *'.
15221         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15222         Likewise.
15223
15224 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15225
15226         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15227         if non-absolute.
15228         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15229         ldd_rewrite_script.
15230
15231 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15232
15233         * configure.in: Remove --with-tls option.
15234         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15235         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15236         out in case it is missing.
15237         * sysdeps/ia64/elf/configure.in: Likewise.
15238         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15239         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15240         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15241         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15242         * sysdeps/sh/elf/configure.in: Likewise.
15243         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15244         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15245         * sysdeps/x86_64/elf/configure.in: Likewise.
15246         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15247         * sysdeps/mach/hurd/tls.h: Likewise.
15248
15249         [BZ #13067]
15250         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15251
15252         [BZ #13090]
15253         * configure.in: Fix use of AC_INIT.
15254
15255         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15256
15257 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15258
15259         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15260         __set_errno.
15261         * malloc/hooks.c: Likewise.
15262
15263         [BZ #11929]
15264         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15265         variables statically.
15266         (narenas): Initialize.
15267         (list_lock): Initialize.
15268         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15269         initializtion of main_arena and list_lock.  Small cleanups.
15270         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15271         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15272         Add initializers to main_arena and mp_.
15273         (malloc_state): Remove pagesize member.  Change all users to use
15274         GLRO(dl_pagesize).
15275
15276         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15277         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15278         is always initialized.
15279
15280         * malloc/malloc.c: Removed unused configurations and dead code.
15281         * malloc/arena.c: Likewise.
15282         * malloc/hooks.c: Likewise.
15283         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15284
15285         * include/tls.h: Removed.  USE___THREAD must always be defined.
15286         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15287         * elf/dl-libc.c: Likewise.
15288         * elf/dl-tsd.c: Likewise.
15289         * include/errno.h: Likewise.
15290         * include/netdb.h: Likewise.
15291         * include/resolv.h: Likewise.
15292         * inet/herrno-loc.c: Likewise.
15293         * inet/herrno.c: Likewise.
15294         * malloc/arena.c: Likewise.
15295         * malloc/hooks.c: Likewise.
15296         * malloc/malloc.c: Likewise.
15297         * resolv/res-state.c: Likewise.
15298         * resolv/res_libc.c: Likewise.
15299         * sysdeps/i386/dl-machine.h: Likewise.
15300         * sysdeps/ia64/dl-machine.h: Likewise.
15301         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15302         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15303         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15304         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15305         * sysdeps/sh/dl-machine.h: Likewise.
15306         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15307         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15308         * sysdeps/unix/i386/sysdep.S: Likewise.
15309         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15310         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15311         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15312         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15313         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15314         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15315         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15316         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15317         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15318         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15319         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15320         * sysdeps/x86_64/dl-machine.h: Likewise.
15321         * tls.make.c: Likewise.
15322
15323         * configure.in: Remove --with-__thread option.  Make tests for
15324         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15325         tls_model attribute fail if no support is available.  Remove
15326         USE_IN_LIBIO.
15327         * Makeconfig: Adjust for dropped configure option.  All features are
15328         now mandatory.
15329         * Makerules: Likewise.
15330         * Versions.def: Likewise.
15331         * argp/argp-fmtstream.c: Likewise.
15332         * argp/argp-fmtstream.h: Likewise.
15333         * argp/argp-help.c: Likewise.
15334         * assert/assert.c: Likewise.
15335         * config.h.in: Likewise.
15336         * config.make.in: Likewise.
15337         * configure: Likewise.
15338         * configure.in: Likewise.
15339         * csu/Versions: Likewise.
15340         * csu/init.c: Likewise.
15341         * elf/tst-audit2.c: Likewise.
15342         * elf/tst-tls10.c: Likewise.
15343         * elf/tst-tls10.h: Likewise.
15344         * elf/tst-tls11.c: Likewise.
15345         * elf/tst-tls12.c: Likewise.
15346         * elf/tst-tls14.c: Likewise.
15347         * elf/tst-tlsmod11.c: Likewise.
15348         * elf/tst-tlsmod12.c: Likewise.
15349         * elf/tst-tlsmod13.c: Likewise.
15350         * elf/tst-tlsmod13a.c: Likewise.
15351         * elf/tst-tlsmod14a.c: Likewise.
15352         * elf/tst-tlsmod15b.c: Likewise.
15353         * elf/tst-tlsmod16a.c: Likewise.
15354         * elf/tst-tlsmod16b.c: Likewise.
15355         * elf/tst-tlsmod7.c: Likewise.
15356         * elf/tst-tlsmod8.c: Likewise.
15357         * elf/tst-tlsmod9.c: Likewise.
15358         * gmon/gmon.c: Likewise.
15359         * grp/fgetgrent_r.c: Likewise.
15360         * grp/putgrent.c: Likewise.
15361         * hurd/fopenport.c: Likewise.
15362         * include/libc-symbols.h: Likewise.
15363         * include/tls.h: Likewise.
15364         * intl/gettextP.h: Likewise.
15365         * intl/loadinfo.h: Likewise.
15366         * locale/global-locale.c: Likewise.
15367         * locale/localeinfo.h: Likewise.
15368         * mach/devstream.c: Likewise.
15369         * malloc/arena.c: Likewise.
15370         * malloc/set-freeres.c: Likewise.
15371         * misc/err.c: Likewise.
15372         * misc/getttyent.c: Likewise.
15373         * misc/mntent_r.c: Likewise.
15374         * posix/getopt.c: Likewise.
15375         * posix/wordexp.c: Likewise.
15376         * pwd/fgetpwent_r.c: Likewise.
15377         * resolv/Versions: Likewise.
15378         * resolv/res_hconf.c: Likewise.
15379         * shadow/fgetspent_r.c: Likewise.
15380         * shadow/putspent.c: Likewise.
15381         * stdio-common/printf_fphex.c: Likewise.
15382         * stdio-common/tmpfile.c: Likewise.
15383         * stdlib/abort.c: Likewise.
15384         * stdlib/fmtmsg.c: Likewise.
15385         * sunrpc/auth_unix.c: Likewise.
15386         * sunrpc/clnt_perr.c: Likewise.
15387         * sunrpc/clnt_tcp.c: Likewise.
15388         * sunrpc/clnt_udp.c: Likewise.
15389         * sunrpc/clnt_unix.c: Likewise.
15390         * sunrpc/openchild.c: Likewise.
15391         * sunrpc/svc_simple.c: Likewise.
15392         * sunrpc/svc_tcp.c: Likewise.
15393         * sunrpc/svc_udp.c: Likewise.
15394         * sunrpc/svc_unix.c: Likewise.
15395         * sunrpc/xdr.c: Likewise.
15396         * sunrpc/xdr_array.c: Likewise.
15397         * sunrpc/xdr_rec.c: Likewise.
15398         * sunrpc/xdr_ref.c: Likewise.
15399         * sunrpc/xdr_stdio.c: Likewise.
15400
15401 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15402
15403         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15404
15405 2011-07-03  Andreas Jaeger  <aj@suse.de>
15406
15407         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15408         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15409         regenerate with gen-libm-tests.pl.
15410
15411 2010-05-12  Petr Baudis  <pasky@suse.cz>
15412
15413         [BZ #11589]
15414         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15415         around j0() zero points by switching to j1().
15416         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15417         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15418         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15419         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15420
15421 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15422
15423         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15424         instead of 0.
15425         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15426         instead of 0.                              .
15427         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15428         Patch in part by Pavel Roskin <proski@gnu.org>.
15429
15430         [BZ #13138]
15431         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15432         realloc.
15433         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15434         Free memory block if necessary.
15435
15436         [BZ #12847]
15437         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15438         be NULL.  Don't lock in this case.
15439
15440 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15441
15442         * elf/elf.h (ELFOSABI_GNU): New macro.
15443         (ELFOSABI_LINUX): Define to that.
15444
15445 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15446
15447         * string/strncat.c (strncat): Undef the symbol in case it has been
15448         defined in bits/string.h.
15449
15450 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15451
15452         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15453
15454         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15455         link map.
15456
15457 2011-08-17  Andreas Jaeger  <aj@suse.de>
15458
15459         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15460
15461 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15462             Ian Lance Taylor  <iant@google.com>
15463
15464         * math/libm-test.inc (lround_test): New testcase.
15465         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15466
15467 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15468
15469         * Makefile: Remove support for automatic cvs check-ins.
15470         * Makerules: Likewise.
15471         * config.make.in: Likewise.
15472         * configure.in: Likewise.
15473         * intl/Makefile: Likewise.
15474         * locale/Makefile: Likewise.
15475         * po/Makefile: Likewise.
15476         * posix/Makefile: Likewise.
15477         * sysdeps/gnu/Makefile: Likewise.
15478         * sysdeps/mach/hurd/Makefile: Likewise.
15479         * sysdeps/sparc/sparc32/Makefile: Likewise.
15480
15481         [BZ #13118]
15482         * posix/Makefile (bug-regex32-ENV): Define.
15483         Patch by John Stanley <jpsinthemix@verizon.net>.
15484
15485         * misc/Makefile (headers): Add bits/select2.h.
15486         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15487         * misc/bits/select2.h: New file.
15488         * include/bits/select2.h: New file.
15489         * debug/Makefile (routines): Add fdelt_chk.
15490         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15491         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15492         FD_ISSET.
15493         * debug/fdelt_chk.c: New file.
15494
15495         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15496         * wcsmbs/test-wmemcmp.c: Likewise.
15497         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15498         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15499
15500 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15501
15502         * string/Makefile (strop-tests): Add memcmp.
15503         * string/test-wmemcmp.c: New file.
15504         * string/test-memcmp.c: Add wmemcmp support.
15505
15506 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15507
15508         [BZ #13153]
15509         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15510         2011-07-19 change.
15511
15512         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15513         garbage value in a __mach_port_mod_refs call in the cases of the
15514         task-self and thread-self ports.
15515
15516 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15517
15518         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15519
15520 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15521
15522         * elf/dl-load.c (lose): Check for non-null L.
15523
15524 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15525
15526         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15527
15528         * elf/dl-libc.c (dlerror_run): Pass back error code from
15529         dl_catch_error.
15530
15531         [BZ #13123]
15532         * elf/dl-load.c (lose): Free l_origin if it is valid.
15533
15534         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15535         names.
15536         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15537         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15538         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15539         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15540         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15541         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15542
15543 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15544
15545         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15546         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15547         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15548         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15549         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15550         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15551         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15552         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15553         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15554         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15555
15556 2011-08-15  Alan Modra  <amodra@gmail.com>
15557
15558         [BZ #13092]
15559         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15560         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15561         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15562         ppc_mcount to static-only-routines.
15563         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15564         __mcount_internal.
15565         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15566         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15567
15568 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15569
15570         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15571         for finite and infinity parameters.
15572
15573 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15574
15575         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15576         and add nop instructions for throughput optimization.
15577         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15578
15579 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15580
15581         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15582         aligned copy for power7 with vector-scalar instructions.
15583         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15584
15585 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15586
15587         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15588         AVX check.
15589
15590 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15591
15592         [BZ #13144]
15593         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15594         last change.
15595
15596 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15597
15598         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15599         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15600         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15601         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15602         clock_gettime.
15603
15604 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15605
15606         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15607         Forgot to demangle the pointer.
15608
15609         * sysdeps/i386/sysdep.h: Define atom_text_section.
15610         * sysdeps/x86_64/sysdep.h: Likewise.
15611         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15612         section with atom_text_section.
15613         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15614         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15615         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15616         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15617         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15618
15619         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15620         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15621         already be defined.  Change to take two parameters and don't assign
15622         result to variable.  Adjust all users.
15623         Define INTERNAL_GETTIME if not already defined.
15624         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15625         call.
15626         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15627         HAVE_CLOCK_GETTIME_VSYSCALL.
15628         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15629
15630         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15631         gettimeofday vsyscall, just use time.
15632
15633 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15634
15635         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15636         <errno.h>.
15637
15638 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15639
15640         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15641         syscall on x86-64.
15642         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15643         syscall.
15644         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15645         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15646         syscall if possible.
15647
15648 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15649
15650         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15651         e_ident.  Don't pass to find_mapsXX.
15652         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15653
15654 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15655
15656         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15657         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15658         * sysdeps/x86_64/multiarch/strchr.S: Update.
15659         Check bit_slow_BSF bit.
15660         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15661         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15662         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15663
15664 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15665
15666         [BZ #13134]
15667         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15668         before glibc 2.15.
15669         (tryshell): Define.
15670         (__spawni): Change last parameter to be flag.  Test
15671         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15672         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15673         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15674         * posix/spawni.c: Likewise.
15675         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15676         * posix/spawnp.c: Likewise.  Change normal version to use
15677         SPAWN_XFLAGS_USE_PATH.
15678         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15679         SPAWN_XFLAGS_TRY_SHELL.
15680
15681         [BZ #13150]
15682         * posix/glob.h: Remove gcc 1.x support.
15683
15684         [BZ #13068]
15685         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15686
15687 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15688
15689         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15690         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15691         strrchr-sse2-bsf
15692         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15693         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15694         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15695         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15696         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15697         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15698
15699 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15700
15701         * sysdeps/x86_64/wcscmp.S: New file.
15702
15703         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15704         wcscmp-c wcscmp-sse2
15705         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15706         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15707         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15708         * wcsmbs/wcscmp.c: Allow renaming.
15709
15710 2011-09-05  David S. Miller  <davem@davemloft.net>
15711
15712         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15713         stack slot, rather than the struct return pointer slot.
15714         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15715         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15716         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15717         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15718
15719 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15720
15721         * po/ja.po: Update from translation team.
15722
15723         [BZ #13144]
15724         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15725         kernel in 64-bit binaries.
15726
15727 2011-09-01  David S. Miller  <davem@davemloft.net>
15728
15729         * elf/elf.h (HWCAP_SPARC_*): Move to..
15730         * sysdeps/sparc/sysdep.h: this new file and add new values.
15731         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15732         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15733         _DL_HWCAP_COUNT to 24.
15734         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15735         entries.
15736         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15737         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15738         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15739         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15740         instead of magic constants.
15741         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15742
15743 2011-08-31  David S. Miller  <davem@davemloft.net>
15744
15745         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15746         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15747         Reimplement to do errno handling inline.
15748         (SYSCALL_ERROR_HANDLER): New macro.
15749         (__SYSCALL_STRING): Do not do errno handling in asm.
15750         (__CLONE_SYSCALL_STRING): Delete.
15751         (__INTERNAL_SYSCALL_STRING): Delete.
15752         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15753         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15754         (PSEUDO): Reimplement to do errno handling inline.
15755         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15756         (SYSCALL_ERROR_HANDLER): New macro.
15757         (__SYSCALL_STRING): Do not do errno handling in asm.
15758         (__CLONE_SYSCALL_STRING): Delete.
15759         (__INTERNAL_SYSCALL_STRING): Delete.
15760         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15761         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15762         i386.
15763         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15764         (inline_syscall*): Add 'err' argument.
15765         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15766         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15767         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15768         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15769
15770         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15771         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15772
15773 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15774
15775         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15776
15777 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15778
15779         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15780         directive.
15781
15782 2011-08-24  David S. Miller  <davem@davemloft.net>
15783
15784         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15785
15786 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15787
15788         * elf/Makefile: Add rules to build and run unload8 test.
15789         * elf/unload8.c: New file.
15790         * elf/unload8mod1.c: New file.
15791         * elf/unload8mod1x.c: New file.
15792         * elf/unload8mod2.c: New file.
15793         * elf/unload8mod3.c: New file.
15794
15795         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15796         it wasn't used.
15797
15798 2011-08-23  David S. Miller  <davem@davemloft.net>
15799
15800         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15801         subtract stack bias.
15802         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15803         %sp not %fp in calculations.
15804         (_JMPBUF_UNWINDS_ADJ): Likewise.
15805
15806         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15807         (aio_suspend): Call it to force an exception region around the
15808         AIO_MISC_WAIT() invocation.
15809
15810 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15811
15812         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15813         backslash.
15814
15815 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15816
15817         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15818         protection macro.
15819         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15820         and <dl-machine.h>.
15821         (Elf64_FuncDesc): Remove.
15822
15823 2011-08-22  David S. Miller  <davem@davemloft.net>
15824
15825         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15826         sigaltstack check, add missing cfi directives.
15827         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15828         missing cfi directives, and sigaltstack handling.
15829
15830 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15831
15832         [BZ #11724]
15833         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15834         object is seen twice.
15835         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15836
15837         * elf/Makefile (distribute): Add tst-initorder2.c.
15838         (tests): Add tst-initorder2.
15839         (modules-names): Add tst-initorder2a tst-initorder2b
15840         tst-initorder2c tst-initorder2d.  Add rules to build them.
15841         ($(objpfx)tst-initorder2.out): New rule.
15842         * elf/tst-initorder2.c: New file.
15843         * elf/tst-initorder2.exp: New file.
15844
15845 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15846
15847         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15848
15849         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15850         dependencies back to end of function.
15851
15852         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15853         $(elfobjdir)/ld.so.
15854
15855 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15856
15857         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15858         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15859         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15860         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15861         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15862         of __vdso_gettimeofday.
15863         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15864         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15865         attribute_hidden.
15866         (_libc_vdso_platform_setup): Remove initialization of
15867         __vdso_gettimeofday and __vdso_time.
15868
15869 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15870
15871         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15872         and fgetc_unlocked.
15873         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15874         getc_unlocked.
15875
15876         * elf/dl-open.c (add_to_global): Report additions to the global scope
15877         for LD_DEBUG=scopes.
15878         (dl_open_worker): Also print scope of newly loaded dependencies.
15879         (_dl_show_scope): Indicate if there is no scope.
15880
15881         [BZ #13114]
15882         * stdio-common/Makefile (tests): Add bug24.
15883         * stdio-common/bug24.c: New file.
15884
15885 2011-08-19  Andreas Jaeger  <aj@suse.de>
15886
15887         [BZ #13114]
15888         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15889         non-existant file when using close-on-exec mode.
15890
15891 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15892
15893         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15894         the very first instruction.
15895
15896         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15897         the CFI state in the end.
15898         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15899         inclusion of dl-trampoline.h.
15900         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15901
15902 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15903
15904         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15905         expectations for long double.
15906
15907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15908         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15909
15910 2011-08-14  David S. Miller  <davem@davemloft.net>
15911
15912         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15913         artificual limit depends upon the system page size.
15914
15915 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15916
15917         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15918         * resolv/Makefile: Define CFLAGS-libresolv.
15919
15920 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15921
15922         * nss/makedb.c (compute_tables): Make variables used in nested
15923         function static.
15924
15925 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15926
15927         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15928         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15929         if buffer was too small.
15930
15931         * elf/pldd.c (main): Attach to all threads in the process.
15932         Rewrite /proc handling to use *at functions.
15933
15934 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15935
15936         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15937         specifies first scope to show.
15938         (dl_open_worker): Update callers.  Move printing scope of new
15939         object to before the relocation.
15940         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15941         * sysdeps/generic/ldsodefs.h: Update declaration.
15942
15943         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15944         string for the scope number.
15945
15946 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15947
15948         * nscd/servicescache.c (cache_addserv): Make sure written is always
15949         initialized.
15950
15951 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15952
15953         * sysdeps/i386/i486/bits/atomic.h
15954         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15955         statement expression, so as to suppress "set but not used" warning.
15956         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15957
15958         * string/strncat.c (STRNCAT): Use prototype definition.
15959
15960         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15961         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15962         -Iprograms here.
15963         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15964         (localedef-modules): Add localedef.
15965         (locale-modules): Add locale.
15966
15967         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15968         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15969         to avoid a warning.
15970
15971 2011-08-14  David S. Miller  <davem@davemloft.net>
15972
15973         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15974         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15975
15976 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15977
15978         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15979         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15980         * elf/rtld.c (dl_main): Set l_name of vDSO.
15981         Call _dl_show_scope when DL_DEBUG_SCOPES.
15982         (process_dl_debug): Recognize scopes flag and also set it for all.
15983         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15984         Declare _dl_show_scope.
15985
15986         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15987         (do_dlopen): Pass caller_dlopen to dl_open.
15988         (__libc_dlopen_mode): Initialize caller_dlopen.
15989
15990         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15991         of libc.  Make tolower call locale-independent.  Optimize a bit by
15992         using isdigit instead of isalnum.
15993         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15994
15995 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15996
15997         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15998         was a dependency or dynamically loaded.
15999
16000 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16001
16002         * intl/l10nflist.c: Allow architecture-specific pop function.
16003         * sysdeps/x86_64/l10nflist.c: New file.
16004
16005         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16006         classification.
16007
16008 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16009
16010         * include/dirent.h: Add libc_hidden_proto for scandirat and
16011         scandirat64.  Don't declare __scandirat64.
16012         * dirent/scandirat.c: Add libc_hidden_def.
16013         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16014         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16015
16016 2011-08-10  David S. Miller  <davem@davemloft.net>
16017
16018         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16019         enum.
16020         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16021         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16022         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16023
16024 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16025
16026         * Versions.def [libc]: Add GLIBC_2.15.
16027         * dirent/Makefile (routines): Add scandirat and scandirat64.
16028         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16029         GLIBC_2.15.
16030         * dirent/dirent.h: Declare scandirat and scandirat64.
16031         * dirent/scandirat.c: New file.
16032         * dirent/scandirat64.c: New file.
16033         * sysdeps/wordsize-64/scandirat.c: New file.
16034         * sysdeps/wordsize-64/scandirat64.c: New file.
16035         * dirent/opendir.c: Define opendirat.
16036         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16037         using scandirat.
16038         * dirent/scandir64.c: Adjust for scandir.c change.
16039         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16040         __scandirat64, and __scandir_cancel_handler.
16041         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16042         additional parameter and use openat instead of open (outside of ld.so).
16043         Add new __opendir as wrapper around __opendirat.
16044         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16045         here without requiring old scandirat implementation.
16046
16047 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16048
16049         * dirent/scandir.c (cancel_handler): Renamed to
16050         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16051         defined.  Adjust users.
16052         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16053         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16054
16055 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16056
16057         * string/test-string.h (IMPL): Use __STRING to expand name and then
16058         stringify it.
16059
16060         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16061         of cleanups.
16062
16063 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16064
16065         * string/Makefile: Update.
16066         (strop-tests): Append strncat.
16067         * string/test-wcscmp.c: New file.
16068         New comprehensive test for wcscmp.
16069         * string/test-strcmp.c: Update.
16070         (WIDE): New define.
16071
16072 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16073
16074         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16075         line.
16076
16077 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16078
16079         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16080         encoding to ACE if AI_IDN.
16081
16082 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16083
16084         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16085         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16086
16087 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16088
16089         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16090         Fix overflow bug in strncat.
16091         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16092
16093         * string/test-strncat.c: Update.
16094         Add new tests for checking overflow bugs.
16095
16096 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16097
16098         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16099         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16100         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16101         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16102         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16103         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16104         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16105         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16106         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16107
16108         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16109         (USE_AS_STRCAT): Define.
16110         Add strcat and strncat support.
16111         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16112
16113 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16114
16115         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16116         __n bigger than INT_MAX+1.
16117         (__strncmp_g): Likewise.
16118
16119 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16120
16121         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16122         * libio/stido.h: Likewise.
16123
16124         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16125         (AF_NFC): Define.
16126         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16127         (AF_NFC): Define.
16128
16129         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16130         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16131         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16132         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16133         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16134
16135         [BZ #13021]
16136         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16137         installed.
16138
16139         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16140         typo.
16141         (_dl_x86_64_save_sse): Likewise.
16142
16143 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16144
16145         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16146         OSXSAVE.
16147         (_dl_x86_64_save_sse): Likewise.
16148
16149         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16150
16151         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16152
16153 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16154
16155         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16156         change.
16157         (_dl_x86_64_save_sse): Use correct AVX check.
16158
16159 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16160
16161         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16162         bug in strncpy/strncat.
16163         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16164
16165 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16166
16167         * string/tester.c (test_strcat): Add tests for different alignments
16168         of source and destination.
16169         (test_strncat): Likewise.
16170
16171 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16172
16173         [BZ #12852]
16174         * posix/glob.c (glob): Check passed in values before using them in
16175         expressions to avoid some overflows.
16176         (glob_in_dir): Likewise.
16177
16178         [BZ #13007]
16179         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16180         check for AVX enablement so that we don't crash with old kernels and
16181         new hardware.
16182         * elf/tst-audit4.c: Add same checks here.
16183         * elf/tst-audit6.c: Likewise.
16184
16185         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16186
16187 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16188
16189         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16190
16191 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16192
16193         * po/cs.po: Update from translation team.
16194         * po/bg.po: Likewise.
16195
16196 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16197
16198         * misc/sys/cdefs.h: Add support for const attribute.
16199         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16200         to gnu_dev_{major,minor,makedev} functions.
16201
16202 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16203
16204         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16205
16206 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16207
16208         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16209         strlen results.
16210
16211 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16212
16213         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16214         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16215         register in order to avoid conflicts with the soft frame pointer
16216         being held in r11 when necessary.
16217         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16218         (INTERNAL_VSYSCALL_NCS): Likewise.
16219
16220 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16221
16222         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16223         * elf/dl-fini.c (_dl_fini): Adjust caller.
16224         * elf/dl-close.c (_dl_close_worker): Likewise.
16225         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16226
16227 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16228
16229         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16230         "aux_cache->nlibs < 0".
16231
16232         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16233         in the reload-count case.
16234
16235 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16236
16237         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16238         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16239         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16240         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16241         * sysdeps/x86_64/multiarch/strcat.S: New file.
16242         * sysdeps/x86_64/multiarch/strncat.S: New file.
16243         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16244         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16245         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16246         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16247         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16248         (USE_AS_STRCAT): Define.
16249         Add strcat and strncat support.
16250         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16251         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16252         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16253         * string/strncat.c: Update.
16254         (USE_AS_STRNCAT): Define.
16255         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16256         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16257         and i7.
16258         * sysdeps/x86_64/multiarch/init-arch.h
16259         (bit_Prefer_PMINUB_for_stringop): New.
16260         (index_Prefer_PMINUB_for_stringop): Likewise.
16261         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16262         bit_Prefer_PMINUB_for_stringop.
16263
16264 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16265
16266         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16267         buffer64.
16268         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16269         of casting of buffer.
16270         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16271         buffer32 and buffer64.
16272         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16273         writes instead of casting of buffer.
16274         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16275         buffer32.
16276         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16277         casting of buffer.
16278
16279 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16280
16281         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16282
16283 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16284
16285         * nscd/nscd.c (termination_handler): Don't do anything for a database
16286         if it has not yet been initialized.
16287
16288 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16289
16290         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16291
16292 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16293
16294         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16295
16296 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16297
16298         * po/nl.po: Update from translation team.
16299         * po/sv.po: Likewise.
16300
16301 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16302
16303         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16304         now disallowed by GCC.
16305
16306         * configure.in (use-default-link): Default to yes if a test -shared
16307         link meets our qualifications.
16308         * configure: Regenerated.
16309
16310         * config.make.in (output-format): New variable.
16311         * configure.in: Check for ld --print-output-format support.
16312         * configure: Regenerated.
16313         * Makerules ($(common-objpfx)format.lds)
16314         [$(output-format) != unknown]: Just use $(output-format),
16315         instead of the linker-script munging.
16316
16317 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16318
16319         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16320         of $(common-objpfx)shlib.lds.
16321         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16322
16323         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16324         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16325
16326         * configure.in (-z relro check): Adjust test code to add a large
16327         writable data section after it.
16328         * configure: Regenerated.
16329
16330 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16331
16332         * configure.in (-z relro check): Fix test code to make the variable
16333         truly const.
16334         * configure: Regenerated.
16335
16336 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16337
16338         * nscd/nscd.h (struct traced_file): Define.
16339         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16340         elements.  Add traced_files.
16341         (inotify_fd): Declare.
16342         (register_traced_file): Declare.
16343         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16344         (inotify_fd): Export.
16345         (resolv_conf_descr): Remove.
16346         (nscd_init): Move inotify descriptor creation to main.
16347         Don't register files for notification here.
16348         (register_traced_file): New function.
16349         (invalidate_cache): Don't use reset_res to determine whether to call
16350         res_init, go through the list of registered files.
16351         (main_loop_poll): The inotify descriptors are now stored in the
16352         structures for the traced files.
16353         (main_loop_epoll): Likewise
16354         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16355         to __nss_disable_nscd.
16356         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16357         for a database anymore.  Check the records for all the registered
16358         files instead.
16359         * nss/Makefile (libnss_files-routines): Add files-init.
16360         (libnss_db-routines): Add db-init.
16361         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16362         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16363         * nss/nss_db/db-init.c: New file.
16364         * nss/nss_files/files-init.c: New file.
16365         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16366         __nss_lookup_function.
16367         (__nss_lookup_function): Call nss_load_library.
16368         (nss_load_all_libraries): New function.
16369         (__nss_disable_nscd): Take parameter with callback function for files
16370         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16371         used for the cached services.
16372         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16373         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16374         options for features to all the files in nscd.
16375
16376         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16377
16378 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16379
16380         * csu/elf-init.c (__libc_csu_init): Comment typo.
16381
16382 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16383
16384         * po/pl.po: Update from translation team.
16385         * po/ja.po: Likewise.
16386         * po/ru.po: Likewise.
16387         * po/ko.po: Likewise.
16388         * po/fr.po: Likewise.
16389
16390 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16391
16392         * configure.in (.ctors/.dtors header and trailer check):
16393         Use an empirical test on a built program.
16394         * configure: Regenerated.
16395
16396         * configure.in (-z relro check): Use an empirical test on a built DSO.
16397         Detect, but do not require, on ia64.
16398         * configure: Regenerated.
16399
16400         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16401         Update tests that use readelf to use $READELF instead.
16402         * configure: Regenerated.
16403
16404 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16405
16406         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16407         if the result is not used.
16408
16409 2011-07-05  Andreas Jaeger  <aj@suse.de>
16410
16411         [BZ#9696]
16412         * stdlib/tst-strtod.c: Add testcase.
16413
16414 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16415
16416         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16417         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16418         The latter has a higher limit.  Take additional parameter to pass to
16419         the new function.
16420         (__pathconf): Pass file to __statfs_link_max.
16421         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16422         __statfs_link_max.
16423         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16424         __statfs_link_max.
16425
16426         [BZ #12868]
16427         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16428         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16429         Handle Lustre.
16430         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16431         (__statfs_filesize_max): Likewise.
16432         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16433
16434 2011-07-05  Andreas Jaeger  <aj@suse.de>
16435
16436         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16437
16438 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16439
16440         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16441         `status' variable.
16442         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16443         Likewise.
16444
16445 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16446
16447         * Makefile (strop-tests): Add strncat.
16448         * string/test-strncat.c: New file.
16449
16450 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16451
16452         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16453
16454 2011-06-21  Andreas Jaeger  <aj@suse.de>
16455
16456         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16457         Copy rule from iconvdata/Makefile.
16458
16459 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16460
16461         [BZ #12922]
16462         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16463         but no long options are defined, just return 'W'.
16464
16465 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16466
16467         [BZ #9696]
16468         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16469
16470 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16471
16472         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16473         netgroups to read.
16474         (innetgr): Likewise.
16475
16476 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16477
16478         * config.make.in (install_root): Default to $(DESTDIR).
16479
16480 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16481
16482         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16483
16484 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16485
16486         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16487
16488         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16489         containing directory rather than embedding absolute directory names.
16490
16491         * scripts/check-local-headers.sh: Rewritten using awk.
16492         Match by word, not by line.  Print error messages for matches.
16493         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16494
16495         * Makerules [shlib-lds-flags empty]:
16496         ($(common-objpfx)libc_pic.opts): New target.
16497         ($(common-objpfx)libc_pic.os.clean): New target.
16498         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16499
16500         * config.make.in (OBJCOPY): New variable.
16501         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16502         * configure: Regenerated.
16503
16504         * config.make.in (use-default-link): New variable.
16505         * configure.in (use_default_link): Grok --with-default-link to set it.
16506         * configure: Regenerated.
16507         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16508         (shlib-lds, shlib-lds-flags): Define to empty.
16509
16510         * Makerules (shlib-lds): New variable.
16511         (shlib-lds-flags): New variable.
16512         (build-shlib, build-moduile, build-module-asneeded): Use it.
16513         ($(common-objpfx)libc.so): Use $(shlib-lds).
16514         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16515         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16516
16517         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16518         DT_FLAGS/DT_FLAGS_1 with zero flags.
16519
16520         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16521         linker script munging.
16522
16523 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16524
16525         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16526         as 128-bit value.
16527         * crypt/sha512.c (sha512_process_block): Perform total addition using
16528         128-bit if possible.
16529         (__sha512_finish_ctx): Likewise.
16530         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16531         as 64-bit value.
16532         * crypt/sha256.c (SWAP64): Define.
16533         (sha256_process_block): Perform total addition using 64-bit if
16534         possible.
16535         (__sha256_finish_ctx): Likewise.
16536
16537 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16538
16539         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16540         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16541         * nscd/hstcache.c (cache_addhst): Likewise.
16542         * nscd/grpcache.c (cache_addgr): Likewise.
16543         * nscd/aicache.c (addhstaiX): Likewise
16544         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16545
16546 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16547
16548         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16549         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16550         * nscd/hstcache.c (cache_addhst): Likewise.
16551         * nscd/grpcache.c (cache_addgr): Likewise.
16552         * nscd/aicache.c (addhstaiX): Likewise
16553
16554 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16555
16556         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16557         domain only when needed.
16558
16559 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16560
16561         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16562         is always restored.
16563
16564 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16565
16566         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16567         are re-adding the entry.
16568         * nscd/servicescache.c (cache_addserv): Likewise.
16569
16570 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16571
16572         * sysdeps/generic/dl-irel.h: fix protection against multiple
16573         inclusions.
16574         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16575
16576 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16577
16578         [BZ #12935]
16579         * malloc/memusage.sh: Fix quoting in message.
16580         * debug/xtrace.sh: Likewise.
16581
16582         * configure.in: Remove support for --experimental-malloc option, make
16583         it the default.
16584         * config.make.in: Likewise.
16585         * malloc/Makefile: Likewise.
16586
16587 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16588
16589         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16590         two-byte characters.
16591
16592 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16593
16594         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16595         AC_CACHE_CHECK invocation.
16596         * configure: Regenerated.
16597
16598         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16599
16600 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16601
16602         [BZ #12350]
16603         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16604         bit from old_res_options.
16605
16606         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16607
16608         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16609         value type for setfct.
16610
16611 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16612
16613         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16614         __gettimeofday instead of gettimeofday.
16615
16616 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16617
16618         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16619
16620 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16621
16622         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16623
16624         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16625         info.
16626
16627 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16628
16629         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16630         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16631         strcpy-sse2-unaligned strncpy-sse2-unaligned
16632         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16633         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16634         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16635         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16636         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16637         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16638         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16639         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16640         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16641         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16642         (STRCPY): Support SSE2 and SSSE3 versions.
16643
16644 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16645
16646         [BZ #12874]
16647         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16648         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16649         kernels which artificially limit size of requests.
16650
16651 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16652
16653         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16654         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16655         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16656         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16657         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16658         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16659         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16660         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16661         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16662         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16663         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16664         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16665         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16666         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16667         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16668         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16669         Enable unaligned load optimization for Intel Core i3, i5 and i7
16670         processors.
16671         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16672         Define.
16673         (index_Fast_Unaligned_Load): Define.
16674         (HAS_FAST_UNALIGNED_LOAD): Define.
16675
16676 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16677
16678         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16679
16680 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16681
16682         [BZ #12907]
16683         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16684         until it is clear that the information is realy needed.
16685         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16686
16687 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16688
16689         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16690
16691 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16692
16693         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16694         /sys/devices/system/cpu/online if it is usable.
16695
16696         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16697         reading the information from the /proc filesystem to once a second.
16698
16699 2011-06-21  Andreas Jaeger  <aj@suse.de>
16700
16701         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16702         NULL after inclusion of kernel headers.
16703
16704 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16705
16706         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16707         calls to internal_setent.
16708
16709         [BZ #12885]
16710         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16711         addresses using gethostbyname4_r ignore IPv4 addresses.
16712
16713         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16714         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16715
16716         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16717
16718 2011-06-20  David S. Miller  <davem@davemloft.net>
16719
16720         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16721         inclusions.
16722         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16723
16724         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16725         (elf_irel): Use it.
16726         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16727         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16728         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16729         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16730         * sysdeps/x86_64/dl-irel.h: Likewise.
16731
16732         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16733         * elf/dl-sym.c: Likewise.
16734
16735 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16736
16737         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16738         need to dereference resplen2.
16739
16740 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16741
16742         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16743
16744 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16745
16746         * Makeconfig: Define vardbdir and inst_vardbdir.
16747         * nss/Makefile: Add rules to install db-Makefile.
16748
16749         * nss/nss_db/db-XXX.c: Cleanup.
16750
16751         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16752         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16753         GLIBC_PRIVATE.
16754         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16755         * nss/makedb.c: Implement -g option to specify that value strings
16756         are generated and should not be added to table iterated over for
16757         get*ent calls.
16758         * nss/nss_db/db-initgroups.c: New file.
16759
16760         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16761         interface.
16762
16763         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16764         (internal_getgrouplist): Adjust to name change.
16765         Update use_initgroups_entry if this is not the first call.
16766         * nss/databases.def: Add initgroups entry.
16767
16768         * nss/makedb.c (compute_tables): Check result of multiple hash table
16769         sizes to minimize maximum chain length.
16770
16771 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16772
16773         * Versions.def: Add entry for libnss_db.
16774         * shlib-versions: Likewise.
16775         * nss/Makefile: Add rules to build libnss_db.
16776         * nss/Versions: Add libnss_db information.  Organize libnss_files
16777         entries better.
16778         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16779         makedb progra.  Some minor improvements to generate smaller files.
16780         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16781         here from...
16782         * nss/makedb.c: ...here.
16783         Improve database format to be smaller and require less memory at
16784         runtime.
16785         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16786         db anymore.
16787         * nss/nss_db/db-netgrp.c: Likewise.
16788         * nss/nss_db/db-open.c: Likewise.
16789         * nss/nss_files/flies-XXX.x: Adjust comments.
16790         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16791         * nss/nss_files/files-grp.c: Likewise.
16792         * nss/nss_files/files-hosts.c: Likewise.
16793         * nss/nss_files/files-network.c: Likewise.
16794         * nss/nss_files/files-proto.c: Likewise.
16795         * nss/nss_files/files-pwd.c: Likewise.
16796         * nss/nss_files/files-rpc.c: Likewise.
16797         * nss/nss_files/files-service.c: Likewise.
16798         * nss/nss_files/files-sgrp.c: Likewise.
16799         * nss/nss_files/files-spwd.c: Likewise.
16800         * nss/nss_db/db-alias.c: Removed.
16801         * nss/nss_db/dummy-db.h: Removed.
16802
16803 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16804
16805         * nss/makedb.c: Rewritten to not use database library.
16806         * nss/Makefile: Update to build new makedb program.
16807
16808 2011-06-14  Andreas Jaeger  <aj@suse.de>
16809
16810         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16811         memset declaration.
16812
16813 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16814
16815         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16816         tmpbuf.
16817
16818 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16819
16820         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16821         * elf/Makefile ($(objpfx)ld.so): Likewise.
16822
16823         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16824         Don't list ld.so twice in dependencies.
16825
16826         * posix/bug-regex31.c: Include <stdlib.h>.
16827
16828         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16829
16830         * nis/nss_compat/compat-spwd.c
16831         (getspent_next_nss_netgr): Remove unused variable.
16832         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16833
16834         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16835         nonmembers" output to use the right array.
16836
16837         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16838
16839         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16840
16841         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16842         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16843         * catgets/gencat.c (read_input_file): Likewise.
16844         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16845
16846         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16847         variable definition inside #if's controlling its use.
16848
16849         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16850
16851         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16852
16853         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16854
16855         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16856         unreachable code.
16857
16858         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16859
16860         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16861         * configure: Regenerated.
16862
16863         * Makerules: Revert last change.
16864         * elf/Makefile: Likewise.
16865
16866 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16867
16868         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16869         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16870         (reloc-link): Likewise.
16871
16872 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16873
16874         * elf/Makefile: Add rules to build pldd.
16875         * elf/pldd.c: New file.
16876         * elf/pldd-xx.c: New file.
16877
16878 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16879
16880         * version.h: Update for 2.15 development version.
16881
16882 2011-06-07  David S. Miller  <davem@davemloft.net>
16883
16884         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16885         ifuncs.
16886         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16887         elf_machine_lazy_rel): Likewise.
16888         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16889         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16890         elf_machine_lazy_rel): Likewise.
16891         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16892         dl_hwcap via passed in argument.
16893         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16894         Likewise.
16895
16896 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16897
16898         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16899
16900 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16901
16902         [BZ #12849]
16903         * manual/fdl-1.1.texi: New file, verbatim from:
16904         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16905         * manual/lgpl-2.1.texi: New file, verbatim from:
16906         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16907         * manual/Makefile (licenses): New variable, list those new file names.
16908         (texis): Use it.
16909         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16910
16911         * manual/fdl.texi: File removed.
16912         * manual/lesser.texi: File removed.
16913         * manual/libc.texinfo (Copying, Documentation License):
16914         Use new @include file names, put @appendix directive before @include.
16915
16916 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16917
16918         [BZ #12841]
16919         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16920         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16921         (mq_open): Add __NTH.
16922
16923 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16924
16925         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16926         Assume Intel Core i3/i5/i7 processor if AVX is available.
16927
16928 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16929
16930         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16931         typo.
16932
16933 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16934
16935         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16936         memory.  Use alloca_account.  Fix memory leak when retrying.
16937
16938 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16939
16940         * version.h (RELEASE): Bump for 2.14 release.
16941         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16942
16943         * config.make.in (RANLIB): Remove entry.
16944
16945 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16946
16947         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16948         (libc.pot): Work around missing support for .ksh extension in xgettext.
16949
16950         [BZ #12684]
16951         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16952         if both request failed.
16953         (send_dg): In case of server errors clear resplen or *resplen2.
16954
16955         [BZ #12454]
16956         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16957         when there are multiple maps.
16958         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16959         (_dl_fini): Remove test here.
16960
16961         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16962
16963 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16964
16965         [BZ #12350]
16966         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16967         bit from old_res_options.
16968         (gaih_inet): Likewise.
16969
16970         [BZ #11099]
16971         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16972         as signed.
16973
16974         * resolv/res_init.c (res_setoptions): Make the code more compact.
16975
16976         [BZ #11558]
16977         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16978         set RES_USEVC.
16979
16980         [BZ #11634]
16981         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16982
16983         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16984
16985         [BZ #11781]
16986         * malloc/malloc.h: Declare malloc hook variables as volatile.
16987
16988         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16989         in last patch.
16990
16991         [BZ #11799]
16992         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16993         raise in the comment.
16994         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16995         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16996         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16997
16998 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16999
17000         [BZ #12811]
17001         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17002         grow the buffers more if it already has to be sufficient.
17003         (build_wcs_upper_buffer): Likewise.
17004         * posix/regexec.c (check_matching): Likewise.
17005         (clean_state_log_if_needed): Likewise.
17006         (extend_buffers): Don't enlarge buffers beyond size of the input
17007         buffer.
17008         Patches mostly by Emil Wojak <emil@wojak.eu>.
17009         * posix/bug-regex32.c: New file.
17010         * posix/Makefile (tests): Add bug-regex32.
17011
17012         * locale/findlocale.c (_nl_find_locale): Return right away if
17013         _nl_explode_name failed.
17014         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17015
17016         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17017
17018         * debug/xtrace.sh: Unify messages.
17019         * malloc/memusage.sh: Likewise.
17020
17021         [BZ #12813]
17022         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17023         time symbol from vDSO.  Substitute with vsyscall if not available.
17024         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17025         __vdso_time.
17026
17027         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17028         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17029         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17030         Add sendmmsg and internal_sendmmsg.
17031         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17032         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17033         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17034
17035         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17036         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17037         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17038
17039 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17040
17041         [BZ #12813]
17042         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17043         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17044         available.
17045         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17046         __vdso_getcpu.
17047
17048         [BZ #12814]
17049         * iconvdata/Makefile (tests): Add bug-iconv9.
17050         * iconvdata/bug-iconv9.c: New file.
17051
17052 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17053
17054         [BZ #12814]
17055         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17056
17057 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17058
17059         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17060         (struct user_regs_struct): Change intcs field back to cs.
17061
17062 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17063
17064         * po/ja.po: Update from translation team.
17065
17066 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17067
17068         [BZ #12795]
17069         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17070         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17071
17072 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17073
17074         * stdlib/longlong.h: Update from GCC.
17075
17076 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17077
17078         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17079         parameter name.
17080         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17081         Add parameter name.
17082         (__sysconf): Pass it down.
17083
17084 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17085
17086         [BZ #12671]
17087         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17088         some situations.
17089         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17090         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17091         add in in __libc_use_alloca calls.  Adjust callers.
17092         (glob): Use malloc in some situations.
17093
17094         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17095         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17096         pltexit.
17097
17098 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17099
17100         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17101         and CLOCK_BOOTTIME_ALARM.
17102
17103         [BZ #12782]
17104         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17105         is returned.
17106
17107         * string/_strerror.c (__strerror_r): Print negative errors as signed
17108         numbers.
17109
17110         [BZ #12777]
17111         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17112         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17113         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17114
17115         * configure.in: Fix typo in redirection and correct removal of test
17116         files in two cases.
17117
17118         [BZ #12788]
17119         * locale/setlocale.c (new_composite_name): Fix test to check for
17120         identical name of all categories.
17121
17122         [BZ #12792]
17123         * libio/filedoalloc.c (local_isatty): New function.
17124         (_IO_file_doallocate): Use local_isatty.
17125         * stdio-common/perror.c (perror): In case a new stream is used
17126         forward the stream error.
17127         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17128         error flag.
17129
17130 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17131
17132         [BZ #11869]
17133         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17134         alloca.
17135         * include/alloca.h (extend_alloca_account): Define.
17136
17137         [BZ #11857]
17138         * posix/regex.h: Fix comments with documentation of user-accessible
17139         fields after compilation and describe correct free'ing of pattern
17140         after re_compile_pattern.
17141         Patch by Reuben Thomas <rrt@sc3d.org>.
17142
17143 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17144
17145         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17146         and -mno-altivec to prevent the compiler from using Altivec and/or
17147         VSX instructions when the corresponding registers are not available.
17148
17149 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17150
17151         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17152
17153 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17154
17155         * libio/freopen.c (freopen): Use __dup2, not dup2.
17156         * libio/freopen64.c (freopen64): Likewise.
17157
17158 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17159
17160         [BZ #12775]
17161         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17162         * math/Makefile (tests): Add test-powl.
17163         (CFLAGS-test-powl.c): Define.
17164         * math/test-powl.c: New file.
17165
17166 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17167
17168         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17169
17170 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17171
17172         [BZ #11837]
17173         * iconvdata/gb18030.c: Update to GB18020-2005.
17174
17175 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17176
17177         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17178         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17179         Patch by Aharon Robbins <arnold@skeeve.com>.
17180
17181         [BZ #11892]
17182         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17183         on the stack.
17184
17185         [BZ #11895]
17186         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17187         through underflows.
17188
17189         [BZ #12766]
17190         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17191         point to strings before performing equality test for error_one_per_line
17192         mode.
17193
17194         [BZ #11697]
17195         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17196
17197         [BZ #11820]
17198         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17199         (struct user_fpregs_struct): Avoid __uint*_t types.
17200
17201         [BZ #6420]
17202         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17203         symbol info.  Use it instead of calling _dl_addr locally.
17204         (lock_and_info): New function.
17205         (tr_freehook): Call lock_and_info and pass symbol info as additional
17206         parameter to tr_where.
17207         (tr_mallochook): Likewise.
17208         (tr_reallochook): Likewise.
17209         (tr_memalignhook): Likewise.
17210
17211         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17212         used and couldn't be at all thread-safe.
17213
17214 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17215
17216         * libio/freopen.c (freopen): Don't close old file descriptor
17217         before the new one is opened.  Instead dup the new file descriptor
17218         to the old one after the new stream is created.
17219         * libio/freopen64.c (freopen64): Likewise.
17220         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17221         * libio/fileops.c (_IO_new_file_close_it): Handle new
17222         _IO_FLAGS2_NOCLOSE flag.
17223         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17224         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17225         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17226         _IO_FLAGS2_NOCLOSE flag.
17227         * include/unistd.h: Add hidden_proto for dup3.
17228         Define __have_dup3.
17229         * io/dup3.c: Define hidden symbol.
17230         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17231
17232         [BZ #7101]
17233         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17234         when an incomplete long option is used.
17235         * posix/tst-getopt_long1.c: New file.
17236         * posix/Makefile (tests): Add tst-getopt_long1.
17237
17238         [BZ #10138]
17239         * scripts/config.guess: Update from autoconf-2.68.
17240         * scripts/config.sub: Likewise.
17241
17242         [BZ #10157]
17243         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17244         tests into ...
17245         (has_cpuclock): ...this.  New function.
17246         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17247         macro here based on has_cpuclock code.
17248
17249         [BZ #10149]
17250         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17251         First byte (not low byte) is now always NUL.
17252         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17253
17254         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17255         Use non-cancelable interfaces.
17256
17257         [BZ #9809]
17258         * locale/iso-639.def: Add entry for Sorani.
17259
17260         [BZ #11901]
17261         * include/stdlib.h: Move include protection to the right place.
17262         Define abort_msg_s.  Declare __abort_msg with it.
17263         * stdlib/abort.c (__abort_msg): Adjust type.
17264         * assert/assert.c (__assert_fail_base): New function.  Majority
17265         of code from __assert_fail.  Allocate memory for __abort_msg with
17266         mmap.
17267         (__assert_fail): Now call __assert_fail_base.
17268         * assert/assert-perr.c: Remove bulk of implementation.  Use
17269         __assert_fail_base.
17270         * include/assert.hL Declare __assert_fail_base.
17271         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17272         mmap.
17273         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17274
17275 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17276
17277         [BZ #11952]
17278         [BZ #12453]
17279         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17280         until all modules are registered in the DTV.
17281         * elf/Makefile: Add rules to build and run tst-tls19.
17282         * elf/tst-tls19.c: New file.
17283         * elf/tst-tls19mod1.c: New file.
17284         * elf/tst-tls19mod2.c: New file.
17285         * elf/tst-tls19mod3.c: New file.
17286         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17287
17288         [BZ #12083]
17289         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17290         correctly.
17291
17292         [BZ #12601]
17293         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17294         two-byte sequence errors.
17295         * iconvdata/Makefile (tests): Add bug-iconv8.
17296         * iconvdata/bug-iconv8.c: New file.
17297
17298         [BZ #12626]
17299         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17300         buf2 definition.
17301
17302         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17303
17304         [BZ #12432]
17305         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17306         (dummy_getcfa): New function.
17307         (init): Get _Unwind_GetCFA address, use dummy if not found.
17308         (backtrace_helper): In recursion check, also check whether CFA changes.
17309         (__backtrace): Completely initialize arg.
17310
17311         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17312         storing incomplete byte sequence in state object.  Avoid testing for
17313         guaranteed too small input if we know there is enough data available.
17314
17315 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17316
17317         * Makeconfig (+link-pie): Indent.
17318         * Rules (binaries-pie): Define if $(have-fpie) and
17319         $(build-shared).
17320         (binaries-shared): Also filter out $(binaries-pie).
17321         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17322         * nscd/Makefile (others-pie): Add nscd.
17323         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17324         ($(objpfx)nscd): Remove command override.
17325         * login/Makefile (others-pie): Add pt_chown.
17326         ($(objpfx)pt_chown): Remove command override.
17327         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17328         remove command overrides.
17329
17330 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17331
17332         * libio/tst_putwc.c: Fix error messages.
17333
17334         [BZ #12724]
17335         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17336         currently writing and seek to current position when not.
17337         * libio/Makefile (tests): Add bug-fclose1.
17338         * libio/bug-fclose1.c: New file.
17339
17340 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17341
17342         [BZ #12511]
17343         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17344         don't set DF_1_NODELETE here.
17345         (do_lookup_x): When entering new entry test for copy relocation
17346         and if necessary set DF_1_NODELETE flag.
17347         * elf/tst-unique4.cc: New file.
17348         * elf/tst-unique4.h: New file.
17349         * elf/tst-unique4lib.cc: New file.
17350         * elf/Makefile: Add rules to build and run tst-unique4.
17351         Patch by Piotr Bury <pbury@goahead.com>.
17352
17353 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17354
17355         [BZ #12052]
17356         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17357
17358         [BZ #12625]
17359         * misc/mntent_r.c (addmntent): Flush the stream after the output
17360
17361         [BZ #12393]
17362         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17363         (is_trusted_path_normalize): Skip initial colon.  Append slash
17364         to empty buffer.  Duplicate is_trusted_path code but allow
17365         constructed patch to be prefix.
17366         (is_dst): Allow $ORIGIN followed by /.
17367         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17368         Correct testing of result of is_trusted_path_normalize
17369         (decompose_rpath): Fix warning.
17370
17371 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17372
17373         [BZ #11257]
17374         * grp/initgroups.c (internal_getgrouplist): When we found the service
17375         list through the initgroups entry in nsswitch.conf do not always
17376         continue on a successful lookup.  Don't always use the
17377         __nss_group_database value if it is set.
17378         * nss/nsswitch.conf (initgroups): Change action for successful db
17379         lookup to continue for compatibility.
17380
17381 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17382
17383         [BZ #11532]
17384         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17385         and CP774 modules.
17386         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17387         and CP774 modules.
17388         * iconvdata/tst-tables.sh: Likewise.
17389         * iconvdata/cp770.c: New file.
17390         * iconvdata/cp771.c: New file.
17391         * iconvdata/cp772.c: New file.
17392         * iconvdata/cp773.c: New file.
17393         * iconvdata/cp774.c: New file.
17394         * iconvdata/testdata/CP770: New file.
17395         * iconvdata/testdata/CP770..UTF8: New file.
17396         * iconvdata/testdata/CP771: New file.
17397         * iconvdata/testdata/CP771..UTF8: New file.
17398         * iconvdata/testdata/CP772: New file.
17399         * iconvdata/testdata/CP772..UTF8: New file.
17400         * iconvdata/testdata/CP773: New file.
17401         * iconvdata/testdata/CP773..UTF8: New file.
17402         * iconvdata/testdata/CP774: New file.
17403         * iconvdata/testdata/CP774..UTF8: New file.
17404
17405         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17406         END CHARMAP line.
17407         * iconvdata/gen-8bit-gap.sh: Likewise.
17408         * iconvdata/gen-8bit.sh: Likewise.
17409
17410         * locale/iso-639.def: Add ary entry.
17411
17412         [BZ #11258]
17413         * locale/C-translit.h.in: Add U20A1 transliteration.
17414
17415         [BZ #12178]
17416         * locale/iso-639.def: Add wae entry.
17417         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17418
17419         [BZ #12545]
17420         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17421         for n.
17422
17423         [BZ #12711]
17424         * locale/C-translit.h.in: Add entry for U20B9.
17425         Patch by pravin.d.s@gmail.com.
17426
17427 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17428
17429         [BZ #12713]
17430         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17431         ENAMETOOLONG use generic getcwd.
17432         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17433         in rtld.  Use *stat64.
17434         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17435         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17436         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17437         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17438         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17439         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17440         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17441         __fstatat64 macros.
17442         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17443         * dirent/rewinddir.c: Add libc_hidden_def.
17444         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17445         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17446
17447         * include/dirent.h (__alloc_dir): Add flags parameter.
17448         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17449         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17450         __alloc_dir.
17451         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17452         from fdopendir if O_CLOEXEC is already set.
17453
17454 2011-03-15  Alan Modra  <amodra@gmail.com>
17455
17456         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17457         l_tls_firstbyte_offset non-zero.  Save padding offset in
17458         l_tls_firstbyte_offset for later use.
17459         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17460         freeing static tls block.
17461
17462 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17463
17464         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17465         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17466         being defined by the kernel headers.
17467
17468 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17469
17470         [BZ #12734]
17471         * resolv/resolv.h: Define RES_NOTLDQUERY.
17472         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17473         no-tld-query and set RES_NOTLDQUERY.
17474         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17475         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17476         modern BIND to search name as TLD unless forbidden.
17477
17478 2011-05-07  Petr Baudis  <pasky@suse.cz>
17479             Ulrich Drepper  <drepper@gmail.com>
17480
17481         [BZ #12393]
17482         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17483         (is_trusted_path): ...to here.
17484         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17485         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17486         using is_trusted_path_normalize() in setuid scripts.
17487
17488 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17489
17490         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17491         __BEGIN/__END_DECLS.
17492
17493 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17494
17495         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17496         NSS_STATUS_NOTFOUND if no record was found.
17497
17498 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17499
17500         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17501         (headers-not-in-tirpc): Remove rpc/netdb.h
17502         * resolv/netdb.h: Revert last change.
17503
17504 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17505
17506         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17507         circular dependency between libgcc.a and libc.a.
17508
17509 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17510
17511         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17512         * nis/Makefile: Don't install rpcsvc/*.
17513         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17514         instead of <rpc/types.h>.
17515         (MAXHOSTNAMELEN): Define.
17516
17517 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17518
17519         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17520
17521 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17522
17523         [BZ #12714]
17524         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17525         gethostbyname4_r when IPv6 results are possible.
17526
17527 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17528
17529         [BZ #12723]
17530         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17531         _PC_PIPE_BUF handling.
17532
17533 2011-04-30  Bruno Haible  <bruno@clisp.org>
17534
17535         [BZ #12717]
17536         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17537         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17538         to 'int'.
17539         * inet/getnameinfo.c (getnameinfo): Likewise.
17540
17541 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17542
17543         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17544         to groups setting in database lookup.
17545         * nss/nsswitch.conf: Add initgroups entry.
17546
17547 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17548
17549         [BZ #12685]
17550         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17551         mode string.
17552         Patch by Eric Blake <eblake@redhat.com>.
17553
17554 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17555
17556         * sunrpc/Makefile (need-export-routines): Add svc_run.
17557         (routines): Remove svc_run.
17558         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17559         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17560         * sunrpc/svc_run.c (svc_run): Likewise.
17561         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17562
17563 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17564
17565         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17566         problem in reallocation in last patch.
17567
17568 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17569
17570         * sunrpc/Makefile: Move inclusion of Rules.
17571
17572 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17573
17574         * nss/nss_files/files-initgroups.c: New file.
17575         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17576         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17577         _nss_files_initgroups_dyn.
17578
17579 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17580
17581         * elf/elf.h (R_ARM_IRELATIVE): Define.
17582
17583 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17584
17585         * po/ru.po: Update from translation team.
17586
17587 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17588
17589         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17590         dependencies.
17591
17592 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17593
17594         [BZ #12653]
17595         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17596         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17597         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17598         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17599         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17600
17601 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17602
17603         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17604         differing bytes.
17605         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17606         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17607         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17608
17609 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17610
17611         [BZ #12420]
17612         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17613         storing it.
17614         * stdlib/bug-getcontext.c: New file.
17615         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17616
17617 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17618
17619         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17620         instructions into .machine "z9-109".
17621         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17622         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17623
17624 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17625
17626         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17627         between environment variables and auxiliary vector.
17628
17629 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17630
17631         * Makefile: Add rules to build linkobj/libc.so.
17632         * include/libc-symbols.h: Define libc_hidden_nolink.
17633         * include/rpc/auth.h: Mark functions which are to be hidden.
17634         * include/rpc/auth_des.h: Likewise.
17635         * include/rpc/auth_unix.h: Likewise.
17636         * include/rpc/clnt.h: Likewise.
17637         * include/rpc/des_crypt.h: Likewise.
17638         * include/rpc/key_prot.h: Likewise.
17639         * include/rpc/pmap_clnt.h: Likewise.
17640         * include/rpc/pmap_prot.h: Likewise.
17641         * include/rpc/pmap_rmt.h: Likewise.
17642         * include/rpc/rpc_msg.h: Likewise.
17643         * include/rpc/svc.h: Likewise.
17644         * include/rpc/svc_auth.h: Likewise.
17645         * include/rpc/xdr.h: Likewise.
17646         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17647         * nss/Makefile: Likewise.
17648         * sunrpc/Makefile: Don't install headers.  Build library with normal
17649         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17650         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17651         for the compat linking library.  Remove use of INTDEF/INTUSE.
17652         * sunrpc/auth_none.c: Likewise.
17653         * sunrpc/auth_unix.c: Likewise.
17654         * sunrpc/authdes_prot.c: Likewise.
17655         * sunrpc/authuxprot.c: Likewise.
17656         * sunrpc/clnt_gen.c: Likewise.
17657         * sunrpc/clnt_perr.c: Likewise.
17658         * sunrpc/clnt_raw.c: Likewise.
17659         * sunrpc/clnt_simp.c: Likewise.
17660         * sunrpc/clnt_tcp.c: Likewise.
17661         * sunrpc/clnt_udp.c: Likewise.
17662         * sunrpc/clnt_unix.c: Likewise.
17663         * sunrpc/des_crypt.c: Likewise.
17664         * sunrpc/des_soft.c: Likewise.
17665         * sunrpc/get_myaddr.c: Likewise.
17666         * sunrpc/key_call.c: Likewise.
17667         * sunrpc/key_prot.c: Likewise.
17668         * sunrpc/netname.c: Likewise.
17669         * sunrpc/pm_getmaps.c: Likewise.
17670         * sunrpc/pm_getport.c: Likewise.
17671         * sunrpc/pmap_clnt.c: Likewise.
17672         * sunrpc/pmap_prot.c: Likewise.
17673         * sunrpc/pmap_prot2.c: Likewise.
17674         * sunrpc/pmap_rmt.c: Likewise.
17675         * sunrpc/publickey.c: Likewise.
17676         * sunrpc/rpc_cmsg.c: Likewise.
17677         * sunrpc/rpc_common.c: Likewise.
17678         * sunrpc/rpc_dtable.c: Likewise.
17679         * sunrpc/rpc_prot.c: Likewise.
17680         * sunrpc/rpc_thread.c: Likewise.
17681         * sunrpc/rtime.c: Likewise.
17682         * sunrpc/svc.c: Likewise.
17683         * sunrpc/svc_auth.c: Likewise.
17684         * sunrpc/svc_authux.c: Likewise.
17685         * sunrpc/svc_raw.c: Likewise.
17686         * sunrpc/svc_run.c: Likewise.
17687         * sunrpc/svc_simple.c: Likewise.
17688         * sunrpc/svc_tcp.c: Likewise.
17689         * sunrpc/svc_udp.c: Likewise.
17690         * sunrpc/svc_unix.c: Likewise.
17691         * sunrpc/svcauth_des.c: Likewise.
17692         * sunrpc/xcrypt.c: Likewise.
17693         * sunrpc/xdr.c: Likewise.
17694         * sunrpc/xdr_array.c: Likewise.
17695         * sunrpc/xdr_float.c: Likewise.
17696         * sunrpc/xdr_intXX_t.c: Likewise.
17697         * sunrpc/xdr_mem.c: Likewise.
17698         * sunrpc/xdr_rec.c: Likewise.
17699         * sunrpc/xdr_ref.c: Likewise.
17700         * sunrpc/xdr_sizeof.c: Likewise.
17701         * sunrpc/xdr_stdio.c: Likewise.
17702
17703 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17704
17705         [BZ #12650]
17706         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17707         * sysdeps/ia64/dl-tls.h: Likewise.
17708         * sysdeps/powerpc/dl-tls.h: Likewise.
17709         * sysdeps/s390/dl-tls.h: Likewise.
17710         * sysdeps/sh/dl-tls.h: Likewise.
17711         * sysdeps/sparc/dl-tls.h: Likewise.
17712         * sysdeps/x86_64/dl-tls.h: Likewise.
17713         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17714
17715 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17716
17717         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17718         rpath element also skip the following colon.
17719         (expand_dynamic_string_token): Add is_path parameter and pass
17720         down to DL_DST_REQUIRED and _dl_dst_substitute.
17721         (decompose_rpath): Call expand_dynamic_string_token with
17722         non-zero is_path.  Ignore empty rpaths.
17723         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17724         with zero is_path.
17725
17726 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17727
17728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17729         Make cancelable.
17730
17731 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17732
17733         [BZ #12655]
17734         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17735         Patch by Filipe David Manana <fdmanana@apache.org>.
17736
17737 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17738
17739         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17740         Maintain aligned stack.
17741         (CHECK_RSP): Remove unused macro.
17742
17743 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17744
17745         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17746         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17747
17748 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17749
17750         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17751
17752         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17753
17754 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17755
17756         [BZ #12518]
17757         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17758         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17759         * sysdeps/x86_64/memmove.c: New file.
17760         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17761         (memcpy): Renamed to ...
17762         (__new_memcpy): This.
17763         (memcpy): Provide GLIBC_2_14 memcpy.
17764         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17765         (memcpy): Provide GLIBC_2_2_5 memcpy.
17766
17767 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17768
17769         [BZ #12631]
17770         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17771
17772 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17773
17774         * misc/syncfs.c: New file.
17775         * misc/Makefile (routines): Add syncfs.
17776         * posix/unistd.h: Declare syncfs.
17777         * sysdeps/unix/syscalls.list: Add syncfs.
17778
17779 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17780
17781         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17782         open_by_handle_at.
17783         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17784         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17785         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17786         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17787         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17788         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17789         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17790
17791 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17792
17793         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17794         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17795         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17796         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17797         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17798         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17799         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17800
17801         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17802         sync_file_range.c with -fexceptions.
17803         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17804         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17805         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17806         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17807         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17808         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17809         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17810         sync_file_range as cancellation point
17811         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17812         now a wrapper around __call_sync_file_range with cancellation handling.
17813         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17814         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17815         function name to __call_sync_file_range.
17816         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17817         Add call_sync_file_range.
17818
17819 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17820
17821         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17822         bits/timex.h.
17823
17824 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17825
17826         * iconv/iconv.h: Fix typo in comment.
17827         * io/fcntl.h: Likewise.
17828         * libio/stdio.h: Likewise.
17829         * posix/spawn.h: Likewise.
17830         * posix/unistd.h: Likewise.
17831         * stdlib/stdlib.h: Likewise.
17832         * time/time.h: Likewise.
17833         * wcsmbs/wchar.h: Likewise.
17834
17835         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17836         open_by_handle): Add.
17837         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17838         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17839         Augment a few comments.
17840         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17841         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17842         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17843         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17844         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17845         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17846         open_by_handle.
17847
17848         * io/fcntl.h (AT_EMPTY_PATH): Define.
17849
17850 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17851
17852         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17853         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17854         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17855         to...
17856         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17857         * Versions.def: Add GLIBC_2.14.
17858         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17859         Export.
17860
17861 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17862
17863         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17864         round counter.
17865         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17866
17867 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17868
17869         [BZ #12597]
17870         * string/test-strncmp.c (do_page_test): New function.
17871         (check2): Likewise.
17872         (test_main): Call check2.
17873         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17874
17875 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17876
17877         [BZ #12587]
17878         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17879         Handle cache information in CPU leaf 4.
17880         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17881
17882 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17883
17884         [BZ #12583]
17885         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17886         character representation.
17887         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17888
17889 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17890
17891         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17892         END(__isnan) to END(__isnanf) to match function entry point/label
17893         EALIGN(__isnanf,...).
17894
17895 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17896
17897         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17898
17899 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17900
17901         [BZ #12510]
17902         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17903         copy from the symbol referenced in the relocation to initialize the
17904         used variable.
17905         Patch by Piotr Bury <pbury@goahead.com>.
17906         * elf/Makefile: Add rules to build and tst-unique3.
17907         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17908         * elf/tst-unique3.cc: New file.
17909         * elf/tst-unique3.h: New file.
17910         * elf/tst-unique3lib.cc: New file.
17911         * elf/tst-unique3lib2.cc: New file.
17912
17913         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17914
17915 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17916
17917         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17918         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17919         to _start.
17920
17921 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17922
17923         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17924         to-be-loaded object along a path to loader is ld.so.
17925
17926 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17927             Ulrich Drepper  <drepper@gmail.com>
17928
17929         * sysdeps/x86_64/memset.S: After aligning destination, code
17930         branches to different locations depending on the value of
17931         misalignment, when multiarch is enabled. Fix this.
17932
17933 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17934
17935         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17936         Set _x86_64_preferred_memory_instruction for AMD processsors.
17937         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17938         Set bit_Prefer_SSE_for_memop for AMD processors.
17939
17940 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17941
17942         * libio/fmemopen.c (fmemopen): Optimize a bit.
17943
17944 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17945
17946         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17947
17948 2011-03-03  Roland McGrath  <roland@redhat.com>
17949
17950         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17951
17952 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17953
17954         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17955         __bzero_ultra1 instead of __memset_ultra1.
17956
17957 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17958             Ulrich Drepper  <drepper@gmail.com>
17959
17960         [BZ #12509]
17961         * include/link.h (struct link_map): Add l_orig_initfini.
17962         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17963         returning unsuccessfully.
17964         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17965         close of a file loaded at startup, restore the original l_initfini
17966         list.
17967         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17968         list, store the pointer.
17969         * elf/Makefile ($(objpfx)noload-mem): New rule.
17970         (noload-ENV): Define.
17971         (tests): Add $(objpfx)noload-mem.
17972         * elf/noload.c: Include <memcheck.h>.
17973         (main): Call mtrace.  Close all opened handles.
17974
17975 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17976
17977         [BZ #12454]
17978         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17979         dependencies are missing.
17980
17981 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17982
17983         Fix __if_freereq crash: Unlike the generic version which uses free,
17984         Hurd needs munmap.
17985         * sysdeps/mach/hurd/ifreq.h: New file.
17986
17987 2011-01-27  Petr Baudis  <pasky@suse.cz>
17988             Ulrich Drepper  <drepper@gmail.com>
17989
17990         [BZ 12445]#
17991         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17992         to extend_alloca().
17993         * stdio-common/bug23.c: New file.
17994         * stdio-common/Makefile (tests): Add bug23.
17995
17996 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17997             Ulrich Drepper  <drepper@gmail.com>
17998
17999         [BZ #12489]
18000         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18001         before performing relro protection.  At old place add assertion
18002         to make sure nothing changed.
18003
18004 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18005             Glauber de Oliveira Costa  <glommer@gmail.com>
18006
18007         * elf/elf.h: Add new ARM TLS relocs.
18008
18009 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18010
18011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18012         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18013         cast from r3.
18014         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18015         'tests' variable.
18016         * sysdeps/wordsize-64/tst-writev.c: New file.
18017
18018 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18019
18020         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18021         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18022         insns in _dl_start to prevent a TOC reference before relocs are
18023         resolved.
18024
18025 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18026
18027         [BZ #12469]
18028         * Makeconfig: Remove RANLIB definition.
18029         * Makerules: Don't use RANLIB.
18030         * aclocal.m4: Remove ranlib test.
18031         * configure.in: No need to check for ranlib.
18032         * elf/rtld-Rules: Don't use RANLIB.
18033
18034 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18035
18036         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18037         protection macro.
18038         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18039         inclusion protection macro.
18040
18041         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18042         SIGRTMIN and SIGRTMAX and print information in that case only when
18043         SIGRTMIN is defined.
18044
18045 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18046
18047         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18048         arginfo fn returning -1.
18049
18050         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18051         and thousands string is zero terminated.
18052
18053 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18054
18055         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18056         sysdeps/unix/sysv/linux/bits/socket.h.
18057
18058 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18059
18060         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18061         (__CPU_COUNT): Remove old macros.
18062         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18063         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18064         (__CPU_ALLOC, __CPU_FREE): Add macros.
18065         (__sched_cpualloc, __sched_cpufree): Add declarations.
18066
18067 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18068
18069         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18070         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18071         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18072         (readdhstai): Return value of addhstaiX call.
18073         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18074         (addgrbyX): Return value returned by cache_addgr.
18075         (readdgrbyname): Return value returned by addgrbyX.
18076         (readdgrbygid): Likewise.
18077         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18078         (addpwbyX): Return value returned by cache_addpw.
18079         (readdpwbyname): Return value returned by addhstbyX.
18080         (readdpwbyuid): Likewise.
18081         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18082         (addservbyX): Return value returned by cache_addserv.
18083         (readdservbyname): Return value returned by addservbyX:
18084         (readdservbyport): Likewise.
18085         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18086         (addhstbyX): Return value returned by cache_addhst.
18087         (readdhstbyname): Return value returned by addhstbyX.
18088         (readdhstbyaddr): Likewise.
18089         (readdhstbynamev6): Likewise.
18090         (readdhstbyaddrv6): Likewise.
18091         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18092         (readdinitgroups): Return value returned by addinitgroupsX.
18093         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18094         (prune_cache): Keep track of timeout value of re-added entries.
18095         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18096         * nscd/nscd.h: Adjust prototypes of readd* functions.
18097
18098 2011-02-04  Roland McGrath  <roland@redhat.com>
18099
18100         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18101         (nis_stats): Likewise.
18102         * nis/nis_modify.c (nis_modify): Likewise.
18103         * nis/nis_remove.c (nis_remove): Likewise.
18104         * nis/nis_add.c (nis_add): Likewise.
18105
18106         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18107
18108         * posix/fnmatch_loop.c: Add some consts.
18109
18110         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18111
18112 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18113
18114         [BZ #12460]
18115         * config.make.in (config-cflags-novzeroupper): Define.
18116         * configure.in: Substitute libc_cv_cc_novzeroupper.
18117         * elf/Makefile (AVX-CFLAGS): Define.
18118         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18119         (CFLAGS-tst-auditmod4a.c): Likewise.
18120         (CFLAGS-tst-auditmod4b.c): Likewise.
18121         (CFLAGS-tst-auditmod6b.c): Likewise.
18122         (CFLAGS-tst-auditmod6c.c): Likewise.
18123         (CFLAGS-tst-auditmod7b.c): Likewise.
18124         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18125
18126 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18127
18128         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18129         function to the callback.
18130         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18131
18132 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18133
18134         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18135         of errno.
18136
18137 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18138
18139         [BZ #11724]
18140         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18141         of constructors.
18142         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18143         of destructors.
18144         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18145
18146         [BZ #11724]
18147         * elf/Makefile: Add rules to build and run new test.
18148         * elf/tst-initorder.c: New file.
18149         * elf/tst-initorder.exp: New file.
18150         * elf/tst-initordera1.c: New file.
18151         * elf/tst-initordera2.c: New file.
18152         * elf/tst-initordera3.c: New file.
18153         * elf/tst-initordera4.c: New file.
18154         * elf/tst-initorderb1.c: New file.
18155         * elf/tst-initorderb2.c: New file.
18156         * elf/tst-order-a1.c: New file.
18157         * elf/tst-order-a2.c: New file.
18158         * elf/tst-order-a3.c: New file.
18159         * elf/tst-order-a4.c: New file.
18160         * elf/tst-order-b1.c: New file.
18161         * elf/tst-order-b2.c: New file.
18162         * elf/tst-order-main.c: New file.
18163         New test case by George Gensure <werkt0@gmail.com>.
18164
18165 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18166
18167         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18168         decoding ACE if AI_CANONIDN.
18169
18170 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18171
18172         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18173
18174 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18175
18176         * version.h (RELEASE): Bump for 2.13 release.
18177         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18178
18179         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18180
18181         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18182         MADV_NOHUGEPAGE.
18183         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18184         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18185         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18186         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18187         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18188         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18189
18190         * posix/getconf.c: Update copyright year.
18191         * catgets/gencat.c: Likewise.
18192         * csu/version.c: Likewise.
18193         * debug/catchsegv.sh: Likewise.
18194         * debug/xtrace.sh: Likewise.
18195         * elf/ldconfig.c: Likewise.
18196         * elf/ldd.bash.in: Likewise.
18197         * elf/sprof.c (print_version): Likewise.
18198         * iconv/iconv_prog.c: Likewise.
18199         * iconv/iconvconfig.c: Likewise.
18200         * locale/programs/locale.c: Likewise.
18201         * locale/programs/localedef.c: Likewise.
18202         * malloc/memusage.sh: Likewise.
18203         * malloc/mtrace.pl: Likewise.
18204         * nscd/nscd.c (print_version): Likewise.
18205         * nss/getent.c: Likewise.
18206
18207         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18208         PF_CAIF, and PF_ALG.
18209         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18210
18211 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18212
18213         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18214         (modules-names): Use them.
18215         (ifunc-test-modules, ifunc-pie-tests): Define.
18216         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18217         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18218         (test-extras): Likewise.
18219         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18220         $(compile-command.c).
18221         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18222         (all-built-dso): Define.
18223         (check-textrel.out, check-execstack.out): Depend on it.
18224
18225         * configure.in: Don't override --enable-multi-arch.
18226
18227 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18228
18229         [BZ #6812]
18230         * nscd/hstcache.c (tryagain): Define.
18231         (cache_addhst): Return tryagain not notfound for temporary errors.
18232         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18233         failed.
18234
18235 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18236
18237         [BZ #10563]
18238         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18239         to make the syscall.
18240         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18241
18242         [BZ #12378]
18243         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18244         and fall back to matching as normal character if the string ends before
18245         the matching ']' is found.  This is what POSIX requires.
18246         * posix/testfnm.c: Adjust test result.
18247         * posix/globtest.sh: Adjust test result.  Add new test.
18248         * posix/tst-fnmatch.input: Likewise.
18249         * posix/tst-fnmatch2.c: Add new test.
18250
18251 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18252
18253         * elf/Makefile (check-execstack): Revert last change.  Depend on
18254         check-execstack.h.
18255         (check-execstack.h): New target.
18256         (generated): Add check-execstack.h.
18257         * elf/check-execstack.c: Include "check-execstack.h".
18258         (main): Revert last change.
18259         (handle_file): Return zero if GNU_STACK is absent and
18260         DEFAULT_STACK_PERMS doesn't include PF_X.
18261
18262 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18263
18264         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18265         in child fails because the descriptor is already closed.
18266         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18267         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18268         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18269
18270         [BZ #12397]
18271         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18272         syscall.
18273
18274         [BZ #10484]
18275         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18276         temporary buffer used to handle multi lookups locally.
18277         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18278
18279 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18280
18281         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18282         loader is ld.so.
18283
18284 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18285
18286         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18287         alignment for SSE2.
18288
18289 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18290
18291         [BZ #12394]
18292         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18293         characters.  When rounding increased number of integer digits recompute
18294         number of groups.
18295         * stdio-common/tst-grouping.c: New file.
18296         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18297
18298 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18299
18300         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18301         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18302
18303         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18304         void.
18305         * bits/select.h: Likewise.
18306
18307 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18308
18309         * po/ja.po: Update from translation team.
18310
18311 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18312
18313         [BZ #11155]
18314         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18315         implementation just like for lxstat, fxstatat, et al.
18316
18317 2010-12-27  Jim Meyering  <meyering@redhat.com>
18318
18319         [BZ #12348]
18320         * posix/regexec.c (build_trtable): Return failure indication upon
18321         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18322
18323 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18324
18325         [BZ #12201]
18326         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18327         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18328         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18329         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18330
18331         [BZ #12207]
18332         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18333
18334         [BZ #12204]
18335         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18336         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18337
18338 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18339
18340         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18341         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18342         script has SORT_BY_INIT_PRIORITY.
18343         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18344         NO_CTORS_DTORS_SECTIONS is defined.
18345         * elf/soinit.c: Likewise.
18346         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18347         NO_CTORS_DTORS_SECTIONS is defined.
18348         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18349         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18350         * sysdeps/sh/init-first.c: Likewise.
18351         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18352
18353 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18354
18355         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18356         always use the slow path.
18357
18358 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18359
18360         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18361         similar rule which adds the sysdep directories to the header search in
18362         order to pick up the correct platform stackinfo.h.
18363         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18364         perform test if it is, otherwise return successfully without testing.
18365         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18366         DEFAULT_STACK_PERMS define in stackinfo.h.
18367         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18368         defined in stackinfo.h.
18369         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18370         DEFAULT_STACK_PERMS defined in stackinfo.h.
18371         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18372         * sysdeps/ia64/stackinfo.h: Likewise.
18373         * sysdeps/s390/stackinfo.h: Likewise.
18374         * sysdeps/sh/stackinfo.h: Likewise.
18375         * sysdeps/sparc/stackinfo.h: Likewise.
18376         * sysdeps/x86_64/stackinfo.h: Likewise.
18377         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18378         PF_X for powerpc64.  Retain PF_X for powerpc32.
18379
18380 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18381
18382         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18383         accurately.
18384         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18385         GETDENTS_64BIT_ALIGNED.
18386
18387 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18388
18389         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18390
18391 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18392
18393         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18394         _GNU_SOURCE.
18395
18396         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18397         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18398         Remove __restrict.
18399         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18400         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18401
18402 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18403
18404         [BZ #11655]
18405         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18406         are initialized.
18407
18408 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18409
18410         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18411
18412 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18413
18414         * po/it.po: Update from translation team.
18415
18416 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18417
18418         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18419         unused codes.
18420
18421 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18422
18423         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18424
18425 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18426
18427         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18428         specially.
18429         (gaih_getanswer_slice): Likewise.
18430
18431 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18432
18433         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18434
18435 2010-05-31  Petr Baudis  <pasky@suse.cz>
18436
18437         [BZ #11149]
18438         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18439         silently even in the chroot mode.
18440
18441 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18442
18443         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18444         last patch a bit.  Pretty printing
18445
18446 2010-05-31  Petr Baudis <pasky@suse.cz>
18447
18448         [BZ #10085]
18449         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18450         initialization of skip_initgroups_dyn.
18451
18452 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18453
18454         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18455         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18456
18457 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18458
18459         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18460
18461 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18462
18463         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18464         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18465         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18466         ($(objpfx)tst-fnmatch-mem): New rule.
18467         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18468         * posix/tst-fnmatch.c (main): Call mtrace.
18469
18470 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18471
18472         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18473         Support Intel processor model 6 and model 0x2c.
18474
18475 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18476
18477         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18478           signed comparison.
18479
18480 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18481
18482         [BZ #12205]
18483         * string/test-strncasecmp.c (check_result): New function.
18484         (do_one_test): Use it.
18485         (check1): New function.
18486         (test_main): Use it.
18487         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18488         Support strcasecmp and strncasecmp.
18489
18490 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18491
18492         [BZ #12194]
18493         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18494         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18495
18496 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18497
18498         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18499         IFUNC support.
18500         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18501         memset-x86-64.
18502         * sysdeps/x86_64/multiarch/bzero.S: New file.
18503         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18504         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18505         * sysdeps/x86_64/multiarch/memset.S: New file.
18506         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18507         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18508         Set bit_Prefer_SSE_for_memop for Intel processors.
18509         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18510         Define.
18511         (index_Prefer_SSE_for_memop): Define.
18512         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18513
18514 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18515
18516         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18517         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18518
18519 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18520
18521         [BZ #12191]
18522         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18523         (__x86_64_raw_data_cache_size_half): Likewise.
18524         (__x86_64_raw_shared_cache_size): Likewise.
18525         (__x86_64_raw_shared_cache_size_half): Likewise.
18526
18527         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18528         (__x86_64_raw_data_cache_size_half): Likewise.
18529         (__x86_64_raw_shared_cache_size): Likewise.
18530         (__x86_64_raw_shared_cache_size_half): Likewise.
18531         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18532         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18533         and __x86_64_raw_shared_cache_size_half.  Round
18534         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18535         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18536         to multiple of 256 bytes.
18537
18538 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18539
18540         [BZ #12167]
18541         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18542         of inacessible symlinks.  Verify result of symlink before returning it.
18543         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18544         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18545
18546 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18547
18548         * math/math.h (isinf): Fix typo in comment.
18549
18550 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18551
18552         * po/da.po: Update from translation team.
18553
18554 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18555
18556         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18557         is added to the list.
18558
18559 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18560             Ulrich Drepper  <drepper@gmail.com>
18561
18562         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18563         the global list here.  Move code to...
18564         (_dl_add_to_namespace_list): ...here.  New function.
18565         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18566         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18567         * elf/dl-load.c (lose): Don't remove the element from the list.
18568         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18569         (_dl_map_object): Likewise.
18570
18571 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18572
18573         [BZ #12159]
18574         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18575         into all bytes of SSE register.
18576         Patch by Richard Li <richardpku@gmail.com>.
18577
18578 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18579
18580         [BZ #12140]
18581         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18582         perturbing.
18583
18584 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18585
18586         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18587         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18588         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18589         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18591         submachine.
18592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18593
18594 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18595
18596         * include/dlfcn.h (__RTLD_SECURE): Define.
18597         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18598         mode & __RTLD_SECURE instead.
18599         (open_path): Rename preloaded parameter to secure.
18600         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18601         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18602         * elf/dl-deps.c (openaux): Likewise.
18603         * elf/rtld.c (struct map_args): Remove is_preloaded.
18604         (map_doit): Don't use it.
18605         (dl_main): Likewise.
18606         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18607         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18608
18609 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18610
18611         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18612         (sysd-rules-targets): Remove duplicates.
18613         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18614         rtld-%.$o dependency.
18615
18616 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18617
18618         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18619         _dl_map_object do it.
18620
18621 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18622
18623         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18624         fast fma builtins, define the macros in the C99 standard.
18625         (FP_FAST_FMAF): Likewise.
18626         (FP_FAST_FMAL): Likewise.
18627         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18628
18629         * bits/mathdef.h: Update copyright year.
18630         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18631
18632 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18633
18634         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18635         builtins, define the macros in the C99 standard.
18636         (FP_FAST_FMAF): Likewise.
18637         (FP_FAST_FMAL): Likewise.
18638         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18639         multiply/add.
18640         (FP_FAST_FMAF): Likewise.
18641
18642 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18643
18644         [BZ #3268]
18645         * math/libm-test.inc (fma_test): Some new testcases.
18646         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18647         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18648         y and infinite z.  Do multiplication by C already in long double.
18649         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18650         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18651         y and infinite z.  Do bitwise or of inexact bit into u.d.
18652         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18653         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18654         * sysdeps/i386/fpu/s_fma.S: Removed.
18655         * sysdeps/i386/fpu/s_fmal.S: Removed.
18656
18657 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18658
18659         [BZ #3268]
18660         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18661         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18662         computation is not scheduled after fetestexcept.  Fix value
18663         of minimum denormal long double.
18664
18665 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18666
18667         [BZ #3268]
18668         * math/libm-test.inc (fma_test): Add some more tests.
18669         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18670         correctly.
18671
18672 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18673
18674         * scripts/data/localplt-s390-linux-gnu.data: New file.
18675         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18676
18677 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18678
18679         [BZ #3268]
18680         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18681         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18682         instead of dbl-64.
18683         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18684         inlines.
18685         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18686         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18687         if one of x and y is very large and the other is subnormal.
18688         * sysdeps/s390/fpu/s_fmaf.c: New file.
18689         * sysdeps/s390/fpu/s_fma.c: New file.
18690         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18691         * sysdeps/powerpc/fpu/s_fma.S: New file.
18692         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18693         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18694         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18695
18696 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18697
18698         [BZ #3268]
18699         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18700         fma tests.
18701         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18702         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18703         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18704         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18705         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18706         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18707         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18708
18709 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18710
18711         [BZ #12078]
18712         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18713         * posix/bug-regex31.input: Add test case.
18714
18715 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18716
18717         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18718         * posix/bug-regex31.input: New file.
18719
18720         [BZ #12078]
18721         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18722         (parse_sub_exp): Fix last change, use postorder.
18723
18724         * posix/bug-regex31.c: New file.
18725         * posix/Makefile: Add rules to build and run bug-regex31.
18726
18727         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18728
18729         [BZ #12078]
18730         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18731
18732         [BZ #12108]
18733         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18734         to have entries in sys_siglist.
18735
18736         [BZ #12093]
18737         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18738         be NULL.
18739
18740 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18741
18742         [BZ #3268]
18743         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18744         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18745         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18746         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18747         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18748         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18749         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18750         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18751         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18752         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18753         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18754         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18755         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18756         * math/ftestexcept.c (fetestexcept): Likewise.
18757         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18758         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18759         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18760         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18761         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18762         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18763         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18764
18765 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18766
18767         [BZ #12107]
18768         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18769         newline.
18770
18771 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18772
18773         * string/bug-strstr1.c: New file.
18774         * string/Makefile: Add rules to build and run bug-strstr1.
18775
18776 2010-10-05  Eric Blake  <eblake@redhat.com>
18777
18778         [BZ #12092]
18779         * string/str-two-way.h (two_way_long_needle): Always clear memory
18780         when skipping input due to the shift table.
18781
18782 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18783
18784         [BZ #12005]
18785         * malloc/mcheck.c: Handle large requests.
18786
18787         [BZ #12077]
18788         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18789         for strncmp and strncasecmp.
18790         * string/stratcliff.c: Add tests for strcmp and strncmp.
18791         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18792
18793 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18794
18795         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18796         __set_fpscr.
18797
18798 2010-09-30  Andreas Jaeger  <aj@suse.de>
18799
18800         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18801         (CGROUP_SUPER_MAGIC): Define.
18802         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18803         Handle btrfs and cgroup file systems.
18804         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18805         Likewise.
18806
18807 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18808
18809         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18810         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18811
18812 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18813
18814         [BZ #12067]
18815         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18816         trying to locate the ELF header.
18817
18818 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18819
18820         [BZ #11611]
18821         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18822         Mask out sign-bit copies when constructing f_fsid.
18823
18824 2010-09-24  Petr Baudis <pasky@suse.cz>
18825
18826         * debug/stack_chk_fail_local.c: Add missing licence exception.
18827         * debug/warning-nop.c: Likewise.
18828
18829 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18830
18831         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18832         implementing getdents64 using getdents syscall, set d_type if
18833         __ASSUME_GETDENTS32_D_TYPE.
18834
18835 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18836
18837         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18838         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18839
18840 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18841
18842         [BZ #12037]
18843         * posix/unistd.h: Undo change of feature selection for ftruncate from
18844         2010-01-11.
18845
18846 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18847
18848         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18849         detection.
18850
18851 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18852
18853         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18854         fanotify_mark.
18855         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18856
18857 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18858
18859         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18860         variables after CHECK_SP call.
18861         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18862
18863 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18864             Ulrich Drepper  <drepper@redhat.com>
18865
18866         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18867         re-relocationg ld.so.
18868         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18869         _dl_init_paths call.
18870         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18871         here anymore.
18872
18873 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18874
18875         * resolv/res_init.c (__res_vinit): Count the default server we added.
18876
18877 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18878             Ulrich Drepper  <drepper@redhat.com>
18879
18880         [BZ #11968]
18881         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18882         (____longjmp_chk): Use %ebx for saving value across system call.
18883         Add unwind info.
18884
18885 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18886
18887         * manual/Makefile: Don't mix pattern rules with normal rules.
18888
18889 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18890
18891         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18892         operation.
18893         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18894         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18895         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18896         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18897         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18898         Likewise.
18899
18900 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18901
18902         [BZ #11979]
18903         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18904         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18905
18906 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18907
18908         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18909         * sysdeps/x86_64/addmul_1.S: Likewise.
18910         * sysdeps/x86_64/lshift.S: Likewise.
18911         * sysdeps/x86_64/mul_1.S: Likewise.
18912         * sysdeps/x86_64/rshift.S: Likewise.
18913         * sysdeps/x86_64/sub_n.S: Likewise.
18914         * sysdeps/x86_64/submul_1.S: Likewise.
18915
18916 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18917
18918         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18919         Define __sched_param instead of SCHED_* and sched_param when
18920         <bits/sched.h> is included with __need_schedparam defined.
18921         * bits/sched.h [__need_schedparam]
18922         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18923         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18924         (__defined_schedparam): Define to 1.
18925         (__sched_param): New structure, identical to sched_param.
18926         (__need_schedparam): Undefine.
18927
18928 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18929
18930         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18931         (epoll_create1): Declare.
18932
18933         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18934
18935 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18936
18937         [BZ #7066]
18938         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18939         shifting retval into place.
18940
18941 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18942
18943         * nis/rpcsvc/nis.h: Update copyright notice.
18944         * nis/rpcsvc/nis.x: Likewise.
18945         * nis/rpcsvc/nis_callback.h: Likewise.
18946         * nis/rpcsvc/nis_callback.x: Likewise.
18947         * nis/rpcsvc/nis_object.x: Likewise.
18948         * nis/rpcsvc/nis_tags.h: Likewise.
18949         * nis/rpcsvc/yp.h: Likewise.
18950         * nis/rpcsvc/yp.x: Likewise.
18951         * nis/rpcsvc/ypupd.h: Likewise.
18952         * nis/yp_xdr.c: Likewise.
18953         * nis/ypupdate_xdr.c: Likewise.
18954
18955         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18956         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18957         (pmap_getport): Use __libc_rpc_getport.
18958         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18959         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18960         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18961
18962 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18963
18964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18965         fanotify_mark.
18966
18967 2010-08-27  Roland McGrath  <roland@redhat.com>
18968
18969         * sysdeps/i386/i686/multiarch/Makefile
18970         (CFLAGS-varshift.c): New variable.
18971
18972 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18973
18974         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18975         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18976
18977         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18978
18979         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18980
18981 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18982
18983         * sysdeps/x86_64/strlen.S: Unroll the loop.
18984         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18985         strlen-sse2 strlen-sse2-bsf.
18986         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18987         __strlen_no_bsf if bit_Slow_BSF is set.
18988         (__strlen_sse42): Removed.
18989         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18990         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18991
18992 2010-08-25  Roland McGrath  <roland@redhat.com>
18993
18994         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18995         * sysdeps/x86_64/multiarch/varshift.c: New file.
18996         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18997         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18998         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18999         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19000
19001 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19002
19003         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19004         strlen-sse2 strlen-sse2-bsf.
19005         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19006         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19007         (__strlen_sse2): Removed.
19008         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19009         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19010         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19011         bit_Slow_BSF for Atom.
19012         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19013         (index_Slow_BSF): Define.
19014         (HAS_SLOW_BSF): Define.
19015
19016 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19017
19018         [BZ #10851]
19019         * resolv/res_init.c (__res_vinit): When no server address at all
19020         is given default to loopback.
19021
19022 2010-08-24  Roland McGrath  <roland@redhat.com>
19023
19024         * configure.in: Remove config-name.h generation.
19025         * configure: Regenerated.
19026         * config-name.in: File removed.
19027         * scripts/config-uname.sh: New file.
19028         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19029         ($(objdir)config-name.h): New target.
19030
19031         * sunrpc/rpc_parse.h: Avoid nested comment.
19032
19033 2010-08-24  Richard Henderson  <rth@redhat.com>
19034             Ulrich Drepper  <drepper@redhat.com>
19035             H.J. Lu  <hongjiu.lu@intel.com>
19036
19037         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19038         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19039         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19040         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19041         _mm_alignr_epi8 with _mm_loadu_si128.
19042         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19043         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19044         (__m128i_shift_right): Removed.
19045         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19046         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19047         * sysdeps/x86_64/multiarch/varshift.h: New file.
19048         * sysdeps/x86_64/multiarch/varshift.S: New file.
19049
19050 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19051
19052         * configure.in: Move assembler checks to before sysdep dir checking.
19053
19054 2010-08-20  Petr Baudis  <pasky@suse.cz>
19055
19056         * LICENSES: Sync the sunrpc license.
19057
19058 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19059
19060         * sunrpc/auth_des.c: Update copyright notice once again.
19061         * sunrpc/auth_none.c: Likewise.
19062         * sunrpc/auth_unix.c: Likewise.
19063         * sunrpc/authdes_prot.c: Likewise.
19064         * sunrpc/authuxprot.c: Likewise.
19065         * sunrpc/bindrsvprt.c: Likewise.
19066         * sunrpc/clnt_gen.c: Likewise.
19067         * sunrpc/clnt_perr.c: Likewise.
19068         * sunrpc/clnt_raw.c: Likewise.
19069         * sunrpc/clnt_simp.c: Likewise.
19070         * sunrpc/clnt_tcp.c: Likewise.
19071         * sunrpc/clnt_udp.c: Likewise.
19072         * sunrpc/clnt_unix.c: Likewise.
19073         * sunrpc/des_crypt.c: Likewise.
19074         * sunrpc/des_soft.c: Likewise.
19075         * sunrpc/get_myaddr.c: Likewise.
19076         * sunrpc/getrpcport.c: Likewise.
19077         * sunrpc/key_call.c: Likewise.
19078         * sunrpc/key_prot.c: Likewise.
19079         * sunrpc/openchild.c: Likewise.
19080         * sunrpc/pm_getmaps.c: Likewise.
19081         * sunrpc/pm_getport.c: Likewise.
19082         * sunrpc/pmap_clnt.c: Likewise.
19083         * sunrpc/pmap_prot.c: Likewise.
19084         * sunrpc/pmap_prot2.c: Likewise.
19085         * sunrpc/pmap_rmt.c: Likewise.
19086         * sunrpc/rpc/auth.h: Likewise.
19087         * sunrpc/rpc/auth_unix.h: Likewise.
19088         * sunrpc/rpc/clnt.h: Likewise.
19089         * sunrpc/rpc/des_crypt.h: Likewise.
19090         * sunrpc/rpc/key_prot.h: Likewise.
19091         * sunrpc/rpc/netdb.h: Likewise.
19092         * sunrpc/rpc/pmap_clnt.h: Likewise.
19093         * sunrpc/rpc/pmap_prot.h: Likewise.
19094         * sunrpc/rpc/pmap_rmt.h: Likewise.
19095         * sunrpc/rpc/rpc.h: Likewise.
19096         * sunrpc/rpc/rpc_des.h: Likewise.
19097         * sunrpc/rpc/rpc_msg.h: Likewise.
19098         * sunrpc/rpc/svc.h: Likewise.
19099         * sunrpc/rpc/svc_auth.h: Likewise.
19100         * sunrpc/rpc/types.h: Likewise.
19101         * sunrpc/rpc/xdr.h: Likewise.
19102         * sunrpc/rpc_clntout.c: Likewise.
19103         * sunrpc/rpc_cmsg.c: Likewise.
19104         * sunrpc/rpc_common.c: Likewise.
19105         * sunrpc/rpc_cout.c: Likewise.
19106         * sunrpc/rpc_dtable.c: Likewise.
19107         * sunrpc/rpc_hout.c: Likewise.
19108         * sunrpc/rpc_main.c: Likewise.
19109         * sunrpc/rpc_parse.c: Likewise.
19110         * sunrpc/rpc_parse.h: Likewise.
19111         * sunrpc/rpc_prot.c: Likewise.
19112         * sunrpc/rpc_sample.c: Likewise.
19113         * sunrpc/rpc_scan.c: Likewise.
19114         * sunrpc/rpc_scan.h: Likewise.
19115         * sunrpc/rpc_svcout.c: Likewise.
19116         * sunrpc/rpc_tblout.c: Likewise.
19117         * sunrpc/rpc_util.c: Likewise.
19118         * sunrpc/rpc_util.h: Likewise.
19119         * sunrpc/rpcinfo.c: Likewise.
19120         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19121         * sunrpc/rpcsvc/key_prot.x: Likewise.
19122         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19123         * sunrpc/rpcsvc/mount.x: Likewise.
19124         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19125         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19126         * sunrpc/rpcsvc/rex.x: Likewise.
19127         * sunrpc/rpcsvc/rstat.x: Likewise.
19128         * sunrpc/rpcsvc/rusers.x: Likewise.
19129         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19130         * sunrpc/rpcsvc/spray.x: Likewise.
19131         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19132         * sunrpc/rtime.c: Likewise.
19133         * sunrpc/svc.c: Likewise.
19134         * sunrpc/svc_auth.c: Likewise.
19135         * sunrpc/svc_authux.c: Likewise.
19136         * sunrpc/svc_raw.c: Likewise.
19137         * sunrpc/svc_run.c: Likewise.
19138         * sunrpc/svc_simple.c: Likewise.
19139         * sunrpc/svc_tcp.c: Likewise.
19140         * sunrpc/svc_udp.c: Likewise.
19141         * sunrpc/svc_unix.c: Likewise.
19142         * sunrpc/svcauth_des.c: Likewise.
19143         * sunrpc/xcrypt.c: Likewise.
19144         * sunrpc/xdr.c: Likewise.
19145         * sunrpc/xdr_array.c: Likewise.
19146         * sunrpc/xdr_float.c: Likewise.
19147         * sunrpc/xdr_mem.c: Likewise.
19148         * sunrpc/xdr_rec.c: Likewise.
19149         * sunrpc/xdr_ref.c: Likewise.
19150         * sunrpc/xdr_sizeof.c: Likewise.
19151         * sunrpc/xdr_stdio.c: Likewise.
19152
19153         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19154         handling.
19155
19156 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19157
19158         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19159
19160 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19161
19162         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19163         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19164         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19165         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19166         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19167         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19168         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19169         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19170         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19171         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19172         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19173         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19174         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19175         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19176
19177 2010-07-26  Anton Blanchard  <anton@samba.org>
19178
19179         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19180         * malloc/arena.c (heap_trim): Likewise.
19181
19182 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19183
19184         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19185         here.  Not...
19186         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19187         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19188
19189 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19190
19191         * sysdeps/i386/elf/Makefile: New file.
19192
19193 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19194
19195         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19196         from fanotify_init.
19197         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19198         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19199
19200 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19201
19202         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19203         of strncasecmp_l.
19204         * sysdeps/multiarch/strcmp.S: Likewise.
19205
19206 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19207
19208         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19209         strncase_l-nonascii.
19210         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19211         Add strncase_l-ssse3.
19212         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19213         * sysdeps/x86_64/strcmp.S: Likewise.
19214         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19215         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19216         * sysdeps/x86_64/strncase.S: New file.
19217         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19218         * sysdeps/x86_64/strncase_l.S: New file.
19219         * string/Makefile (strop-tests): Add strncasecmp.
19220         * string/test-strncasecmp.c: New file.
19221
19222         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19223         warning.
19224
19225         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19226         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19227
19228 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19229
19230         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19231
19232 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19233
19234         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19235         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19236         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19237
19238 2010-05-01  Alan Modra  <amodra@gmail.com>
19239
19240         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19241         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19242         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19243         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19244         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19245         tidying.  Don't tail-call __sigjmp_save for static lib.
19246         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19247         save location.
19248         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19249         (CALL_MCOUNT): Add eh info, and nop after bl.
19250         (TAIL_CALL_SYSCALL_ERROR): New macro.
19251         (PSEUDO_RET): Use it.
19252         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19253         Correct save location of integer regs and cr.
19254         (_dl_profile_resolve): Correct cr save location.  Delete nops
19255         after bl when SHARED.  Reduce cfi size a little by better
19256         placement of cfi directives.
19257         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19258         make a stack frame.  Instead use parm save area as a temp.
19259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19260         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19262         Don't make a stack frame for parent, use parm save area.
19263         Increase child stack frame to 112 bytes.  Don't save unused reg,
19264         and adjust reg usage.  Set up cfi on error recovery and
19265         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19267         (__makecontext): Add dummy nop after jump to exit.
19268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19269         Use correct parm save area and cr save, reduce stack frame.
19270         Correct cfi for possible PSEUDO_RET frame setup.
19271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19272         Branch to local label emitted by PSEUDO_RET rather than
19273         __syscall_error.
19274
19275 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19276
19277         [BZ #11904]
19278         * locale/programs/locale.c (print_assignment): New function.
19279         (show_locale_vars): Use it.
19280
19281 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19282
19283         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19284         field.
19285         (struct statfs64): Likewise.
19286         (_STATFS_F_FLAGS): Define.
19287         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19288         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19289         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19290         (ST_VALID): Define locally.
19291         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19292         __statvfs_getflags, use the provided value.
19293         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19294         __ASSUME_STATFS_F_FLAGS.
19295
19296         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19297
19298         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19299         Add sys/fanotify.h.
19300         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19301         fanotify_mask for GLIBC_2.13.
19302         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19303         fanotify_init and fanotify_mark.
19304         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19305         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19306
19307         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19308         Add prlimit.
19309         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19310         prlimit64 for GLIBC_2.13.
19311         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19312         prlimit64.
19313         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19314         syscall.
19315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19316         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19317         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19318         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19319         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19320         add prlimit alias.
19321         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19322
19323         [BZ #11903]
19324         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19325         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19326
19327         * nss/Makefile: Add rules to build and run tst-nss-test1.
19328         * shlib-versions: Add entry for libnss_test1.
19329         * nss/nss_test1.c: New file.
19330         * nss/tst-nss-test1.c: New file.
19331
19332         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19333         (__nss_configure_lookup): Set appropriate entry in
19334         __nss_configure_lookup to true.
19335         * nss/nsswitch.h: Define enum with indeces of databases in
19336         databases and __nss_database_custom arrays.  Declare
19337         __nss_database_custom.
19338         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19339         to avoid using nscd when custom rules are installed.
19340         * nss/getXXbyYY_r.c: Likewise.
19341         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19342
19343         * nss/nss_files/files-parse.c: Whitespace fixes.
19344
19345 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19346
19347         [BZ #11883]
19348         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19349         * posix/fnmatch_loop.c: Likewise.
19350
19351 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19352
19353         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19354         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19355         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19356         * Versions.def [GLIBC_2.13]: Add.
19357
19358 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19359
19360         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19361         Also fail if tpwd after pwuid call is NULL.
19362
19363 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19364
19365         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19366         when converting to ms.
19367
19368 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19369
19370         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19371         EOPNOTSUPP errors with ENOTTY.
19372         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19373         EOPNOTSUPP errors with ENOTTY.
19374
19375 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19376
19377         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19378         Add strcasecmp_l-ssse3.
19379         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19380         strcasecmp.
19381         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19382         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19383         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19384
19385 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19386
19387         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19388
19389         * string/Makefile (strop-tests): Add strcasecmp.
19390         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19391         strcasecmp_l-nonascii.
19392         (gen-as-const-headers): Add locale-defines.sym.
19393         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19394         * sysdeps/x86_64/strcasecmp.S: New file.
19395         * sysdeps/x86_64/strcasecmp_l.S: New file.
19396         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19397         * sysdeps/x86_64/locale-defines.sym: New file.
19398         * string/test-strcasecmp.c: New file.
19399
19400         * string/test-strcasestr.c: Test both ends of the range of characters.
19401         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19402
19403 2010-07-29  Roland McGrath  <roland@redhat.com>
19404
19405         [BZ #11856]
19406         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19407
19408 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19409
19410         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19411         for ld.so.
19412
19413 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19414
19415         * manual/memory.texi (Malloc Tunable Parameters): Document
19416         M_PERTURB.
19417
19418 2010-07-26  Roland McGrath  <roland@redhat.com>
19419
19420         [BZ #11840]
19421         * configure.in (-fgnu89-inline check): Set and substitute
19422         gnu89_inline, not libc_cv_gnu89_inline.
19423         * configure: Regenerated.
19424         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19425
19426 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19427
19428         * string/test-strnlen.c: New file.
19429         * string/Makefile (strop-tests): Add strnlen.
19430         * string/tester.c (test_strnlen): Add a few more test cases.
19431         * string/tst-strlen.c: Better error reporting.
19432
19433         * sysdeps/x86_64/strnlen.S: New file.
19434
19435 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19436
19437         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19438         lower-latency instructions.
19439
19440 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19441
19442         * string/test-strcasestr.c: New file.
19443         * string/test-strstr.c: New file.
19444         * string/Makefile (strop-tests): Add strstr and strcasestr.
19445         * string/str-two-way.h: Don't undefine MAX.
19446         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19447
19448 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19449
19450         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19451         strcasestr-nonascii.
19452         (CFLAGS-strcasestr-nonascii.c): Define.
19453         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19454         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19455         Remove unused attribute.
19456
19457 2010-07-20  Roland McGrath  <roland@redhat.com>
19458
19459         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19460         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19461         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19462         like LD_HWCAP_MASK can disable hwcaps.
19463
19464 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19465
19466         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19467
19468 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19469
19470         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19471         call in strcasestr.
19472         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19473         __strcasestr_sse42_nonascii.
19474         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19475         strcasestr-nonascii.c.
19476         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19477
19478 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19479
19480         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19481         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19482         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19483         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19484
19485 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19486
19487         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19488         fcntl.
19489
19490 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19491
19492         [BZ #11577]
19493         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19494         dl_signal_cerror.
19495
19496 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19497
19498         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19499         _PC_PIPE_BUF using F_GETPIPE_SZ.
19500
19501 2010-07-05  Roland McGrath  <roland@redhat.com>
19502
19503         * manual/arith.texi (Rounding Functions): Fix rint description
19504         implicit in round description.
19505
19506 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19507
19508         * elf/Makefile: Fix linking for a few tests to make recent linker
19509         happy.
19510
19511 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19512
19513         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19514         $(common-objpfx)libc_nonshared.a.
19515
19516 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19517
19518         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19519         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19520         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19521         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19522         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19523         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19524         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19525         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19540         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19541         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19542         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19543         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19544         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19545         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19546         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19547         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19548         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19549         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19550         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19551         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19566
19567 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19568
19569         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19570         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19571         * string/memmove.c (memmove): Renamed to ...
19572         (MEMMOVE): ...this.  Default to memmove.
19573         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19574         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19575         (END_CHK): Define.
19576         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19577         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19578         mempcpy-ssse3-back memmove-ssse3-back.
19579         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19580         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19581         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19582         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19583         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19584         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19585         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19586         * sysdeps/x86_64/multiarch/memmove.c: New file.
19587         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19588         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19589         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19590         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19591         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19592         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19593         Define.
19594         (index_Fast_Copy_Backward): Define.
19595         (HAS_ARCH_FEATURE): Define.
19596         (HAS_FAST_REP_STRING): Define.
19597         (HAS_FAST_COPY_BACKWARD): Define.
19598
19599 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19600
19601         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19602         Restore proper fallback handling.
19603
19604 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19605
19606         [BZ #11701]
19607         * posix/group_member.c (__group_member): Correct checking loop.
19608
19609         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19610         OOM in getpwuid_r correctly.  Return error number when the caller
19611         should return, otherwise -1.
19612         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19613         call returning > 0 value.
19614         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19615
19616 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19617
19618         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19619         libc_nonshared.a from targets in modules-names.
19620
19621 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19622
19623         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19624         requires it.
19625
19626 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19627
19628         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19629         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19630         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19631         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19632
19633 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19634
19635         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19636
19637 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19638
19639         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19640         and F_GETPIPE_SZ.
19641         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19642         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19643         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19644         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19645         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19646         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19647
19648 2010-06-14  Roland McGrath  <roland@redhat.com>
19649
19650         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19651
19652 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19653
19654         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19655         __REDIRECT followed by __THROW.
19656         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19657         * posix/getopt.h (getopt): Likewise.
19658
19659 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19660
19661         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19662         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19663         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19664         in AT_FLAGS.
19665         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19666         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19667
19668 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19669
19670         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19671
19672 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19673
19674         [BZ #11640]
19675         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19676         Properly check family and model.
19677
19678 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19679
19680         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19681
19682 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19683
19684         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19685
19686 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19687
19688         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19689         symbol reference.
19690
19691 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19692
19693         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19694         symbol reference.
19695
19696 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19697
19698         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19699         and internal_recvmmsg.
19700         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19701         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19702         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19703         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19704
19705         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19706         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19707         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19708
19709 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19710
19711         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19712
19713 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19714
19715         POWER7 optimizations.
19716         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19717         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19718
19719 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19720
19721         * version.h: Update for 2.13 development version.
19722
19723 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19724
19725         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19726         exceptions.  Return 0.
19727
19728 2010-05-07  Roland McGrath  <roland@redhat.com>
19729
19730         * elf/ldconfig.c (main): Add a const.
19731
19732 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19733
19734         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19735         (args_options): Add no-idn option.
19736         (ahosts_keys_int): Add idn_flags to ai_flags.
19737         (parse_option): Handle 'i' option to clear idn_flags.
19738
19739         * malloc/malloc.c (_int_free): Possible race in the most recently
19740         added check.  Only act on the data if no current modification
19741         happened.
19742
19743 See ChangeLog.17 for earlier changes.