Move _G_config.h with Linuxism to linux/ directory.
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2
3         * sysdeps/gnu/_G_config.h: Moved to ...
4         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
5         * sysdeps/mach/hurd/_G_config.h: Moved to ...
6         * sysdeps/generic/_G_config.h: ... here.
7
8         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
9
10         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
11
12         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
13         Conditionalize target on [libnss_test1.so-version].
14
15         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
16
17         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
18         (elfobjdir): Move out of conditionals.
19
20         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
21         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
22         (__nss_lookup_function): Conditionalize label remove_from_tree on
23         [!DO_STATIC_NSS || SHARED], matching its only use.
24
25 2012-09-28  David S. Miller  <davem@davemloft.net>
26
27         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
28         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
29         file.
30         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
31         sysdep_routines.
32         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
33         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
34         when HWCAP_SPARC_CRYPTO is present.
35
36 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
37
38         * io/tst-mknodat.c: Create a FIFO instead of a socket.
39
40 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
41
42         [BZ #6530]
43         * stdio-common/vfprintf.c (process_string_arg): Revert
44         2000-07-22 change.
45
46 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
47
48         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
49         for testcase.
50         * stdio-common/tst-sprintf.c: Include <locale.h>
51         (main): Test sprintf's handling of incomplete multibyte
52         characters.
53
54 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
55
56         * elf/dl-runtime.c (VERSYMIDX): Removed.
57         * elf/dl-version.c (VERSYMIDX): Likewise.
58         * elf/do-rel.h (VERSYMIDX): Likewise.
59         (VALIDX): Likewise.
60         * elf/dynamic-link.h (VERSYMIDX): Likewise.
61         * elf/rtld.c (VALIDX): Likewise.
62         (ADDRIDX): Likewise.
63         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
64         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
65         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
66         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
67         (VALIDX): Likewise.
68         (ADDRIDX): Likewise.
69
70 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71
72         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
73
74 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
75
76         [BZ #11438]
77         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
78         to global scope.
79         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
80         addresses are in the same scope as 192.0.2/24.
81         * posix/gai.conf: Document new scope table defaults.
82
83 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
84
85         [BZ #5298]
86         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
87         for ftell.  Compute offsets from write pointers instead.
88         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
89
90 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
91
92         [BZ #14543]
93         * libio/Makefile (tests): New test case tst-fseek.
94         * libio/tst-fseek.c: New test case to verify that fseek/ftell
95         combination works in wide mode.
96         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
97         state when the external buffer state changes.
98
99 2012-09-27  David S. Miller  <davem@davemloft.net>
100
101         [BZ #14376]
102         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
103         pass reloc->r_addend in as the 'high' argument to
104         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
105
106         * sysdeps/sparc/fpu/libm-test-ulps: Update.
107
108 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
109
110         * rt/tst-aio2.c: Include <pthread.h>.
111         * rt/tst-aio3.c: Likewise.
112
113 2012-09-27  Steve Ellcey  <sellcey@mips.com>
114
115         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
116
117 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
118
119         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
120         contents on [SHARED].
121
122 2012-09-26  Marek Polacek  <polacek@redhat.com>
123
124         [BZ #14530]
125         [BZ #13741]
126         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
127         for C++ and GCC <4.3 as well as for non GCC compilers.
128
129 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
130
131         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
132
133 2012-09-25  Roland McGrath  <roland@hack.frob.com>
134
135         * Makefile.in (all, install): Declare with .PHONY.
136         Reported by Michael Hope <michael.hope@linaro.org>.
137
138 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
139
140         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
141         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
142         system header.
143         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
144         Likewise.
145         (sydep_routines): Add the new and the internal functions.
146         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
147         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
149         (GLIBC_2.17): Add the new function.
150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
151         (GLIBC_2.17): Likewise.
152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
153         (GLIBC_2.17): Likewise.
154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
155         (GLIBC_2.17): Likewise.
156         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
157
158 2012-09-25  Alan Modra  <amodra@gmail.com>
159
160         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
161         Add release barrier before setting once_control to say
162         initialisation is done.  Add hints on lwarx.  Use macro in
163         place of isync.
164         (clear_once_control): Add release barrier.
165
166 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
167
168         [BZ #13629]
169         * math/s_clog.c (__clog): Handle more values close to |z| = 1
170         specially.
171         * math/s_clog10.c (__clog10): Likewise.
172         * math/s_clog10f.c (__clog10f): Likewise.
173         * math/s_clog10l.c (__clog10l): Likewise.
174         * math/s_clogf.c (__clogf): Likewise.
175         * math/s_clogl.c (__clogl): Likewise.
176         * math/Makefile (libm-calls): Add x2y2m1.
177         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
178         (__x2y2m1): Likewise.
179         (__x2y2m1l): Likewise.
180         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
181         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
182         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
183         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
184         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
185         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
186         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
187         * sysdeps/i386/fpu/libm-test-ulps: Update.
188         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
189
190         [BZ #14621]
191         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
192         int as type of variable DEPTH.
193         (glob): Use size_t instead of int as type of variables NEWCOUNT
194         and OLD_PATHC.
195
196 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
197
198         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
199         Add s_sincosf-sse2.
200         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
201         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
202         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
203         macros for using routine as __sincosf_ia32.
204         Use macro for function declaration and weak_alias.
205         * sysdeps/i386/fpu/libm-test-ulps: Update.
206
207         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
208         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
209
210         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
211         subnormal argument.
212         * math/s_cexpf.c (__cexpf): Likewise.
213         * math/s_csinf.c (__csinf): Likewise.
214         * math/s_csinhf.c (__csinhf): Likewise.
215         * math/s_ctanf.c (__ctanf): Likewise.
216         * math/s_ctanhf.c (__ctanhf): Likewise.
217         * math/s_ccosh.c (__ccoshf): Likewise.
218         * math/s_cexp.c (__cexpl): Likewise.
219         * math/s_csin.c (__csin): Likewise.
220         * math/s_csinh.c (__csinh): Likewise.
221         * math/s_ctan.c (__ctan): Likewise.
222         * math/s_ctanh.c (ctanh): Likewise.
223         * math/s_ccoshl.c (__ccoshl): Likewise.
224         * math/s_cexpl.c (__cexpl): Likewise.
225         * math/s_csinl.c (__csinl): Likewise.
226         * math/s_csinhl.c (__csinhl): Likewise.
227         * math/s_ctanl.c (__ctanl): Likewise.
228         * math/s_ctanhl.c (__ctanhl): Likewise.
229
230 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
231
232         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
233         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
234         (_IO_off_t): Define to __off_t, not _G_off_t.
235         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
236         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
237         (_IO_wint_t): Define to wint_t, not _G_wint_t.
238         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
239         type of __dummy and __dummy2 fields.
240         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
241         (_G_ssize_t): Likewise.
242         (_G_off_t): Likewise.
243         (_G_pid_t): Likewise.
244         (_G_uid_t): Likewise.
245         (_G_wchar_t): Likewise.
246         (_G_wint_t): Likewise.
247         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
248         (_G_ssize_t): Likewise.
249         (_G_off_t): Likewise.
250         (_G_pid_t): Likewise.
251         (_G_uid_t): Likewise.
252         (_G_wchar_t): Likewise.
253         (_G_wint_t): Likewise.
254         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
255         (_G_ssize_t): Likewise.
256         (_G_off_t): Likewise.
257         (_G_pid_t): Likewise.
258         (_G_uid_t): Likewise.
259         (_G_wchar_t): Likewise.
260         (_G_wint_t): Likewise.
261
262 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
263
264         * malloc/arena.c: Include malloc-sysdep.h.
265         (shrink_heap): Use check_may_shrink_heap to decide if madvise
266         is sufficient to shrink the heap or an unmap is needed.
267         * sysdeps/generic/malloc-sysdep.h: New file.  Define
268         new function check_may_shrink_heap.
269         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
270         new function check_may_shrink_heap.
271
272 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
273
274         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
275         comments.
276
277 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
278
279         * catgets/test-gencat.sh: Add "set -e".
280         * elf/tst-pathopt.sh: Likewise.
281         * grp/tst_fgetgrent.sh: Likewise.
282         * iconvdata/run-iconv-test.sh: Likewise.
283         * intl/tst-gettext.sh: Likewise.
284         * intl/tst-gettext2.sh: Likewise.
285         * intl/tst-gettext4.sh: Likewise.
286         * intl/tst-gettext6.sh: Likewise.
287         * intl/tst-translit.sh: Likewise.
288         * io/ftwtest-sh: Likewise.
289         * libio/test-freopen.sh: Likewise.
290         * malloc/tst-mtrace.sh: Likewise.
291         * posix/globtest.sh: Likewise.
292         * posix/tst-getconf.sh: Likewise.
293         * posix/wordexp-tst.sh: Likewise.
294         * stdio-common/tst-printf.sh: Likewise.
295         * stdio-common/tst-unbputc.sh: Likewise.
296         * stdlib/tst-fmtmsg.sh: Likewise.
297         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
298         * catgets/Makefile: Do not specify -e option when running
299         testsuite shell scripts.
300         * elf/Makefile: Likewise.
301         * grp/Makefile: Likewise.
302         * iconvdata/Makefile: Likewise.
303         * intl/Makefile: Likewise.
304         * io/Makefile: Likewise.
305         * libio/Makefile: Likewise.
306         * malloc/Makefile: Likewise.
307         * posix/Makefile: Likewise.
308         * stdio-common/Makefile: Likewise.
309         * stdlib/Makefile: Likewise.
310         * sysdeps/x86_64/Makefile: Likewise.
311
312         * io/ftwtest-sh: Add copyright header.
313         * posix/globtest.sh: Likewise.
314         * posix/tst-getconf.sh: Likewise.
315         * posix/wordexp-tst.sh: Likewise.
316         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
317
318 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
319
320         [BZ #13679]
321         * Makeconfig (+link): Defined as $(+link-static) if
322         $(build-shared) isn't yes.
323         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
324         isn't yes.
325         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
326
327         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
328
329         [BZ #14562]
330         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
331         new chunk size with MALLOC_ALIGN_MASK.
332
333 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
334
335         [BZ #5044]
336         * stdio-common/printf_fphex.c: Include <stdbool.h> and
337         <rounding-mode.h>.
338         (__printf_fphex): Determine rounding using get_rounding_mode and
339         round_away.
340         * stdio-common/tst-printf-round.c (struct hex_test): New
341         structure.
342         (hex_tests): New variable.
343         (test_hex_in_one_mode): New function.
344         (do_test): Also run tests for hex float output.
345
346 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
347
348         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
349         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
350         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
351         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
352         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
353         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
354         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
355         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
356
357 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
358
359         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
360         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
361         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
362         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
363
364 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
365
366         [BZ #14579]
367         * elf/rtld.c (dl_main): Limit the check for self loading to normal
368         mode only.
369         * elf/tst-rtld-load-self.sh: New test.
370         * elf/Makefile: Run it.
371
372 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
373
374         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
375         (tst-writev-ENV): Remove.
376         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
377
378 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
379
380         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
381
382 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
383
384         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
385         unconditional.
386         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
387         Likewise.
388         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
389         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
390         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
391         Likewise.
392
393 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
394
395         [BZ #14587]
396         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
397         * config.make.in (have-cpp-asm-debuginfo): Removed.
398         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
399         * configure: Regenerated.
400
401 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
402
403         [BZ #5044]
404         * stdio-common/printf_fp.c: Include <stdbool.h> and
405         <rounding-mode.h>.
406         (___printf_fp): Determine rounding using get_rounding_mode and
407         round_away.
408         * stdio-common/tst-printf-round.c: New file.
409         * stdio-common/Makefile (tests): Add tst-printf-round.
410         (link-libm): New variable.
411         ($(objpfx)tst-printf-round): Depend in $(link-libm).
412
413 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
414
415         [BZ #14576]
416         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
417         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
418         Likewise.
419         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
420         Likewise.
421
422 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
423
424         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
425         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
426         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
427         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
428
429 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
430
431         [BZ #14518]
432         * include/rounding-mode.h: New file.
433         * sysdeps/generic/get-rounding-mode.h: Likewise.
434         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
435         * stdlib/strtod_l.c: Include <rounding-mode.h>.
436         (MAX_VALUE): New macro.
437         (MIN_VALUE): Likewise.
438         (overflow_value): New function.
439         (underflow_value): Likewise.
440         (round_and_return): Use overflow_value and underflow_value to
441         determine return values in overflow and underflow cases.  Use
442         round_away to determine rounding depending on rounding mode.
443         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
444         determine return values in overflow and underflow cases.
445         * stdlib/tst-strtod-round.c: Include <fenv.h>.
446         (struct test_results): New structure.
447         (struct test): Use struct test_results to store expected results
448         for all rounding modes.
449         (TEST): Include expected results for all rounding modes.
450         (test_in_one_mode): New function.
451         (do_test): Use test_in_one_mode to compute and check results.
452         Check results for all rounding modes.
453         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
454         $(link-libm).
455
456 2012-12-09  Allan McRae  <allan@archlinux.org>
457
458         * sysdeps/i386/fpu/libm-test-ulps: Update
459
460 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
461
462         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
463         (_G_int32_t): Likewise.
464         (_G_uint16_t): Likewise.
465         (_G_uint32_t): Likewise.
466         (_G_HAVE_BOOL): Likewise.
467         (_G_HAVE_ATEXIT): Likewise.
468         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
469         (_G_HAVE_IO_FILE_OPEN): Likewise.
470         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
471         (_G_int32_t): Likewise.
472         (_G_uint16_t): Likewise.
473         (_G_uint32_t): Likewise.
474         (_G_HAVE_BOOL): Likewise.
475         (_G_HAVE_ATEXIT): Likewise.
476         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
477         (_G_HAVE_IO_FILE_OPEN): Likewise.
478         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
479         (_G_int32_t): Likewise.
480         (_G_uint16_t): Likewise.
481         (_G_uint32_t): Likewise.
482         (_G_HAVE_BOOL): Likewise.
483         (_G_HAVE_ATEXIT): Likewise.
484         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
485         (_G_HAVE_IO_FILE_OPEN): Likewise.
486
487 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
488
489         * csu/libc-tls.c: Update copyright years.
490
491 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
492
493         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
494         [!_G_USING_THUNKS]: Remove conditional code.
495         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
496         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
497
498         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
499         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
500         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
501         (_G_VTABLE_LABEL_PREFIX): Likewise.
502         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
503         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
504         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
505         (_G_VTABLE_LABEL_PREFIX): Likewise.
506         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
507         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
508         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
509         (_G_VTABLE_LABEL_PREFIX): Likewise.
510         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
511
512 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
513
514         * libio/Makefile: Include ../Makeconfig before tests.
515         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
516         only if $(build-shared) is yes.
517
518         * iconv/gconv_db.c: Update copyright years.
519
520 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
521
522         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
523         unwind info if defined PIC. Fix special cases description.
524         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
525
526         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
527         DP_HI_MASK entry.
528         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
529
530 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
531
532         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
533
534         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
535         is NULL.
536
537         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
538         (LDLIBS-tst-chk4): This.
539         (LDFLAGS-tst-chk5): Renamed to ...
540         (LDLIBS-tst-chk5): This.
541         (LDFLAGS-tst-chk6): Renamed to ...
542         (LDLIBS-tst-chk6): This.
543         (LDFLAGS-tst-lfschk4): Renamed to ...
544         (LDLIBS-tst-lfschk4): This.
545         (LDFLAGS-tst-lfschk5): Renamed to ...
546         (LDLIBS-tst-lfschk5): This.
547         (LDFLAGS-tst-lfschk6): Renamed to ...
548         (LDLIBS-tst-lfschk6): This.
549
550         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
551         on $(common-objpfx)soversions.mk.
552
553 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
554
555         [BZ #10014]
556         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
557         example host name.
558
559 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
560
561         * malloc/arena.c (arena_get_retry): New function that gets
562         another arena for the caller to try its request on.
563         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
564         current arena cannot fulfill the request.
565         (__libc_memalign): Likewise.
566         (__libc_memalign): Likewise.
567         (__libc_pvalloc): Likewise.
568         (__libc_calloc): Likewise.
569
570 2012-09-05  John Tobey  <john.tobey@gmail.com>
571
572         [BZ #13542]
573         * manual/arith.texi (Operations on Complex): Fix description
574         of carg branch cut.
575
576 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
577
578         [BZ #10014]
579         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
580         host name.
581
582         [BZ #10038]
583         * manual/memory.texi (Memory): Make order of menu items match
584         order of sections.
585
586 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
587
588         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
589         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
590         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
591
592 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
593
594         * csu/libc-tls.c (static_dtv): Renamed to ...
595         (_dl_static_dtv): This.  Make it global.
596         (_dl_initial_dtv): Removed.
597         (__libc_setup_tls): Updated.
598         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
599         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
600         DL_INITIAL_DTV.
601
602 2012-09-06  Petr Machata  <pmachata@redhat.com>
603
604         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
605         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
606         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
607         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
608
609 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
610
611         [BZ #14545]
612         * csu/libc-tls.c (_dl_initial_dtv): New variable.
613         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
614         freeing dtv[-1].
615
616 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
617
618         [BZ #14544]
619         * Makeconfig (link-static-before-libc): Replace $(+prector)
620         with $(+prectorT).
621         (link-static-after-libc): Replace $(+postctor) with
622         $(+postctorT).
623         (link-bounded): Replace $(+prector)/$(+postctor) with
624         $(+prectorT)/$(+postctorT).
625         (+prectorT): New macro.
626         (+postctorT): Likewise.
627
628 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
629
630         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
631         (round_str): Handle values above the maximum for IBM long double
632         as inexact.
633         * stdlib/tst-strtod-round.c (tests): Regenerated.
634
635 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
636
637         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
638         assembler flag.
639         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
640         zarch_nohighgprs around the zarch optimized routines.
641         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
642         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
643         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
644         for zarch.
645
646 2012-09-05  David S. Miller  <davem@davemloft.net>
647
648         * sysdeps/sparc/fpu/libm-test-ulps: Update.
649
650         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
651         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
652         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
653         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
654         entries.
655
656 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
657
658         * malloc/arena.c: Fold copyright years.
659         * malloc/mcheck.c, malloc/memusage.c: Likewise.
660
661 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
662
663         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
664
665 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
666
667         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
668
669 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
670
671         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
672         change internal state upon failure.
673
674 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
675
676         * malloc/mcheck.c (mcheck_check_all): Fix typo.
677         * malloc/memusage.c (mmap): Likewise.
678         (mmap64, mremap): Likewise.  Adjust name in comment.
679
680 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
681
682         * libio/fileops.c: Fix typos in comments.
683         * libio/oldfileops.c: Likewise.
684         * libio/wfileops.c: Likewise.
685
686 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
687
688         [BZ #1349]
689         * malloc/Makefile (tests): Add tst-malloc-usable test case.
690         (tst-malloc-usable-ENV): Set environment for test case.
691         * malloc/hooks.c (malloc_check_get_size): New function to get
692         requested size.
693         * malloc/malloc.c (musable): Use malloc_check_get_size.
694         * malloc/tst-malloc-usable.c: New test case.
695
696 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
697
698         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
699
700 2012-09-05  Allan McRae  <allan@archlinux.org>
701
702         [BZ #13966]
703         * configure.in (CXX_SYSINCLUDES): Use compiler output to
704         determine header location.
705         * configure: Regenerated.
706
707 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
708
709         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
710         float format.
711         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
712         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
713         format.
714         (test): Regenerate.
715
716 2012-09-04  David S. Miller  <davem@davemloft.net>
717
718         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
719         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
720         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
721
722 2012-09-04  Florian Weimer  <fweimer@redhat.com>
723
724         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
725         failures.
726
727         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
728
729 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
730
731         [BZ #9914]
732         * libio/iogetdelim.c: Include <limits.h>.
733         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
734         + len + 1 would overflow.
735
736 2012-09-03  Andreas Jaeger  <aj@suse.de>
737
738         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
739         * sysdeps/i386/fpu/libm-test-ulps: Update.
740
741 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
742
743         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
744         Add s_sinf-sse2, s_conf-sse2.
745
746         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
747         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
748         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
749         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
750
751         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
752         for using routine as __sinf_ia32.
753         Use macro for function declaration and weak_alias.
754         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
755         for using routine as __cosf_ia32.
756         Use macro for function declaration and weak_alias.
757
758         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
759         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
760
761         * sysdeps/x86_64/fpu/s_sinf.S: New file.
762         * sysdeps/x86_64/fpu/s_cosf.S: New file.
763         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
764
765         * math/libm-test.inc (cos_test): Add more test cases.
766         (sin_test): Likewise.
767         (sincos_test): Likewise.
768
769 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
770
771         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
772         (IFUNC_RESOLVE): Make pointers to the specialized implementations
773         hidden.
774         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
775
776 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
777
778         [BZ #14538]
779         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
780         first element of the GOT.
781         (elf_machine_load_address): Return the difference between
782         the runtime address of _DYNAMIC and elf_machine_dynamic ().
783
784 2012-09-01  Allan McRae  <allan@archlinux.org>
785
786         [BZ #13412]
787         * configure.in (AWK): Require gawk version 3.0 or later.
788         * configure: Regenerated.
789
790 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
791
792         * sysdeps/unix/sysv/linux/kernel-features.h
793         (__ASSUME_POSIX_CPU_TIMERS): Remove.
794         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
795         [__NR_clock_getres]: Make code unconditional.
796         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
797         (clock_getcpuclockid): Remove code left unreachable by removal of
798         conditionals.
799         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
800         code unconditional.
801         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
802         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
803         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
804         Make code unconditional.
805         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
806         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
807         * sysdeps/unix/sysv/linux/clock_settime.c
808         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
809         conditional code.
810         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
811         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
812
813 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
814
815         [BZ #14476]
816         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
817         scripts/test-installation.pl.
818
819         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
820         and $ld_so_version if it is set.
821
822 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
823
824         [BZ #14516]
825         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
826         failure if reading from procfs failed.
827         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
828
829 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
830
831         * sysdeps/unix/sysv/linux/kernel-features.h
832         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
833         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
834         Remove conditional code.
835         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
836         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
837         Remove conditional code.
838         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
839         * sysdeps/unix/sysv/linux/i386/fxstat.c
840         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
841         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
842         * sysdeps/unix/sysv/linux/i386/fxstatat.c
843         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
844         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
845         * sysdeps/unix/sysv/linux/i386/lxstat.c
846         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
847         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
848         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
849         Remove conditional code.
850         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
851         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
852         Remove conditional code.
853         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
854         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
855         <kernel-features.h>.
856         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
857         Remove.
858         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
859         Remove conditional code.
860         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
861         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
862         Remove conditional.
863
864 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
865
866         [BZ #5400]
867         * NEWS: Add fixed bug number.
868
869 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
870
871         [BZ #14519]
872         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
873         underflowing exponent in case of negative sign.
874         * stdlib/tst-strtod-round-data: Add more tests.
875         * stdlib/tst-strtod-round.c (tests): Regenerated.
876
877         [BZ #3479]
878         * stdlib/strtod_l.c (NDIG): Remove.
879         (HEXNDIG): Likewise.
880         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
881         smallest representable value.
882         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
883         lie within an exact representation of 1/2 ulp of the result.
884         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
885         unconditionally.
886         (TENS_P9_IDX): Define unconditionally.
887         (TENS_P9_SIZE): Likewise.
888         (TENS_P10_IDX): Likewise.
889         (TENS_P10_SIZE): Likewise.
890         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
891         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
892         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
893         entries for 10^2^13 and 10^2^14.
894         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
895         (TENS_P13_IDX): Define.
896         (TENS_P13_SIZE): Likewise.
897         (TENS_P14_IDX): Likewise.
898         (TENS_P14_SIZE): Likewise.
899         (_fpioconst_pow10): Change array size to
900         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
901         unconditional.
902         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
903         1024]: Add entries for 10^2^13 and 10^2^14.
904         [LAST_POW10 > _LAST_POW10]: Remove #error.
905         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
906         (_fpioconst_pow10): Change array size to
907         FPIOCONST_POW10_ARRAY_SIZE.
908         * stdlib/gen-fpioconst.c: New file.
909         * stdlib/gen-tst-strtod-round.c: Likewise.
910         * stdlib/tst-strtod-round-data: Likewise.
911         * stdlib/tst-strtod-round.c: Likewise.
912         * stdlib/Makefile (tests): Add tst-strtod-round.
913
914         [BZ #14459]
915         * stdlib/strtod_l.c: Include <stdint.h>.
916         (NDEBUG): Do not define.
917         (round_and_return): Change EXPONENT parameter to type intmax_t.
918         Rearrange calculations to avoid internal overflow possibilities.
919         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
920         Rearrange calculations to avoid internal overflow possibilities.
921         Assert that number fits inside MPNSIZE limbs.
922         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
923         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
924         calculations and add assertions to avoid internal overflow
925         possibilities.  Add casts to avoid signed/unsigned operations.
926         * stdlib/tst-strtod-overflow.c: New file.
927         * stdlib/Makefile (tests): Add tst-strtod-overflow.
928
929 2012-08-25  Marek Polacek  <polacek@redhat.com>
930
931         * time/time.h: Fix some typos in comments.
932
933 2012-08-23  Roland McGrath  <roland@hack.frob.com>
934
935         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
936         * posix/tst-rfc3484-2.c: Likewise.
937         * posix/tst-rfc3484-3.c: Likewise.
938
939 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
940
941         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
942         (EF_ARM_ABI_FLOAT_HARD): Likewise.
943
944 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
945
946         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
947         #include of fxstatat64.c.
948
949 2012-08-22  Roland McGrath  <roland@hack.frob.com>
950
951         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
952         * shadow/getspent_r.c: Likewise.
953         * shadow/getspnam.c: Likewise.
954         * shadow/getspnam_r.c: Likewise.
955         * gshadow/getsgent.c: Likewise.
956         * gshadow/getsgent_r.c: Likewise.
957         * gshadow/getsgnam.c: Likewise.
958         * gshadow/getsgnam_r.c: Likewise.
959         * inet/getnetbyad.c: Likewise.
960         * inet/getnetbyad_r.c: Likewise.
961         * inet/getnetbynm.c: Likewise.
962         * inet/getnetbynm_r.c: Likewise.
963         * inet/getnetent.c: Likewise.
964         * inet/getnetent_r.c: Likewise.
965         * inet/getproto.c: Likewise.
966         * inet/getproto_r.c: Likewise.
967         * inet/getprtent.c: Likewise.
968         * inet/getprtent_r.c: Likewise.
969         * inet/getprtname.c: Likewise.
970         * inet/getprtname_r.c: Likewise.
971         * inet/getrpcbyname.c: Likewise.
972         * inet/getrpcbyname_r.c: Likewise.
973         * inet/getrpcbynumber.c: Likewise.
974         * inet/getrpcbynumber_r.c: Likewise.
975         * inet/getrpcent.c: Likewise.
976         * inet/getrpcent_r.c: Likewise.
977         * inet/getaliasent.c: Likewise.
978         * inet/getaliasent_r.c: Likewise.
979         * inet/getaliasname.c: Likewise.
980         * inet/getaliasname_r.c: Likewise.
981         * nscd/getgrgid_r.c: Likewise.
982         * nscd/getgrnam_r.c: Likewise.
983         * nscd/gethstbyad_r.c: Likewise.
984         * nscd/gethstbynm3_r.c: Likewise.
985         * nscd/getpwnam_r.c: Likewise.
986         * nscd/getpwuid_r.c: Likewise.
987         * nscd/getsrvbynm_r.c: Likewise.
988         * nscd/getsrvbypt_r.c: Likewise.
989         * nscd/gai.c: Likewise.
990
991         * configure.in (build_nscd): New substituted variable, set
992         by --disable-build-nscd and defaults to $use_nscd.
993         * configure: Regenerated.
994         * config.make.in (build-nscd): New substituted variable.
995         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
996         Change conditional to require [$(build-nscd) = yes] as well.
997         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
998
999         [BZ# 13696]
1000         * configure.in (use_nscd): New substituted variable, set by
1001         --disable-nscd.  If enabled, define USE_NSCD.
1002         * configure: Regenerated.
1003         * config.h.in: Add USE_NSCD.
1004         * config.make.in (use-nscd): New substituted variable.
1005         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1006         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1007         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1008         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1009         (CFLAGS-getgrnam_r.c): Likewise.
1010         (CFLAGS-initgroups.c): Likewise.
1011         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1012         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1013         Variables removed.
1014         * inet/getnetgrent_r.c
1015         (nscd_setnetgrent): New function, broken out of ...
1016         (setnetgrent): ... here.  Call it.
1017         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1018         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1019         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1020         * nscd/Makefile (routines, aux): Move definitions after include of
1021         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1022         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1023         Conditionalize on [USE_NSCD].
1024         (is_nscd, nscd_init_cb): Likewise.
1025         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1026         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1027         * nss/nss_db/db-init.c: Likewise.
1028         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1029         [USE_NSCD].
1030         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1031         (make_request): Use it.
1032         (cache_valid_p): New function.
1033         (__check_pf): Use it.
1034         * NEWS: Add item for --disable-nscd.
1035
1036 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1037
1038         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1039         to support sed >= 4.2.1-20-ga9bf076.
1040         * configure: Regenerated.
1041
1042 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1043
1044         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1045         Conditionalize whole body on [IREL].
1046
1047 2012-08-22  Jeff Law <law@redhat.com>
1048
1049         [BZ #14505]
1050         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1051         if the family is PF_UNSPEC.
1052
1053 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1054
1055         * Makerules (lib-version): Rename from V.
1056         (install-lib-nosubdir): Change V to lib-version.
1057
1058 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1059
1060         [BZ #14252]
1061         * powerpc32/power6/wcschr.c: New file.
1062         * powerpc32/power6/wcscpy.c: New file.
1063         * powerpc32/power6/wcsrchr.c: New file.
1064         * powerpc64/power6/wcschr.c: New file.
1065         * powerpc64/power6/wcscpy.c: New file.
1066         * powerpc64/power6/wcsrchr.c: New file.
1067
1068 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1069
1070         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1071         (two_way_short_needle): Use it.
1072         * string/strstr.c (AVAILABLE1_USES_J): Define.
1073         * string/strcasestr.c: Likewise.
1074
1075         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1076         array references.
1077         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1078
1079         [BZ #11607]
1080         * NEWS: Add an entry.
1081         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1082         define their defaults.
1083         (two_way_short_needle): Detect end-of-string on-the-fly.
1084         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1085         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1086         * string/bug-strcasestr1.c: New test.
1087         * string/Makefile: Run it.
1088
1089 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1090
1091         [BZ #11607]
1092         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1093         the first character.
1094
1095 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1096
1097         * csu/elf-init.c (__libc_csu_irel): Function removed.
1098         * csu/libc-start.c (apply_irel): New function.
1099         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1100
1101 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1102
1103         * sysdeps/unix/sysv/linux/kernel-features.h
1104         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1105         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1106         <kernel-features.h>.
1107         [__NR_fadvise64_64]: Make code unconditional.
1108         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1109         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1110         !__NR_fadvise64_64)]: Likewise.
1111         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1112         !__NR_fadvise64_64))]: Likewise.
1113         [__NR_fadvise64]: Make code unconditional.
1114         [!__NR_fadvise64]: Remove conditional code.
1115         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1116         <kernel-features.h>.
1117         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1118         unconditional.
1119         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1120         conditional code.
1121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1122         not include <kernel-features.h>.
1123         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1124         unconditional.
1125         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1126         conditional code.
1127         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1128         include <kernel-features.h>.
1129         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1130         unconditional.
1131         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1132         conditional code.
1133
1134 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1135
1136         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1137         slight instruction rearrangements per scrollpipe analysis.
1138         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1139
1140 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1141
1142         * manual/syslog.texi (syslog; vsyslog, closelog):
1143         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1144         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1145
1146         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1147         DSOCAPS to match condition on defining it.
1148
1149 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1150
1151         * sysdeps/unix/sysv/linux/kernel-features.h
1152         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1154         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1155         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1157         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1158         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1160         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1161         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1162
1163         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1164         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1165
1166         * sysdeps/unix/sysv/linux/kernel-features.h
1167         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1168         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1169         unconditional.
1170         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1171         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1172         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1173         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1174         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1175         Make code unconditional.
1176         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1177         (__mmap64) [!__NR_mmap2]: Likewise.
1178         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1179         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1180         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1181         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1182         [__NR_mmap2]: Make code unconditional.
1183         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1184         (__mmap64) [!__NR_mmap2]: Likewise.
1185
1186 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1187
1188         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1189
1190 2012-08-18  Andreas Jaeger  <aj@suse.de>
1191
1192         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1193
1194 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1195
1196         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1197         * include/unistd.h (__have_sock_cloexec): Likewise.
1198         (__have_pipe2): Likewise.
1199         (__have_dup3): Likewise.
1200
1201 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1202
1203         [BZ #9685]
1204         * include/unistd.h (__have_pipe2): Change define into an extern int.
1205         (__have_dup3): Likewise.
1206         * socket/have_sock_cloexec.c: Include fcntl.h.
1207         (__have_pipe2): New variable.
1208         (__have_dup3): Likewise.
1209
1210 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1211
1212         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1213
1214 2012-08-17  Marek Polacek  <polacek@redhat.com>
1215
1216         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1217         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1218
1219 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1220
1221         * configure.in: Add AC_SUBST for sysheaders.
1222         * configure: Regenerated.
1223         * config.make.in (sysheaders): New substituted variable.
1224
1225         * sysdeps/unix/mkfifo.c: Moved ...
1226         * sysdeps/posix/mkfifo.c: ... here.
1227         * sysdeps/unix/mkfifoat.c: Moved ...
1228         * sysdeps/posix/mkfifoat.c: ... here.
1229
1230         * sysdeps/unix/utime.c: Moved ...
1231         * sysdeps/posix/utime.c: ... here.
1232
1233         * sysdeps/unix/time.c: Moved ...
1234         * sysdeps/posix/time.c: ... here.
1235         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1236         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1237
1238         * sysdeps/unix/nice.c: Moved ...
1239         * sysdeps/posix/nice.c: ... here.
1240
1241         * sysdeps/unix/alarm.c: Moved ...
1242         * sysdeps/posix/alarm.c: ... here.
1243
1244         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1245
1246 2012-08-17  Jeff Law <law@redhat.com>
1247
1248         * intl/Makefile (codeset_mo): New variable.
1249         ($(codeset_mo)): New target.
1250         (tst-codeset.out): Depend on that.  Remove explicit rule.
1251         (tst-gettext3.out, tst-gettext5.out): Likewise.
1252         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1253         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1254         * intl/tst-codeset.sh: Remove.
1255         * intl/tst-gettext3.sh: Likewise.
1256         * intl/tst-gettext5.sh: Likewise.
1257
1258 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1259
1260         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1261         * sysdeps/unix/syscalls.list: ... here.
1262
1263         * sysdeps/posix/getaddrinfo.c
1264         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1265         (gaiconf_init, gaiconf_reload): Use them.
1266         [!_STATBUF_ST_NSEC]
1267         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1268         Define using time_t rather than struct timespec.
1269
1270         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1271         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1272         Macros removed.
1273         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1274         [!NO_THREADS].
1275         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1276         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1277         Likewise.
1278
1279         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1280         __libc_cleanup_push argument.
1281
1282         * bits/param.h: New file.
1283         * misc/sys/param.h: New file.
1284         * include/sys/param.h: New file.
1285         * misc/Makefile (headers): Add bits/param.h.
1286         * sysdeps/generic/sys/param.h: File removed.
1287         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1288         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1289         * sysdeps/mach/hurd/bits/param.h: New file.
1290         * sysdeps/mach/hurd/sys/param.h: New file.
1291
1292         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1293         last change.
1294
1295         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1296         [_IO_MTSAFE_IO].
1297         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1298         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1299         New macros.
1300
1301         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1302         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1303         rather than -D_IO_MTSAFE_IO conditionally.
1304         * stdio-common/Makefile (CPPFLAGS): Likewise.
1305         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1306         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1307         Use $(libio-mtsafe).
1308         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1309         of -D_IO_MTSAFE_IO.
1310         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1311         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1312         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1313         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1314         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1315         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1316         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1317         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1318         (CFLAGS-fread_u_chk.c): Likewise.
1319         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1320         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1321         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1322         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1323         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1324         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1325         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1326         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1327         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1328
1329         * libio/Makefile: Test [$(libc-reentrant) = yes]
1330         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1331
1332         * Makeconfig
1333         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1334         * sysdeps/pthread/configure: File removed.
1335         * sysdeps/pthread/Makeconfig: New file.
1336         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1337         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1338
1339 2012-08-16  Gary Benson  <gbenson@redhat.com>
1340
1341         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1342         unmapping the first object in a namespace.
1343
1344 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1345
1346         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1347         (__internal_setnetgrent): ... this.  Add internal_function to
1348         definition.  Add libc_hidden_def.
1349         (setnetgrent): Update caller.
1350         (internal_endnetgrent): Renamed to ...
1351         (__internal_endnetgrent): ... this.  Add internal_function to
1352         definition.  Add libc_hidden_def.
1353         (endnetgrent): Update caller.
1354         (internal_getnetgrent_r): Renamed to ...
1355         (__internal_getnetgrent_r): ... this.  Add internal_function to
1356         definition.  Add libc_hidden_def.
1357         (__getnetgrent_r): Update caller.
1358         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1359
1360 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1361
1362         * stdlib/longlong.h: Update from GCC.
1363
1364 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1365
1366         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1367         on _QL, which is set by umul_ppmm but never used.
1368         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1369         variables, which are set by GMP macros but never used.
1370         * stdio-common/_itowa.c (_itowa): Likewise.
1371         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1372         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1373
1374 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1375
1376         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1377         struct La_sh_regs is not constant.
1378         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1379         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1380         and struct La_sparc64_regs are not constant.
1381
1382 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1383
1384         * sysdeps/unix/sysv/linux/kernel-features.h
1385         (__ASSUME_POSIX_TIMERS): Remove.
1386         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1387         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1388         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1389         Make code unconditional.
1390         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1391         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1392         Make code unconditional.
1393         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1394         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1395         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1396         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1397         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1398         Make code unconditional.
1399         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1400         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1401         (__libc_missing_posix_timers): Remove.
1402
1403 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1404
1405         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1406         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1407
1408         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1409
1410         * elf/dl-sym.c: Include <stdlib.h>.
1411
1412         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1413         constants, which avoids warnings in 32-bit builds.
1414
1415         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1416         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1417
1418         * misc/lseek.c: File moved to ...
1419         * io/lseek.c: ... here.
1420
1421         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1422
1423         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1424         shifting LEN more than 31 bits at once.
1425
1426 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1427
1428         [BZ #14195]
1429         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1430         segmentation fault for a case of two empty input strings.
1431         * string/test-strncasecmp.c (check1): Renamed to...
1432         (bz12205): ...this.
1433         (bz14195): Add new testcase for two empty input strings and N > 0.
1434         (test_main): Call new testcase, adapt for renamed function.
1435
1436 2012-08-15  Andreas Jaeger  <aj@suse.de>
1437
1438         [BZ #14090]
1439         * crypt/md5test2.c: New test, based on test supplied by Serge
1440         Belyshev <belyshev@depni.sinp.msu.ru>.
1441         * crypt/Makefile (xtests): Add md5test-giant..
1442         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1443
1444 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1445
1446         [BZ #14090]
1447         * crypt/md5.c (md5_process_block): Don't assume the buffer
1448         length is less than 2**32.
1449         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1450         length is less than 2**64.
1451
1452 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1453
1454         * string/str-two-way.h: Include <sys/param.h>.
1455         (MAX): Macro removed.
1456
1457         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1458         Move #define and #undef of memmove to just before and after
1459         including <string.h>.
1460
1461         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1462         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1463         and after including <string.h>.  Move declarations of
1464         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1465         to before #include "string/memmove.c".
1466
1467         * include/dirent.h: Declare __getdirentries.
1468
1469         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1470         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1471
1472 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1473
1474         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1475         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1476         * sysdeps/i386/configure: Regenerated.
1477         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1478         STABS_CURRENT_FILE, and STABS_FUN.
1479         (END): Remove call to STABS_FUN_END.
1480         (STABS_CURRENT_FILE1): Delete.
1481         (STABS_CURRENT_FILE): Likewise.
1482         (STABS_FUN): Likewise.
1483         (STABS_FUN_END): Likewise.
1484         (STABS_FUN2): Likewise.
1485         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1486         * sysdeps/x86_64/configure: Regenerated.
1487
1488 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1489
1490         * elf/dl-open.c: Include <atomic.h>.
1491         * elf/dl-lookup.c: Likewise.
1492
1493 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1494
1495         * sysdeps/unix/sysv/linux/kernel-features.h
1496         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1497         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1498         unconditionally.
1499         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1500         unconditionally.
1501         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1502         condition on __ASSUME_CLONE_THREAD_FLAGS.
1503
1504 2012-08-14  Andreas Jaeger  <aj@suse.de>
1505
1506         * sysdeps/i386/fpu/libm-test-ulps: Update.
1507
1508 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1509
1510         * include/atomic.h (atomic_exchange_and_add): Split into ...
1511         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1512         New atomic macros.
1513
1514 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1515
1516         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1517
1518 2012-08-13  Jeff Law <law@redhat.com>
1519
1520         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1521         null byte in the output string.
1522
1523 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1524
1525         * sysdeps/unix/sysv/linux/kernel-features.h
1526         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1527         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1528         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1529         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1530         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1531         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1532         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1533
1534 2012-08-09  Jeff Law <law@redhat.com>
1535
1536         [BZ #13939]
1537         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1538         When avoid_arena is set, don't retry in the that arena.  Pick the
1539         next one, whatever it might be.
1540         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1541         (arena_lock): Pass in new parameter to arena_get2.
1542         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1543         arena_get2.
1544         (__libc_malloc): Unify retrying after main arena failure with
1545         __libc_memalign version.
1546         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1547
1548 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1549
1550         [BZ #14166]
1551         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1552         to __redirect_strstr.
1553         (__strstr_sse42): Use typeof __redirect_strstr.
1554         (__strstr_ia32): Likewise.
1555         (__libc_strstr): New prototype.
1556         (strstr): Renamed to ...
1557         (__libc_strstr): This.
1558         (strstr): New strong alias of __libc_strstr.
1559         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1560         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1561         __redirect_time.
1562         Include <time.h>.
1563         (__libc_time): New prototype.
1564         (time_ifunc): Replace time with __libc_time.
1565         (time): New strong alias and hidden definition of __libc_time.
1566         (__GI_time): Remove strong alias.
1567         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1568         Include <stddef.h>.
1569         (memmove): Redefined to __redirect_memmove.
1570         (__memmove_sse2): Use typeof __redirect_memmove.
1571         (__memmove_ssse3): Likewise.
1572         (__memmove_ssse3_back): Likewise.
1573         (__libc_memmove): New prototype.
1574         (memmove): Renamed to ...
1575         (__libc_memmove): This.
1576         (memmove): New strong alias of __libc_memmove.
1577
1578 2012-08-08  Mark Salter  <msalter@redhat.com>
1579
1580         * elf/elf.h
1581         (R_MN10300_TLS_GD): Define.
1582         (R_MN10300_TLS_LD): Likewise.
1583         (R_MN10300_TLS_LDO): Likewise.
1584         (R_MN10300_TLS_GOTIE): Likewise.
1585         (R_MN10300_TLS_IE): Likewise.
1586         (R_MN10300_TLS_LE): Likewise.
1587         (R_MN10300_TLS_DTPMOD): Likewise.
1588         (R_MN10300_TLS_DTPOFF): Likewise.
1589         (R_MN10300_TLS_TPOFF): Likewise.
1590         (R_MN10300_SYM_DIFF): Likewise.
1591         (R_MN10300_ALIGN): Likewise.
1592         (R_MN10300_NUM): Update.
1593
1594 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1595
1596         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1597         Remove.
1598
1599 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1600
1601         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1602
1603         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1604         sysdeps/unix -> sysdeps/posix move.
1605         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1606
1607 2012-08-07      Allan McRae     <allan@archlinux.org>
1608
1609         [BZ #14303]
1610         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1611         (SUNOS_CPP): Likewise.
1612         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1613         not found.
1614         (open_input): Call CPP using execvp.
1615
1616 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1617
1618         * sysdeps/unix/sysv/linux/kernel-features.h
1619         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1620         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1621         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1622         (__ASSUME_WAITID_SYSCALL): Likewise.
1623         * sysdeps/unix/sysv/linux/dl-execstack.c
1624         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1625         code unconditional.
1626         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1627         conditional code.
1628         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1629         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1630         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1631         code.
1632         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1633         unconditional.
1634         [__ASSUME_WAITID_SYSCALL]: Likewise.
1635         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1636
1637 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1638
1639         * sysdeps/unix/closedir.c: Renamed to ...
1640         * sysdeps/posix/closedir.c: ... here.
1641         * sysdeps/unix/dirfd.c: Renamed to ...
1642         * sysdeps/posix/dirfd.c: ... here.
1643         * sysdeps/unix/dirstream.h: Renamed to ...
1644         * sysdeps/posix/dirstream.h: ... here.
1645         * sysdeps/unix/fdopendir.c: Renamed to ...
1646         * sysdeps/posix/fdopendir.c: ... here.
1647         * sysdeps/unix/opendir.c: Renamed to ...
1648         * sysdeps/posix/opendir.c: ... here.
1649         * sysdeps/unix/readdir.c: Renamed to ...
1650         * sysdeps/posix/readdir.c: ... here.
1651         * sysdeps/unix/readdir_r.c: Renamed to ...
1652         * sysdeps/posix/readdir_r.c: ... here.
1653         * sysdeps/unix/rewinddir.c: Renamed to ...
1654         * sysdeps/posix/rewinddir.c: ... here.
1655         * sysdeps/unix/seekdir.c: Renamed to ...
1656         * sysdeps/posix/seekdir.c: ... here.
1657         * sysdeps/unix/telldir.c: Renamed to ...
1658         * sysdeps/posix/telldir.c: ... here.
1659         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1660         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1661         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1662         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1663
1664         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1665         * bits/fcntl.h: ... here.
1666
1667         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1668         not 0.
1669         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1670         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1671         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1672         (struct flock): Move l_start, l_len to the beginning.
1673         Use __pid_t for l_pid.
1674         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1675         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1676         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1677         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1678         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1679         [__USE_LARGEFILE64] (struct flock64): New type.
1680         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1681
1682         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1683         * bits/dirent.h: ... here.
1684
1685         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1686         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1687
1688 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1689
1690         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1691         Change from 2.6.0 to 2.6.16.
1692         * sysdeps/unix/sysv/linux/configure: Regenerated.
1693         * sysdeps/unix/sysv/linux/kernel-features.h
1694         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1695         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1696         version.
1697         (__ASSUME_UTIMES): Likewise.
1698         (__ASSUME_CLONE_STOPPED): Remove.
1699         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1700         architectures, not kernel version.
1701         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1702         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1703         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1704         (__ASSUME_WAITID_SYSCALL): Likewise.
1705         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1706         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1707         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1708         refer to older versions.
1709
1710 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1711
1712         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1713         Define alphasort64 as an alias.
1714         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1715         Define versionsort64 as an alias.
1716         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1717         Define scandir64 as an alias.
1718         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1719         Define scandirat64 as an alias.
1720         * dirent/alphasort64.c (alphasort64):
1721         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1722         * dirent/versionsort64.c: Likewise.
1723         * dirent/scandir64.c: Likewise.
1724         * dirent/scandirat64.c: Likewise.
1725         * sysdeps/wordsize-64/alphasort.c: File removed.
1726         * sysdeps/wordsize-64/alphasort64.c: File removed.
1727         * sysdeps/wordsize-64/scandir.c: File removed.
1728         * sysdeps/wordsize-64/scandir64.c: File removed.
1729         * sysdeps/wordsize-64/scandirat.c: File removed.
1730         * sysdeps/wordsize-64/scandirat64.c: File removed.
1731         * sysdeps/wordsize-64/versionsort.c: File removed.
1732         * sysdeps/wordsize-64/versionsort64.c: File removed.
1733         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1734         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1735         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1736         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1737         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1738         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1739         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1740         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1741
1742         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1743         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1744         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1745         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1746         [defined __arch64__ || defined __sparcv9]
1747         (__INO_T_MATCHES_INO64_T): New macro.
1748         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1749         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1750         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1751         * sysdeps/unix/sysv/linux/bits/dirent.h
1752         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1753         (_DIRENT_MATCHES_DIRENT64): New macro.
1754
1755         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1756         Define lockf64 as an alias.
1757         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1758         Define fseeko64 as an alias.
1759         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1760         Define ftello64 as an alias.
1761         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1762         Define _IO_fgetpos64 and fgetpos64 as aliases.
1763         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1764         Define _IO_fsetpos64 and fsetpos64 as aliases.
1765         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1766         Conditionalize body on this.
1767         * libio/fseeko64.c: Likewise.
1768         * libio/ftello64.c: Likewise.
1769         * libio/iofgetpos64.c: Likewise.
1770         * libio/iofsetpos64.c: Likewise.
1771         * sysdeps/wordsize-64/lockf.c: File removed.
1772         * sysdeps/wordsize-64/lockf64.c: File removed.
1773         * sysdeps/wordsize-64/fseeko.c: File removed.
1774         * sysdeps/wordsize-64/fseeko64.c: File removed.
1775         * sysdeps/wordsize-64/ftello.c: File removed.
1776         * sysdeps/wordsize-64/ftello64.c: File removed.
1777         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1778         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1779         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1780         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1781         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1782         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1783         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1784         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1785         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1786         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1787         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1788         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1789         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1790         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1791
1792         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1793         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1794         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1795         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1796         [defined __arch64__ || defined __sparcv9]
1797         (__OFF_T_MATCHES_OFF64_T): New macro.
1798         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1799         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1800         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1801         (__OFF_T_MATCHES_OFF64_T): New macro.
1802
1803 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1804
1805         * stdlib/secure-getenv.c (__secure_getenv): Replace
1806         GLIBC_2_16 with GLIBC_2_17.
1807
1808 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1809
1810         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1811         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1812
1813 2012-08-03  David S. Miller  <davem@davemloft.net>
1814
1815         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1816
1817 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1818
1819         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1820         Remove.
1821         (__ASSUME_CORRECT_SI_PID): Likewise.
1822         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1823         (__ASSUME_TMPFS_NAME): Likewise.
1824         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1825         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1826         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1827         (HAVE_AUX_SECURE): Make definition unconditional.
1828         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1829         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1830
1831 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1832
1833         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1834         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1835         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1836         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1837         __eloop_threshold instead of SYMLOOP_MAX.
1838
1839         * sysdeps/generic/eloop-threshold.h: New file.
1840         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1841         of MAXSYMLINKS.
1842         * elf/chroot_canon.c (chroot_canon): Likewise.
1843
1844 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1845
1846         [BZ #13717]
1847         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1848         Change to 2.6.0 everywhere.
1849         * sysdeps/unix/sysv/linux/configure: Regenerated.
1850         * sysdeps/unix/sysv/linux/kernel-features.h
1851         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1852         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1853         kernel versions.
1854         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1855         (__ASSUME_FUTEX_REQUEUE): Remove.
1856         (__ASSUME_STATFS64): Define unconditionally.
1857         (__ASSUME_AT_SECURE): Likewise.
1858         (__ASSUME_CORRECT_SI_PID): Likewise.
1859         (__ASSUME_TGKILL): Define without depending on kernel version for
1860         i386.
1861         (__ASSUME_UTIMES): Likewise.
1862         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1863         kernel version.
1864         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1865         (__ASSUME_TMPFS_NAME): Likewise.
1866         * README: Update reference to Linux kernel versions.
1867
1868 2012-08-02  Marek Polacek  <polacek@redhat.com>
1869
1870         [BZ# 14150]
1871         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1872         libc_cv_asm_type_prefix with %.
1873         * configure: Regenerated.
1874         * include/libc-symbols.h: Remove comment about
1875         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1876         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1877         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1878         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1879         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1880         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1881         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1882         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1883         * elf/tst-unique2mod1.c: Likewise.
1884         * elf/tst-unique1mod2.c: Likewise.
1885         * elf/tst-unique1mod1.c: Likewise.
1886         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1887         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1888         Replace ASM_TYPE_DIRECTIVE with .type.
1889         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1890         * sysdeps/i386/sysdep.h: Likewise.
1891         * sysdeps/x86_64/sysdep.h: Likewise.
1892         * sysdeps/sh/sysdep.h: Likewise.
1893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1894         Do not define ASM_TYPE_DIRECTIVE.
1895         * sysdeps/powerpc/sysdep.h: Likewise.
1896         * sysdeps/powerpc/powerpc32/sysdep.h:
1897         Replace ASM_TYPE_DIRECTIVE with .type.
1898         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1899         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1900         * sysdeps/i386/fpu/e_powf.S: Likewise.
1901         * sysdeps/i386/fpu/e_expl.S: Likewise.
1902         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1903         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1904         * sysdeps/i386/fpu/e_pow.S: Likewise.
1905         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1906         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1907         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1908         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1909         * sysdeps/i386/fpu/e_log2.S: Likewise.
1910         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1911         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1912         * sysdeps/i386/fpu/e_powl.S: Likewise.
1913         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1914         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1915         * sysdeps/i386/fpu/e_logl.S: Likewise.
1916         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1917         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1918         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1919         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1920         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1921         * sysdeps/i386/fpu/e_log.S: Likewise.
1922         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1923         * sysdeps/i386/fpu/e_logf.S: Likewise.
1924         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1925         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1926         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1927         * sysdeps/i386/fpu/e_log10.S: Likewise.
1928         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1929         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1930         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1931         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1932         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1933         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1934         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1935         * sysdeps/i386/i686/strtok.S: Likewise.
1936         * sysdeps/i386/i386-mcount.S: Likewise.
1937         * sysdeps/i386/strtok.S: Likewise.
1938         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1939         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1940         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1941         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1942         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1943         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1944         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1945         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1946         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1947         * sysdeps/x86_64/_mcount.S: Likewise.
1948         * sysdeps/x86_64/strtok.S: Likewise.
1949         * sysdeps/sh/_mcount.S: Likewise.
1950
1951 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1952
1953         * libio/iofopen.c: Include <fcntl.h>.
1954         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1955         (_IO_fopen64, fopen64): Define as aliases.
1956         * libio/iofopen64.c: Include <fcntl.h>.
1957         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1958         Conditionalize body on this.
1959         * sysdeps/wordsize-64/iofopen.c: File removed.
1960         * sysdeps/wordsize-64/iofopen64.c: File removed.
1961
1962 2012-08-01  Marek Polacek  <polacek@redhat.com>
1963
1964         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1965         Use dlfcn directly instead of a variable.
1966         (binfmt-subdir): Do not define.
1967         (dlfcn): Likewise.
1968
1969 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1970
1971         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1972         Remove all definitions.
1973         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1974         <kernel-features.h>.
1975         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1976         (miss_F_GETOWN_EX): Remove all definitions.
1977         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1978         macro definition.
1979         [!__ASSUME_FCNTL64]: Remove conditional code.
1980         [__ASSUME_FCNTL64]: Make code unconditional.
1981         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1982         <kernel-features.h>.
1983         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1984         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1985         (lockf64) [__NR_fcntl64]: Make code unconditional.
1986         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1987
1988         * sysdeps/unix/sysv/linux/kernel-features.h
1989         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1990         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1991         Make code unconditional.
1992         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1993         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1995         [__NR_vfork]: Make code unconditional.
1996         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1997         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1999         [__NR_vfork]: Make code unconditional.
2000         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2001         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2002
2003 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2004
2005         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2006         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2007
2008         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2009         Define mkstemp64 as an alias.
2010         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2011         Define mkstemps64 as an alias.
2012         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2013         Define mkostemp64 as an alias.
2014         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2015         Define mkostemps64 as an alias.
2016         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2017         Conditionalize body on this.
2018         * misc/mkostemp64.c: Likewise.
2019         * misc/mkostemps64.c: Likewise.
2020         * misc/mkstemps64.c: Likewise.
2021         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2022         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2023         * sysdeps/wordsize-64/mkostemp.c: File removed.
2024         * sysdeps/wordsize-64/mkstemp.c: File removed.
2025         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2026         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2027         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2028         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2029
2030         [BZ #14138]
2031         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2032         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2033         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2034         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2035
2036         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2037         compat_symbol macros from <shlib-compat.h> rather than the underlying
2038         default_symbol_version and symbol_version macros, so that DEFAULT
2039         lines in shlib-versions are respected.
2040         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2041
2042 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2043
2044         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2045         Declare with warn_unused_result.
2046         (setgid, setregid, setegid, setresgid): Likewise.
2047         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2048         Likewise.
2049         * WUR-REPORT: Remove set*id functions.
2050
2051 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2052
2053         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2054
2055 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2056
2057         * include/sys/socket.h (__libc_accept, __libc_accept4):
2058         Add attribute_hidden.
2059         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2060
2061         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2062         use of PTR_MANGLE.
2063         * inet/getnetgrent_r.c (setup): Likewise.
2064
2065         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2066
2067 2012-07-31  David S. Miller  <davem@davemloft.net>
2068
2069         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2070
2071 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2072
2073         [BZ #13629]
2074         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2075         value between 1.0 and 2.0 and smaller part has absolute value less
2076         than 1.0.
2077         * math/s_clog10.c (__clog10): Likewise.
2078         * math/s_clog10f.c (__clog10f): Likewise.
2079         * math/s_clog10l.c (__clog10l): Likewise.
2080         * math/s_clogf.c (__clogf): Likewise.
2081         * math/s_clogl.c (__clogl): Likewise.
2082         * math/libm-test.inc (clog_test): Add more tests.
2083         (clog10_test): Likewise.
2084         * sysdeps/i386/fpu/libm-test-ulps: Update.
2085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2086
2087 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2088
2089         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2090         Exit with zero in case no suitable GID is found, and write a
2091         message to standard error.
2092
2093 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2094
2095         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2096         rather than to 1.
2097         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2098         (MAXPATHLEN): Removed.
2099         (NOGROUP, NODEV): New macros.
2100         (setbit, clrbit, isset, isclr): New macros.
2101         (howmany, roundup, powerof2): New macros.
2102         (DEV_BSIZE): New macro.
2103
2104         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2105         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2106
2107         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2108         definition on [!__NO_LONG_DOUBLE_MATH].
2109
2110         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2111         PTR_MANGLE and PTR_DEMANGLE.
2112
2113         * socket/accept4.c (accept4): Rename to __libc_accept4.
2114         Define accept4 as a weak alias.
2115
2116         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2117         on [_DIRENT_HAVE_D_TYPE].
2118         * io/ftw.c (ftw_dir): Likewise.
2119
2120         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2121
2122         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2123
2124         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2125         Use the BSD numbers rather than the arbitrary ones we had.
2126         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2127         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2128         (SIGXCPU, SIGXFSZ): New macros.
2129         (_NSIG): Now 32.
2130
2131         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2132         initializer on [_LIBC_REENTRANT].
2133
2134         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2135         definitions inside [_POSIX_MAPPED_FILES].
2136
2137         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2138
2139         * dirent/opendir.c: Include <fcntl.h>.
2140
2141         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2142         (__libc_getspecific): Likewise.
2143         (__libc_key_create): Likewise.
2144
2145         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2146         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2147         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2148         (tmpfile64): Define as alias.
2149         * sysdeps/wordsize-64/tmpfile.c: File removed.
2150         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2151         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2152         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2153
2154         * stdio-common/vfscanf.c: Include <stdbool.h>.
2155         * nss/makedb.c: Likewise.
2156         * stdio-common/_i18n_number.h: Likewise.
2157         * argp/argp-help.c: Likewise.
2158         * posix/wordexp.c: Likewise.
2159         * sysdeps/posix/spawni.c: Likewise.
2160         * nss/nss_files/files-initgroups.c: Likewise.
2161         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2162         * nss/nss_files/files-initgroups.c: Likewise.
2163         * nss/nss_db/db-netgrp.c: Likewise.
2164         * nss/nss_db/db-initgroups.c: Likewise.
2165         * io/fchmodat.c: Include <sys/stat.h>.
2166
2167         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2168         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2169
2170         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2171         [HAVE_MMAP].
2172
2173         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2174         Add multiple inclusion protection.
2175
2176 2012-07-27  David S. Miller  <davem@davemloft.net>
2177
2178         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2179
2180 2012-07-27  Gary Benson  <gbenson@redhat.com>
2181
2182         [BZ #14298]
2183         * elf/rtld.c: Include <stap-probe.h>.
2184         (dl_main): Added static probes "init_start" and "init_complete".
2185         * elf/dl-load.c: Include <stap-probe.h>.
2186         (lose): Take new parameter "nsid".
2187         Added static probe "map_failed".
2188         (_dl_map_object_from_fd): Pass namespace id to lose.
2189         Added static probe "map_start".
2190         (open_verify): Pass namespace id to lose.
2191         * elf/dl-open.c: Include <stap-probe.h>.
2192         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2193         and "reloc_complete".
2194         * elf/dl-close.c: Include <stap-probe.h>.
2195         (_dl_close_worker): Added static probes "unmap_start" and
2196         "unmap_complete".
2197         * elf/rtld-debugger-interface.txt: New file documenting the above.
2198
2199 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2200
2201         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2202         rather than a string variable.
2203         * sunrpc/rpc_main.c (h_output): Likewise.
2204         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2205
2206 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2207
2208         * inet/check_native.c: New file.
2209
2210 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2211
2212         [BZ #13629]
2213         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2214         if larger part has absolute value 1.0.
2215         * math/s_clog10.c (__clog10): Likewise.
2216         * math/s_clog10f.c (__clog10f): Likewise.
2217         * math/s_clog10l.c (__clog10l): Likewise.
2218         * math/s_clogf.c (__clogf): Likewise.
2219         * math/s_clogl.c (__clogl): Likewise.
2220         * math/libm-test.inc (clog_test): Add more tests.
2221         (clog10_test): Likewise.
2222         * sysdeps/i386/fpu/libm-test-ulps: Update.
2223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2224
2225         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2226         (pltexit): Likewise.
2227         (La_regs): Likewise.
2228         (La_retval): Likewise.
2229         (int_retval): Likewise.
2230         Update #error for removed macros to refer only to definitions in
2231         tst-audit.h.
2232         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2233         macro.
2234         (pltexit): Likewise.
2235         (La_regs): Likewise.
2236         (La_retval): Likewise.
2237         (int_retval): Likewise.
2238         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2239         macro.
2240         (pltexit): Likewise.
2241         (La_regs): Likewise.
2242         (La_retval): Likewise.
2243         (int_retval): Likewise.
2244         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2245         macro.
2246         (pltexit): Likewise.
2247         (La_regs): Likewise.
2248         (La_retval): Likewise.
2249         (int_retval): Likewise.
2250         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2251         macro.
2252         (pltexit): Likewise.
2253         (La_regs): Likewise.
2254         (La_retval): Likewise.
2255         (int_retval): Likewise.
2256         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2257         macro.
2258         (pltexit): Likewise.
2259         (La_regs): Likewise.
2260         (La_retval): Likewise.
2261         (int_retval): Likewise.
2262         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2263         macro.
2264         (pltexit): Likewise.
2265         (La_regs): Likewise.
2266         (La_retval): Likewise.
2267         (int_retval): Likewise.
2268         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2269         macro definitions in tst-audit.h.
2270         * sysdeps/i386/tst-audit.h: New file.
2271         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2272         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2273         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2274         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2275         * sysdeps/sh/tst-audit.h: Likewise.
2276         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2277         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2278         * sysdeps/x86_64/tst-audit.h: Likewise.
2279
2280 2012-07-26  Andreas Jaeger  <aj@suse.de>
2281
2282         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2283         ptrace.
2284
2285         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2286         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2287         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2288         PTRACE_O_MASK.
2289         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2290         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2291         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2292
2293         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2294         value.
2295
2296         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2297         _sigsys.
2298         (si_call_addr, si_syscall, si_arch): Define new macro.
2299         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2300         _sigsys.
2301         (si_call_addr, si_syscall, si_arch): Define new marcro.
2302         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2303         _sigsys.
2304         (si_call_addr, si_syscall, si_arch): Define new macro.
2305         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2306         _sigsys.
2307         (si_call_addr, si_syscall, si_arch): Define new macro.
2308
2309 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2310
2311         [BZ #13717]
2312         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2313         Change to 2.4.21 where previously 2.4.1.
2314         * sysdeps/unix/sysv/linux/configure: Regenerated.
2315         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2316         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2317         Linux kernel version.
2318         (__ASSUME_STD_AUXV): Remove.
2319         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2320         kernel version.
2321         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2322         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2323         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2324         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2325         (__ASSUME_NETLINK_SUPPORT): Likewise.
2326         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2327         (__no_netlink_support): Remove conditional definition.
2328         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2329         Remove.
2330         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2331         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2332         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2333         (if_nameindex_ioctl): Remove.
2334         (if_nameindex_netlink): Do not handle __no_netlink_support.
2335         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2336         code.
2337         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2338         Remove conditional code.
2339         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2340         code.
2341         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2342         unconditional.
2343         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2344         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2345         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2346         Remove.
2347         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2348         [!__ASSUME_STD_AUXV]: Remove conditional code.
2349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2350         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2351         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2353         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2354         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2355         code.
2356         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2358         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2359         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2360         conditional code.
2361         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2363         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2364         code.
2365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2366         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2367         conditional code.
2368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2369         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2370         code unconditional.
2371         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2372         conditional code.
2373         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2374         unconditional.
2375         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2376         conditional code.
2377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2378         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2379         unconditional.
2380         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2381         conditional code.
2382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2383         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2384         code unconditional.
2385         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2386         conditional code.
2387         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2388         unconditional.
2389         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2390         conditional code.
2391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2392         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2393         code unconditional.
2394         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2395         conditional code.
2396         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2397         unconditional.
2398         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2399         conditional code.
2400
2401 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2402
2403         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2404         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2405         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2406         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2407         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2408         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2409         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2410         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2411         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2412         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2413         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2414         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2415         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2416         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2417         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2418         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2419         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2420         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2421         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2422         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2423         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2424         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2425         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2426
2427 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2428
2429         * Versions.def: Add GLIBC_2.17.
2430         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2431         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2432         Introduce __libc_secure_getenv.
2433         * stdlib/Versions (2.17): Add secure_getenv
2434         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2435         * stdlib/secure-getenv.c: Rename __secure_getenv to
2436         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2437         symbol __secure_getenv for GLIBC_2.0.
2438         * stdlib/tst-secure-getenv.c: New.
2439         * stdlib/Makefile (tests): Add testcase.
2440         * manual/startup.texi (Environment Access): Document
2441         secure_getenv.
2442         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2443         __libc_secure_getenv.
2444         * inet/ruserpass.c (ruserpass): Likewise.
2445         * malloc/mtrace.c (mtrace): Likewise.
2446         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2447         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2448         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2449         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2450         HAVE_SECURE_GETENV.
2451         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2452         __secure_getenv to __libc_secure_getenv.
2453         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2455         Likewise.
2456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2457         Likewise.
2458         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2459         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2460         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2461         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2462         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2463         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2464         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2465
2466 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2467
2468         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2469         (struct La_i86_retval): Likewise.
2470         (struct La_x86_64_regs): Likewise.
2471         (struct La_x86_64_retval): Likewise.
2472         (struct La_x32_regs): Likewise.
2473         (struct La_x32_retval): Likewise.
2474         (struct La_ppc32_regs): Likewise.
2475         (struct La_ppc32_retval): Likewise.
2476         (struct La_ppc64_regs): Likewise.
2477         (struct La_ppc64_retval): Likewise.
2478         (struct La_sh_regs): Likewise.
2479         (struct La_sh_retval): Likewise.
2480         (struct La_s390_32_regs): Likewise.
2481         (struct La_s390_32_retval): Likewise.
2482         (struct La_s390_64_regs): Likewise.
2483         (struct La_s390_64_retval): Likewise.
2484         (struct La_sparc32_regs): Likewise.
2485         (struct La_sparc32_retval): Likewise.
2486         (struct La_sparc64_regs): Likewise.
2487         (struct La_sparc64_retval): Likewise.
2488         (struct audit_ifaces): Remove architecture-specific pltenter and
2489         pltexit members.
2490         * sysdeps/i386/ldsodefs.h: New file.
2491         * sysdeps/powerpc/ldsodefs.h: Likewise.
2492         * sysdeps/s390/ldsodefs.h: Likewise.
2493         * sysdeps/sh/ldsodefs.h: Likewise.
2494         * sysdeps/sparc/ldsodefs.h: Likewise.
2495         * sysdeps/x86_64/ldsodefs.h: Likewise.
2496
2497 2012-07-25  Marek Polacek  <polacek@redhat.com>
2498
2499         [BZ #6808]
2500         * math/libm-test.inc (yn_test): Add another test.
2501         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2502         to ERANGE when the result is +-Inf.
2503         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2504         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2505         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2506         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2507
2508 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2509
2510         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2511         equal to 0.
2512         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2513         clock_t.
2514         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2515
2516 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2517
2518         * configure.in <sysdeps resolving>: Correct printing
2519         Implies_before.
2520         * configure: Regenerate.
2521
2522 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2523
2524         * math/w_ilogb.c: Include <limits.h>.
2525         * math/w_ilogbl.c: Likewise.
2526
2527 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2528
2529         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2530         va_copy.  Document allowing for unavailable va_copy only as
2531         pre-C99 compatibility.
2532         * manual/string.texi (Copying and Concatenation): Use va_copy
2533         instead of __va_copy in concat example.
2534
2535 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2536
2537         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2538         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2539         it if not null.
2540
2541         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2542         with O_NOLINK passed to __file_name_lookup.
2543
2544         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2545         with O_NOLINK passed to __file_name_lookup.
2546
2547         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2548         negative N or less than NGIDS.
2549
2550         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2551         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2552         enough.  Use memcpy instead of strncpy.
2553
2554 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2555
2556         * elf/Makefile (check-data): Remove.
2557         (localplt.data): New vpath directive.
2558         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2559         instead of $(check-data).
2560         * scripts/data/localplt-generic.data: Move to ...
2561         * sysdeps/generic/localplt.data: ... here.
2562         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2563         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2564         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2566         ... here.
2567         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2569         ... here.
2570         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2571         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2572         ... here.
2573         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2575         ... here.
2576         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2577         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2578         ... here.
2579         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2580         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2581         ... here.
2582
2583 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2584
2585         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2586         PPC32 and PPC64 files.
2587         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2588         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2589
2590 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2591
2592         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2593         __makecontext_ret to ...
2594         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2595         ... here and call exit if uc_link is NULL.  New file.
2596         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2597         __makecontext_ret.S.
2598         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2599         __makecontext_ret to ...
2600         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2601         ... here and call exit if uc_link is NULL.  New file.
2602         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2603         __makecontext_ret.S.
2604
2605 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2606
2607         * elf/elf.h (R_390_IRELATIVE): New definition.
2608         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2609         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2610         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2611         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2612         (elf_machine_lazy_rel): Likewise.
2613         * sysdeps/s390/dl-irel.h: New file.
2614         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2615         * sysdeps/s390/s390-64/memset.S: New asm code.
2616         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2617         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2618         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2619         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2620         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2621         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2622         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2623         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2624         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2625         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2626         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2627         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2628         * sysdeps/s390/s390-32/memset.S: New asm code.
2629         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2630
2631 2012-07-17  Marek Polacek  <polacek@redhat.com>
2632
2633         [BZ #14349]
2634         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2635         * sysdeps/s390/s390-64/configure.in: Likewise.
2636         * sysdeps/sparc/configure.in: Likewise.
2637         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2638         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2639         * sysdeps/i386/configure.in: Likewise.
2640         * sysdeps/x86_64/configure.in: Likewise.
2641         * sysdeps/sh/configure.in: Likewise.
2642         * sysdeps/s390/s390-32/configure: Regenerated.
2643         * sysdeps/s390/s390-64/configure: Likewise.
2644         * sysdeps/x86_64/configure: Likewise.
2645         * sysdeps/sh/configure: Likewise.
2646         * sysdeps/powerpc/powerpc64/configure: Likewise.
2647         * sysdeps/powerpc/powerpc32/configure: Likewise.
2648         * sysdeps/sparc/configure: Likwise.
2649         * sysdeps/i386/configure: Likewise.
2650
2651         * elf/dl-open.c: Comment fixes.
2652
2653 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2654
2655         * Makefile [CXX] (check-data): Remove.
2656         [CXX] (c++-types.data): New vpath directive.
2657         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2658         vpath.  Do not allow for C++ type data being missing.
2659         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2660         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2661         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2662         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2663         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2664         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2665         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2667         ... here.
2668         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2670         ... here.
2671         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2673         ... here.
2674         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2675         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2676         ... here.
2677         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2678         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2679         ... here.
2680         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2681         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2682         ... here.
2683         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2684         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2685         ... here.
2686         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2687         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2688
2689         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2690         definitions to architecture-specific files.
2691         (TLS_IE): Likewise.
2692         (TLS_LD): Likewise.
2693         (TLS_GD): Likewise.
2694         * sysdeps/i386/tls-macros.h: New file.
2695         * sysdeps/powerpc/tls-macros.h: Likewise.
2696         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2697         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2698         * sysdeps/sh/tls-macros.h: Likewise.
2699         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2700         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2701         * sysdeps/x86_64/tls-macros.h: Likewise.
2702
2703 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2704
2705         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2706         zero value for regular exit case.
2707
2708         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2709         (__start_context): Preserve zero value for regular exit case.
2710
2711 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2712             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2713
2714         * manual/setjmp.texi (setcontext): Clarify normal process
2715         termination when uc_link is the null pointer.
2716         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2717         exit call.
2718
2719 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2720
2721         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2722         preprocessor.  Test for each exception mask separately.
2723
2724 2012-07-16  Andreas Jaeger  <aj@suse.de>
2725
2726         * po/ru.po: Update from translation team.
2727
2728 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2729
2730         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2731         equal to 0.
2732         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2733         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2734         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2735         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2736         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2737
2738 2012-07-13  Andreas Jaeger  <aj@suse.de>
2739
2740         * po/fr.po: Update from translation team.
2741
2742 2012-07-12  Marek Polacek  <polacek@redhat.com>
2743
2744         [BZ #14173]
2745         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2746         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2747         loop condition.
2748
2749 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2750
2751         [BZ #13717]
2752         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2753         Change to 2.4.1 where previously 2.4.0.
2754         * sysdeps/unix/sysv/linux/configure: Regenerated.
2755         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2756         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2757         version.
2758         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2759         (__ASSUME_AT_CLKTCK): Remove.
2760         (__ASSUME_AT_PAGESIZE): Likewise.
2761         (__ASSUME_AT_XID): Likewise.
2762         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2763         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2764         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2765         unconditionally.
2766         (HAVE_AUX_PAGESIZE): Likewise.
2767         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2768         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2769         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2770
2771 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2772
2773         [BZ #14307]
2774         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2775         the temporary buffer used to invoke __gethostbyname2_r,
2776         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2777         host_data / struct gaih_addrtuple.
2778         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2779         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2780         header file nss/nsswitch.h.
2781         * nss/nsswitch.h (global scope): Add definition of implementation
2782         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2783         resolv/nss_dns/dns-host.c).
2784
2785 2012-07-11  Andreas Jaeger  <aj@suse.de>
2786
2787         * po/fr.po: Update from translation team.
2788
2789         * po/sv.po: Update from translation team
2790         * po/fr.po: Another update from translation team.
2791
2792 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2793
2794         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2795         for subnormals or multiply small sinh result by itself.
2796         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2797         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2798
2799 2012-07-11  David S. Miller  <davem@davemloft.net>
2800
2801         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2802
2803 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2804
2805         [BZ #14347]
2806         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2807         (INTERNAL_MARK): Shift it here.
2808
2809 2012-07-10  Marek Polacek  <polacek@redhat.com>
2810
2811         [BZ #14151]
2812         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2813         libc_cv_asm_global_directive with .globl.
2814         * configure: Regenerated.
2815         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2816         with .globl.
2817         * sysdeps/i386/configure: Regenerated.
2818         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2819         with .globl.
2820         * sysdeps/x86_64/configure: Regenerated.
2821         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2822         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2823         * elf/tst-unique2mod2.c: Likewise.
2824         * elf/tst-unique2mod1.c: Likewise.
2825         * elf/tst-unique1mod2.c: Likewise.
2826         * elf/tst-unique1mod1.c: Likewise.
2827         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2828         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2829         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2830         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2831         * sysdeps/mach/sysdep.h: Likewise.
2832         * sysdeps/i386/sysdep.h: Likewise.
2833         * sysdeps/i386/i386-mcount.S: Likewise.
2834         * sysdeps/x86_64/_mcount.S: Likewise.
2835         * sysdeps/x86_64/sysdep.h: Likewise.
2836         * sysdeps/sh/_mcount.S: Likewise.
2837         * sysdeps/sh/sysdep.h: Likewise.
2838         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2839         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2840         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2841         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2842         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2843         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2844         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2845         * locale/localeinfo.h: Likewise.
2846         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2847         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2848
2849 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2850
2851         [BZ #14336]
2852         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2853         system".
2854         * manual/message.texi (The Uniforum approach): Likewise.
2855         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2856         (glibc iconv Implementation): Likewise.
2857
2858 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2859
2860         [BZ #14337]
2861         * math/s_clog.c (__clog): Avoid scaling a value down where that
2862         could result in underflow.
2863         * math/s_clog10.c (__clog10): Likewise.
2864         * math/s_clog10f.c (__clog10f): Likewise.
2865         * math/s_clog10l.c (__clog10l): Likewise.
2866         * math/s_clogf.c (__clogf): Likewise.
2867         * math/s_clogl.c (__clogl): Likewise.
2868         * math/libm-test.inc (clog_test): Add more tests.
2869         (clog10_test): Likewise.
2870         * sysdeps/i386/fpu/libm-test-ulps: Update.
2871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2872
2873 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2874
2875         [BZ #14283]
2876         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2877         by 7 not 8 to examine high bit of fractional part.
2878
2879         [BZ #14042]
2880         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2881         for call to __mcount_internal.
2882         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2883         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2884         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2885
2886 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2887
2888         [BZ #14154]
2889         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2890         approximation for values within 0x1p-13f of an odd multiple of
2891         pi/4.
2892         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2893         exception.  Add more tests.
2894         * sysdeps/i386/fpu/libm-test-ulps: Update.
2895
2896         [BZ #6778]
2897         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2898         inputs and return -1 for them.  Do not check for +Inf in case not
2899         reachable for +Inf.
2900         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2901         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2902         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2903         and return -1 for them.  Do not check for +Inf in case not
2904         reachable for +Inf.
2905         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2906         define.
2907         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2908         and return -1 for them.  Do not check for +Inf in case not
2909         reachable for +Inf.
2910         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2911         spurious underflow.
2912         * sysdeps/i386/fpu/libm-test-ulps: Update.
2913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2914
2915 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2916
2917         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2918
2919 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2920
2921         [BZ #14157]
2922         [BZ #14331]
2923         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2924         could result in spurious underflow.  Scale down values above
2925         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2926         * math/s_csqrtf.c (__csqrtf): Likewise.
2927         * math/s_csqrtl.c (__csqrtl): Likewise.
2928         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2929         spurious underflow.
2930         * sysdeps/i386/fpu/libm-test-ulps: Update.
2931         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2932
2933 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2934
2935         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2936         xopen-msg.sed.
2937         * catgets/xopen-msg.awk: New file.
2938         * catgets/xopen-msg.sed: Removed.
2939
2940         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2941         po2text.sed.
2942         * intl/po2test.awk: New file.
2943         * intl/po2test.sed: Removed.
2944
2945 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2946
2947         [BZ #14328]
2948         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2949         or multiply small sinh result by itself.
2950         * math/s_ctanf.c (__ctanf): Likewise.
2951         * math/s_ctanh.c (__ctanh): Likewise.
2952         * math/s_ctanhf.c (__ctanhf): Likewise.
2953         * math/s_ctanhl.c (__ctanhl): Likewise.
2954         * math/s_ctanl.c (__ctanl): Likewise.
2955         * math/libm-test.inc (ctan_test_tonearest): New function.
2956         (ctan_test_towardzero): Likewise.
2957         (ctan_test_downward): Likewise.
2958         (ctan_test_upward): Likewise.
2959         (ctanh_test_tonearest): Likewise.
2960         (ctanh_test_towardzero): Likewise.
2961         (ctanh_test_downward): Likewise.
2962         (ctanh_test_upward): Likewise.
2963         (main): Call these new functions.
2964         * sysdeps/i386/fpu/libm-test-ulps: Update.
2965         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2966
2967 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2968
2969         * .gitignore: Delete /ports entry.
2970
2971 2012-07-03  Andreas Jaeger  <aj@suse.de>
2972
2973         * po/bg.po: Update from translation team.
2974         * po/cs.po: Likewise.
2975         * po/de.po: Likewise.
2976         * po/hr.po: Likewise.
2977         * po/nl.pl: Likewise.
2978         * po/pl.po: Likewise.
2979         * po/vi.po: Likewise.
2980
2981 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2982
2983         * Makeconfig [!+link] (+link-before-libc): New variable.
2984         [!+link] (+link-after-libc): Likewise.
2985         [!+link] (+link-tests): Likewise.
2986         [!+link] (+link): Define in terms of $(+link-before-libc) and
2987         $(+link-after-libc).
2988         [!+link-static] (+link-static-before-libc): New variable.
2989         [!+link-static] (+link-static-after-libc): Likewise.
2990         [!+link-static] (+link-static-tests): Likewise.
2991         [!+link-static] (+link-static): Define in terms of
2992         $(+link-static-before-libc) and $(+link-static-after-libc).
2993         [build-shared] (link-libc-before-gnulib): New variable.
2994         [build-shared] (link-libc-tests): Likewise.
2995         [build-shared] (link-libc): Define in terms of
2996         $(link-libc-before-gnulib).
2997         [!build-shared] (link-libc-tests): New variable.
2998         (link-libc-static-tests): New variable.
2999         [!gnulib] (gnulib-arch): New variable.
3000         [!gnulib] (gnulib-tests): Likewise.
3001         [!gnulib] (static-gnulib-arch): Likewise.
3002         [!gnulib] (static-gnulib-tests): Likewise.
3003         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3004         Define with "=" instead of ":=".
3005         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3006         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3007         * Rules (binaries-all-notests): New variable.
3008         (binaries-all-tests): Likewise.
3009         (binaries-static-notests): Likewise.
3010         (binaries-static-tests): Likewise.
3011         (binaries-all): Define using $(binaries-all-notests) and
3012         $(binaries-all-tests).
3013         (binaries-static): Define using $(binaries-static-notests) and
3014         $(binaries-static-tests).
3015         (binaries-shared-tests): New variable.
3016         (binaries-shared-notests): Likewise.
3017         (binaries-shared): Remove variable.
3018         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3019         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3020         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3021         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3022         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3023         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3024         * elf/Makefile (sln-modules): New variable.
3025         (extra-objs): Add $(sln-modules:=.o).
3026         (ldconfig-modules): Add static-stubs.
3027         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3028         * elf/static-stubs.c: New file.
3029
3030         [BZ #14283]
3031         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3032         by 7 not 8 to examine high bit of fractional part.  Use volatile
3033         variables when splitting into final array of floats if
3034         __FLT_EVAL_METHOD__ != 0.
3035         * math/libm-test.inc (cos_test): Add another test.
3036         (sin_test): Likewise.
3037         * sysdeps/i386/fpu/libm-test-ulps: Update.
3038
3039         [BZ #14273]
3040         * math/libm-test.inc (cosh_test): Add more tests.
3041
3042         * version.h (RELEASE): Set to "development".
3043         (VERSION): Set to "2.16.90".
3044
3045 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3046
3047         * NEWS: Update copyright. Remove last-updated date.
3048         Mention math library bug fixes and timezone data changes.
3049         * README: Mention GNU/Hurd, x32, and HPPA support status.
3050
3051 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3052
3053         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3054
3055 2012-06-27  Andreas Jaeger  <aj@suse.de>
3056
3057         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3058
3059 2012-06-25  Andreas Jaeger  <aj@suse.de>
3060
3061         * sysdeps/s390/fpu/libm-test-ulps: Update.
3062
3063 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3064             Thomas Schwinge  <thomas@codesourcery.com>
3065
3066         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3067         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3068         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3069         fanotify_mark.
3070
3071 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3072
3073         * sysdeps/mach/start.c: Remove file.
3074         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3075         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3076         * sysdeps/sh/init-first.c: Likewise.
3077
3078         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3079         registers for frame unwinding purposes, add CFI directives.
3080         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3081         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3082         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3083         Likewise.
3084
3085         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3086         __fortify_fail returning.
3087         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3088
3089         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3090         sysdeps/sh/____longjmp_chk.S.
3091         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3092         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3093         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3094         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3095
3096         * sysdeps/sh/abort-instr.h: New file.
3097         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3098         process in case exit returns.
3099
3100         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3101         initialize the GOT register before use.
3102
3103         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3104         calculation of ARGC > 4.
3105
3106         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3107         meaningful names to some local labels.
3108
3109 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3110             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3111
3112         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3113         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3114         (__arch_compare_and_exchange_val_16_acq): Likewise.
3115         (__arch_compare_and_exchange_val_32_acq): Likewise.
3116         (atomic_exchange_and_add): Fix gUSA sequence.
3117         (atomic_add): Likewise.
3118         (atomic_add_negative): Likewise.
3119         (atomic_add_zero): Likewise.
3120         (atomic_bit_test_set): Likewise.
3121
3122 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3123
3124         [BZ #13579]
3125         * include/link.h (struct link_map): Add l_free_initfini.
3126         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3127         l_initfini.
3128         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3129         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3130         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3131         set.
3132
3133 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3134
3135         * configure.in: Use AC_LANG_SOURCE.
3136         * configure: Regenerate.
3137
3138 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3139
3140         * configure.in (libc_cv_localstatedir): New substituted variable.
3141         * configure: Regenerated.
3142         * config.make.in (localstatedir): New variable, substituted from
3143         libc_cv_localstatedir.
3144         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3145         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3146         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3147         * sysdeps/gnu/configure: Regenerated.
3148
3149 2012-06-21  Jeff Law  <law@redhat.com>
3150
3151         [BZ #14277]
3152         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3153         free.  Simplify list management for _LIBC case.
3154
3155 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3156
3157         [BZ #14273]
3158         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3159         Clear sign bit of 64-bit integer value before comparing against
3160         overflow value.
3161
3162         * sysdeps/mach/configure: Regenerated.
3163
3164 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3165
3166         [BZ #14278]
3167         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3168
3169 2012-06-21  Jeff Law  <law@redhat.com>
3170
3171         [BZ #13882]
3172         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3173         uint16_t for elements in the "seen" array to avoid char overflows.
3174         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3175         * elf/dl-open.c (dl_open_worker): Likewise.
3176
3177 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3178
3179         * scripts/list-sources.sh: Scan PORTS for translations.
3180         * po/libc.pot: Regenerated.
3181
3182 2012-06-21  Andreas Jaeger  <aj@suse.de>
3183
3184         [BZ #12194]
3185         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3186         warning.
3187         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3188         * bits/byteswap-16.h (__bswap_16): Likewise.
3189         * bits/byteswap.h (__bswap_constant_16): Likewise.
3190
3191 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3192
3193         [BZ #14117]
3194         * sysdeps/i386/fpu_control.h: Removed.
3195         * sysdeps/x86_64/fpu_control.h: Moved to ...
3196         * sysdeps/x86/fpu_control.h: Here.
3197
3198         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3199         (_FPU_SETCW): Likewise.
3200
3201 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3202
3203         [BZ #14117]
3204         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3205         * sysdeps/x86/fpu/bits/mathinline.h: This.
3206         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3207
3208         [BZ #14050]
3209         [BZ #14117]
3210         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3211         functions if __x86_64__ is defined.
3212
3213 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3214
3215         * string/endian.h: Add !__ASSEMBLER__ condition for including
3216         conversion interfaces.
3217
3218 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3219
3220         [BZ #14241]
3221         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3222         of ABS(x) in calculating zero to negative powers other than odd
3223         integers.
3224         * math/libm-test.inc (pow_test): Add more tests.
3225
3226 2012-06-15  Andreas Jaeger  <aj@suse.de>
3227
3228         * manual/contrib.texi (Contributors): Update entry of Liubov
3229         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3230         Machado Filho.
3231
3232 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3233
3234         * string/string.h: Add __wur to GNU version of strerror_r.
3235
3236 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3237
3238         [BZ #14229]
3239         * string/Makefile (tests): Add tst-strtok_r.
3240         * string/tst-strtok_r.c: New file.
3241         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3242         RAX_LP/RDX_LP on SAVE_PTR.
3243
3244 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3245
3246         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3247
3248 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3249
3250         * libm_test.inc (csqrt_test): Allow more spurious underflow
3251         exceptions.
3252         (j0_test): Likewise.
3253         (j1_test): Likewise.
3254         (y0_test): Likewise.
3255         (y1_test): Likewise.
3256
3257 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3258
3259         * po/Makefile (libc.pot): Use UTF-8 charset.
3260
3261 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3262
3263         [BZ #14210]
3264         Suppress sign-conversion warning from FD_SET.
3265         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3266         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3267         not unsigned long int.
3268         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3269
3270 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3271
3272         [BZ #14050]
3273         [BZ #14117]
3274         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3275         __extern_always_inline instead of __extern_inline.
3276         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3277         (__signbit): Likewise.
3278         (__signbitl): Support C++ namespace.
3279         (lrintf): New inline function.
3280         (lrint): Likewise.
3281         (llrintf): Likewise.
3282         (llrint): Likewise.
3283         (fmaxf): Likewise.
3284         (fmax): Likewise.
3285         (fminf): Likewise.
3286         (fmin): Likewise.
3287         (rint): Likewise.
3288         (rintf): Likewise.
3289         (ceil): Likewise.
3290         (ceilf): Likewise.
3291         (floor): Likewise.
3292         (floorf): Likewise.
3293         (nearbyint): Likewise.
3294         (nearbyintf): Likewise.
3295
3296 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3297
3298         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3299         non-default versions.
3300
3301 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3302
3303         [BZ #14218]
3304         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3305
3306 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3307
3308         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3309         (FE_UPWARD, FE_DOWNWARD): Don't define.
3310         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3311         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3312
3313         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3314         reading it.
3315         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3316         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3317
3318 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3319
3320         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3321         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3322         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3323         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3324
3325 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3326
3327         [BZ #14117]
3328         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3329         * sysdeps/i386/fpu/Implies: New file.
3330         * sysdeps/x86_64/fpu/Implies: Likewise.
3331         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3332         * sysdeps/x86/fpu/bits/fenv.h: This.
3333
3334         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3335         __SSE_MATH__.
3336
3337 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3338
3339         [BZ #14134]
3340         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3341         character 0xffff that matches the last element of the
3342         conversion table.
3343
3344 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3345
3346         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3347         fmodl commit.
3348
3349 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3350
3351         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3352         values higher than 25.6283.
3353
3354 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3355
3356         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3357         subnormal exponent extraction and add some __builtin_expect.
3358         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3359         Fix for subnormal mantissa calculation.
3360
3361 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3362
3363         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3364         cpu2 is -1 and errno is not ENOSYS.
3365
3366 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3367
3368         [BZ #14117]
3369         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3370         * sysdeps/x86/bits/string.h: This.
3371         * sysdeps/x86_64/bits/string.h: Removed.
3372
3373         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3374         if not compiling for x86-64, but compiling for >= i486.
3375
3376         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3377         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3378
3379         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3380         New macro from Linux kernel 3.4.0.
3381         (FP_XSTATE_MAGIC2): Likewise.
3382         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3383         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3384         (struct _fpx_sw_bytes): New struct.
3385         (struct _xsave_hdr): Likewise.
3386         (struct _ymmh_state): Likewise.
3387         (struct _xstate): Likewise.
3388
3389         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3390         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3391         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3392         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3393         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3394         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3395
3396         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3397         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3398         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3399         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3400         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3401         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3402
3403 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3404
3405         [BZ #13743]
3406         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3407         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3408         (sysdep_headers): Include sys/platform/ppc.h.
3409         * sysdeps/powerpc/test-gettimebase.c: Test for
3410         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3411         * manual/Makefile (appendices): Include platform.texi.
3412         * manual/contrib.texi (Contributors): Update @node pointers.
3413         * manual/maint.texi (Maintenance): Likewise.
3414         (Platform): New node.
3415         * manual/platform.texi: New file.  Document the new features.
3416
3417 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3418             Jakub Jelinek  <jakub@redhat.com>
3419
3420         [BZ #14188]
3421         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3422         where __builtin_expect is unavailable.
3423
3424 2012-06-03  David S. Miller  <davem@davemloft.net>
3425
3426         * stdlib/longlong.h: Updated from GCC.
3427
3428 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3429
3430         [BZ #14042]
3431         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3432         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3433         __mcount_internal.
3434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3435         (GLIBC_2.16): Likewise.
3436
3437 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3438
3439         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3440
3441 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3442
3443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3444         (default-abi): New variable.
3445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3446         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3447         variable.
3448         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3449         Likewise.
3450         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3451         Likewise.
3452         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3453         Likewise.
3454
3455         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3456         definition.  Document in comment.
3457
3458 2012-06-01  David S. Miller  <davem@davemloft.net>
3459
3460         * stdlib/longlong.h: Updated from GCC.
3461
3462 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3463
3464         [BZ #14117]
3465         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3466         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3467         sys/debugreg.h sys/io.h here.
3468         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3469         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3470         sys/io.h.
3471         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3472         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3473         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3474         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3475         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3476         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3477
3478         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3479         Define only if __x86_64__ is defined.
3480
3481 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3482
3483         [BZ #14048]
3484         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3485         Use int64_t for variable i.
3486         * math/libm-test.inc (fmod_test): Add more tests.
3487
3488         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3489         z computation is not scheduled after fetestexcept.
3490         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3491         Use math_force_eval instead of asm to ensure calculation scheduled
3492         before exception test.
3493         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3494         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3495
3496 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3497
3498         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3499         computation is not scheduled after fetestexcept.
3500
3501 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3502
3503         [BZ #14117]
3504         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3505         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3506
3507 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3508
3509         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3510         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3511
3512 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3513
3514         [BZ #14117]
3515         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3516         <bits/wordsize.h>.
3517         (__WCHAR_MIN): Support __WORDSIZE == 64.
3518         (__WCHAR_MAX): Likewise.
3519
3520         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3521         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3522
3523         [BZ #14183]
3524         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3525         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3526
3527         [BZ #14117]
3528         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3529         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3530
3531         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3532         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3533
3534         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3535         Defined to 1 if __x86_64__ isn't defined.
3536         (_STAT_VER_LINUX_OLD): New.
3537         (st_atime): Remove duplicate.
3538         (st_mtime): Likewise.
3539         (st_ctime): Likewise.
3540
3541 2012-05-31  David S. Miller  <davem@davemloft.net>
3542
3543         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3544         entries.
3545
3546 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3547
3548         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3549         gen-libm-test.pl.
3550
3551         [BZ #14132]
3552         * elf/dl-reloc.c: Include <_itoa.h>.
3553         (_dl_reloc_bad_type): Remove use of INTUSE.
3554         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3555         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3556         * stdio-common/psiginfo.c (psiginfo): Likewise.
3557         * stdio-common/psignal.c (psignal): Likewise.
3558         * string/strsignal.c (strsignal): Likewise.
3559         * include/signal.h (_sys_siglist): Declare hidden proto.
3560         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3561         INTVARDEF with libc_hidden_data_def.
3562         * stdio-common/itoa-udigits.c: Likewise.
3563         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3564         (_itoa_lower_digits_internal): Remove declaration.
3565         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3566         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3567         (_sys_sigabbrev_internal): Remove aliases.
3568         (_sys_siglist): Define hidden alias.
3569
3570 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3571
3572         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3573         bits/sysctl.h.
3574
3575 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3576
3577         [BZ #14117]
3578         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3579         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3580
3581         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3582         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3583         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3584         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3585         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3586         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3587
3588         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3589         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3590         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3591
3592         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3593         with __addr.
3594         (insw): Likewise.
3595         (insl): Likewise.
3596         (outsb): Likewise.
3597         (outsw): Likewise.
3598         (outsl): Likewise.
3599
3600         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3601         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3602         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3603
3604         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3605         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3606         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3607         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3608         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3609         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3610
3611         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3612         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3613
3614         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3615         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3616
3617         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3618         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3619         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3620
3621         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3622         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3623         to ...
3624         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3625
3626         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3627         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3628         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3629
3630         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3631         for x86-64.
3632         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3633
3634 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3635
3636         * math/math.h (M_El): Use two more decimal places.
3637         (M_LOG2El): Likewise.
3638         (M_LOG10El): Likewise.
3639         (M_LN2l): Likewise.
3640         (M_LN10l): Likewise.
3641         (M_PIl): Likewise.
3642         (M_PI_2l): Likewise.
3643         (M_PI_4l): Likewise.
3644         (M_1_PIl): Likewise.
3645         (M_2_PIl): Likewise.
3646         (M_2_SQRTPIl): Likewise.
3647         (M_SQRT2l): Likewise.
3648         (M_SQRT1_2l): Likewise.
3649
3650 2012-05-31  David S. Miller  <davem@davemloft.net>
3651
3652         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3653         values between float registers.
3654         * sysdeps/sparc/sparc64/memset.S: Likewise.
3655         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3656
3657 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3658
3659         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3660         -D_FORTIFY_SOURCE=1.
3661         (CPPFLAGS-tst-longjmp_chk.c): Define.
3662         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3663         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3664         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3665         CFLAGS-tst-wchar-h.c.
3666
3667 2012-05-31  Marek Polacek  <polacek@redhat.com>
3668
3669         [BZ #14132]
3670         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3671         __endmntent_internal): Remove declaration.
3672         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3673         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3674         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3675
3676 2012-05-30  David S. Miller  <davem@davemloft.net>
3677
3678         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3679         (___Q_simulate_exceptions): Use real FP ops rather than writing
3680         into the %fsr.
3681         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3682         Likewise.
3683
3684 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3685
3686         [BZ #14117]
3687         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3688         * sysdeps/x86/bits/xtitypes.h: This.
3689
3690         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3691         * sysdeps/x86/bits/wordsize.h: This.
3692
3693         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3694         * sysdeps/x86/bits/huge_vall.h: This.
3695
3696         * sysdeps/i386/bits/select.h: Removed.
3697         * sysdeps/x86_64/bits/select.h: Renamed to ...
3698         * sysdeps/x86/bits/select.h: This.
3699
3700         * sysdeps/i386/bits/setjmp.h: Removed.
3701         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3702         * sysdeps/x86/bits/setjmp.h: This.
3703
3704         * sysdeps/i386/bits/mathdef.h: Removed.
3705         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3706         * sysdeps/x86/bits/mathdef.h: This.
3707
3708 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3709
3710         [BZ #14132]
3711         * include/sys/socket.h (__connect_internal)
3712         (__libc_sa_len_internal): Remove declaration.
3713         (__connect, __libc_sa_len): Declare hidden_proto.
3714         (SA_LEN): Remove use of INTUSE.
3715         * socket/connect.c: Add libc_hidden_def.
3716         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3717         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3718         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3719         alias.
3720         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3721         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3722         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3723         of adding _internal alias.
3724
3725 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3726
3727         [BZ #14117]
3728         * sysdeps/i386/bits/link.h: Removed.
3729         * sysdeps/i386/bits/linkmap.h: Likewise.
3730         * sysdeps/x86_64/bits/link.h: Renamed to ...
3731         * sysdeps/x86/bits/link.h: This.
3732         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3733         * sysdeps/x86/bits/linkmap.h: This.
3734
3735         * sysdeps/i386/bits/endian.h: Removed.
3736         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3737         * sysdeps/x86/bits/endian.h: This.
3738
3739         * sysdeps/i386/bits/byteswap.h: Removed.
3740         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3741         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3742         * sysdeps/x86/bits/byteswap.h: This.
3743         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3744         * sysdeps/x86/bits/byteswap-16.h: This.
3745         * sysdeps/i386/Implies: Add x86.
3746         * sysdeps/x86_64/Implies: Likewise.
3747
3748 2012-05-30  David S. Miller  <davem@davemloft.net>
3749
3750         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3751         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3752         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3753         (FP_TRAPPING_EXCEPTIONS): Define.
3754         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3755         (FP_TRAPPING_EXCEPTIONS): Define.
3756         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3757         subnormals only when inexact has been signalled or underflow
3758         exceptions are enabled.
3759         (_FP_PACK_CANONICAL): Likewise.
3760
3761 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3762
3763         [BZ #14183]
3764         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3765         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3766
3767 2012-05-30  Richard Henderson  <rth@twiddle.net>
3768
3769         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3770         with #ifndef NOT_IN_libc.
3771
3772         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3773         marked to avoid plt entry.
3774
3775 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3776
3777         [BZ #14112]
3778         * Makeconfig (default-abi): New macro.
3779         (abi-includes): Likewise.
3780         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3781         $(abi-$(default-abi)-lib-soname) for soname if defined.
3782         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3783         abi-variants.
3784         * Makefile (installed-stubs): Likewise.
3785         * include/stubs-biarch.h: Removed.
3786         * scripts/lib-names.awk: Only handle one library at a time.
3787         * scripts/soversions.awk: Remove WORDSIZE support.
3788         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3789         entries.
3790         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3791         Removed.
3792         (syscall-list-default-condition): Likewise.
3793         (syscall-list-default-condition): Likewise.
3794         (syscall-list-includes): Likewise.
3795         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3796         syscall-list-* with abi-*.  Handle undefined abi-variants.
3797         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3798         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3799         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3800         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3801         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3802         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3803         Removed.
3804         (syscall-list-32-options): Likewise.
3805         (syscall-list-32-condition): Likewise.
3806         (syscall-list-64-options): Likewise.
3807         (syscall-list-64-condition): Likewise.
3808         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3809         macro.
3810         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3811         Renamed to ...
3812         (abi-*): This.
3813         (abi-64-ld-soname): New macro.
3814         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3815         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3816         Renamed to ...
3817         (abi-*): This.
3818         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3819         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3820
3821 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3822
3823         * sysdeps/unix/sysv/linux/kernel-features.h
3824         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3825         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3826         include <kernel-features.h>.
3827         [!__NR_ftruncate64]: Remove conditional code.
3828         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3829         [__NR_ftruncate64]: Make code unconditional.
3830         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3831         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3832         include <kernel-features.h>.
3833         [!__NR_ftruncate64]: Remove conditional code.
3834         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3835         [__NR_ftruncate64]: Make code unconditional.
3836         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3838         include <kernel-features.h>.
3839         [!__NR_ftruncate64]: Remove conditional code.
3840         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3841         [__NR_ftruncate64]: Make code unconditional.
3842         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3844         include <kernel-features.h>.
3845         [!__NR_ftruncate64]: Remove conditional code.
3846         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3847         [__NR_ftruncate64]: Make code unconditional.
3848         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3849
3850         * configure.in (libc_cv_fpie): Weaken to a compile test using
3851         LIBC_TRY_CC_OPTION.
3852         * configure: Regenerated.
3853
3854 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3855
3856         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3857         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3858         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3859         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3860         Refreshed.
3861         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3862         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3863         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3864         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3865         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3866         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3867         Refreshed.
3868
3869 2012-05-27  David S. Miller  <davem@davemloft.net>
3870
3871         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3872         (___Q_zero): New.
3873         (__Q_simulate_exceptions): Return void.  Change to simulate
3874         exceptions by writing into the %fsr.
3875         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3876         (__Qp_handle_exceptions): Likewise.
3877         (numbers): Delete.
3878         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3879         __Qp_handle_exceptions.
3880         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3881         __Qp_handle_exceptions.
3882         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3883         as unused and give dummy FP_RND_NEAREST initializer.
3884         (FP_INHIBIT_RESULTS): Define.
3885         (___Q_simulate_exceptions): Update declaration.
3886         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3887         formatting.
3888         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3889         as unused and give dummy FP_RND_NEAREST initializer.
3890         (__Qp_handle_exceptions): Update declaration.
3891         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3892         formatting.
3893
3894 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3895
3896         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3897         the temporary FPU control word.
3898         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3899         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3900         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3901         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3902         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3903         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3904         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3905         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3906         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3907         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3908         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3909
3910 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3911
3912         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3913         fields.
3914
3915 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3916
3917         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3918         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3919         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3920         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3921         Likewise.
3922         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3923         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3924         Likewise.
3925
3926 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3927
3928         * po/h.po: Update from translation team.
3929
3930 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3931
3932         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3933
3934         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3935         handling of denormals.
3936         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3937         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3938         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3939         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3940         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3941         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3942         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3943         Likewise.
3944
3945 2012-05-26  Marek Polacek  <polacek@redhat.com>
3946
3947         [BZ #14152]
3948         * math/libm-test.inc (fma_test): Don't always expect underflow
3949         exception.
3950
3951 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3952
3953         [BZ #12416]
3954         * elf/tst-execstack.c: Include stackinfo.h.
3955         (do_test): Adjust test case to ensure that pthread_getattr_np
3956         behaviour remains the same after marking stack executable.
3957
3958 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3959
3960         * sysdeps/unix/sysv/linux/kernel-features.h
3961         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3962         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3963         kernel-features.h.
3964         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3965         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3966         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3967         kernel-features.h.
3968         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3969         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3970
3971 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3972
3973         * configure.in: Define the default includes to being none.
3974         * configure: Regenerated.
3975
3976 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3977
3978         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3979         * sysdeps/x86_64/setjmp.S: Likewise.
3980         * sysdeps/i386/bsd-setjmp.S: Likewise.
3981         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3982         * sysdeps/i386/setjmp.S: Likewise.
3983         * sysdeps/i386/__longjmp.S: Likewise.
3984         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3985         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3986
3987         * include/stap-probe.h: New file.
3988         * configure.in: Handle --enable-systemtap.
3989         * configure: Regenerated.
3990         * config.h.in (USE_STAP_PROBE): New #undef.
3991         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3992         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3993         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3994
3995 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3996
3997         [BZ #13717]
3998         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3999         to 2.4.0 where earlier.
4000         * sysdeps/unix/sysv/linux/configure: Regenerated.
4001         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4002         <kernel-features.h>.
4003         [__ASSUME_32BITUIDS]: Make code unconditional.
4004         [!__ASSUME_32BITUIDS]: Remove conditional code.
4005         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4006         <kernel-features.h>.
4007         [__ASSUME_32BITUIDS]: Make code unconditional.
4008         [!__ASSUME_32BITUIDS]: Remove conditional code.
4009         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4010         [__ASSUME_32BITUIDS]: Make code unconditional.
4011         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4012         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4013         <kernel-features.h>.
4014         [__ASSUME_32BITUIDS]: Make code unconditional.
4015         [!__ASSUME_32BITUIDS]: Remove conditional code.
4016         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4017         <kernel-features.h>.
4018         [__ASSUME_32BITUIDS]: Make code unconditional.
4019         [!__ASSUME_32BITUIDS]: Remove conditional code.
4020         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4021         <kernel-features.h>.
4022         [__ASSUME_32BITUIDS]: Make code unconditional.
4023         [!__ASSUME_32BITUIDS]: Remove conditional code.
4024         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4025         <kernel-features.h>.
4026         [__ASSUME_32BITUIDS]: Make code unconditional.
4027         [!__ASSUME_32BITUIDS]: Remove conditional code.
4028         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4029         <kernel-features.h>.
4030         [__ASSUME_32BITUIDS]: Make code unconditional.
4031         [!__ASSUME_32BITUIDS]: Remove conditional code.
4032         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4033         <kernel-features.h>.
4034         [__ASSUME_32BITUIDS]: Make code unconditional.
4035         [!__ASSUME_32BITUIDS]: Remove conditional code.
4036         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4037         <kernel-features.h>.
4038         [__ASSUME_32BITUIDS]: Make code unconditional.
4039         [!__ASSUME_32BITUIDS]: Remove conditional code.
4040         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4041         <kernel-features.h>.
4042         [__ASSUME_32BITUIDS]: Make code unconditional.
4043         [!__ASSUME_32BITUIDS]: Remove conditional code.
4044         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4045         <kernel-features.h>.
4046         [__ASSUME_32BITUIDS]: Make code unconditional.
4047         [!__ASSUME_32BITUIDS]: Remove conditional code.
4048         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4049         <kernel-features.h>.
4050         [__ASSUME_32BITUIDS]: Make code unconditional.
4051         [!__ASSUME_32BITUIDS]: Remove conditional code.
4052         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4053         <kernel-features.h>.
4054         [__NR_setresgid] (__setresgid): Do not declare.
4055         [__ASSUME_32BITUIDS]: Make code unconditional.
4056         [!__ASSUME_32BITUIDS]: Remove conditional code.
4057         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4058         <kernel-features.h>.
4059         [__NR_setresuid] (__setresuid): Do not declare.
4060         [__ASSUME_32BITUIDS]: Make code unconditional.
4061         [!__ASSUME_32BITUIDS]: Remove conditional code.
4062         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4063         <kernel-features.h>.
4064         [__ASSUME_32BITUIDS]: Make code unconditional.
4065         [!__ASSUME_32BITUIDS]: Remove conditional code.
4066         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4067         <kernel-features.h>.
4068         [__ASSUME_32BITUIDS]: Make code unconditional.
4069         [!__ASSUME_32BITUIDS]: Remove conditional code.
4070         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4071         <kernel-features.h>.
4072         [__ASSUME_32BITUIDS]: Make code unconditional.
4073         [!__ASSUME_32BITUIDS]: Remove conditional code.
4074         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4075         <kernel-features.h>.
4076         [__ASSUME_32BITUIDS]: Make code unconditional.
4077         [!__ASSUME_32BITUIDS]: Remove conditional code.
4078         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4079         <kernel-features.h>.
4080         [__ASSUME_32BITUIDS]: Make code unconditional.
4081         [!__ASSUME_32BITUIDS]: Remove conditional code.
4082         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4083         <kernel-features.h>.
4084         [__ASSUME_32BITUIDS]: Make code unconditional.
4085         [!__ASSUME_32BITUIDS]: Remove conditional code.
4086         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4087         <kernel-features.h>.
4088         [__ASSUME_32BITUIDS]: Make code unconditional.
4089         [!__ASSUME_32BITUIDS]: Remove conditional code.
4090         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4091         <kernel-features.h>.
4092         [__ASSUME_32BITUIDS]: Make code unconditional.
4093         [!__ASSUME_32BITUIDS]: Remove conditional code.
4094         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4095         <kernel-features.h>.
4096         [__ASSUME_32BITUIDS]: Make code unconditional.
4097         [!__ASSUME_32BITUIDS]: Remove conditional code.
4098         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4099         <kernel-features.h>.
4100         [__ASSUME_32BITUIDS]: Make code unconditional.
4101         [!__ASSUME_32BITUIDS]: Remove conditional code.
4102         * sysdeps/unix/sysv/linux/kernel-features.h
4103         (__ASSUME_SETRESUID_SYSCALL): Remove.
4104         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4105         (__ASSUME_32BITUIDS): Likewise.
4106         (__ASSUME_LDT_WORKS): Likewise.
4107         (__ASSUME_O_DIRECTORY): Likewise.
4108         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4109         architecture but not kernel version.
4110         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4111         (__ASSUME_MMAP2_SYSCALL): Likewise.
4112         (__ASSUME_STAT64_SYSCALL): Likewise.
4113         (__ASSUME_IPC64): Likewise.
4114         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4115         <kernel-features.h>.
4116         [__ASSUME_32BITUIDS]: Make code unconditional.
4117         [!__ASSUME_32BITUIDS]: Remove conditional code.
4118         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4119         <kernel-features.h>.
4120         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4121         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4122         132096]: Remove conditional code.
4123         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4124         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4125         <kernel-features.h>.
4126         [__ASSUME_32BITUIDS]: Make code unconditional.
4127         [!__ASSUME_32BITUIDS]: Remove conditional code.
4128         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4129         <kernel-features.h>.
4130         [__ASSUME_32BITUIDS]: Make code unconditional.
4131         [!__ASSUME_32BITUIDS]: Remove conditional code.
4132         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4133         <kernel-features.h>.
4134         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4135         unconditional.
4136         (__setresgid): Do not declare.
4137         [__ASSUME_32BITUIDS]: Make code unconditional.
4138         [!__ASSUME_32BITUIDS]: Remove conditional code.
4139         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4140         <kernel-features.h>.
4141         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4142         unconditional.
4143         (__setresuid): Do not declare.
4144         [__ASSUME_32BITUIDS]: Make code unconditional.
4145         [!__ASSUME_32BITUIDS]: Remove conditional code.
4146         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4147         <kernel-features.h>.
4148         [__ASSUME_32BITUIDS]: Make code unconditional.
4149         [!__ASSUME_32BITUIDS]: Remove conditional code.
4150         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4151         <kernel-features.h>.
4152         [__ASSUME_32BITUIDS]: Make code unconditional.
4153         [!__ASSUME_32BITUIDS]: Remove conditional code.
4154
4155 2012-05-25  Richard Henderson  <rth@twiddle.net>
4156
4157         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4158         dl_hwcap to ifunc resolver.
4159         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4160         elf_ifunc_invoke.
4161         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4162         dl_hwcap to ifunc resolver.
4163         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4164
4165 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4166
4167         [BZ #14153]
4168         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4169         for |x| <= 2**-26, not 2**-57.
4170         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4171         exception.
4172
4173 2012-05-24  Jeff Law  <law@redhat.com>
4174
4175         * stdio-common/Makefile (tests): Add bug25.
4176         * stdio-common/bug25.c: New test.
4177
4178 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4179
4180         [BZ #13576]
4181         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4182         multiple of MALLOC_ALIGNMENT in size.
4183         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4184
4185 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4186
4187         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4188         Require >= 256.
4189         (FILENAME_MAX): Use macro-int-constant.
4190         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4191         (_IOFBF): Use macro-int-constant.
4192         (_IOLBF): Likewise.
4193         (_IONBF): Likewise.
4194         (SEEK_CUR): Likewise.
4195         (SEEK_END): Likewise.
4196         (SEEK_SET): Likewise.
4197         (TMP_MAX): Likewise.
4198         (EOF): Use macro-int-constant.  Require < 0.
4199         (NULL): Use macro-constant.  Require == 0.
4200         (stdin): Require type to be FILE *.
4201         (stdout): Likewise.
4202         (stderr): Likewise.
4203         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4204         macro-int-constant.
4205         (EXIT_SUCCESS): Likewise.
4206         (NULL): Use macro-constant.  Require == 0.
4207         (RAND_MAX): Use macro-int-constant.
4208         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4209         [C99-based standards] (strtof): Require function.
4210         [C99-based standards] (strtold): Likewise.
4211         [C99-based standards] (strtoll): Likewise.
4212         [C99-based standards] (strtoull): Likewise.
4213         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4214         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4215         [ISO || ISO99 || ISO11] (math.h): Likewise.
4216         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4217         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4218         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4219
4220 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4221
4222         [BZ #14132]
4223         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4224         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4225         * intl/dgettext.c (DCGETTEXT): Likewise.
4226         * intl/gettext.c (DCGETTEXT): Likewise.
4227         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4228         * posix/regex_internal.h (gettext): Likewise.
4229         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4230         Remove declaration.
4231         * include/argz.h (__argz_count_internal)
4232         (__argz_stringify_internal): Remove declaration.
4233         (__argz_count, __argz_stringify): Declare hidden proto.
4234         * intl/dcgettext.c: Remove use of INTDEF.
4235         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4236         * string/argz-stringify.c: Likewise.
4237         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4238         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4239         Declare hidden proto.
4240         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4241         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4242         Declare hidden proto.
4243         * include/stdio.h (__asprintf_internal): Don't declare.
4244         (__asprintf): Don't define as macro.  Declare hidden proto.
4245         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4246         (__fsetlocking): Declare hidden proto.
4247         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4248         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4249         hidden proto.
4250         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4251         (_IO_setlinebuf): Remove use of INTUSE.
4252         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4253         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4254         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4255         Remove declaration.
4256         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4257         (_IO_do_flush): Remove use of INTUSE.
4258         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4259         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4260         (_IO_adjust_column, _IO_least_wmarker)
4261         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4262         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4263         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4264         (_IO_default_doallocate, _IO_wdefault_doallocate)
4265         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4266         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4267         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4268         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4269         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4270         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4271         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4272         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4273         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4274         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4275         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4276         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4277         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4278         proto.
4279         (_IO_flush_all_internal, _IO_adjust_column_internal)
4280         (_IO_default_uflow_internal, _IO_default_finish_internal)
4281         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4282         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4283         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4284         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4285         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4286         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4287         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4288         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4289         (_IO_file_close_internal, _IO_file_close_it_internal)
4290         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4291         (_IO_file_init_internal, _IO_file_attach_internal)
4292         (_IO_file_fopen_internal, _IO_file_read_internal)
4293         (_IO_file_sync_internal, _IO_file_seek_internal)
4294         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4295         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4296         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4297         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4298         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4299         (_IO_list_all_internal, _IO_link_in_internal)
4300         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4301         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4302         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4303         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4304         (_IO_do_write_internal, _IO_padn_internal)
4305         (_IO_getline_info_internal, _IO_getline_internal)
4306         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4307         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4308         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4309         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4310         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4311         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4312         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4313         with libc_hidden_ver, remove use of INTUSE.
4314         * libio/genops.c: Likewise.
4315         * libio/freopen.c: Likewise.
4316         * libio/freopen64.c: Likewise.
4317         * libio/iofclose.c: Likewise.
4318         * libio/iofdopen.c: Likewise.
4319         * libio/iofflush.c: Likewise.
4320         * libio/iofflush_u.c: Likewise.
4321         * libio/iofgets.c: Likewise.
4322         * libio/iofgets_u.c: Likewise.
4323         * libio/iofopen.c: Likewise.
4324         * libio/iofopncook.c: Likewise.
4325         * libio/iofread.c: Likewise.
4326         * libio/iofread_u.c: Likewise.
4327         * libio/ioftell.c: Likewise.
4328         * libio/iofwrite.c: Likewise.
4329         * libio/iogetline.c: Likewise.
4330         * libio/iogets.c: Likewise.
4331         * libio/iogetwline.c: Likewise.
4332         * libio/iopadn.c: Likewise.
4333         * libio/iopopen.c: Likewise.
4334         * libio/ioseekoff.c: Likewise.
4335         * libio/ioseekpos.c: Likewise.
4336         * libio/iosetbuffer.c: Likewise.
4337         * libio/iosetvbuf.c: Likewise.
4338         * libio/ioungetc.c: Likewise.
4339         * libio/ioungetwc.c: Likewise.
4340         * libio/iovdprintf.c: Likewise.
4341         * libio/iovsprintf.c: Likewise.
4342         * libio/iovsscanf.c: Likewise.
4343         * libio/memstream.c: Likewise.
4344         * libio/obprintf.c: Likewise.
4345         * libio/oldfileops.c: Likewise.
4346         * libio/oldiofclose.c: Likewise.
4347         * libio/oldiofdopen.c: Likewise.
4348         * libio/oldiofopen.c: Likewise.
4349         * libio/oldiopopen.c: Likewise.
4350         * libio/oldstdfiles.c: Likewise.
4351         * libio/putc.c: Likewise.
4352         * libio/setbuf.c: Likewise.
4353         * libio/setlinebuf.c: Likewise.
4354         * libio/stdfiles.c: Likewise.
4355         * libio/strops.c: Likewise.
4356         * libio/vasprintf.c: Likewise.
4357         * libio/vscanf.c: Likewise.
4358         * libio/vsnprintf.c: Likewise.
4359         * libio/vswprintf.c: Likewise.
4360         * libio/wfiledoalloc.c: Likewise.
4361         * libio/wfileops.c: Likewise.
4362         * libio/wgenops.c: Likewise.
4363         * libio/wmemstream.c: Likewise.
4364         * libio/wstrops.c: Likewise.
4365         * libio/__fpurge.c: Likewise.
4366         * libio/__fsetlocking.c: Likewise.
4367         * assert/assert.c: Likewise.
4368         * debug/fgets_chk.c: Likewise.
4369         * debug/fgets_u_chk.c: Likewise.
4370         * debug/fread_chk.c: Likewise.
4371         * debug/fread_u_chk.c: Likewise.
4372         * debug/gets_chk.c: Likewise.
4373         * debug/obprintf_chk.c: Likewise.
4374         * debug/vasprintf_chk.c: Likewise.
4375         * debug/vdprintf_chk.c: Likewise.
4376         * debug/vsnprintf_chk.c: Likewise.
4377         * debug/vsprintf_chk.c: Likewise.
4378         * malloc/mtrace.c: Likewise.
4379         * misc/error.c: Likewise.
4380         * misc/syslog.c: Likewise.
4381         * stdio-common/asprintf.c: Likewise.
4382         * stdio-common/fxprintf.c: Likewise.
4383         * stdio-common/getw.c: Likewise.
4384         * stdio-common/isoc99_fscanf.c: Likewise.
4385         * stdio-common/isoc99_scanf.c: Likewise.
4386         * stdio-common/isoc99_vfscanf.c: Likewise.
4387         * stdio-common/isoc99_vscanf.c: Likewise.
4388         * stdio-common/isoc99_vsscanf.c: Likewise.
4389         * stdio-common/printf-prs.c: Likewise.
4390         * stdio-common/printf_fp.c: Likewise.
4391         * stdio-common/printf_fphex.c: Likewise.
4392         * stdio-common/printf_size.c: Likewise.
4393         * stdio-common/putw.c: Likewise.
4394         * stdio-common/scanf.c: Likewise.
4395         * stdio-common/sprintf.c: Likewise.
4396         * stdio-common/tmpfile.c: Likewise.
4397         * stdio-common/vfprintf.c: Likewise.
4398         * stdio-common/vfscanf.c: Likewise.
4399         * stdlib/strfmon_l.c: Likewise.
4400         * sunrpc/openchild.c: Likewise.
4401         * sunrpc/xdr_stdio.c: Likewise.
4402         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4403         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4404
4405 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4406
4407         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4408
4409         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4410         in the third column, to generate for the shared library an IFUNC
4411         that uses _dl_vdso_vsym.
4412         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4413         * Makeconfig (object-suffixes-noshared): New variable.
4414
4415         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4416         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4417         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4418         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4419
4420         [BZ #14132]
4421         * include/sys/time.h (__gettimeofday): Remove macro.
4422         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4423         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4424         Remove INTDEF.
4425         (__gettimeofday): Add libc_hidden_def.
4426         (gettimeofday): Add libc_hidden_weak.
4427         * sysdeps/mach/gettimeofday.c: Likewise.
4428         * sysdeps/posix/gettimeofday.c: Likewise.
4429         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4430         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4431         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4432         (__gettimeofday_internal): Remove strong_alias.
4433         (__gettimeofday): Add libc_hidden_def.
4434         (gettimeofday): Add libc_hidden_weak.
4435         * sysdeps/unix/syscalls.list (gettimeofday):
4436         Remove __gettimeofday_internal alias.
4437
4438 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4439             H.J. Lu  <hongjiu.lu@intel.com>
4440
4441         [BZ #12495]
4442         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4443         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4444         (largebin_index_32_big): New.
4445         (largebin_index): Use it for 16-byte alignment.
4446         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4447         correction with front_misalign.
4448
4449 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4450
4451         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4452         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4453         Likewise.
4454         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4455         Likewise.
4456         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4457         Likewise.
4458         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4459         Likewise.
4460         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4461         Likewise.
4462         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4463         Likewise.
4464         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4465         Likewise.
4466         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4467         Likewise.
4468         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4469         Likewise.
4470         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4471         Likewise.
4472         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4473         Likewise.
4474         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4475         Likewise.
4476
4477         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4478         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4479
4480 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4481
4482         [BZ #10846]
4483         [BZ #14036]
4484         * math/libm-test.inc (exp_test): Add test from bug 14036.
4485         (pow_test): Add test from bug 10846.
4486
4487         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4488         and other flags.
4489         (special_function): Do not include flags in test name.
4490         (parse_args): Likewise.
4491         * sysdeps/i386/fpu/libm-test-ulps: Update.
4492         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4493         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4494         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4495         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4496
4497         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4498         exceptions.
4499         * math/libm-test.inc ("Philosophy"): Update comment about
4500         exception testing.
4501         (UNDERFLOW_EXCEPTION): New macro.
4502         (UNDERFLOW_EXCEPTION_OK): Likewise.
4503         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4504         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4505         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4506         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4507         (INVALID_EXCEPTION_OK): Update value.
4508         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4509         (OVERFLOW_EXCEPTION_OK): Likewise.
4510         (IGNORE_ZERO_INF_SIGN): Likewise.
4511         (test_exceptions): Handle underflow exceptions.
4512         (acos_test): Update for underflow exception expectations.
4513         (cexp_test): Likewise.
4514         (clog_test): Likewise.
4515         (clog10_test): Likewise.
4516         (csqrt_test): Likewise.
4517         (ctan_test): Likewise.
4518         (ctanh_test): Likewise.
4519         (exp_test): Likewise.
4520         (exp10_test): Likewise.
4521         (exp2_test): Likewise.
4522         (expm1_test): Likewise.
4523         (fma_test): Likewise.
4524         (j0_test): Likewise.
4525         (jn_test): Likewise.
4526         (nexttoward_test): Likewise.
4527         (pow_test): Likewise.
4528         (scalbn_test): Likewise.
4529         (scalbln_test): Likewise.
4530         (tan_test): Likewise.
4531         (y1_test): Likewise.
4532         * sysdeps/i386/fpu/libm-test-ulps: Update.
4533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4534
4535 2012-05-23  David S. Miller  <davem@davemloft.net>
4536
4537         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4538         (__libc_sigaction): Remove unused local variables.
4539
4540 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4541
4542         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4543
4544 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4545
4546         mktime: avoid signed integer overflow
4547         * time/mktime.c (__mktime_internal): Do not mishandle the case
4548         where diff == INT_MIN.
4549
4550         mktime: simplify computation of average
4551         * time/mktime.c (ranged_convert): Use new time_t_avg function
4552         instead of rolling our own (probably-slower) code.
4553
4554         mktime: do not assume signed right shift propagates sign bit
4555         * time/mktime.c (isdst_differ): New static function.
4556         (__mktime_internal): No need to normalize tm_isdst now.
4557         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4558         tm_isdst values.
4559
4560         mktime: merge another wrapv change from gnulib
4561         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4562         from some compilers.
4563
4564         mktime: remove incorrect attempt at unusual arithmetics
4565         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4566         The code didn't really work on such machines anyway.
4567         (TYPE_MINIMUM): Assume two's complement.
4568         (twos_complement_arithmetic): Verify that long_int and time_t
4569         are two's complement (or unsigned, in the latter case).
4570
4571         mktime: check signed shifts on long_int and time_t, too
4572         * time/mktime.c (SHR): Check that shifts work as desired
4573         on the types long_int and time_t too, as SHR is used on
4574         such types.
4575
4576         mktime: do not assume 'long' is wide enough
4577         * time/mktime.c (verify): Move decl up.
4578         (long_int): New type.
4579         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4580         to remove assumption in the code that 'long' is wide enough to
4581         store year values.  This assumption is not true on x32 and on
4582         some non-glibc platforms.
4583
4584         mktime: merge wrapv change from gnulib
4585         * time/mktime.c (WRAPV): New macro.
4586         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4587         (guess_time_tm, __mktime_internal): Do not assume that signed
4588         integer overflow wraps around; modern compilers generate code
4589         where this assumption is no longer valid.
4590
4591 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4592
4593         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4594         Replace "jmp L(pseudo_end)" with "ret".
4595         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4596         Likewise.
4597
4598 2012-05-23  Andreas Jaeger  <aj@suse.de>
4599
4600         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4601         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4602
4603 2012-05-23  Andreas Jaeger  <aj@suse.de>
4604             Maximilian Attems  <max@stro.at>
4605
4606         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4607         New macros.
4608
4609 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4610
4611         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4612         code so that pseudo_end is just ret and the stack pointer is
4613         correct also for static library in error case.
4614
4615 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4616
4617         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4618         move to syscalls.list.
4619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4623
4624         * manual/install.texi (Running make install): Do not mention Linux
4625         kernel version for which pt_chown is not needed.
4626         (Linux): Do not mention problems with nscd with 2.0 kernels.
4627         * INSTALL: Regenerated.
4628
4629 2012-05-23  Andreas Jaeger  <aj@suse.de>
4630
4631         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4632         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4633         macro.
4634         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4635         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4636         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4637         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4638         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4639         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4640         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4641         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4642         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4643         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4644         * sysdeps/unix/sysv/linux/bits/in.h
4645         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4646
4647 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4648
4649         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4650         (PREPARE_VERSION): Just use assert instead, it will be elided
4651         under [NDEBUG] anyway.
4652
4653 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4654
4655         * sysdeps/unix/sysv/linux/Makefile: Include
4656         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4657         (sysdep_routines): Remove sysctl.
4658         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4659         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4660         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4661         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4662         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4663
4664 2012-05-22  Andreas Jaeger  <aj@suse.de>
4665
4666         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4667         that pseudo_end is just ret and the stack pointer is correct also
4668         for static library in error case.
4669
4670 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4671
4672         [BZ #14122]
4673         * nss/nsswitch.c (defconfig_entries): New variable.
4674         (__nss_database_lookup): Don't leak defconfig entries.
4675         (nss_parse_service_list): Don't leak on error paths.
4676         (free_database_entries): New function.
4677         (free_defconfig): New function.
4678         (free_mem): Move common code to free_database_entries.
4679
4680 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4681
4682         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4683         Add arch_prctl.
4684         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4685
4686         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4687         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4688         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4689         New macro.
4690         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4691         (INTERNAL_SYSCALL_TYPES): Likewise.
4692         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4693         (LOAD_REGS_TYPES_[1-6]): Likewise.
4694         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4695         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4696
4697 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4698
4699         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4700         copysignl for GLIBC_2_0.
4701         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4702         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4703         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4704         logbl for GLIBC_2_0.
4705         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4706         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4707
4708 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4709
4710         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4711         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4712
4713         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4714         Use "neg %eax".
4715
4716         * time/mktime.c: Update copyright years.
4717
4718 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4719
4720         mktime: merge comment-quoting-style change from gnulib
4721         * time/mktime.c: Quote 'like this' in comments.
4722         The GNU coding standards suggest that we no longer quote `like this',
4723         as "`" and "'" are typically rendered asymmetrically nowadays.
4724         The typical gnulib style is to quote 'like this' when quoting
4725         code, and "like this" when quoting English.
4726
4727         * time/mktime.c (compile-command): Add "-I.".
4728
4729         mktime: merge mktime-internal.h change from gnulib
4730         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4731
4732         mktime: merge time_r change from gnulib
4733         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4734
4735         mktime: merge DEBUG change from gnulib
4736         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4737         case system <time.h> has a #define.
4738
4739         mktime: merge <sys/types.h> change from gnulib
4740         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4741         since <time.t> is now guaranteed to define time_t.
4742
4743         mktime: merge HAVE_CONFIG_H change from gnulib
4744         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4745
4746 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4747
4748         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4749         Use "neg %eax".
4750
4751         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4752         __rlim_t cast.
4753         (struct rusage): Use anonymous union to pad each field to
4754         __syscall_slong_t.
4755
4756 2012-05-21  David S. Miller  <davem@davemloft.net>
4757
4758         * Makefules (o-iterator): Remove .s cases.
4759         (compile-command.s): Delete.
4760         (COMPILE.s): Delete.
4761         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4762
4763 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4764
4765         * configure.in (libc_cv_predef_stack_protector): Only consider
4766         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4767         * configure: Regenerated.
4768
4769 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4770
4771         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4772         New macro.  Use R*LP on int and pointer.
4773         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4774         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4775         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4776         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4777
4778         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4779         [__WORDSIZE_TIME64_COMPAT32] instead of
4780         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4781         (struct utmp): Likewise.
4782         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4783         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4784         Renamed to ...
4785         (__WORDSIZE_TIME64_COMPAT32): This.
4786         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4787         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4788         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4789         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4790         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4791         (__WORDSIZE_TIME64_COMPAT32): New macro.
4792
4793 2012-05-21  Andreas Jaeger  <aj@suse.de>
4794
4795         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4796         only if [SHARED]. Add prototype for __wcschr_ia32.
4797
4798 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4799
4800         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4801         of %rbp unmolested in the jmp_buf while mangling the low bits.
4802         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4803         unmolested high bits of %rbp while demangling the low bits.
4804         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4805
4806 2012-05-21  Andreas Jaeger  <aj@suse.de>
4807
4808         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4809         * sunrpc/svc_simple.c: Use it for registerrpc.
4810         * sunrpc/xcrypt.c: Use it for passwd2des.
4811
4812         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4813
4814 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4815
4816         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4817         Don't define if [__SYSCALL_WORDSIZE != 32].
4818         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4819         New macro.
4820
4821 2012-05-21  Bruno Haible  <bruno@clisp.org>
4822             Andreas Jaeger  <aj@suse.de>
4823
4824         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4825         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4826         inptr and inend for must_buffer_ch.
4827         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4828         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4829         * stdio-common/Makefile (tests): Remove bug15.
4830         (bug15-ENV): Remove macro.
4831         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4832         anymore.
4833
4834 2012-05-19  Andreas Jaeger  <aj@suse.de>
4835             Roland McGrath  <roland@hack.frob.com>
4836
4837         * manual/contrib.texi: Completely rewritten. It contains now an
4838         alphabetical list of contributors and their contributions.
4839
4840 2012-05-21  Richard Henderson  <rth@twiddle.net>
4841
4842         * misc/getauxval.c (__getauxval): Use unsigned long int.
4843         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4844         (getauxval): Use unsigned long int.
4845
4846 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4847
4848         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4849
4850 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4851
4852         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4853         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4854         __alignof__ (long double).
4855
4856 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4857
4858         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4859
4860 2012-05-20  Richard Henderson  <rth@twiddle.net>
4861
4862         * misc/getauxval.c: New file.
4863         * misc/sys/auxv.h: New file.
4864         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4865         (routines): Add getauxval.
4866         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4867         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4868         * elf/dl-sysdep.c (_dl_auxv): Remove.
4869         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4870         * elf/dl-support.c (_dl_auxv): New variable.
4871         (_dl_aux_init): Initialize it.
4872         * manual/startup.texi (Auxiliary Vector): New node.
4873         * sysdeps/generic/bits/hwcap.h: New file.
4874         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4875         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4876         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4877         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4878         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4879         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4881         Update.
4882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4883         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4884         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4885         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4886         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4887         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4888         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4889         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4890
4891 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4892
4893         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4894
4895 2012-05-19  David S. Miller  <davem@davemloft.net>
4896
4897         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4898
4899 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4900
4901         [BZ #14123]
4902         * math/s_ccosh.c: Include <float.h>
4903         (__ccosh): Avoid internal overflow calculating sinh and cosh
4904         values before multiplying by sin and cos values.
4905         * math/s_ccoshf.c: Likewise.
4906         * math/s_ccoshl.c: Likewise.
4907         * math/s_csin.c: Likewise.
4908         * math/s_csinf.c: Likewise.
4909         * math/s_csinl.c: Likewise.
4910         * math/s_csinh.c: Likewise.
4911         * math/s_csinhf.c: Likewise.
4912         * math/s_csinhl.c: Likewise.
4913         * math/libm-test.inc (ccos_test): Add more tests.
4914         (ccosh_test): Likewise.
4915         (csin_test): Likewise.
4916         (csinh_test): Likewise.
4917         * sysdeps/i386/fpu/libm-test-ulps: Update.
4918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4919
4920 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4921
4922         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4923         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4924
4925         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4926
4927 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4928
4929         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4930         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4931         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4932         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4933         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4934         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4935         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4936         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4937         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4938         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4939         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4940         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4941         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4942         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4943         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4944         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4945         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4946         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4947         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4948         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4949         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4950         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4951         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4952         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4953         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4954         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4955         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4956         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4957         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4958         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4959         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4960
4961 2012-05-18  Andreas Jaeger  <aj@suse.de>
4962
4963         * csu/.gitignore: Delete.
4964
4965 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4966
4967         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4968         (timex): Use __syscall_slong_t.
4969
4970 2012-05-18  Andreas Jaeger  <aj@suse.de>
4971             Carlos O'Donell  <carlos_odonell@mentor.com>
4972
4973         * manual/install.texi (Configuring and compiling): Update
4974         description about files modified in the source directory.
4975         * INSTALL: Regenerated.
4976
4977 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4978
4979         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4980         value.  Use "or" to set return value to -1.
4981         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4982         negate return value.
4983
4984 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4985
4986         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4987         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4988         failure if the compiler has Graphite support disabled.
4989         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4990         Likewise.
4991         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4992         CFLAGS-memmove.c): Likewise.
4993         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4994         Likewise.
4995
4996 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4997
4998         * sysdeps/x86_64/x32/_itoa.h: New file.
4999
5000         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5001         getdents system call only if kernel and user dirents have the
5002         same d_ino and d_off.
5003
5004         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5005         LLONG_MAX != LONG_MAX.
5006         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5007         (_fitoa_word): Likewise.
5008
5009         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5010         years.
5011         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5012         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5013         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5014
5015         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5016         include <bits/wordsize.h>.  Check __x86_64__ instead of
5017         __WORDSIZE.
5018         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5019         if __x86_64__ is defined.  Use anonymous union on fpstate.
5020
5021         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5022         anonymous union.
5023
5024 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5025
5026         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5027         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5028         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5029         Refer to _rtld_local_ro instead of _rtld_global_ro.
5030         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5031         Likewise.
5032         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5033         Likewise.
5034         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5035         Likewise.
5036         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5037         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5038         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5039
5040         * sysdeps/powerpc/powerpc32/dl-machine.c
5041         (__elf_machine_runtime_setup) [PROF]: Don't reference
5042         _dl_prof_resolve.
5043
5044 2012-05-18  Andreas Jaeger  <aj@suse.de>
5045
5046         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5047         function only available for GCCs before 3.4 since GCC 3.4
5048         introduced a builtin.
5049         (lrint): Likewise.
5050         (llrintf): Likewise.
5051         (llrint): Likewise.
5052         (fmaxf): Likewise.
5053         (fmax): Likewise.
5054         (fminf): Likewise.
5055         (fmin): Likewise.
5056         (rint): Likewise.
5057         (rintf): Likewise.
5058         (nearbyint): Likewise.
5059         (nearbyintf): Likewise.
5060         (ceil): Likewise.
5061         (ceilf): Likewise.
5062         (floor): Likewise.
5063         (floorf): Likewise.
5064
5065 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5066
5067         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5068         on both fields and cast pointer to __syscall_ulong_t.
5069
5070         * bits/types.h (__fsword_t): New type.
5071         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5072         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5073         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5074         (__FSWORD_T_TYPE): Likewise.
5075         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5076         (__FSWORD_T_TYPE): Likewise.
5077         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5078         (__FSWORD_T_TYPE): Likewise.
5079         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5080         (__FSWORD_T_TYPE): Likewise.
5081         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5082         __SWORD_TYPE with __fsword_t.
5083         (statfs64): Likewise.
5084
5085 2012-05-17  David S. Miller  <davem@davemloft.net>
5086
5087         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5088
5089 2012-05-17  Andreas Jaeger  <aj@suse.de>
5090
5091         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5092         warning.
5093
5094 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5095
5096         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5097
5098 2012-05-17  Andreas Jaeger  <aj@suse.de>
5099
5100         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5101         when it is used.
5102
5103 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5104
5105         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5106
5107 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5108
5109         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5110         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5111
5112 2012-05-17  Andreas Jaeger  <aj@suse.de>
5113             Carlos O'Donell  <carlos_odonell@mentor.com>
5114
5115         [BZ #14059]
5116         * sysdeps/x86_64/multiarch/init-arch.h
5117         (bit_YMM_Usable): Rename to...
5118         (bit_AVX_Usable): ... this.
5119         (bit_FMA4_Usable): New macro.
5120         (bit_XMM_state): New macro.
5121         (bit_YMM_state): New macro.
5122         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5123         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5124         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5125         (CPUID_OSXSAVE): New macro.
5126         (CPUID_AVX): New macro.
5127         (CPUID_FMA4): New macro.
5128         (index_YMM_Usable): Rename to...
5129         (index_AVX_Usable): ... this.
5130         (HAS_AVX): Use HAS_ARCH_FEATURE.
5131         (HAS_FMA4): Likewise.
5132         (HAS_YMM_USABLE): Remove.
5133         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5134         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5135         are present.
5136         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5137         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5138         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5139         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5140         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5141
5142 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5143
5144         * math/libm-test.c: Support platforms without multiple rounding modes.
5145         * math/bug-nextafter.c: Support platforms without FP exceptions.
5146         * math/bug-nexttoward.c: Likewise.
5147         * math/test-fenv.c: Likewise.
5148         * math/test-misc.c: Likewise.
5149         * stdlib/bug-getcontext.c: Likewise.
5150
5151 2012-05-17  Andreas Jaeger  <aj@suse.de>
5152
5153         * manual/examples/search.c (critter_cmp): Change signature to
5154         avoid warnings.
5155         * manual/string.texi (Collation Functions): Likewise.
5156
5157 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5158
5159         * bits/types.h: Fold copyright years.
5160         * bits/typesizes.h: Likewise.
5161         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5162         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5163         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5164         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5165         * time/time.h: Likewise.
5166
5167 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5168
5169         [BZ #208]
5170         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5171         in instead of returning them.  Return void.
5172         (__libc_mallinfo): Accumulate over all arenas.
5173         (__malloc_stats): Adjust for change in int_mallinfo interface.
5174
5175 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5176
5177         [BZ #10375]
5178         * configure.in (NM): Add AC_CHECK_TOOL for it.
5179         (libc_extra_cflags): New substituted variable.
5180         Check for -fstack-protector being used implicitly.
5181         * configure: Regenerated.
5182         * config.make.in (config-extra-cflags): New variable,
5183         gets @libc_extra_cflags@.
5184         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5185
5186         [BZ #10375]
5187         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5188         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5189         * configure: Regenerated.
5190         * config.make.in (CPPUNDEFS): New substituted variable.
5191         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5192         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5193         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5194
5195 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5196
5197         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5198         (mq_attr): Use __syscall_slong_t.
5199
5200 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5201
5202         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5203         Check __x86_64__ instead of __WORDSIZE.
5204         (_STAT_VER_LINUX): Likewise.
5205         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5206         __syscall_ulong_t and __syscall_slong_t.
5207         (stat64): Likewise.
5208
5209 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5210
5211         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5212
5213 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5214
5215         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5216
5217 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5218
5219         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5220         __syscall_ulong_t.
5221
5222         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5223         include <bits/wordsize.h>.  Check __x86_64__ instead of
5224         __WORDSIZE.
5225         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5226         defined.
5227         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5228
5229         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5230         include <bits/wordsize.h>.  Check __x86_64__ instead of
5231         __WORDSIZE.
5232         (user_regs_struct): Use "__extension__ unsigned long long"
5233         instead of "unsigned long" if __x86_64__ is defined.
5234         (user): Likewise.  Pad after pointer field if __ILP32__ is
5235         defined.
5236
5237 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5238
5239         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5240         versions 5 to 9.
5241         * configure: Regenerated.
5242         * manual/install.texi (texinfo): Increase version requirement to
5243         4.5 or later.
5244         * INSTALL: Regenerated.
5245
5246         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5247
5248 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5249
5250         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5251
5252         * sysdeps/x86_64/x32/ffs.c: New file.
5253
5254         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5255         __syscall_ulong_t.
5256         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5257         defined.  Use __syscall_ulong_t.
5258         (shminfo): Use __syscall_ulong_t.
5259         (shm_info): Likewise.
5260
5261         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5262         __syscall_ulong_t.
5263
5264         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5265         <bits/wordsize.h>.
5266         (msgqnum_t): Use __syscall_ulong_t.
5267         (msglen_t): Likewise.
5268         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5269         __syscall_ulong_t.
5270
5271         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5272         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5273
5274         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5275
5276         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5277         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5278
5279         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5280         __syscall_slong_t.
5281
5282         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5283         include <bits/wordsize.h>.  Check __x86_64__ instead of
5284         __WORDSIZE.
5285
5286         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5287         "unsigned long long int" if __x86_64__ is defined.
5288         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5289
5290         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5291         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5292         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5293
5294         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5295         <stdint.h>.
5296         (GET_PC): Cast to uintptr_t first.
5297         (GET_FRAME): Likewise.
5298         (GET_STACK): Likewise.
5299
5300         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5301         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5302         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5303         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5304         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5305         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5306         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5307         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5308         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5309         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5310         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5311         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5312         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5313         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5314         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5315         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5316         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5317         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5318         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5319         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5320         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5321         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5322         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5323         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5324         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5325         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5326         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5327         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5328         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5329
5330 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5331
5332         * Makerules (+depfiles): Also collect depfiles from .oS in
5333         $(extra-objs).
5334         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5335         .oS, $(libnldbl-routines)).
5336
5337         * Makerules (native-compile-mkdep-flags): Define.
5338         * sunrpc/Makefile (extra-objs): Add $(addprefix
5339         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5340         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5341         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5342         calling $(make-target-directory).
5343
5344 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5345
5346         * bits/types.h (__snseconds_t): Removed.
5347         * time/time.h (struct timespec): Replace __snseconds_t with
5348         __syscall_slong_t.
5349         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5350         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5351         Likewise.
5352         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5353         (__SNSECONDS_T_TYPE): Likewise.
5354         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5355         (__SNSECONDS_T_TYPE): Likewise.
5356         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5357         (__SNSECONDS_T_TYPE): Likewise.
5358
5359 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5360
5361         * sysdeps/mach/hurd/bits/typesizes.h
5362         (__SYSCALL_SLONG_TYPE): New macro.
5363         (__SYSCALL_ULONG_TYPE): Likewise.
5364
5365 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5366
5367         * bits/types.h (__syscall_slong_t): New type.
5368         (__syscall_ulong_t): Likewise.
5369
5370         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5371         (__SYSCALL_ULONG_TYPE): Likewise.
5372         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5373         (__SYSCALL_SLONG_TYPE): Likewise.
5374         (__SYSCALL_ULONG_TYPE): Likewise.
5375         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5376         (__SYSCALL_SLONG_TYPE): Likewise.
5377         (__SYSCALL_ULONG_TYPE): Likewise.
5378         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5379         (__SYSCALL_SLONG_TYPE): Likewise.
5380         (__SYSCALL_ULONG_TYPE): Likewise.
5381
5382 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5383
5384         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5385         Add sigaltstack-offsets.sym.
5386         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5387         <sigaltstack-offsets.h>.
5388         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5389         longjmp_msg pointer.
5390         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5391         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5392         signal stack.
5393         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5394
5395 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5396
5397         * elf/stackguard-macros.h: Remove file.
5398         * sysdeps/generic/stackguard-macros.h: New file.
5399         * sysdeps/i386/stackguard-macros.h: Likewise.
5400         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5401         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5402         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5403         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5404         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5405         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5406         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5407         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5408         <elf/stackguard-macros.h>.
5409
5410         [BZ #14109]
5411         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5412         __aligned__ in attribute.
5413         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5414         (gregset_t): Likewise.
5415
5416 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5417
5418         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5419         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5420         * sysdeps/x86_64/x32/Implies-after: New file.
5421
5422 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5423
5424         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5425         and access return value for _dl_profile_fixup.  Use R10_LP to
5426         load frame size.
5427
5428 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5429
5430         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5431
5432 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5433
5434         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5435         * sysdeps/x86_64/x32/sysdep.h: New file.
5436
5437 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5438
5439         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5440         * sysdeps/x86_64/setjmp.S: Likewise.
5441
5442 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5443
5444         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5445         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5446         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5447         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5448         remove unused global constant.
5449
5450 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5451
5452         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5453         include of <not-cancel.h>.
5454
5455 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5456
5457         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5458
5459 2012-05-15  Jeff Law  <law@redhat.com>
5460             Andreas Jaeger  <aj@suse.de>
5461
5462         [BZ #13594]
5463         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5464         out from...
5465         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5466         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5467         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5468         code changing __hst_map_handle.map.
5469
5470 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5471
5472         * configure.in (sysnames): Look for Implies-before and Implies-after
5473         files.
5474         * configure: Regenerated.
5475
5476 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5477
5478         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5479         8-byte data alignment with LP_SIZE alignment.
5480
5481 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5482
5483         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5484         into R10_LP.
5485
5486 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5487
5488         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5489
5490 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5491
5492         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5493         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5494         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5495         Likewise.
5496         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5497
5498 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5499
5500         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5501         (stackinfo_sub_sp): Likewise.
5502
5503 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5504
5505         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5506         RAX_LP.
5507
5508 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5509
5510         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5511         into R*_LP.
5512
5513 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5514
5515         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5516         sizes into R*_LP.
5517
5518 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5519
5520         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5521
5522 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5523
5524         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5525         into R11_LP and load __x86_64_shared_cache_size_half into
5526         R8_LP.
5527
5528 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5529
5530         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5531         R8_LP.
5532
5533 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5534
5535         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5536         logb for POWER7.
5537         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5538         logbf for POWER7.
5539         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5540         logbl for POWER7.
5541         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5542         powerpc32/power7/fpu/s_logb.c via #include.
5543         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5544         powerpc32/power7/fpu/s_logbf.c via #include.
5545         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5546         powerpc32/power7/fpu/s_logbl.c via #include.
5547
5548 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5549
5550         * README.libm: Remove file.
5551
5552 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5553
5554         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5555         count for x32.  Use R*_LP and omit operand-size suffix.
5556
5557 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5558
5559         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5560         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5561         * sysdeps/x86_64/x32/shlib-versions: New file.
5562
5563 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5564
5565         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5566         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5567         Use _dl_fatal_printf instead.
5568
5569 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5570
5571         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5572         set if not set by the user.  Do not allow for being unset.
5573         * sysdeps/unix/sysv/linux/configure: Regenerated.
5574
5575 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5576
5577         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5578         the `q' suffix from lea and replace .quad with ASM_ADDR.
5579
5580 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5581
5582         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5583         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5584         instead of $17.
5585         (PTR_DEMANGLE): Likewise.
5586
5587 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5588
5589         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5590         (LP_OP): Likewise.
5591         (ASM_ADDR): Likewise.
5592         (RAX_LP): Likewise.
5593         (RBP_LP): Likewise.
5594         (RBX_LP): Likewise.
5595         (RCX_LP): Likewise.
5596         (RDI_LP): Likewise.
5597         (RSI_LP): Likewise.
5598         (RSP_LP): Likewise.
5599         (R8_LP): Likewise.
5600         (R9_LP): Likewise.
5601         (R10_LP): Likewise.
5602         (R10_LP): Likewise.
5603         (R11_LP): Likewise.
5604         (R12_LP): Likewise.
5605         (R13_LP): Likewise.
5606         (R14_LP): Likewise.
5607         (R15_LP): Likewise.
5608
5609 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5610
5611         * sysdeps/x86_64/x32/dl-machine.h: New file.
5612
5613 2012-05-14  Andreas Jaeger  <aj@suse.de>
5614
5615         * manual/Makefile (subdir): Remove export of subdir.
5616         (all): Remove target.
5617         (.PHONY): Remove all from list.
5618         (mkinstalldirs): Remove.
5619         (.PHONY): Remove installdirs from list.
5620         ($(inst_infodir)/libc.info): Use make-target-directory.
5621         (installdirs): Remove.
5622         (subdir_%): Remove.
5623         (glibc-targets): Remove.
5624         (lib): Remove.
5625         (stubs): Remove.
5626         ($(objpfx)stubs ../po/manual.pot): Remove.
5627         ($(objpfx)stamp%): Remove.
5628         (make-target-directory): Remove.
5629         (subdir_install): Remove.
5630         (routines): Remove.
5631         (aux): Remove.
5632         (sources): Remove.
5633         (objects): Remove.
5634         (headers): Remove.
5635
5636         [BZ #13750]
5637         * manual/.gitignore: Remove, it's not needed anymore.
5638         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5639         all files in it.
5640         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5641         directory.
5642         (texis): Renamed to $(objpfx)texis.
5643         (texis-path): New, contains path to generated files.
5644         (chapters.%): Use texis-path for complete path, add extra argument
5645         libc-texinfo.sh.
5646         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5647         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5648         (summary,texi, stamp-summary): Use complete path of
5649         files. Generate files in build dir.
5650         (dir-add.texi): Build in build dir.
5651         (libm-err.texi,stamp-libm-err): Likewise.
5652         (version.texi, stamp-version): Likewise.
5653         (.%c.texi): Likewise.
5654         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5655         (mostlyclean): Remove target.
5656         (realclean): Remove target.
5657         (generated): Add new variable with contents from mostlyclean and
5658         realclean, remove entries duplicated in common-mostlyclean, add
5659         stamp-libm-err and stamp-version.
5660         (generated-dirs): Add libc directory.
5661         ($(inst_infodir)/libc.info): Install files from build dir.
5662
5663         * manual/install.texi (Configuring and compiling): Adjust since
5664         the info files are not part of the tar ball anymore.
5665
5666 2012-05-14  Andreas Jaeger  <aj@suse.de>
5667
5668         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5669         variable.
5670
5671 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5672
5673         [BZ #13717]
5674         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5675         to 2.2.0 where earlier.
5676         * sysdeps/unix/sysv/linux/configure: Regenerated.
5677         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5678         Remove conditional code.
5679         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5680         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5681         Remove conditional code.
5682         [!__NR_lchown]: Likewise.
5683         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5684         [__NR_lchown]: Likewise.
5685         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5686         comment referencing __ASSUME_LCHOWN_SYSCALL.
5687         * sysdeps/unix/sysv/linux/i386/sigaction.c
5688         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5689         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5690         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5691         Remove conditional code.
5692         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5693         (__protocol_available): Remove #if 0 code.
5694         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5695         conditional code.
5696         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5697         * sysdeps/unix/sysv/linux/kernel-features.h
5698         (__ASSUME_GETCWD_SYSCALL): Don't define.
5699         (__ASSUME_REALTIME_SIGNALS): Likewise.
5700         (__ASSUME_PREAD_SYSCALL): Likewise.
5701         (__ASSUME_PWRITE_SYSCALL): Likewise.
5702         (__ASSUME_POLL_SYSCALL): Likewise.
5703         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5704         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5705         non-SPARC.
5706         (__ASSUME_SIOCGIFNAME): Don't define.
5707         (__ASSUME_MSG_NOSIGNAL): Likewise.
5708         (__ASSUME_SENDFILE): Define unconditionally.
5709         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5710         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5711         conditional code.
5712         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5713         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5714         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5715         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5716         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5717         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5718         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5720         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5721         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5723         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5724         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5726         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5727         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5729         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5730         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5732         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5733         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5735         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5736         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5738         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5739         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5741         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5742         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5743         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5744         Remove conditional code.
5745         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5746         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5747         Remove conditional code.
5748         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5749         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5750         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5751         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5752         Remove conditional code.
5753         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5754         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5755         Remove conditional code.
5756         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5757         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5758         Remove conditional code.
5759         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5760         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5761         Remove conditional code.
5762         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5763         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5764         Remove conditional code.
5765         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5766         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5767         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5768         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5769         * sysdeps/unix/sysv/linux/sigaction.c
5770         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5771         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5772         * sysdeps/unix/sysv/linux/sigpending.c
5773         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5774         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5775         * sysdeps/unix/sysv/linux/sigprocmask.c
5776         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5777         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5778         * sysdeps/unix/sysv/linux/sigsuspend.c
5779         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5780         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5781         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5782         (__libc_missing_rt_sigs): Remove.
5783         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5784         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5785         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5786         Remove conditional code.
5787         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5788         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5789         return 1.
5790         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5791         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5792         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5793         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5794
5795 2012-05-14  Andreas Jaeger  <aj@suse.de>
5796
5797         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5798         it's not used in glibc.
5799         (__coshm1): Likewise.
5800         (__acosh1p): Likewise.
5801         (__sgn): Likewise.
5802
5803         * manual/string.texi (Copying and Concatenation): Add missing
5804         variable in concat example.
5805         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5806
5807 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5808
5809         [BZ #14103]
5810         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5811         __builtin_clzl with __builtin_clzll.
5812
5813 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5814
5815         [BZ #14104]
5816         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5817         libc_freeres_ptr.
5818
5819 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5820
5821         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5822         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5823         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5824         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5825
5826 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5827
5828         * NEWS: Update ia64 info.
5829
5830 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5831
5832         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5833         used as bcopy.
5834
5835 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5836
5837         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5838         * sysdeps/unix/syscalls.list (dup3): Likewise.
5839         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5840         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5841
5842 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5843
5844         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5845         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5846
5847 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5848
5849         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5850         thread pointer.
5851         (TLS_IE): Use mov/add instead of movq/addq to load thread
5852         pointer.
5853         (TLS_GD_PREFIX): New.
5854         (TLS_GD): Use it.
5855
5856 2012-05-11  David S. Miller  <davem@davemloft.net>
5857
5858         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5859         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5860         (_FPU_SETCW): Likewise.
5861
5862 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5863
5864         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5865         is 32-byte aligned.
5866
5867 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5868
5869         [BZ #11837]
5870         * iconvdata/gb18030.c: Update tables.
5871         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5872         characters specially.
5873         (BODY for TO_LOOP): Add encoding of missing ranges.
5874
5875 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5876
5877         [BZ #13673]
5878         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5879         * sysdeps/mach/hurd/dup3.c: Likewise.
5880         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5881         * sysdeps/powerpc/memmove.c:: Likewise.
5882
5883 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5884
5885         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5886         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5887
5888 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5889
5890         * elf/elf.h (R_X86_64_RELATIVE64): New.
5891         (R_X86_64_NUM): Updated.
5892         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5893         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5894         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5895         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5896         tst-quad1pie tst-quad2pie
5897         (modules-names): Add tst-quadmod1 tst-quadmod2.
5898         ($(objpfx)tst-quad1): New dependency.
5899         ($(objpfx)tst-quad2): Likewise.
5900         ($(objpfx)tst-quad1pie): Likewise.
5901         ($(objpfx)tst-quad2pie): Likewise.
5902         * sysdeps/x86_64/tst-quad1.c: New file.
5903         * sysdeps/x86_64/tst-quad1pie.c: New file.
5904         * sysdeps/x86_64/tst-quad2.c: Likewise.
5905         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5906         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5907         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5908         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5909         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5910
5911 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5912
5913         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5914         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5915         * streams/stropts.h (t_scalar_t): Define type.
5916
5917         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5918         (_PATH_PRESERVE): Set to "/var/lib".
5919         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5920
5921         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5922         instead of int.
5923
5924         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5925         if __dir_mkfile succeeded.
5926
5927         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5928         checking for _hurd_dtablesize.  Unlock it right after having
5929         finished _hurd_dtable allocation.
5930
5931 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5932
5933         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5934         * sysdeps/mach/hurd/configure: Regenerated.
5935         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5936         special-casing to...
5937         * sysdeps/gnu/configure.in: ... this new file.
5938         * sysdeps/unix/sysv/linux/configure: Regenerated.
5939         * sysdeps/gnu/configure: New generated file.
5940
5941         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5942         for Linux: use nsec instead of usec, as well as:
5943         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5944         members of type struct timespec.
5945         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5946         New macros.
5947         (struct stat64): Likewise.
5948         (_STATBUF_ST_NSEC): New macro.
5949         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5950
5951         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5952         __strtoul_internal rather than strtoul.
5953
5954 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5955
5956         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5957         and reject them.
5958
5959 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5960
5961         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5962         which preserves existing values.
5963         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5964
5965 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5966
5967         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5968         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5969         greater than FD_SETSIZE.
5970
5971 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5972
5973         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5974         allocated, call __vm_protect to finish enabling the existing space, and
5975         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5976         allocate the remainder.
5977
5978 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5979
5980         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5981         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5982
5983 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5984
5985         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5986         sysdeps/mach/hurd/readlink.c.
5987
5988         * posix/tst-sysconf.c (posix_options): Only use
5989         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5990         _POSIX_SYNCHRONIZED_IO when they are defined
5991         * sysdeps/mach/hurd/bits/posix_opt.h:
5992         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5993         (_XOPEN_REALTIME): Undefine macro.
5994         (_XOPEN_REALTIME_THREADS): Undefine macro.
5995         (_XOPEN_SHM): Undefine macro.
5996         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5997         macro to -1.
5998         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5999         macro to -1.
6000         (_POSIX_ASYNC_IO): Undefine macro.
6001         (_POSIX_PRIORITIZED_IO): Undefine macro.
6002         (_POSIX_SPIN_LOCKS): Define macro to -1.
6003
6004         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6005         SA_NODEFER, SA_RESETHAND.
6006         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6007         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6008         F_DUPFD_CLOEXEC.
6009
6010 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6011
6012         * elf/Makefile (pldd-modules): Define unconditionally.
6013
6014 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6015
6016         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6017
6018 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6019
6020         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6021         Return ENOENT when name is empty.
6022         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6023
6024 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6025
6026         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6027
6028         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6029
6030 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6031
6032         Fix mlock in all cases except non-readable pages.
6033         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6034         instead of VM_PROT_ALL as parameter to __vm_wire function.
6035
6036         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6037         (__mkdir): When path is `/', just fail with EEXIST.
6038         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6039
6040 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6041
6042         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6043         <sys/uio.h> (for writev).
6044         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6045         and <sys/param.h> (for MIN).
6046
6047 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6048
6049         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6050         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6051         if interrupted.
6052
6053 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6054
6055         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6056         Depend on against $(link-rpcuserlibs).
6057
6058 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6059
6060         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6061         (__libc_stack_end): Do not use attribute_relro.
6062         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6063         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6064         to libthread-provided value.
6065         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6066         attribute_relro.
6067
6068 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6069
6070         [BZ #3748]
6071         * bits/libc-lock.h (__libc_once_get): New macro.
6072         * sysdeps/mach/bits/libc-lock.h: Likewise.
6073         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6074         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6075         instead of using implementation details.
6076
6077         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6078         * libio/freopen.c: Likewise.
6079         * libio/freopen64.c: Likewise.
6080         * misc/syslog.c: Likewise.
6081         * nscd/connections.c: Likewise.
6082         * nscd/netgroupcache.c: Likewise.
6083         * sysdeps/posix/getcwd.c: Likewise.
6084
6085 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6086
6087         * math/w_ilogbf.c: Add #include <limits.h>.
6088
6089 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6090
6091         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6092         path instead of returning without unlocking.
6093
6094         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6095         immediate-write ioctls.
6096         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6097
6098 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6099
6100         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6101         __builtin_frame_address instead of making assumptions about the
6102         location of the return address relative to DATA.  Force early load of
6103         the return address.
6104         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6105         __builtin_frame_address.
6106
6107         dup3 for GNU Hurd.
6108         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6109         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6110         implement dup3 and do some further code clean-ups.
6111         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6112         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6113
6114 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6115
6116         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6117
6118         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6119         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6120         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6121         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6122         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6123         d->port.lock.
6124
6125         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6126         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6127         when handler == SIG_ERR, not when handler != SIG_ERR.
6128
6129 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6130
6131         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6132         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6133         definitions.
6134
6135         accept4 for GNU Hurd.
6136         * include/sys/socket.h (__libc_accept4): New prototype.
6137         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6138         to implement __libc_accept4.
6139         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6140         __libc_accept4.
6141         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6142
6143         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6144         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6145         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6146         signal-defines.sym.
6147
6148 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6149
6150         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6151
6152 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6153
6154         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6155         assertion on O_CLOEXEC flag.
6156         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6157         * hurd/intern-fd.c: Likewise.
6158         * hurd/port2fd.c: Likewise.
6159
6160 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6161
6162         [BZ #3906]
6163         * bits/in.h (IPV6_PKTINFO): Define new macro.
6164         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6165
6166 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6167
6168         [BZ #13954]
6169         [BZ #13955]
6170         [BZ #13956]
6171         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6172         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6173         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6174         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6175         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6176         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6177         * math/libm-test.inc (logb_test) : Additional logb tests.
6178
6179 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6180             Andreas Jaeger  <aj@suse.de>
6181
6182         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6183         * configure: Regenerated.
6184         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6185         * config.make.in (link-obsolete-rpc): New substituted variable.
6186         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6187         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6188         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6189         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6190         so that libc.a contains the symbols.
6191         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6192         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6193         * sunrpc/auth_none.c: Likewise.
6194         * sunrpc/auth_unix.c: Likewise.
6195         * sunrpc/authdes_prot.c: Likewise.
6196         * sunrpc/authuxprot.c: Likewise.
6197         * sunrpc/clnt_gen.c: Likewise.
6198         * sunrpc/clnt_perr.c: Likewise.
6199         * sunrpc/clnt_raw.c: Likewise.
6200         * sunrpc/clnt_simp.c: Likewise.
6201         * sunrpc/clnt_tcp.c: Likewise.
6202         * sunrpc/clnt_udp.c: Likewise.
6203         * sunrpc/clnt_unix.c: Likewise.
6204         * sunrpc/des_crypt.c: Likewise.
6205         * sunrpc/des_soft.c: Likewise.
6206         * sunrpc/get_myaddr.c: Likewise.
6207         * sunrpc/key_call.c: Likewise.
6208         * sunrpc/key_prot.c: Likewise.
6209         * sunrpc/netname.c: Likewise.
6210         * sunrpc/pm_getmaps.c: Likewise.
6211         * sunrpc/pm_getport.c: Likewise.
6212         * sunrpc/pmap_clnt.c: Likewise.
6213         * sunrpc/pmap_prot.c: Likewise.
6214         * sunrpc/pmap_prot2.c: Likewise.
6215         * sunrpc/pmap_rmt.c: Likewise.
6216         * sunrpc/publickey.c: Likewise.
6217         * sunrpc/rpc_cmsg.c: Likewise.
6218         * sunrpc/rpc_common.c: Likewise.
6219         * sunrpc/rpc_dtable.c: Likewise.
6220         * sunrpc/rpc_prot.c: Likewise.
6221         * sunrpc/rpc_thread.c: Likewise.
6222         * sunrpc/rtime.c: Likewise.
6223         * sunrpc/svc.c: Likewise.
6224         * sunrpc/svc_auth.c: Likewise.
6225         * sunrpc/svc_raw.c: Likewise.
6226         * sunrpc/svc_run.c: Likewise.
6227         * sunrpc/svc_tcp.c: Likewise.
6228         * sunrpc/svc_udp.c: Likewise.
6229         * sunrpc/svc_unix.c: Likewise.
6230         * sunrpc/svcauth_des.c: Likewise.
6231         * sunrpc/xcrypt.c: Likewise.
6232         * sunrpc/xdr.c: Likewise.
6233         * sunrpc/xdr_array.c: Likewise.
6234         * sunrpc/xdr_float.c: Likewise.
6235         * sunrpc/xdr_intXX_t.c: Likewise.
6236         * sunrpc/xdr_mem.c: Likewise.
6237         * sunrpc/xdr_rec.c: Likewise.
6238         * sunrpc/xdr_ref.c: Likewise.
6239         * sunrpc/xdr_sizeof.c: Likewise.
6240         * sunrpc/xdr_stdio.c: Likewise.
6241
6242 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6243
6244         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6245         change.  Update copyright years.
6246
6247 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6248
6249         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6250
6251 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6252             Joseph Myers  <joseph@codesourcery.com>
6253             Paul Pluzhnikov  <ppluzhnikov@google.com>
6254
6255         [BZ #14012]
6256         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6257         requiring rpcgen.
6258         [cross-compiling] (extra-libs): Likewise.
6259         [cross-compiling] (extra-libs-others): Likewise.
6260         [cross-compiling] (librpcsvc-routines): Likewise.
6261         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6262         [cross-compiling] (omit-deps): Likewise.
6263         (sunrpc-CPPFLAGS): New variable.
6264         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6265         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6266         (cross-rpcgen-objs): New variable.
6267         (extra-objs): Append $(cross-rpcgen-objs).
6268         ($(cross-rpcgen-objs)): New rule.
6269         ($(objpfx)cross-rpcgen): Likewise.
6270         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6271         comment.
6272         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6273         ($(objpfx)x%.stmp): Likewise.
6274         * sunrpc/proto.h [IS_IN_build] (_): Define.
6275         [IS_IN_build] (_libc_intl_domainname): Likewise.
6276
6277 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6278
6279         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6280         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6281         and R_X86_64_TPOFF64.
6282
6283 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6284
6285         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6286         sysdeps/unix/sysv/syscalls.list.
6287         (stime): Likewise.
6288         (utime): Likewise.
6289         * sysdeps/unix/sysv/syscalls.list: Remove file.
6290
6291 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6292
6293         [BZ #3440]
6294         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6295         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6296         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6297         (__LC_IDENTIFICATION): Make these macros useful in #if
6298         expressions, as required by C99.
6299
6300 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6301
6302         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6303         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6304         after this.
6305
6306 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6307
6308         * stdlib/longlong.h: Updated from GCC.
6309
6310 2012-05-09  Andreas Jaeger  <aj@suse.de>
6311
6312         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6313         default is first entry.
6314         (run_mode): Set type.
6315         (main): Remove informal message about syslog.
6316         (options): Fix typo.
6317
6318         [BZ #14053]
6319         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6320         to asm.
6321         (lrint): Likewise.
6322         (llrintf): Likewise.
6323         (llrint): Likewise.
6324         (rint): Likewise.
6325         (rintf): Likewise.
6326         (nearbyint): Likewise.
6327         (nearbyintf): Likewise.
6328
6329 2012-05-09  Andreas Jaeger  <aj@suse.de>
6330             Pedro Alves  <palves@redhat.com>
6331
6332         * nscd/nscd.c (run_mode): Use enum.
6333         (main): Cleanup coding style issue.
6334
6335 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6336             Andreas Jaeger  <aj@suse.de>
6337
6338         * nscd/nscd.c (go_background): Replaced with...
6339         (run_mode): ... this.
6340         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6341         (options): Add -F --foreground.
6342         (main): Implement it.
6343         (parse_opt): Parse it.
6344
6345 2012-05-09  Andreas Jaeger  <aj@suse.de>
6346
6347         [BZ #14083]
6348         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6349         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6350         -Wconversion warning.
6351         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6352         Likewise.
6353
6354 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6355
6356         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6357         == 0.
6358         (LC_ALL): Use macro-int-constant.
6359         (LC_COLLATE): Likewise.
6360         (LC_CTYPE): Likewise.
6361         (LC_MESSAGES): Likewise.
6362         (LC_MONETARY): Likewise.
6363         (LC_NUMERIC): Likewise.
6364         (LC_TIME): Likewise.
6365         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6366         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6367         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6368         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6369         Specify type.
6370         [C99-based standards] (float_t): Expect type.
6371         [C99-based standards] (double_t): Expect type.
6372         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6373         type.
6374         [C99-based standards] (HUGE_VALL): Likewise.
6375         [C99-based standards] (INFINITY): Likewise.
6376         [C99-based standards] (NAN): Likewise.
6377         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6378         [C99-based standards] (FP_NAN): Likewise.
6379         [C99-based standards] (FP_NORMAL): Likewise.
6380         [C99-based standards] (FP_SUBNORMAL): Likewise.
6381         [C99-based standards] (FP_ZERO): Likewise.
6382         [C99-based standards] (FP_FAST_FMA): Use
6383         optional-macro-int-constant.  Specify type.  Require == 1.
6384         [C99-based standards] (FP_FAST_FMAF): Likewise.
6385         [C99-based standards] (FP_FAST_FMAL): Likewise.
6386         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6387         [C99-based standards] (FP_ILOGBNAN): Likewise.
6388         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6389         Specify type.
6390         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6391         [C99-based standards] (math_errhandling): Specify type.
6392         [ISO99 || ISO11] (signgam): Do not allow.
6393         [non-C99-based standards] (copysignf): Do not allow.
6394         [non-C99-based standards] (exp2f): Likewise.
6395         [non-C99-based standards] (log2f): Likewise.
6396         [non-C99-based standards] (modff): Allow.
6397         [non-C99-based standards] (erff): Do not allow.
6398         [non-C99-based standards] (erfcf): Likewise.
6399         [non-C99-based standards] (gammaf): Likewise.
6400         [non-C99-based standards] (hypotf): Likewise.
6401         [non-C99-based standards] (j0f): Likewise.
6402         [non-C99-based standards] (j1f): Likewise.
6403         [non-C99-based standards] (jnf): Likewise.
6404         [non-C99-based standards] (lgammaf): Likewise.
6405         [non-C99-based standards] (tgammaf): Likewise.
6406         [non-C99-based standards] (y0f): Likewise.
6407         [non-C99-based standards] (y1f): Likewise.
6408         [non-C99-based standards] (ynf): Likewise.
6409         [non-C99-based standards] (isnanf): Likewise.
6410         [non-C99-based standards] (acoshf): Likewise.
6411         [non-C99-based standards] (asinhf): Likewise.
6412         [non-C99-based standards] (atanhf): Likewise.
6413         [non-C99-based standards] (cbrtf): Likewise.
6414         [non-C99-based standards] (expm1f): Likewise.
6415         [non-C99-based standards] (ilogbf): Likewise.
6416         [non-C99-based standards] (log1pf): Likewise.
6417         [non-C99-based standards] (logbf): Likewise.
6418         [non-C99-based standards] (nextafterf): Likewise.
6419         [non-C99-based standards] (remainderf): Likewise.
6420         [non-C99-based standards] (rintf): Likewise.
6421         [non-C99-based standards] (scalbf): Likewise.
6422         [non-C99-based standards] (copysignl): Likewise.
6423         [non-C99-based standards] (exp2l): Likewise.
6424         [non-C99-based standards] (log2l): Likewise.
6425         [non-C99-based standards] (modfl): Allow.
6426         [non-C99-based standards] (erfl): Do not allow.
6427         [non-C99-based standards] (erfcl): Likewise.
6428         [non-C99-based standards] (gammal): Likewise.
6429         [non-C99-based standards] (hypotl): Likewise.
6430         [non-C99-based standards] (j0l): Likewise.
6431         [non-C99-based standards] (j1l): Likewise.
6432         [non-C99-based standards] (jnl): Likewise.
6433         [non-C99-based standards] (lgammal): Likewise.
6434         [non-C99-based standards] (tgammal): Likewise.
6435         [non-C99-based standards] (y0l): Likewise.
6436         [non-C99-based standards] (y1l): Likewise.
6437         [non-C99-based standards] (ynl): Likewise.
6438         [non-C99-based standards] (isnanl): Likewise.
6439         [non-C99-based standards] (acoshl): Likewise.
6440         [non-C99-based standards] (asinhl): Likewise.
6441         [non-C99-based standards] (atanhl): Likewise.
6442         [non-C99-based standards] (cbrtl): Likewise.
6443         [non-C99-based standards] (expm1l): Likewise.
6444         [non-C99-based standards] (ilogbl): Likewise.
6445         [non-C99-based standards] (log1pl): Likewise.
6446         [non-C99-based standards] (logbl): Likewise.
6447         [non-C99-based standards] (nextafterl): Likewise.
6448         [non-C99-based standards] (remainderl): Likewise.
6449         [non-C99-based standards] (rintl): Likewise.
6450         [non-C99-based standards] (scalbl): Likewise.
6451         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6452         [non-C99-based standards] (FP_*): Do not allow.
6453         [C99-based standards] (FP_*): Change to
6454         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6455         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6456         allow.
6457         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6458         (SIG_ERR): Likewise.
6459         [X/Open-based standards] (SIG_HOLD): Likewise.
6460         (SIG_IGN): Likewise.
6461         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6462         positive value.
6463         (SIGFPE): Likewise.
6464         (SIGILL): Likewise.
6465         (SIGINT): Likewise.
6466         (SIGSEGV): Likewise.
6467         (SIGTER): Likewise.
6468         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6469         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6470         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6471         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6472         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6473         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6474         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6475         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6476         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6477         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6478         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6479         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6480         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6481         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6482         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6483         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6484         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6485         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6486         [X/Open-based standards] (SIGTRAP): Likewise.
6487         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6488         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6489         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6490         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6491         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6492         allow.
6493
6494 2012-05-08  Ian Wienand  <ianw@vmware.com>
6495
6496         [BZ #14080]
6497         * time/tzset.c (__tzset_parse_tz): Update default rules for
6498         daylight time changes in the Energy Policy Act of 2005.
6499
6500 2012-05-09  Andreas Jaeger  <aj@suse.de>
6501
6502         [BZ #13983]
6503         * elf/ldconfig.c (parse_conf): Change string to make clear that
6504         ldconfig only issued a warning if ld.so.conf does not exist.
6505
6506 2012-05-08  David S. Miller  <davem@davemloft.net>
6507
6508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6509         movxtod instead of popping the value on the stack.
6510
6511         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6512
6513 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6514
6515         * config.h.in: Add HAVE_ARM_PCS_VFP.
6516
6517 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6518
6519         [BZ #13979]
6520         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6521         checking but the checks are disabled for any reason.
6522
6523 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6524
6525         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6526         and ELF64_R_TYPE with ELFW(R_TYPE).
6527
6528 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6529
6530         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6531         (ulimit): Likewise.
6532
6533         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6534         (settimeofday): Likewise.
6535
6536 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6537
6538         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6539         a struct th_u2 inside the union, and move tu_block/tu_code into
6540         a new th_u3 union of tu_block/tu_code inside of that.  Move
6541         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6542         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6543         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6544         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6545         (th_stuff): Change to th_u1.tu_stuff.
6546         (th_data): Define.
6547         (th_msg): Change to th_u1.th_u2.tu_data.
6548
6549 2012-05-07  David S. Miller  <davem@davemloft.net>
6550
6551         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6552
6553         [BZ #14074]
6554         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6555         (SETUP_PIC_REG): Use it.
6556         (SETUP_PIC_REG_LEAF): Use it.
6557
6558 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6559
6560         [BZ #13885]
6561         [BZ #13923]
6562         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6563         USE_AS_EXPM1L.
6564         (EXPL_FINITE): Likewise.
6565         (FLDLOG): Likewise.
6566         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6567         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6568         e_expl.S.
6569         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6570         USE_AS_EXPM1L.
6571         (EXPL_FINITE): Likewise.
6572         (FLDLOG): Likewise.
6573         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6574         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6575         e_expl.S.
6576         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6577         test of -max_value argument for long double.
6578         * sysdeps/i386/fpu/libm-test-ulps: Update.
6579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6580
6581 2012-05-06  David S. Miller  <davem@davemloft.net>
6582
6583         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6584         quad soft-float symbols whose references which are compiler
6585         generated.
6586         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6587
6588 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6589
6590         [BZ #13884]
6591         [BZ #13914]
6592         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6593         USE_AS_EXP10L.
6594         (EXPL_FINITE): Likewise.
6595         (FLDLOG): Likewise.
6596         (c0): Likewise.
6597         (c1): Likewise.
6598         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6599         Adjust comments for base varying.
6600         (__expl_finite): Change alias to EXPL_FINITE.
6601         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6602         e_expl.S.
6603         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6604         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6605         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6606         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6607         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6608         USE_AS_EXP10L.
6609         (EXPL_FINITE): Likewise.
6610         (FLDLOG): Likewise.
6611         (c0): Likewise.
6612         (c1): Likewise.
6613         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6614         Adjust comments for base varying.
6615         (__expl_finite): Change alias to EXPL_FINITE.
6616         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6617         tests for bugs.
6618         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6619
6620         [BZ #14064]
6621         * math/libm-test.inc (check_float_internal): Correct ulp
6622         calculation for subnormal expected results.
6623
6624 2012-05-06  Andreas Jaeger  <aj@suse.de>
6625
6626         * Makeconfig (+math-flags): New, set to -frounding-math.
6627         (+cflags): Add +math-flags so that all of glibc gets compiled with
6628         it.
6629
6630         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6631
6632 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6633
6634         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6635         Disable one test.
6636
6637         [BZ #13787]
6638         [BZ #13922]
6639         [BZ #14036]
6640         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6641         (__ieee754_expl): Allow for and saturate large arguments.
6642         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6643         (u_threshold): Likewise.
6644         (__exp): Call __ieee754_exp before checking for overflow and
6645         underflow.
6646         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6647         (u_threshold): Likewise.
6648         (__expf): Call __ieee754_expf before checking for overflow and
6649         underflow.
6650         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6651         (u_threshold): Likewise.
6652         (__expl): Call __ieee754_expl before checking for overflow and
6653         underflow.
6654         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6655         (__ieee754_expl): Allow for and saturate large arguments.
6656         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6657         missing overflow exception on overflow.
6658         (expm1_test): Do not allow missing overflow exception on overflow.
6659
6660         * sysdeps/i386/fpu/e_expl.c: Move to ...
6661         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6662         rather than using inline asm.
6663         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6664         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6665         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6666
6667         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6668         (nice): Likewise.
6669         (poll): Likewise.
6670         (signal): Likewise.
6671         (time): Likewise.
6672         (times): Likewise.
6673
6674 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6675
6676         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6677         sysdeps/unix/common/syscalls.list.
6678         (fchmod): Likewise.
6679         (fchown): Likewise.
6680         (ftruncate): Likewise.
6681         (getrusage): Likewise.
6682         (gettimeofday): Likewise.
6683         (setpgid): Likewise.
6684         (setregid): Likewise.
6685         (setreuid): Likewise.
6686         (sigaction): Likewise.
6687         (truncate): Likewise.
6688         (vhangup): Likewise.
6689         * sysdeps/unix/common/syscalls.list: Remove file.
6690         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6691         * sysdeps/unix/sysv/linux/Implies: Likewise.
6692
6693 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6694
6695         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6696         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6697         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6698         Moved to ...
6699         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6700         Here.
6701         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6702         to ...
6703         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6704         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6705         to ...
6706         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6707         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6708         to ...
6709         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6710         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6711         to ...
6712         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6713         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6714         to ...
6715         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6716         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6717         to ...
6718         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6719         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6720         to ...
6721         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6722         Here.
6723         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6724         to ...
6725         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6726         Here.
6727         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6728         to ...
6729         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6730         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6731         Moved to ...
6732         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6733         Here.
6734         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6735         to ...
6736         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6737
6738 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6739
6740         * sysdeps/unix/common/bits/dirent.h: Remove file.
6741         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6742
6743         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6744         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6745         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6746         * sysdeps/unix/bsd/isatty.c: Likewise.
6747         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6748         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6749         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6750
6751 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6752
6753         [BZ #13563]
6754         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6755         long double comparison inaccuracies.
6756         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6757         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6758
6759 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6760
6761         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6762         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6763
6764 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6765
6766         [BZ #14049]
6767         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6768         nonzero digits before rounding a hex value.
6769         * stdlib/tst-strtod.c (tests): Add another test.
6770
6771 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6772
6773         * sysdeps/s390/fpu/libm-test-ulps: Update.
6774
6775 2012-05-03  Andreas Jaeger  <aj@suse.de>
6776
6777         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6778         does not get optimized out.
6779         (malloc_opt_barrier): New.
6780
6781 2012-05-03  Andreas Jaeger  <aj@suse.de>
6782             Roland McGrath  <roland@hack.frob.com>
6783
6784         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6785         intermediate file deletion.
6786         (generated): Add .symlist files.
6787
6788 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6789
6790         [BZ #13775]
6791         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6792         Redirect under this condition.
6793         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6794         [__USE_GNU] (__dprintf_chk): Not under this condition.
6795         [__USE_GNU] (__vdprintf_chk): Likewise.
6796         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6797         under this condition.
6798         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6799         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6800         [__USE_XOPEN2K8] (vdprintf): Likewise.
6801         [__USE_GNU] (__dprintf_chk): Not under this condition.
6802         [__USE_GNU] (__vdprintf_chk): Likewise.
6803         [__USE_GNU] (dprintf): Likewise.
6804         [__USE_GNU] (vdprintf): Likewise.
6805
6806 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6807
6808         * elf/Makefile (common-generated): Set this instead of generated for
6809         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6810         $(all-built-dso)-derived lists.
6811
6812 2012-05-03  Andreas Jaeger  <aj@suse.de>
6813
6814         * sysdeps/i386/fpu/libm-test-ulps: Update.
6815
6816         * FAQ: Removed.
6817         * FAQ.in: Likewise.
6818         * scripts/gen-FAQ.pl: Likewise.
6819         * manual/install.texi (Installation): Point to online location of
6820         FAQ.
6821         * Makefile (files-for-dist): Remove FAQ.
6822         (FAQ): Remove.
6823
6824 2012-05-02  Allan McRae  <allan@archlinux.org>
6825
6826         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6827         (LDFLAGS-reldepmod5.so): Likewise.
6828         (LDFLAGS-reldep6mod1.so): Likewise.
6829         (LDFLAGS-reldep6mod4.so): Likewise.
6830         (LDFLAGS-reldep8mod3.so): Likewise.
6831         (LDFLAGS-unload4mod1.so): Likewise.
6832         (LDFLAGS-unload4mod2.so): Likewise.
6833         (LDFLAGS-tst-initorder): Likewise.
6834         (LDFLAGS-tst-initordera2.so): Likewise.
6835         (LDFLAGS-tst-initordera3.so): Likewise.
6836         (LDFLAGS-tst-initordera4.so): Likewise.
6837         (LDFLAGS-tst-initorderb2.so): Likewise.
6838         (LDFLAGS-noload): Likewise.
6839         (LDFLAGS-next): Likewise.
6840         (LDFLAGS-order2mod1.so): Likewise.
6841         (LDFLAGS-order2mod2.so): Likewise.
6842         (LDFLAGS-tst-initorder2): Likewise.
6843         (LDFLAGS-tst-initorder2a.so): Likewise.
6844         (LDFLAGS-tst-initorder2b.so): Likewise.
6845         (LDFLAGS-tst-initorder2c.so): Likewise.
6846         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6847
6848 2012-05-02  David S. Miller  <davem@davemloft.net>
6849
6850         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6851
6852 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6853
6854         [BZ #14055]
6855         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6856
6857 2012-05-02  Andreas Jaeger  <aj@suse.de>
6858
6859         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6860         since we manipulate rounding mode.
6861         (CPPFLAGS-test-idouble.c): Likewise.
6862         (CPPFLAGS-test-ifloat.c): Likewise.
6863         (CFLAGS-test-ldouble.c): Likewise.
6864         (CFLAGS-test-double.c): Likewise.
6865         (CFLAGS-test-float.c): Likewise.
6866         (CFLAGS-test-misc.c): Likewise.
6867         (CFLAGS-test-test-fenv.c): Likewise.
6868
6869 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6870
6871         [BZ #2550]
6872         [BZ #2570]
6873         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6874         comparisons to determine direction to adjust input.
6875
6876 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6877
6878         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6879         output to the target.
6880
6881         * scripts/localplt.awk: New file.
6882         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6883         (check-localplt-CFLAGS): Variable removed.
6884         ($(all-built-dso:=.jmprel)): New static pattern rule.
6885         (generated): Add those targets.
6886         (localplt-built-dso): New variable.
6887         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6888
6889         * elf/check-localplt.c: File removed.
6890
6891         * scripts/check-execstack.awk: New file.
6892         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6893         (check-execstack-CFLAGS): Variable removed.
6894         ($(objpfx)check-execstack.h): Target removed.
6895         ($(objpfx)execstack-default): New target.
6896         (generated): Add that instead of check-execstack.h.
6897         ($(all-built-dso:=.phdr)): New static pattern rule.
6898         (generated): Add those targets.
6899         * elf/check-execstack.c: File removed.
6900
6901         * scripts/check-textrel.awk: New file.
6902         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6903         (check-textrel-CFLAGS): Variable removed.
6904         (all-built-dso): Use := to define.o
6905         ($(all-built-dso:=.dyn)): New static pattern rule.
6906         (generated): Add those targets.
6907         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6908         * config.make.in (READELF): New substituted variable.
6909         * elf/check-textrel.c: File removed.
6910
6911 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6912
6913         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6914         allow.
6915         * conform/data/ctype.h-data [C99-based standards] (isblank):
6916         Expect function.
6917         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6918         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6919         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6920         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6921         Specify type.  Require positive value.
6922         (EILSEQ): Likewise.
6923         (ERANGE): Likewise.
6924         [ISO || POSIX] (EILSEQ): Do not expect.
6925         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6926         Specify type.  Require positive value.
6927         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6928         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6929         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6930         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6931         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6932         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6933         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6934         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6935         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6936         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6937         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6938         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6939         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6940         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6941         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6942         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6943         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6944         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6945         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6946         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6947         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6948         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6949         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6950         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6951         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6952         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6953         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6954         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6955         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6956         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6957         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6958         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6959         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6960         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6961         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6962         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6963         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6964         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6965         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6966         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6967         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6968         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6969         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6970         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6971         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6972         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6973         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6974         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6975         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6976         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6977         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6978         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6979         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6980         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6981         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6982         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6983         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6984         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6985         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6986         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6987         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6988         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6989         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6990         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6991         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6992         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6993         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6994         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6995         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6996         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6997         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6998         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6999         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7000         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7001         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7002         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7003         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7004         Require >= 2.
7005         (FLT_ROUNDS): Expect as macro, not constant.
7006         (FLT_MANT_DIG): Use macro-int-constant.
7007         (DBL_MANT_DIG): Likewise.
7008         (LDBL_MANT_DIG): Likewise.
7009         (FLT_DIG): Likewise.
7010         (DBL_DIG): Likewise.
7011         (LDBL_DIG): Likewise.
7012         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7013         (DBL_MIN_EXP): Likewise.
7014         (LDBL_MIN_EXP): Likewise.
7015         (FLT_MAX_EXP): Use macro-int-constant.
7016         (DBL_MAX_EXP): Likewise.
7017         (LDBL_MAX_EXP): Likewise.
7018         (FLT_MAX_10_EXP): Likewise.
7019         (DBL_MAX_10_EXP): Likewise.
7020         (LDBL_MAX_10_EXP): Likewise.
7021         (FLT_MAX): Use macro-constant.
7022         (DBL_MAX): Likewise.
7023         (LDBL_MAX): Likewise.
7024         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7025         (DBL_EPSILON): Likewise.
7026         (LDBL_EPSILON): Likewise.
7027         (FLT_MIN): Likewise.
7028         (DBL_MIN): Likewise.
7029         (LDBL_MIN): Likewise.
7030         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7031         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7032         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7033         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7034         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7035         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7036         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7037         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7038         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7039         [ISO11] (FLT_TRUE_MIN): Likewise.
7040         [ISO11] (LDBL_TRUE_MIN): Likewise.
7041         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7042         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7043         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7044         (SCHAR_MAX): Likewise.
7045         (UCHAR_MAX): Likewise.
7046         (CHAR_MIN): Likewise.
7047         (CHAR_MAX): Likewise.
7048         (MB_LEN_MAX): Use macro-int-constant.
7049         (SHRT_MIN): Use macro-int-constant.  Specify type.
7050         (SHRT_MAX): Likewise.
7051         (USHRT_MAX): Likewise.
7052         (INT_MAX): Likewise.
7053         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7054         bound negative.
7055         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7056         bound with "U".
7057         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7058         bound with "L".
7059         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7060         bound negative.  Suffix upper bound with "L".
7061         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7062         bound with "UL".
7063         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7064         Specify type.
7065         [C99-based standards] (LLONG_MAX): Likewise.
7066         [C99-based standards] (ULLONG_MAX): Likewise.
7067         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7068         == 0.
7069         [ISO11] (max_align_t): Require type.
7070         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7071
7072         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7073         from $CFLAGS, without defining away __attribute__ calls.
7074         (checknamespace): Use $CFLAGS_namespace.
7075
7076         * conform/conformtest.pl (@keywords): Only include C99 keywords
7077         for standards based on C99 or C11.
7078
7079         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7080         Disable tests.
7081         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7082         UNIX98]: Likewise.
7083
7084         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7085         usability of symbols in #if.
7086
7087         * conform/conformtest.pl: If macro or constant types start
7088         "promoted:", expect the symbol to be of the following type
7089         promoted by the integer promotions.
7090
7091         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7092         in one place.  Also handle "macro-constant".
7093
7094         * conform/conformtest.pl: Only accept expected macro values with
7095         "==".  Parse all "macro" lines in one place.
7096         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7097
7098         * conform/conformtest.pl: Handle braced types on "constant" lines
7099         instead of handling "typed-constant".
7100         * conform/data/signal.h-data: Use "constant" instead of
7101         "typed-constant".
7102
7103         * conform/conformtest.pl: Handle "optional-" at start of lines in
7104         one place rather than duplicating several cases.  Handle each
7105         format of "macro" line with initial "optional-".
7106
7107         * conform/conformtest.pl: Only accept expected constant or
7108         optional-constant values with "==".  Parse all "constant" lines in
7109         one place.  Parse all "optional-constant" lines in one place.
7110         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7111         * conform/data/fmtmsg.h-data: Likewise.
7112         * conform/data/netinet/in.h-data: Likewise.
7113         * conform/data/tar.h-data: Likewise.
7114         * conform/data/limits.h-data: Use "==" form on "constant" and
7115         "optional-constant" lines.
7116
7117         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7118         Use -std=c99 for XOPEN2K.
7119         (@knownproblems): Remove.
7120         (newtoken): Don't check %isknown.
7121
7122         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7123         Do not expect macro.
7124         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7125         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7126         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7127         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7128         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7129         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7130         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7131         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7132         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7133         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7134         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7135         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7136         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7137         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7138         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7139         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7140         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7141         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7142         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7143         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7144         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7145         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7146         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7147         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7148         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7149         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7150         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7151         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7152         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7153         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7154         [XPG3] (acosh): Likewise.
7155         [XPG3] (asinh): Likewise.
7156         [XPG3] (atanh): Likewise.
7157         [XPG3] (cbrt): Likewise.
7158         [XPG3] (expm1): Likewise.
7159         [XPG3] (ilogb): Likewise.
7160         [XPG3] (log1p): Likewise.
7161         [XPG3] (logb): Likewise.
7162         [XPG3] (nextafter): Likewise.
7163         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7164         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7165         [XPG3] (remainder): Likewise.
7166         [XPG3] (rint): Likewise.
7167         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7168         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7169         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7170         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7171         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7172         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7173         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7174         [UNIX98 || XOPEN2K] (scalb): Expect.
7175         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7176         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7177         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7178         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7179         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7180         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7181         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7182         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7183         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7184         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7185         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7186         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7187         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7188         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7189         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7190         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7191         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7192         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7193         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7194         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7195         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7196         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7197         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7198         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7199         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7200         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7201         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7202         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7203         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7204         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7205         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7206         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7207         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7208         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7209         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7210         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7211         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7212         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7213         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7214         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7215         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7216         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7217         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7218         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7219         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7220         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7221         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7222         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7223         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7224         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7225         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7226         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7227         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7228         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7229         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7230         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7231         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7232         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7233         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7234         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7235         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7236         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7237         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7238         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7239         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7240         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7241         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7242         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7243         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7244         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7245         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7246         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7247         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7248         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7249         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7250         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7251         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7252         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7253         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7254         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7255         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7256         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7257         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7258         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7259         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7260         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7261         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7262         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7263         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7264         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7265         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7266         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7267         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7268         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7269         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7270         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7271         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7272         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7273         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7274         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7275         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7276         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7277         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7278         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7279         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7280         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7281         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7282         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7283         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7284         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7285         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7286         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7287         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7288         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7289         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7290         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7291         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7292         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7293         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7294         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7295         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7296         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7297         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7298         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7299         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7300         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7301         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7302         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7303         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7304         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7305         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7306         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7307         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7308         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7309         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7310         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7311         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7312
7313         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7314         _XOPEN_SOURCE_EXTENDED for XPG4.
7315
7316         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7317
7318         * Makeconfig (localtime): Remove variable.
7319         (inst_localtime-file): Likewise.
7320
7321 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7322
7323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7324         Update.
7325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7326         Update.
7327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7328         Update.
7329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7330         Update.
7331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7332         Update.
7333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7334         Update.
7335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7336         Update.
7337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7338         Update.
7339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7340         Update.
7341
7342 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7343
7344         [BZ #2550]
7345         [BZ #2570]
7346         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7347         comparisons to determine direction to adjust input.
7348         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7349         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7350         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7351         Likewise.
7352         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7353         Likewise.
7354         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7355         Likewise.
7356         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7357         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7358         Likewise.
7359         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7360         Likewise.
7361         * math/libm-test.inc (nexttoward_test): Add more tests.
7362
7363 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7364
7365         [BZ #14040]
7366         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7367         in version GLIBC_2.1, not GLIBC_2.0.
7368         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7369         Likewise.
7370
7371 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7372
7373         [BZ #13942]
7374         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7375         (1 - x) * (1 + x).
7376         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7377         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7378         * math/libm-test.inc (acos_test): Add more tests.
7379         (asin_test): Likewise.
7380         * sysdeps/i386/fpu/libm-test-ulps: Update.
7381         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7382
7383         [BZ #14034]
7384         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7385         of square root.
7386         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7387         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7388         * math/libm-test.inc (acos_test_tonearest): New function.
7389         (acos_test_towardzero): Likewise.
7390         (acos_test_downward): Likewise.
7391         (acos_test_upward): Likewise.
7392         (asin_test_tonearest): Likewise.
7393         (asin_test_towardzero): Likewise.
7394         (asin_test_downward): Likewise.
7395         (asin_test_upward): Likewise.
7396         (main): Call the new functions.
7397         * sysdeps/i386/fpu/libm-test-ulps: Update.
7398         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7399
7400         [BZ #13884]
7401         [BZ #13924]
7402         * math/e_exp10.c: Include <float.h>.
7403         (__ieee754_exp10): Handle underflow here rather than multiplying
7404         large negative argument by M_LN10.
7405         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7406         of __ieee754_expf.
7407         * math/e_exp10l.c: Include <float.h>.
7408         (__ieee754_exp10l): Handle underflow here rather than multiplying
7409         large negative argument by M_LN10l.
7410         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7411         spurious overflow exception on underflow.
7412
7413 2012-04-29  Marek Polacek  <polacek@redhat.com>
7414
7415         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7416         (__fortify_function): New macro.
7417         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7418         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7419         __extern_always_inline.
7420         * libio/bits/stdio2.h: Likewise.
7421         * libio/bits/stdio.h: Likewise.
7422         * string/string.h: Likewise.
7423         * string/bits/string3.h: Likewise.
7424         * include/stdio.h: Likewise.
7425         * stdlib/bits/stdlib.h: Likewise.
7426         * stdlib/stdlib.h: Likewise.
7427         * rt/bits/mqueue2.h: Likewise.
7428         * rt/mqueue.h: Likewise.
7429         * posix/bits/unistd.h: Likewise.
7430         * posix/unistd.h: Likewise.
7431         * io/bits/poll2.h: Likewise.
7432         * io/bits/fcntl2.h: Likewise.
7433         * io/fcntl.h: Likewise.
7434         * io/sys/poll.h: Likewise.
7435         * misc/bits/syslog.h: Likewise.
7436         * misc/bits/syslog-ldbl.h: Likewise.
7437         * misc/sys/syslog.h: Likewise.
7438         * socket/bits/socket2.h: Likewise.
7439         * socket/sys/socket.h: Likewise.
7440         * debug/tst-chk1.c: Likewise.
7441         * wcsmbs/bits/wchar2.h: Likewise.
7442         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7443         * wcsmbs/wchar.h: Likewise.
7444
7445 2012-04-29  Andreas Jaeger  <aj@suse.de>
7446
7447         * Makerules (tests): Remove enable-check-abi protection.
7448         (check-abi-warn): Remove.
7449         (check-abi-%): Remove check-abi-warn usage.
7450
7451         * configure.in: Remove check-abi configure option.
7452         * configure: Regenerated.
7453         * config.make.in (enable-check-abi): Remove.
7454
7455 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7456
7457         [BZ #14033]
7458         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7459         double functions to double *_finite functions.
7460
7461         [BZ #13941]
7462         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7463         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7464         LDBL_MIN_EXP.
7465         * stdio-common/Makefile (tests): Add tst-sprintf3.
7466         * stdio-common/tst-sprintf3.c: New file.
7467
7468         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7469         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7470
7471 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7472
7473         * conform/conformtest.pl: Remove duplicate typed-constant
7474         handling.
7475
7476 2012-04-28  David S. Miller  <davem@davemloft.net>
7477
7478         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7479         (check-abi-%): Remove AWK script prerequisite and explicit
7480         abilist directory.
7481         (check-abi): Rewrite to just diff the symlist with the abilist.
7482         (config-tls, config-abi-config): Delete, no longer used.
7483         (update-abi-%): Remove AWK script and explicit abilist directory.
7484         (update-abi): Rewrite to simply compare and conditionally copy the
7485         symlist and the sysdep abilist file.  Remove update-abi-config
7486         checks.
7487         * abilist/ld.abilist: Remove.
7488         * abilist/libBrokenLocale.abilist: Remove.
7489         * abilist/libanl.abilist: Remove.
7490         * abilist/libcrypt.abilist: Remove.
7491         * abilist/libdl.abilist: Remove.
7492         * abilist/librt.abilist: Remove.
7493         * abilist/libthread_db.abilist: Remove.
7494         * abilist/libutil.abilist: Remove.
7495         * scripts/extract-abilist.awk: Remove.
7496         * scripts/merge-abilist.awk: Remove.
7497         * sysdeps/generic/libcidn.abilist: New file.
7498         * sysdeps/generic/libnss_compat.abilist: New file.
7499         * sysdeps/generic/libnss_db.abilist: New file.
7500         * sysdeps/generic/libnss_dns.abilist: New file.
7501         * sysdeps/generic/libnss_files.abilist: New file.
7502         * sysdeps/generic/libnss_hesiod.abilist: New file.
7503         * sysdeps/generic/libnss_nis.abilist: New file.
7504         * sysdeps/generic/libnss_nisplus.abilist: New file.
7505         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7506         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7507         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7508         file.
7509         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7510         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7511         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7512         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7513         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7514         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7515         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7516         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7517         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7518         file.
7519         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7520         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7521         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7522         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7523         file.
7524         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7525         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7526         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7527         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7528         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7529         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7530         file.
7531         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7532         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7533         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7534         file.
7535         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7536         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7537         New file.
7538         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7539         New file.
7540         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7541         New file.
7542         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7543         New file.
7544         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7545         New file.
7546         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7547         New file.
7548         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7549         New file.
7550         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7551         New file.
7552         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7553         New file.
7554         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7555         New file.
7556         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7557         New file.
7558         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7559         New file.
7560         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7561         New file.
7562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7563         file.
7564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7565         New file.
7566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7567         New file.
7568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7569         file.
7570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7571         New file.
7572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7573         New file.
7574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7575         file.
7576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7577         New file.
7578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7579         New file.
7580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7581         New file.
7582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7583         New file.
7584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7585         New file.
7586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7587         New file.
7588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7589         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7590         file.
7591         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7592         New file.
7593         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7594         file.
7595         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7596         file.
7597         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7598         file.
7599         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7600         file.
7601         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7602         file.
7603         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7604         New file.
7605         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7606         file.
7607         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7608         file.
7609         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7610         New file.
7611         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7612         file.
7613         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7614         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7615         file.
7616         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7617         New file.
7618         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7619         file.
7620         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7621         file.
7622         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7623         file.
7624         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7625         file.
7626         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7627         file.
7628         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7629         New file.
7630         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7631         file.
7632         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7633         file.
7634         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7635         New file.
7636         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7637         file.
7638         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7639         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7640         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7641         file.
7642         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7643         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7644         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7645         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7646         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7647         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7648         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7649         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7650         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7651         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7652         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7653         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7654         file.
7655         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7656         New file.
7657         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7658         file.
7659         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7660         file.
7661         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7662         file.
7663         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7664         file.
7665         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7666         file.
7667         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7668         New file.
7669         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7670         New file.
7671         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7672         file.
7673         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7674         New file.
7675         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7676         file.
7677         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7678         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7679         file.
7680         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7681         New file.
7682         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7683         file.
7684         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7685         file.
7686         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7687         file.
7688         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7689         file.
7690         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7691         file.
7692         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7693         New file.
7694         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7695         New file.
7696         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7697         file.
7698         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7699         New file.
7700         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7701         file.
7702
7703 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7704
7705         * conform/conformtest.pl: Fix typo in handling typed-constant from
7706         allow-header.
7707
7708 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7709
7710         * README: Cut down references to pre-2.6 Linux kernels and
7711         Linuxthreads.  Update lists of configurations in libc and ports
7712         and sort alphabetically.  Say "or newer" with Linux kernel version
7713         requirements.
7714
7715         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7716
7717 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7718
7719         [BZ #887]
7720         * math/libm-test.inc (logb_test_downward): New test to expose
7721         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7722         rounding mode.
7723
7724 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7725
7726         [BZ #14027]
7727         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7728         to be done.
7729         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7730         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7731
7732 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7733
7734         * sysdeps/unix/i386/brk.S: Remove file.
7735         * sysdeps/unix/i386/dl-brk.S: Likewise.
7736         * sysdeps/unix/i386/pipe.S: Likewise.
7737         * sysdeps/unix/i386/sigreturn.S: Likewise.
7738         * sysdeps/unix/i386/syscall.S: Likewise.
7739         * sysdeps/unix/i386/vfork.S: Likewise.
7740         * sysdeps/unix/i386/wait.S: Likewise.
7741
7742         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7743         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7744
7745         * configure.in (arm*-none*): Do not allow without
7746         --enable-hacker-mode.
7747         (netbsd*): Remove case setting base_os.
7748         (386bsd*): Likewise.
7749         (freebsd*): Likewise.
7750         (bsdi*): Likewise.
7751         (osf*): Likewise.
7752         (sunos*): Likewise.
7753         (ultrix*): Likewise.
7754         (newsos*): Likewise.
7755         (dynix*): Likewise.
7756         (*bsd*): Likewise.
7757         (sysv*): Likewise.
7758         (isc*): Likewise.
7759         (esix*): Likewise.
7760         (sco*): Likewise.
7761         (minix*): Likewise.
7762         (irix4*): Likewise.
7763         (irix6*): Likewise.
7764         (solaris[2-9]*): Likewise.
7765         (none): Likewise.
7766         * configure: Regenerated.
7767
7768 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7769
7770         [BZ #11521]
7771         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7772         overflow or cancellation in calculating denominator.
7773         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7774         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7775         down expression to avoid unexpected rounding in newer GCCs.
7776         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7777
7778 2012-04-26  David S. Miller  <davem@davemloft.net>
7779
7780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7781         long-double compat symbols.
7782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7787         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7788         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7789         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7790         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7791         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7792         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7793         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7794         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7795
7796 2012-04-25  David S. Miller  <davem@davemloft.net>
7797
7798         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7799         HWCAP_* values only after the memory barriers have been defined.
7800         (atomic_full_barrier): Define.
7801         (atomic_read_barrier): Define.
7802         (atomic_write_barrier): Define.
7803
7804 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7805
7806         * shlib-versions: Add libgcc_s version information.
7807         * sysdeps/generic/libgcc_s.h: Remove.
7808         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7809         libgcc_s.h.
7810         * sysdeps/gnu/unwind-resume.c: Likewise.
7811         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7812
7813 2012-04-25  David S. Miller  <davem@davemloft.net>
7814
7815         * sysdeps/unix/sparc/brk.S: Delete.
7816         * sysdeps/unix/sparc/dl-brk.S: Delete.
7817         * sysdeps/unix/sparc/pipe.S: Delete.
7818         * sysdeps/unix/sparc/sysdep.S: Delete.
7819         * sysdeps/unix/sparc/sysdep.h: Delete.
7820         * sysdeps/unix/sparc/vfork.S: Delete.
7821         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7822         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7823         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7824         ret_ERRVAL, r0, r1, MOVE): Define.
7825         (JUMPTARGET): Remove.
7826         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7827         sysdeps/unix/sparc/sysdep.h
7828         (ENTRY, END): Remove.
7829         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7830
7831 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7832
7833         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7834         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7835         -DIS_IN_build.
7836
7837         * timezone/README: Update upstream location and email address for
7838         tzcode and tzdata.
7839         * timezone/zdump.c: Update from tzcode 2012b.
7840         * timezone/zic.c: Likewise.
7841
7842         * configure.in (libc_cv_as_needed): Remove test.
7843         * configure: Regenerated.
7844         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7845         conditional definition.
7846         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7847         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7848         * config.make.in (have-as-needed): Remove variable.
7849
7850 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7851             Paul Pluzhnikov  <ppluzhnikov@google.com>
7852
7853         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7854         strings correctly.
7855
7856 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7857
7858         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7859         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7860         * sysdeps/sh/strlen.S: Likewise.
7861
7862 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7863
7864         * sysdeps/unix/fork.S: Remove file.
7865         * sysdeps/unix/i386/fork.S: Likewise.
7866         * sysdeps/unix/sparc/fork.S: Likewise.
7867
7868         * sysdeps/unix/system.c: Remove file.
7869         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7870
7871         * sysdeps/unix/getegid.S: Remove file.
7872         * sysdeps/unix/geteuid.S: Likewise.
7873
7874 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7875
7876         * scripts/check-localplt.awk: New file.
7877         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7878         of diff.
7879         * scripts/data/localplt-generic.data: Add a comment.
7880
7881         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7882         NODE when __dir_mkfile failed.
7883         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7884         Reported by Ludovic Courtès <ludo@gnu.org>.
7885
7886 2012-04-24  Andreas Jaeger  <aj@suse.de>
7887
7888         * Makerules (common-clean): Also remove gen-as-const-headers
7889         files.
7890
7891 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7892
7893         * Makerules (native-compile): Do not change working directory for
7894         build.  Use $(OUTPUT_OPTION) in command.
7895         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7896
7897 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7898
7899         [BZ #13886]
7900         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7901         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7902         * math/libm-test.inc (floor_test): Add more tests.
7903         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7904
7905 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7906
7907         * sysdeps/unix/getdents.c: Remove file.
7908         * sysdeps/unix/sysv/getdents.c: Likewise.
7909         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7910
7911         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7912         sysdeps/unix/mman/syscalls.list.
7913         (mmap): Likewise.
7914         (mprotect): Likewise.
7915         (msync): Likewise.
7916         (munmap): Likewise.
7917         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7918         * sysdeps/unix/mman/syscalls.list: Remove.
7919         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7920
7921         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7922         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7923         * configure: Regenerated.
7924         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7925         $(libgcc_s_suffix).
7926         * config.make.in (libgcc_s_suffix): Remove variable.
7927
7928 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7929
7930         * sysdeps/unix/sysv/gethostname.c: Move to ...
7931         * sysdeps/posix/gethostname.c: ... here.
7932
7933         * sysdeps/unix/execve.S: Remove file.
7934
7935         * sysdeps/unix/_exit.S: Remove file.
7936
7937 2012-04-23  Andreas Jaeger  <aj@suse.de>
7938
7939         [BZ #13739]
7940         * manual/Makefile: Remove make dist support, there's no
7941         need for a stand-alone documentation tar ball.
7942         (TEXI2DVI): Define always, it's not in Makeconfig.
7943         (dist): Removed.
7944         (tar-it): Removed.
7945         (edition): Removed.
7946         (glibc-doc-$(edition).tar): Removed
7947         (%.Z): Removed.
7948         (%.gz): Removed.
7949         (%.uu): Removed.
7950         (ETAGS): Remove, it's in Makeconfig.
7951         (move-if-change): Remove, it's in Makeconfig.
7952
7953 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7954
7955         [BZ #13970]
7956         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7957         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7958         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7959         (strtod_l, strtof_l, strtold_l): Remove __wur.
7960         It is not necessarily an error to ignore strtol's return value.
7961         One can reliably look at the stored endptr to decide whether
7962         the number had valid syntax.
7963
7964 2012-04-21  Andreas Jaeger  <aj@suse.de>
7965
7966         [BZ #13739]
7967         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7968
7969 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7970
7971         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7972         * sysdeps/unix/sysv/Versions: Remove file.
7973
7974 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7975
7976         [BZ #13927]
7977         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7978
7979 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7980
7981         [BZ #7064]
7982         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7983         version from __vm86.
7984
7985 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7986
7987         * sysdeps/unix/common/lxstat.c: Remove file.
7988         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7989
7990         * sysdeps/unix/sysv/Makefile: Remove file.
7991
7992         * sysdeps/unix/sysv/direct.h: Remove file.
7993
7994         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7995         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7996         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7997         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7998         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7999         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8000         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8001
8002         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8003
8004         * sysdeps/unix/xmknod.c: Remove file.
8005         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8006
8007         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8008
8009         * sysdeps/unix/sysv/i386/time.S: Remove file.
8010
8011         * sysdeps/unix/fxstat.c: Remove file.
8012         * sysdeps/unix/xstat.c: Likewise.
8013         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8014
8015         * sysdeps/unix/sysv/sigaction.c: Remove file.
8016
8017         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8018         (sysdep_headers): Remove variable.
8019         [termio.h not in sysdep_headers] (generated): Likewise.
8020         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8021         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8022         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8023         * sysdeps/unix/sysv/tcflow.c: Likewise.
8024         * sysdeps/unix/sysv/tcflush.c: Likewise.
8025         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8026         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8027         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8028         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8029         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8030
8031         * sysdeps/unix/siglist.c: Remove file.
8032
8033         * sysdeps/unix/getppid.S: Remove file.
8034
8035         * sysdeps/unix/mkdir.c: Remove file.
8036         * sysdeps/unix/rmdir.c: Likewise.
8037
8038 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8039
8040         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8041         ERR_MAX value.
8042         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8043         errlist-compat value.
8044
8045 2012-04-18  David S. Miller  <davem@davemloft.net>
8046
8047         * sysdeps/generic/memcopy.h (reg_char): Delete.
8048         * debug/strcat_chk.c: Use char, not reg_char.
8049         * debug/strcpy_chk.c: Likewise.
8050         * debug/strncat_chk.c: Likewise.
8051         * debug/strncpy_chk.c: Likewise.
8052         * string/memchr.c: Likewise.
8053         * string/memrchr.c: Likewise.
8054         * string/rawmemchr.c: Likewise.
8055         * string/strcat.c: Likewise.
8056         * string/strchr.c: Likewise.
8057         * string/strchrnul.c: Likewise.
8058         * string/strcmp.c: Likewise.
8059         * string/strcpy.c: Likewise.
8060         * string/strncat.c: Likewise.
8061         * string/strncmp.c: Likewise.
8062         * string/strncpy.c: Likewise.
8063
8064 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8065
8066         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8067         __builtin_memcopy is called when src and dest ranges are known to not
8068         overlap.
8069
8070 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8071
8072         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8073         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8074         fwd_align_merge macro call.
8075         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8076         bwd_align_merge macro call.
8077         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8078
8079 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8080
8081         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8082         bwd_align_merge macros.
8083         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8084         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8085         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8086
8087 2012-04-18  David S. Miller  <davem@davemloft.net>
8088
8089         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8090
8091 2012-04-18  Andreas Jaeger  <aj@suse.de>
8092
8093         [BZ# 6794]
8094         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8095         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8096         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8097
8098         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8099         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8100         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8101
8102         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8103         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8104         Adjust for changed ldbl-128 files.
8105
8106         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8107         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8108         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8109
8110 2012-04-17  David S. Miller  <davem@davemloft.net>
8111
8112         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8113
8114 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8115
8116         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8117         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8118         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8119         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8120         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8121         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8122
8123 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8124
8125         [BZ #6794]
8126         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8127         * math/libm-test.inc: Add ilogb errno and exception tests.
8128         * math/w_ilogb.c: New file: ilogb wrapper.
8129         * math/w_ilogbf.c: New file: ilogbf wrapper.
8130         * math/w_ilogbl.c: New file: ilogbl wrapper.
8131         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8132         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8133         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8134         exception being thrown with 0.0 as argument.
8135         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8136         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8137         exception being thrown with 0.0 as argument.
8138         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8139         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8140         exception being thrown with 0.0 as argument.
8141         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8142         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8143         exception being thrown with 0.0 as argument.
8144         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8145         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8146         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8147         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8148         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8149         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8150         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8151         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8152         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8153
8154 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8155
8156         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8157         with altivec.
8158
8159 2012-04-16  Marek Polacek  <polacek@redhat.com>
8160
8161         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8162
8163 2012-04-16  Marek Polacek  <polacek@redhat.com>
8164
8165         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8166         operands of fdivp instruction.
8167
8168 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8169
8170         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8171         * elf/tst-auditmod3b.c: Likewise.
8172         * elf/tst-auditmod4b.c: Likewise.
8173         * elf/tst-auditmod5b.c: Likewise.
8174         * elf/tst-auditmod6b.c: Likewise.
8175         * elf/tst-auditmod6c.c: Likewise.
8176         * elf/tst-auditmod7b.c: Likewise.
8177         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8178         * sysdeps/x86_64/preconfigure.in: Likewise.
8179         * sysdeps/x86_64/preconfigure: Regenerated.
8180
8181 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8182
8183         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8184         __ILP32__.
8185
8186 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8187
8188         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8189         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8190
8191 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8192
8193         [BZ #13973]
8194         * locale/iso-639.def: Fix gl language name. Spotted by
8195         Yaron Shahrabani.
8196
8197 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8198
8199         [BZ #2074]
8200         * libio/libio.h (__io_write_fn): Update comment.
8201
8202 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8203
8204         [BZ #2074]
8205         * stdio.texi (Hook Functions): The user provided writer function
8206         is not allowed to return -1.
8207
8208 2012-04-11  David S. Miller  <davem@davemloft.net>
8209
8210         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8211
8212 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8213
8214         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8215         Add a leading slash to rtkaio.
8216
8217 2012-04-11  Jim Meyering  <meyering@redhat.com>
8218
8219         [BZ #11959]
8220         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8221         It is not necessarily an error to ignore fwrite's return
8222         value.  One can reliably use ferror to test for errors after
8223         the fact.
8224
8225 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8226
8227         * bits/types.h (__snseconds_t): New type.
8228         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8229
8230         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8231         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8232         (__SNSECONDS_T_TYPE): Likewise.
8233         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8234         (__SNSECONDS_T_TYPE): Likewise.
8235         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8236         (__SNSECONDS_T_TYPE): Likewise.
8237
8238 2012-04-10  Andreas Jaeger  <aj@suse.de>
8239
8240         [BZ #2636]
8241         * manual/time.texi (Processor Time): Return type of times is
8242         elapsed real time since an arbitrary point in the past.
8243         (CPU Time): Move CLK_TCK from here...
8244         (Processor Time): ...to here.  Correct description.
8245         * manual/conf.texi (Constants for Sysconf): Correct description of
8246         _SC_CLK_TCK.
8247
8248 2012-04-10  David S. Miller  <davem@davemloft.net>
8249
8250         [BZ #13967]
8251         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8252         where the is a gap between DT_REL(A) and DT_JMPREL.
8253
8254 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8255
8256         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8257         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8258         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8259
8260 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8261
8262         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8263         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8264         (dl_main): Handle --inhibit-cache.
8265         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8266         _dl_inhibit_cache.
8267         * elf/dl-load.c (_dl_map_object): Use it.
8268         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8269
8270 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8271
8272         [BZ #13872]
8273         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8274         (__ieee754_powl): Saturate large exponents rather than testing for
8275         overflow of y*log2(x).
8276         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8277         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8278         exceptions.
8279
8280         [BZ #11521]
8281         * math/s_ctan.c: Include <float.h>.
8282         (__ctan): Avoid internal overflow or cancellation in calculating
8283         denominator.
8284         * math/s_ctanf.c: Likewise.
8285         * math/s_ctanl.c: Likewise.
8286         * math/s_ctanh.c: Likewise.
8287         * math/s_ctanhf.c: Likewise.
8288         * math/s_ctanhl.c: Likewise.
8289         * math/libm-test.inc (ctan_test): Add more tests.
8290         (ctanh_test): Likewise.
8291         * sysdeps/i386/fpu/libm-test-ulps: Update.
8292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8293
8294 2012-04-09  Andreas Jaeger  <aj@suse.de>
8295
8296         [BZ #6894]
8297         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8298         is an optional BSD extension.
8299
8300         [BZ #10254]
8301         * manual/stdio.texi (Opening Streams): Document additional fopen
8302         parameters.
8303
8304 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8305
8306         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8307         %eax without telling the compiler.
8308
8309 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8310
8311         [BZ # 13963]
8312         * manual/install.texi: Use sourceware.org.
8313
8314 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8315
8316         [BZ #13873]
8317         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8318         (__ieee754_pow): Generate overflow and underflow using huge*huge
8319         and tiny*tiny rather than just returning constant infinity or zero
8320         for large exponents.
8321         * math/libm-test.inc (pow_test): Require overflow exceptions for
8322         applicable cases of large exponents.
8323
8324         [BZ #706]
8325         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8326         (__ieee754_pow): Use iterative multiplication algorithm only for
8327         integer exponents with absolute value below 1024.  Check for odd
8328         integer exponents when using algorithm for real exponents.
8329         * math/libm-test.inc (pow_test): Add more tests.
8330         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8331
8332 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8333
8334         [BZ #13705]
8335         * math/libm-test.inc (exp_test): Do not allow overflow exception
8336         on underflow test.
8337
8338 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8339
8340         [BZ #13705]
8341         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8342         instead of __kernel_standard_f.
8343
8344 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8345
8346         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8347         * sysdeps/x86_64/memset_chk.S: Likewise.
8348
8349 2012-04-08  Andreas Jaeger  <aj@suse.de>
8350
8351         [BZ #10153]
8352         * manual/startup.texi (Environment Access): Describe return value
8353         for putenv and setenv.
8354
8355         [BZ #6895]
8356         * manual/filesys.texi (Directory Entries): Add description for
8357         DT_LNK.
8358
8359         [BZ #6890]
8360         * manual/filesys.texi (Directory Entries): Clarify that it's file
8361         system not operating system in the description of DT_UNKNOWN.
8362
8363         [BZ #6578]
8364         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8365
8366 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8367
8368         [BZ #6649]
8369         * manual/llio.texi (Opening and Closing Files): Add cross
8370         reference to explain mode argument.
8371
8372 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8373
8374         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8375         * sysdeps/x86_64/memset_chk.S: Likewise.
8376
8377 2012-04-07  David S. Miller  <davem@davemloft.net>
8378
8379         * elf/elf.h (R_SPARC_WDISP10): Define.
8380         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8381         R_SPARC_SIZE32.
8382         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8383         R_SPARC_SIZE64 and R_SPARC_H34.
8384
8385 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8386
8387         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8388         conditions and remove no longer applicable assertion.
8389
8390 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8391
8392         * bits/byteswap.h: Include <features.h>.
8393         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8394         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8395
8396 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8397
8398         * bits/byteswap.h (__bswap_16): Removed.
8399         Include <bits/byteswap-16.h> to get __bswap_16.
8400         * sysdeps/i386/bits/byteswap.h: Likewise.
8401         * sysdeps/s390/bits/byteswap.h: Likewise.
8402         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8403         * bits/byteswap-16.h: New file.
8404         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8405         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8406         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8407         * string/Makefile (headers): Add bits/byteswap-16.h.
8408
8409 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8410
8411         [BZ #13895]
8412         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8413         extra indirection.
8414         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8415         * nss/tst-nss-static.c: New.
8416
8417 2012-04-06  Robert Millan  <rmh@gnu.org>
8418
8419         [BZ #6486]
8420         * manual/llio.texi (File Position Primitive): lseek
8421         refers to WHENCE when it really means OFFSET.
8422
8423 2012-04-06  Andreas Jaeger  <aj@suse.de>
8424
8425         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8426         strncmp declarations.
8427
8428         * abilist/libc.abilist: Add __poll and __ppoll.
8429
8430 2012-04-05  David S. Miller  <davem@davemloft.net>
8431
8432         * scripts/check-local-headers.sh: Accept a host triplet in the
8433         path matched by the exclude regexp.
8434
8435         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8436         definition.
8437         * sysdeps/powerpc/powerpc32/dl-machine.h
8438         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8439         * sysdeps/s390/s390-32/dl-machine.h
8440         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8441         * sysdeps/sparc/sparc32/dl-machine.h
8442         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8443         * sysdeps/sparc/sparc64/dl-machine.h
8444         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8445
8446         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8447         lazy binding.
8448         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8449         undefined symbol errors.
8450
8451         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8452         DT_NEEDED entries.
8453
8454 2012-04-05  Michael Matz  <matz@suse.de>
8455
8456         [BZ #13592]
8457         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8458
8459 2012-04-05  Andreas Jaeger  <aj@suse.de>
8460
8461         [BZ #13908]
8462         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8463         comment.
8464
8465 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8466
8467         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8468         which ROUND is no valid rounding mode.
8469
8470 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8471
8472         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8473         read again.
8474         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8475
8476 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8477
8478         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8479         an exception using FPU order intentionally.
8480
8481 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8482
8483         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8484         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8485         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8486         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8487
8488 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8489
8490         [BZ #12340]
8491         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8492         EINVAL when BUFLEN is too smal.
8493
8494 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8495
8496         [BZ #13553]
8497         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8498         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8499
8500 2012-04-03  Andreas Jaeger  <aj@suse.de>
8501
8502         [BZ #13938]
8503         * manual/setjmp.texi (System V contexts): Fix sentence.
8504
8505         [BZ #13926]
8506         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8507         New macro for this case.
8508         [!__GNUC__] (__bswap_64): New inline function for this case.
8509         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8510         * bits/byteswap.h: Likewise.
8511         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8512         ull, guard with __GLIBC_HAVE_LONG_LONG.
8513
8514         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8515         __GLIBC_HAVE_LONG_LONG.
8516
8517         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8518         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8519
8520 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8521
8522         [BZ #13691]
8523         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8524         inptr and inend, rather than using last_ch.
8525
8526 2012-04-02  David S. Miller  <davem@davemloft.net>
8527
8528         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8529         * stdio-common/printf-parse.h (read_int): Change return type to
8530         'int', return -1 on INT_MAX overflow.
8531         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8532         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8533         overflows INT_MAX.  Check for overflow of in-format-string precision
8534         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8535         SIZE_MAX not INT_MAX for integer overflow test.
8536         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8537         skip the construct in the format string but do not record anything.
8538         * stdio-common/bug22.c: Adjust to test both width/prevision
8539         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8540         explicitly for proper errno values.
8541
8542 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8543
8544         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8545         CHAR_MAX.
8546         * string/test-strcmp.c [! WIDE]: Likewise.
8547         * time/tst-mktime2.c: Likewise for INT_MAX.
8548         * string/test-string.h: #include <sys/param.h> for MIN.
8549
8550         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8551         * sysdeps/i386/init-first.c (init): Likewise.
8552         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8553         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8554         * sysdeps/sh/init-first.c (init): Likewise.
8555
8556 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8557
8558         * po/ru.po: Update from translation team.
8559         * po/vi.po: Likewise.
8560
8561 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8562
8563         * resolv/nss_dns/dns-host.c: Merge copyright years.
8564
8565 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8566
8567         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8568         Optimize memcpy with prefetch if
8569         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8570         src, dst pointers have unequal 16 byte alignments.
8571
8572 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8573
8574         [BZ #13928]
8575         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8576         from a CNAME entry and return the minimum ttl for the query.
8577         (gaih_getanswer_slice): Likewise.
8578
8579 2012-03-30  Jeff Law  <law@redhat.com>
8580
8581         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8582         due to long keys.
8583         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8584         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8585
8586         * resolv/nss_dns/dns-host.c: Update copyright year.
8587
8588 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8589
8590         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8591         requests to save a system call.  Fix check that all bytes are sent.
8592
8593         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8594         comments for sendmmsg.
8595
8596 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8597
8598         [BZ #13691]
8599         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8600         with only 1 character between 0x0041 and 0x01b0.
8601         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8602         * wcsmbs/tst-mbsnrtowcs.c: New file.
8603
8604 2012-03-29  David S. Miller  <davem@davemloft.net>
8605
8606         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8607         small copies by hand.
8608
8609 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8610
8611         [BZ #13761]
8612         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8613         _nss_compat_initgroups_dyn): Fall back to malloc/free
8614         for large group memberships.
8615
8616 2012-03-28  David S. Miller  <davem@davemloft.net>
8617
8618         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8619         that branches into memcpy.
8620         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8621         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8622         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8623         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8624         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8625         bits.
8626         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8627         implementation too.
8628         * sysdeps/sparc/mempcpy.S: New file.
8629
8630         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8631         the IFUNC routine in the libc case.
8632         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8633
8634         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8635         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8636         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8637         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8638         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8639         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8640         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8641         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8642
8643         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8644         loop to 256 bytes instead of 64 bytes and fix test signedness.
8645
8646         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8647         * sysdeps/sparc/sparc32/Makefile: rather than here...
8648         * sysdeps/sparc/sparc64/Makefile: and here.
8649
8650 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8651
8652         * malloc/mallocbug.c: Avoid warnings about unused variables.
8653
8654 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8655
8656         [BZ #13760]
8657         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8658         in the right place. Discard and retry query if response is
8659         larger than input buffer size.
8660
8661 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8662
8663         [BZ #369]
8664         [BZ #2678]
8665         [BZ #3866]
8666         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8667         x for large integer exponent.
8668         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8669         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8670         sign of result as needed afterwards.
8671         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8672         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8673         result for underflowing pow the same as for overflow.
8674         (__kernel_standard_l): Handle powl overflow and underflow here
8675         rather than calling __kernel_standard.
8676         * math/libm-test.inc (pow_test): Add more tests.
8677
8678         [BZ #3868]
8679         [BZ #13879]
8680         [BZ #13910]
8681         [BZ #13911]
8682         [BZ #13912]
8683         [BZ #13913]
8684         [BZ #13915]
8685         [BZ #13916]
8686         [BZ #13917]
8687         [BZ #13918]
8688         [BZ #13919]
8689         [BZ #13920]
8690         [BZ #13921]
8691         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8692         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8693         (__kernel_standard_l): New function.
8694         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8695         __kernel_standard.
8696         * math/w_acosl.c (__acosl): Likewise.
8697         * math/w_asinl.c (__asinl): Likewise.
8698         * math/w_atan2l.c (__atan2l): Likewise.
8699         * math/w_atanhl.c (__atanhl): Likewise.
8700         * math/w_coshl.c (__coshl): Likewise.
8701         * math/w_exp10l.c (__exp10l): Likewise.
8702         * math/w_exp2l.c (__exp2l): Likewise.
8703         * math/w_fmodl.c (__fmodl): Likewise.
8704         * math/w_hypotl.c (__hypotl): Likewise.
8705         * math/w_j0l.c (__j0l, __y0l): Likewise.
8706         * math/w_j1l.c (__j1l, __y1l): Likewise.
8707         * math/w_jnl.c (__jnl, __ynl): Likewise.
8708         * math/w_lgammal.c (__lgammal): Likewise.
8709         * math/w_log10l.c (__log10l): Likewise.
8710         * math/w_log2l.c (__log2l): Likewise.
8711         * math/w_logl.c (__logl): Likewise.
8712         * math/w_powl.c (__powl): Likewise.
8713         * math/w_remainderl.c (__remainderl): Likewise.
8714         * math/w_scalbl.c (sysv_scalbl): Likewise.
8715         * math/w_sinhl.c (__sinhl): Likewise.
8716         * math/w_sqrtl.c (__sqrtl): Likewise.
8717         * math/w_tgammal.c (__tgammal): Likewise.
8718         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8719         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8720         * math/libm-test.inc (acos_test): Add more tests.
8721         (acosh_test): Likewise.
8722         (asin_test): Likewise.
8723         (atanh_test): Likewise.
8724         (exp_test): Likewise.
8725         (exp10_test): Likewise.
8726         (exp2_test): Likewise.
8727         (expm1_test): Likewise.
8728         (lgamma_test): Likewise.
8729         (log_test): Likewise.
8730         (log10_test): Likewise.
8731         (log1p_test): Likewise.
8732         (log2_test): Likewise.
8733         (pow_test): Do not allow some spurious overflow exceptions.
8734         (sqrt_test): Add more tests.
8735         (tgamma_test): Likewise.
8736         (y0_test): Likewise.
8737         (y1_test): Likewise.
8738         (yn_test): Likewise.
8739
8740 2012-03-27  Anton Blanchard  <anton@samba.org>
8741
8742         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8743         MAP_HUGETLB.
8744         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8745         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8746         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8747
8748 2012-03-27  David S. Miller  <davem@davemloft.net>
8749
8750         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8751
8752         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8753         have-as-vis3 check.
8754
8755 2012-03-27  Andreas Jaeger  <aj@suse.de>
8756
8757         * sysdeps/x86_64/elf/configure.in: Moved to ...
8758         * sysdeps/x86_64/configure.in: ... here.
8759         * sysdeps/x86_64/elf/start.S: Moved to ...
8760         * sysdeps/x86_64/start.S: ... here.
8761         * sysdeps/x86_64/elf/configure: Delete.
8762
8763         * sysdeps/x86_64/configure.in: Merge contents from
8764         sysdeps/i386/configure.in (without i686 check).
8765
8766         * sysdeps/i386/elf/Versions: Merge into ...
8767         * sysdeps/i386/Versions: ... this.
8768         * sysdeps/i386/elf/Versions: Delete file.
8769         * sysdeps/i386/elf/start.S: Moved to ...
8770         * sysdeps/i386/start.S: ...here.
8771         * sysdeps/i386/elf/configure.in: Merge into...
8772         * sysdeps/i386/configure.in: ...here.
8773         * sysdeps/i386/elf/configure.in: Delete file.
8774         * sysdeps/i386/elf/configure: Delete file.
8775
8776         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8777         * debug/backtracesyms.c: ... here.
8778         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8779         * debug/backtracesymsfd.c: ... here.
8780         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8781         * sysdeps/generic/ifunc-sel.h: ... here.
8782
8783         * sysdeps/unix/i386/start.c: Delete file.
8784         * sysdeps/unix/sparc/start.c: Delete file.
8785         * sysdeps/unix/start.c: Delete file.
8786
8787         * sysdeps/sh/elf/configure.in: Moved to ...
8788         * sysdeps/sh/configure.in: ... here.
8789         * sysdeps/sh/elf/start.S: Moved to ...
8790         * sysdeps/sh/start.S: ... here.
8791         * sysdeps/sh/elf/configure: Delete file.
8792
8793         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8794         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8795         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8796         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8797         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8798         * sysdeps/powerpc/powerpc64/start.S: here.
8799         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8800         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8801         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8802         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8803         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8804
8805         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8806         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8807         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8808         * sysdeps/powerpc/powerpc32/start.S: ... here.
8809         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8810         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8811         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8812
8813         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8814         * sysdeps/powerpc/ifunc-sel.h: ... here.
8815         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8816         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8817
8818         * sysdeps/sparc/elf/configure.in: Moved to ...
8819         * sysdeps/sparc/configure.in: ... here.
8820         * sysdeps/sparc/elf/configure: Delete file.
8821         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8822         * sysdeps/sparc/sparc32/start.S: ... here.
8823         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8824         * sysdeps/sparc/sparc64/start.S: ... here.
8825         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8826         * sysdeps/sparc/sparc32/Makefile: ... this.
8827         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8828         * sysdeps/sparc/sparc64/Makefile: ... this.
8829
8830         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8831         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8832         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8833         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8834         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8835         * sysdeps/s390/s390-32/setjmp.S: ... here.
8836         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8837         * sysdeps/s390/s390-32/configure.in: ... here.
8838         * sysdeps/s390/s390-32/elf/configure: Delete file.
8839         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8840         * sysdeps/s390/s390-32/start.S: ... here.
8841
8842         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8843         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8844         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8845         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8846         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8847         * sysdeps/s390/s390-64/setjmp.S: ... here.
8848         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8849         * sysdeps/s390/s390-64/configure.in: ... here
8850         * sysdeps/s390/s390-64/elf/configure: Delete file.
8851         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8852         * sysdeps/s390/s390-64/start.S: ... here.
8853         * sysdeps/s390/s390-64/elf/configure: Delete.
8854
8855         * configure.in: Remove support for elf directories in sysdeps.
8856
8857         * configure: Regenerated.
8858         * sysdeps/i386/configure: Regenerated.
8859         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8860         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8861         * sysdeps/s390/s390-32/configure: Regenerated.
8862         * sysdeps/s390/s390-64/configure: Regenerated.
8863         * sysdeps/sh/configure: Regenerated.
8864         * sysdeps/sparc/configure: Regenerated.
8865         * sysdeps/x86_64/configure: Regenerated.
8866
8867 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8868
8869         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8870
8871         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8872         denormal result into account.
8873
8874 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8875
8876         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8877         Reported by Allan McRae <allan@archlinux.org>.
8878
8879 2012-03-23  Jeff Law  <law@redhat.com>
8880
8881         * nss/getnssent.c (__nss_getent): Fix typo.
8882
8883 2012-03-23  David S. Miller  <davem@davemloft.net>
8884
8885         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8886
8887 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8888
8889         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8890         to pad to uint64_t for each field.
8891         (dl_tls_index): Replace unsigned long with uint64_t.
8892
8893 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8894         Paul Pluzhnikov  <ppluzhnikov@google.com>
8895
8896         [BZ #6528]
8897         * grp/Makefile (otherlibs): Don't set it.
8898         * inet/Makefile (otherlibs): Likewise.
8899         * login/Makefile (otherlibs): Likewise.
8900         * nscd/Makefile (otherlibs): Likewise.
8901         * posix/Makefile (otherlibs): Likewise.
8902         * pwd/Makefile (otherlibs): Likewise.
8903         * rt/Makefile (otherlibs): Likewise.
8904         * sunrpc/Makefile (otherlibs): Likewise.
8905         * nss/Makefile (otherlibs): Likewise.
8906         Add libnss_files to routines and static-only-routines.
8907         ($(objpfx)getent): Remove rule.
8908         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8909         static-only-routines.
8910
8911 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8912
8913         [BZ #13892]
8914         * math/s_cexp.c: Include <float.h>.
8915         (__cexp): Handle exp result overflowing not necessarily
8916         overflowing both real and imaginary parts of result.
8917         * math/s_cexpf.c: Likewise.
8918         * math/s_cexpl.c: Likewise.
8919         * math/libm-test.inc (cexp_test): Add more tests.
8920         * sysdeps/i386/fpu/libm-test-ulps: Update.
8921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8922
8923 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8924
8925         * include/link.h (ELFW): New macro.
8926         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8927         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8928
8929 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8930
8931         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8932         with uint64_t.
8933
8934 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8935
8936         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8937         declaration.
8938         (struct La_x32_retval): Likewise.
8939
8940 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8941
8942         * sysdeps/x86_64/preconfigure.in: New file.
8943         * sysdeps/x86_64/preconfigure: New generated file.
8944
8945 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8946
8947         [BZ #13824]
8948         * math/e_exp2l.c: Include <float.h>.
8949         (__ieee754_exp2l): Handle overflow and underflow cases
8950         separately.  Only pass fractional part of argument to
8951         __ieee754_expl.
8952         * math/libm-test.inc (exp2_test): Add more tests.
8953
8954         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8955         negating x to take absolute value.
8956         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8957         Likewise.
8958         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8959         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8960         Likewise.
8961         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8962         computing low part if x was negated.
8963         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8964
8965 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8966
8967         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8968         la_x32_gnu_pltexit.
8969         (pltexit): Cast int_retval to ptrdiff_t.
8970         * elf/tst-auditmod3b.c: Likewise.
8971         * elf/tst-auditmod4b.c: Likewise.
8972         * elf/tst-auditmod5b.c: Likewise.
8973         * elf/tst-auditmod6b.c: Likewise.
8974         * elf/tst-auditmod6c.c: Likewise.
8975         * elf/tst-auditmod7b.c: Likewise.
8976
8977         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8978         and x32_gnu_pltexit.
8979
8980         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8981         __ELF_NATIVE_CLASS.
8982         (La_x32_regs): New macro.
8983         (La_x32_retval): Likewise.
8984         (la_x32_gnu_pltenter): New function prototype.
8985         (la_x32_gnu_pltexit): Likewise.
8986
8987 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8988
8989         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8990         exponent.
8991
8992         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8993
8994         * configure.in (libc_cv_cc_nofma): Check for option to disable
8995         generation of FMA instructions.
8996         * configure: Regenerate.
8997         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8998         * sysdeps/ieee754/dbl-64/Makefile: New file.
8999         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9000         Remove brandred-fma4.
9001         (CFLAGS-brandred-fma4.c): Remove.
9002         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9003         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9004         define.
9005         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9006         define.
9007
9008 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9009
9010         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9011         LLONG_MAX != LONG_MAX.
9012         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9013         (_fitoa_word): Likewise.
9014         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9015         LLONG_MAX != LONG_MAX.
9016         * stdio-common/_itowa.h: Include <_itoa.h>.
9017         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9018         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9019         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9020         only if not defined.
9021         (_ITOA_WORD_TYPE): Likewise.
9022         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9023         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9024
9025 2012-03-21  David S. Miller  <davem@davemloft.net>
9026
9027         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9028
9029 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9030
9031         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9032         of x86_64 when setting libc_cv_slibdir, libdir and
9033         libc_cv_localedir.
9034         * sysdeps/unix/sysv/linux/configure: Regenerated.
9035
9036 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9037
9038         * manual/lang.texi (Old Varargs): Remove section.
9039         (How Variadic): Update menu.
9040         (va_start): Do not mention varargs.h.
9041
9042 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9043             Joseph Myers  <joseph@codesourcery.com>
9044
9045         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9046         link test.
9047         * configure: Regenerated.
9048
9049 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9050
9051         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9052         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9053         conformtest.pl
9054
9055 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9056
9057         * NOTES: Remove.
9058         * Makefile (files-for-dist): Remove NOTES.
9059         (NOTES): Remove rule.
9060         * README: Don't refer to NOTES.
9061         * manual/creature.texi: Don't include macros.texi.
9062         * manual/intro.texi (creature.texi): Remove comment referring to
9063         NOTES.
9064
9065         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9066         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9067         * configure: Regenerated.
9068         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9069         LIBC_TRY_CC_OPTION.
9070         (libc_cv_as_i686): Likewise.
9071         (libc_cv_cc_avx): Likewise.
9072         (libc_cv_cc_sse2avx): Likewise.
9073         (libc_cv_cc_fma4): Likewise.
9074         (libc_cv_cc_novzeroupper): Likewise.
9075         * sysdeps/i386/configure: Regenerated.
9076
9077         [BZ #13883]
9078         * sysdeps/i386/fpu/s_cexp.S: Remove.
9079         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9080         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9081         * math/libm-test.inc (cexp_test): Add more tests.
9082         * sysdeps/i386/fpu/libm-test-ulps: Update.
9083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9084
9085 2012-03-21  Allan McRae  <allan@archlinux.org>
9086
9087         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9088
9089 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9090
9091         [BZ #13871]
9092         * math/w_exp2.c: Do not include <float.h>.
9093         (o_threshold, u_threshold): Remove.
9094         (__exp2): Calculate result before checking finiteness and calling
9095         __kernel_standard.
9096         * math/w_exp2f.c: Likewise.
9097         * math/w_exp2l.c: Likewise.
9098         * math/libm-test.inc (exp2_test): Require overflow exception for
9099         1e6 input.
9100
9101         [BZ #3866]
9102         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9103         range of signed 64-bit integers before using fistpll.  Remove
9104         checks for whether integers fit in mantissa bits.
9105         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9106         the range of signed 32-bit integers before using fistpl.  Remove
9107         checks for whether integers fit in mantissa bits.
9108         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9109         (__ieee754_powl): Test for y outside the range of signed 64-bit
9110         integers before using fistpll.  Reduce 64-bit values to 63-bit
9111         ones as needed.
9112         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9113         divide-by-zero is raised for zero to large negative powers.
9114         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9115         (__ieee754_powl): Test for y outside the range of signed 64-bit
9116         integers before using fistpll.  Reduce 64-bit values to 63-bit
9117         ones as needed.
9118         * math/libm-test.inc (pow_test): Add more tests.
9119
9120 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9121
9122         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9123         <stdio-common/_itoa.h>.
9124         * debug/segfault.c: Likewise.
9125         * elf/dl-cache.c: Likewise.
9126         * elf/dl-minimal.c: Likewise.
9127         * elf/dl-misc.c: Likewise.
9128         * elf/dl-sysdep.c: Likewise.
9129         * elf/dl-version.c: Likewise.
9130         * elf/rtld.c: Likewise.
9131         * hurd/hurdsock.c: Likewise.
9132         * hurd/lookup-retry.c: Likewise.
9133         * malloc/malloc.c: Likewise.
9134         * malloc/mtrace.c: Likewise.
9135         * nscd/nscd_getgr_r.c: Likewise.
9136         * nscd/nscd_getpw_r.c: Likewise.
9137         * nscd/nscd_getserv_r.c: Likewise.
9138         * posix/getopt_init.c: Likewise.
9139         * posix/wordexp.c: Likewise.
9140         * stdio-common/_itoa.c: Likewise.
9141         * stdio-common/printf_fphex.c: Likewise.
9142         * stdio-common/vfprintf.c: Likewise.
9143         * string/_strerror.c: Likewise.
9144         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9145         * sysdeps/i386/i686/hp-timing.h: Likewise.
9146         * sysdeps/mach/_strerror.c: Likewise.
9147         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9148         * sysdeps/mach/hurd/sethostid.c: Likewise.
9149         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9150         * sysdeps/mach/xpg-strerror.c: Likewise.
9151         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9152         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9153         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9154         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9155         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9156         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9157         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9158         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9159         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9160         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9161         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9162         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9163         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9164         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9165         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9166         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9167         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9168         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9169         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9170         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9171         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9172
9173         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9174
9175         * stdio-common/_itoa.h: Moved to ...
9176         * sysdeps/generic/_itoa.h: Here.
9177
9178         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9179
9180         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9181         instead of "_itoa.h" and "_itowa.h".
9182         * stdio-common/vfprintf.: Likewise.
9183
9184 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9185
9186         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9187         <bits/wordsize.h>.
9188         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9189         (__signbit): Likwise.
9190         (llrintf): Likwise.
9191         (llrint): Likwise.
9192
9193 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9194
9195         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9196         __WORDSIZE != 64.
9197
9198 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9199
9200         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9201         OVERFLOW_EXCEPTION_OK.
9202         * math/libm-test.inc ("Philosophy"): Update comment about
9203         exception testing.
9204         (OVERFLOW_EXCEPTION): Define.
9205         (OVERFLOW_EXCEPTION_OK): Likewise.
9206         (INVALID_EXCEPTION_OK): Renumber.
9207         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9208         (IGNORE_ZERO_INF_SIGN): Likewise.
9209         (test_exceptions): Handle FE_OVERFLOW.
9210         (exp10_test): Expect overflow exceptions.
9211         (exp2_test): Likewise.
9212         (expm1_test): Likewise.
9213         (nextafter_test): Likewise.
9214         (pow_test): Likewise.
9215         (scalbn_test): Likewise.
9216         (scalbln_test): Likewise.
9217
9218 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9219
9220         * sysdeps/x86_64/bits/atomic.h
9221         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9222         64bit integer.
9223         (atomic_exchange_acq): Likewise.
9224         (__arch_exchange_and_add_body): Likewise.
9225         (__arch_add_body): Likewise.
9226         (atomic_add_negative): Likewise.
9227         (atomic_add_zero): Likewise.
9228
9229 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9230
9231         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9232         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9233
9234 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9235
9236         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9237         Check __x86_64__ instead of __WORDSIZE.
9238
9239 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9240
9241         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9242
9243 2012-03-19  David S. Miller  <davem@davemloft.net>
9244
9245         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9246
9247         * sysdeps/sparc/fpu/fenv_private.h: New file.
9248         * sysdeps/sparc/fpu/math_private.h: Use it.
9249         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9250         Remove.
9251         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9252         (libc_feholdexcept_setroundl): Remove.
9253         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9254         Remove.
9255         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9256         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9257
9258 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9259
9260         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9261         int64_t instead of long int.
9262         (INSERT_WORDS64): Likwise.
9263
9264 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9265
9266         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9267         _Unwind_GetCFA return to _Unwind_Ptr first.
9268
9269 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9270
9271         [BZ #13629]
9272         * math/s_clog.c: Include <float.h>.
9273         (__clog): Scale large or subnormal inputs.
9274         * math/s_clogf.c: Likewise.
9275         * math/s_clogl.c: Likewise.
9276         * math/s_clog10.c: Include <float.h>.
9277         (M_LOG10_2): Define.
9278         (__clog10): Scale large or subnormal inputs.
9279         * math/s_clog10f.c: Likewise.
9280         * math/s_clog10l.c: Likewise.
9281         * math/libm-test.inc (clog_test): Add more tests.
9282         (clog10_test): Likewise.
9283         * sysdeps/i386/fpu/libm-test-ulps: Update.
9284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9285
9286         [BZ #11451]
9287         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9288         x and y.
9289         * math/libm-test.inc (atan2_test): Add another test.
9290
9291         * Makerules (common-objdir-compile): Remove.
9292         * sysdeps/unix/Makefile (config-generated): Do not add
9293         $(unix-generated) to variable.
9294         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9295         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9296         Remove rule.
9297         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9298         Likewise.
9299         [generic bits/local_lim.h] (before-compile): Do not append to
9300         variable.
9301         [generic bits/local_lim.h] (common-generated): Likewise.
9302         [generic sys/param.h] (before-compile): Do not append to variable.
9303         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9304         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9305         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9306         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9307         include.
9308         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9309         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9310         [generic sys/param.h] ($(addprefix
9311         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9312         [generic sys/param.h] (common-generated): Do not append to
9313         variable.
9314         [generic sys/param.h] (sysdep_headers): Likewise.
9315         [generic bits/errno.h] (before-compile): Do not append to
9316         variable.
9317         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9318         rule.
9319         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9320         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9321         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9322         [generic bits/errno.h] (common-generated): Do not append to
9323         variable.
9324         [generic bits/ioctls.h] (before-compile): Do not append to
9325         variable.
9326         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9327         rule.
9328         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9329         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9330         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9331         rule.
9332         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9333         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9334         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9335         [generic bits/ioctls.h] (common-generated): Do not append to
9336         variable.
9337         [generic sys/syscall.h] (syscall.h): Remove variable.
9338         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9339         rule.
9340         [generic sys/syscall.h] (before-compile): Do not append to
9341         variable.
9342         [generic sys/syscall.h] (common-generated): Likewise.
9343         * sysdeps/unix/errnos-tmpl.c: Remove file.
9344         * sysdeps/unix/errnos.awk: Likewise.
9345         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9346         * sysdeps/unix/ioctls.awk: Likewise.
9347         * sysdeps/unix/mk-local_lim.c: Likewise.
9348         * sysdeps/unix/snarf-ioctls: Likewise.
9349
9350 2012-03-19  Richard Henderson  <rth@twiddle.net>
9351
9352         * sysdeps/i386/fpu/fenv_private.h: New file.
9353         * sysdeps/i386/fpu/math_private.h: Use it.
9354         (math_opt_barrier, math_force_eval): Remove.
9355         (libc_feholdexcept_setround_53bit): Remove.
9356         (libc_feupdateenv_53bit): Remove.
9357         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9358         (math_opt_barrier, math_force_eval): Remove.
9359         (libc_feholdexcept): Remove.
9360         (libc_feholdexcept_setround): Remove.
9361         (libc_fetestexcept, libc_fesetenv): Remove.
9362         (libc_feupdateenv_test): Remove.
9363         (libc_feupdateenv, libc_feholdsetround): Remove.
9364         (libc_feresetround): Remove.
9365
9366         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9367         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9368
9369         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9370         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9371         (libc_feupdateenv_testl): New.
9372         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9373         (libc_feupdateenv_testf): New.
9374         (libc_feupdateenv): Use libc_feupdateenv_test.
9375         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9376         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9377
9378         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9379         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9380         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9381         (libc_feresetround_noex): New.
9382         (libc_feresetround_noexf): New.
9383         (libc_feresetround_noexl): New.
9384         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9385         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9386         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9387         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9388         SET_RESTORE_ROUND.
9389         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9390         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9391         (__cos): Likewise.
9392         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9393         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9394         SET_RESTORE_ROUND_NOEX.
9395         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9396         SET_RESTORE_ROUND_NOEXF.
9397         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9398         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9399         (libc_feholdsetroundf): New.
9400         (libc_feresetround, libc_feresetroundf): New.
9401
9402         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9403         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9404         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9405
9406         * sysdeps/generic/math_private.h: Include <fenv.h>.
9407         (default_libc_feholdexcept): New.
9408         (default_libc_feholdexcept_setround): New.
9409         (default_libc_fesetenv, default_libc_feupdateenv): New.
9410         (libc_feholdexcept): Only define if undefined.
9411         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9412         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9413         (libc_feholdexcept_setroundl): Likewise.
9414         (libc_feholdexcept_setround_53bit): Likewise.
9415         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9416         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9417         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9418         (libc_feupdateenv_53bit): Likewise.
9419         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9420         (libc_feholdexcept): Convert from macro to inline function.
9421         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9422         (libc_fesetenv, libc_feupdateenv): Likewise.
9423
9424         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9425         not previously defined.
9426         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9427         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9428         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9429         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9430         * sysdeps/ieee754/flt-32/math_private.h: New file.
9431         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9432         math_private.h below SET_FLOAT_WORD.
9433         (__isnan, __isinf_ns, __finite): Remove.
9434         (__isnanf, __isinf_nsf, __finitef): Remove.
9435
9436 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9437
9438         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9439
9440 2012-03-17  David S. Miller  <davem@davemloft.net>
9441
9442         [BZ #6471]
9443         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9444         for 2.16.
9445
9446 2012-03-16  David S. Miller  <davem@davemloft.net>
9447
9448         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9449         warnings.
9450
9451         [BZ #6471]
9452         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9453         properly.
9454         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9455         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9456         sysdep_routines when subdir is sysvipc.
9457         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9458         __getshmlba helper.
9459
9460         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9461
9462 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9463
9464         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9465         [__LP64__].
9466
9467 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9468
9469         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9470         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9471         (__lround): Renamed to ...
9472         (__llround): This.  Replace long int with long long int.
9473         Define lround functions as aliases of llround functions.
9474         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9475
9476 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9477
9478         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9479         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9480         adresses to uintptr_t.  Replace "long int" and "unsigned long
9481         int" with "greg_t" on va_arg.
9482
9483 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9484
9485         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9486         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9487
9488         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9489         Move e_machine check before EI_CLASS check.  Handle x32
9490         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9491         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9492         SKIP_EM_IA_64 and include
9493         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9494
9495         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9496         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9497         (add_system_dir): New macro.
9498
9499         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9500         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9501
9502 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9503
9504         [BZ #2551]
9505         [BZ #2552]
9506         [BZ #2553]
9507         [BZ #2554]
9508         [BZ #2562]
9509         [BZ #2563]
9510         [BZ #2565]
9511         [BZ #2566]
9512         [BZ #2576]
9513         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9514         (y0): Likewise.
9515         * math/w_j0f.c (j0f): Likewise.
9516         (y0f): Likewise.
9517         * math/w_j0l.c (__j0l): Likewise.
9518         (__y0l): Likewise.
9519         * math/w_j1.c (j1): Likewise.
9520         (y1): Likewise.
9521         * math/w_j1f.c (j1f): Likewise.
9522         (y1f): Likewise.
9523         * math/w_j1l.c (__j1l): Likewise.
9524         (__y1l): Likewise.
9525         * math/w_jn.c (jn): Likewise.
9526         (yn): Likewise.
9527         * math/w_jnf.c (jnf): Likewise.
9528         (ynf): Likewise.
9529         * math/w_jnl.c (__jnl): Likewise.
9530         (__ynl): Likewise.
9531         * math/libm-test.inc (j0_test): Add more tests.
9532         (j1_test): Likewise.
9533         (jn_test): Likewise.  Add trailing semicolon to existing test.
9534         (y0_test): Likewise.
9535         (y1_test): Likewise.
9536         * sysdeps/i386/fpu/libm-test-ulps: Update.
9537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9538
9539         [BZ #13851]
9540         [BZ #13854]
9541         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9542         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9543         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9544         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9545         (__tanl): Set errno for infinite argument.
9546         * sysdeps/i386/fpu/mptan.c: Remove.
9547         * sysdeps/i386/fpu/s_tan.S: Likewise.
9548         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9549         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9550         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9551         * math/libm-test.inc (tan_test): Add more tests and enable more
9552         tests for double and long double.
9553         * sysdeps/i386/fpu/libm-test-ulps: Update.
9554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9555
9556 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9557
9558         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9559         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9560
9561 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9562
9563         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9564         * configure.in: Use it for both main tree and add-ons.
9565         * configure: Regenerated.
9566
9567 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9568
9569         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9570
9571 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9572
9573         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9574         in comment.
9575
9576         [BZ #13851]
9577         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9578         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9579         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9580         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9581         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9582         infinite argument.
9583         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9584         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9585         != 0 for prec == 2.
9586         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9587         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9588         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9589         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9590         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9591         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9592         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9593         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9594         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9595         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9596         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9597         * math/libm-test.inc (cos_test): Add more tests and enable more
9598         tests for long double.
9599         (sin_test): Likewise.
9600         (sincos_test): Likewise.
9601         * sysdeps/i386/fpu/libm-test-ulps: Update.
9602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9603
9604 2012-03-16  David S. Miller  <davem@davemloft.net>
9605
9606         * sysdeps/sparc/fpu/math_private.h: New file.
9607
9608 2012-03-15  David S. Miller  <davem@davemloft.net>
9609
9610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9611         file.
9612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9614         file.
9615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9616         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9617         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9618         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9619         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9620         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9621         sysdep routines.
9622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9623
9624         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9625         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9626
9627         * sysdeps/sparc/sparc-ifunc.h: New file.
9628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9629         sparc-ifunc.h
9630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9632         Likewise.
9633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9634         Likewise.
9635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9638         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9639         Likewise.
9640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9645         Likewise.
9646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9647         Likewise.
9648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9652         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9653         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9654         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9655         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9656         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9657         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9658         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9659         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9660         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9661         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9662         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9663         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9664         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9665         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9666         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9667         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9668         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9669         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9670         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9671         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9672
9673 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9674
9675         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9676         scaling.
9677         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9678
9679 2012-03-15  Andreas Jaeger  <aj@suse.de>
9680
9681         [BZ #13852]
9682         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9683         ieee754/flt-32 implementation for sin, cos and sincos.
9684         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9685         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9686         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9687         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9688         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9689         ieee754/flt-32 implementation for tan.
9690
9691         * math/libm-test.inc (cos_test): Enable some large input tests for
9692         float as well
9693         (sin_test): Likewise.
9694         (sincos_test): Likewise.
9695         (tan_test): Add tests for large input.
9696
9697         * sysdeps/i386/fpu/libm-test-ulps: Update.
9698
9699 2012-03-15  Andreas Jaeger  <aj@suse.de>
9700
9701         [BZ #13658]
9702         * math/libm-test.inc (cos_test): Add more test cases.
9703         (sin_test): Likewise.
9704         (sincos_test): Likewise.
9705
9706 2012-03-15  Andreas Jaeger  <aj@suse.de>
9707
9708         [BZ #13837]
9709         * math/libm-test.inc (cos_test): Add a test case for large input
9710         value.
9711         (sin_test): Likewise.
9712         (sincos_test): Likewise.
9713
9714 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9715         Joseph Myers  <joseph@codesourcery.com>
9716
9717         [BZ #13658]
9718         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9719         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9720         * sysdeps/i386/fpu/branred.c: Likewise.
9721         * sysdeps/i386/fpu/dosincos.c: Likewise.
9722         * sysdeps/i386/fpu/mpa.c: Likewise.
9723         * sysdeps/i386/fpu/s_cos.S: Likewise.
9724         * sysdeps/i386/fpu/s_sin.S: Likewise.
9725         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9726         * sysdeps/i386/fpu/sincos32.c: Likewise.
9727
9728         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9729         Define.
9730         (libc_feupdateenv_53bit): Define.
9731         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9732         Define.
9733         (libc_feupdateenv_53bit): Define.
9734
9735         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9736         53 bit (without extend i386 double precision).
9737
9738         * math/libm-test.inc (sincos_test): Add tests for large input.
9739         (sin): Likewise.
9740         (cos): Likewise.
9741
9742         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9743
9744 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9745
9746         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9747
9748 2012-03-15  David S. Miller  <davem@davemloft.net>
9749
9750         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9751         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9752         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9753         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9754         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9755         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9756         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9757         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9758         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9759         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9760         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9761         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9762         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9763         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9764         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9766         file.
9767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9769         file.
9770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9772         file.
9773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9775         file.
9776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9777         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9778         fmin/fmax sysdep routines.
9779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9780
9781 2012-03-14  David S. Miller  <davem@davemloft.net>
9782
9783         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9784         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9785         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9786         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9787         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9788         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9789         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9790         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9791         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9792         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9793         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9794         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9795         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9796         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9797         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9798         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9799         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9800         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9801         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9802         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9803         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9804         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9805         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9806         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9807         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9808         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9809         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9810         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9811         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9812         routines.
9813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9814         file.
9815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9817         file.
9818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9820         file.
9821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9823         file.
9824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9826         file.
9827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9829         file.
9830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9831         file.
9832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9833         file.
9834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9835         file.
9836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9837         New file.
9838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9839         file.
9840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9841         file.
9842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9844         file.
9845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9847         file.
9848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9850         file.
9851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9853         VIS3 routines.
9854
9855         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9856         New file.
9857
9858         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9859
9860         * sysdeps/sparc/configure.in: New file.
9861         * sysdeps/sparc/configure: Generate.
9862         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9863         * configure: Regenerate.
9864         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9865         * config.make.in (have-as-vis3): New.
9866         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9867         available use -Av9d instead of -Av9a.
9868         * sysdeps/sparc/sparc64/Makefile: Likewise.
9869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9871         New file.
9872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9873         file.
9874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9875         New file.
9876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9877         file.
9878         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9879         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9880         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9881         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9882         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9883
9884         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9885         fzeros/fnegs to load 0x80000000 into a float register instead of
9886         using the stack.
9887         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9888
9889 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9890
9891         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9892         bits/syscall.h.
9893         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9894         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9895         ($(inst_includedir)/bits/syscall.h): Remove rule.
9896         ($(objpfx)bits/syscall.d): Include instead of
9897         $(objpfx)syscall-list.d.
9898         (generated): Change syscall-list.h and syscall-list.d to
9899         bits/syscall.h and bits/syscall.d.
9900
9901 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9902
9903         [BZ #13846]
9904         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9905
9906 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9907
9908         [BZ #13841]
9909         * math/s_csqrt.c: Include <float.h>.
9910         (__csqrt): Scale large or subnormal inputs.
9911         * math/s_csqrtf.c: Likewise.
9912         * math/s_csqrtl.c: Likewise.
9913         * math/libm-test.inc (csqrt_test): Add more tests.
9914         * sysdeps/i386/fpu/libm-test-ulps: Update.
9915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9916
9917         [BZ #13840]
9918         * math/libm-test.inc (hypot_test): Add more tests.
9919
9920 2012-03-13  David S. Miller  <davem@davemloft.net>
9921
9922         [BZ #13840]
9923         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9924         double-precision for the calculation instead of scaling.
9925
9926 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9927
9928         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9929         manipulate bits before adding and subtracting TWO52[sx].
9930         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9931         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9932         Likewise.
9933         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9934
9935 2012-03-13  David S. Miller  <davem@davemloft.net>
9936
9937         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9938         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9939         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9940         rtld-global-offsets.h
9941         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9942
9943         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9944         large parameters.
9945
9946         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9947
9948         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9949         'err' in the ifdef scope in which it is actually used.
9950
9951         * nss/nss_db/db-init.c: Include string.h
9952
9953 2012-03-12  David S. Miller  <davem@davemloft.net>
9954
9955         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9956         masking out of the most significant byte of random value used.
9957         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9958         Fix coding style in previous change.
9959
9960         * sysdeps/unix/sysv/linux/kernel-features.h
9961         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9962         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9963         expression.
9964         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9965         later.
9966
9967 2012-03-11  David S. Miller  <davem@davemloft.net>
9968
9969         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9970         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9971         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9972         for 'resultvar' otherwise things get truncated on 64-bit.
9973
9974         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9975         Fix masking out of the most significant byte of random value used.
9976
9977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9978
9979 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9980
9981         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9982
9983 2012-03-09  David S. Miller  <davem@davemloft.net>
9984
9985         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9986         variables with appropriate CPP guards.
9987         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9988         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9989         on resulting framesize and the management of the outregs buffer for pltexit.
9990         Preserve floating point return values across _dl_call_pltexit call.
9991         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9992         framesize and the management of the outregs buffer for pltexit.
9993         Preserve floating point return values across _dl_call_pltexit
9994         call.
9995         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9996         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9997         (print_exit): Fix format string for return register value.
9998
9999 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10000
10001         * sunrpc/Makefile (others): Add rpcgen.
10002         ($(objpfx)rpcgen): Remove special build rule and dependency on
10003         libc.
10004         * sunrpc/rpcgen.c: New file.
10005
10006 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10007
10008         [BZ #13673]
10009         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10010         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10011         * sysdeps/i386/crti.S: Likewise.
10012         * sysdeps/i386/crtn.S: Likewise.
10013         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10014         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10015         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10016         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10017         * sysdeps/sh/crti.S: Likewise.
10018         * sysdeps/sh/crtn.S: Likewise.
10019         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10020
10021         [BZ #13673]
10022         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10023         with URL.
10024         * locale/programs/locfile-kw.gperf: Likewise.
10025         * locale/programs/charmap-kw.h: Regenerated.
10026         * locale/programs/locfile-kw.h: Likewise.
10027
10028         [BZ #13673]
10029         * intl/plural.y: Replace FSF snail mail address with URL.
10030         * intl/plural.c: Regenerated.
10031
10032 2012-03-09  Richard Henderson  <rth@twiddle.net>
10033
10034         * include/math_private.h: Remove file.
10035         * math/math_private.h: Move file ...
10036         * sysdeps/generic/math_private.h: ... here.
10037
10038         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10039         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10040         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10041
10042         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10043         and <math_private.h>.
10044         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10045         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10046         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10047         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10048         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10049         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10050         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10051         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10052         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10053         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10054         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10055         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10056         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10057         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10058         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10059         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10060         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10061         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10062         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10063         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10064         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10065         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10066         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10067         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10068         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10069         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10070         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10071         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10072         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10073         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10074         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10075         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10076         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10077         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10078         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10079         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10080         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10081         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10082         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10083         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10084         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10085         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10086         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10087         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10088         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10089         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10090         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10091         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10092         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10093         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10094         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10095         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10096         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10097         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10098         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10099         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10100         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10101         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10102         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10103         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10104         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10105         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10106         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10107         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10108         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10109         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10110         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10111         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10112         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10113         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10114         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10115         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10116         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10117         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10118         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10119         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10120         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10121         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10122         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10123         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10124         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10125         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10126         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10127         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10128         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10129         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10130         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10131         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10132         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10133         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10134         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10135         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10136         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10137         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10138         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10139         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10140         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10141         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10142         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10143         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10144         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10145         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10146         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10147         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10148         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10149         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10150         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10151         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10152         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10153         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10154         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10155         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10156         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10157         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10158         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10159         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10160         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10161         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10162         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10163         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10164         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10165         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10166         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10167         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10168         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10169         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10170         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10171         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10172         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10173         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10174         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10175         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10176         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10177         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10178         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10179         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10180         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10181         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10182         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10183         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10184         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10185         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10186         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10187         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10188         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10189         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10190         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10191         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10192         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10193         * sysdeps/ieee754/k_standard.c: Likewise.
10194         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10195         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10196         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10197         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10198         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10199         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10200         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10201         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10202         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10203         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10204         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10205         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10206         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10207         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10208         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10209         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10210         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10211         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10212         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10213         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10214         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10215         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10216         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10217         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10218         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10219         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10220         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10221         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10222         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10223         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10224         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10225         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10226         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10227         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10228         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10229         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10230         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10231         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10232         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10233         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10234         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10235         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10236         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10237         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10238         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10239         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10240         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10241         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10242         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10243         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10244         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10245         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10246         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10247         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10248         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10249         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10250         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10251         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10252         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10253         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10254         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10255         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10256         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10257         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10258         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10259         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10260         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10261         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10262         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10263         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10264         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10265         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10266         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10267         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10268         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10269         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10270         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10271         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10272         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10273         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10274         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10275         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10276         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10277         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10278         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10279         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10280         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10281         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10282         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10283         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10284         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10285         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10286         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10287         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10288         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10289         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10290         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10291         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10292         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10293         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10294         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10295         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10296         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10297         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10298         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10299         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10300         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10301         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10302         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10303         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10304         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10305         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10306         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10307         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10308         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10309         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10310         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10311         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10312         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10313         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10314         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10315         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10316         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10317         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10318         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10319         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10320         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10321         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10322         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10323         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10324         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10325         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10326         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10327         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10328         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10329         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10330         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10331         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10332         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10333         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10334         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10335         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10336         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10337         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10338         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10339         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10340         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10341         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10342         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10343         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10344         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10345         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10346         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10347         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10348         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10349         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10350         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10351         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10352         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10353         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10354         * sysdeps/ieee754/s_lib_version.c: Likewise.
10355         * sysdeps/ieee754/s_matherr.c: Likewise.
10356         * sysdeps/ieee754/s_signgam.c: Likewise.
10357         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10358         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10359         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10360         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10361         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10362         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10363         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10364         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10365         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10366         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10367         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10368         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10369         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10370         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10371         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10372         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10373         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10374         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10375         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10376         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10377         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10378
10379 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10380
10381         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10382         * sunrpc/rpc_main.c: Likewise.
10383         * sunrpc/rpc_svcout.c: Likewise.
10384
10385 2012-03-09  David S. Miller  <davem@davemloft.net>
10386
10387         * include/math_private.h: New file.
10388
10389 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10390
10391         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10392         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10393         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10394         from <bits/socket_type.h>.
10395         (enum __socket_type): Don't define here.
10396         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10397         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10398         bits/socket_type.h.
10399
10400         [BZ #13566]
10401         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10402         checking __USE_GNU.
10403
10404         * Makerules ($(inst_includedir)/%.h): New rule.
10405         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10406         (install-others): Remove variable setting.
10407         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10408
10409 2012-03-08  Richard Henderson  <rth@twiddle.net>
10410
10411         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10412         from macro to inline function; merge with the
10413         !__LIBC_INTERNAL_MATH_INLINES version.
10414         (__ieee754_sqrtf): Likewise.
10415
10416         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10417         to inline function.
10418         (__rintf, __floor, __floorf): Likewise.
10419
10420         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10421         macro to inline function.
10422         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10423
10424         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10425         not <math/math_private.h>.
10426
10427 2012-03-08  David S. Miller  <davem@davemloft.net>
10428
10429         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10430         copyright year.
10431         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10432
10433 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10434
10435         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10436         normalization.
10437         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10438         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10439
10440 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10441
10442         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10443         be defined individually, they must be defined as a block.  Define
10444         S for printing a string instead of hidint the different by using a
10445         macro for adding the 'l'.
10446         * stdio-common/tst-fphex-wide.c: Adjust.
10447
10448 2012-03-07  Marek Polacek  <polacek@redhat.com>
10449
10450         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10451
10452 2012-03-08  Marek Polacek  <polacek@redhat.com>
10453
10454         [BZ #13806]
10455         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10456         * stdio-common/tst-fphex.c: Define a few macros to make the
10457         test reusable.  Use them.
10458         * stdio-common/tst-fphex-wide.c: New file.
10459
10460 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10461
10462         [BZ #6911]
10463         * manual/macros.texi (gnusystems): New macro.
10464         (nongnusystems): Likewise.
10465         (gnulinuxhurdsystems): Likewise.
10466         (gnuhurdsystems): Likewise..
10467         (gnulinuxsystems): Likewise.
10468         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10469         variants of the GNU system, not "GNU system".
10470         * manual/conf.texi: Likewise.
10471         * manual/errno.texi: Likewise.  Update example of errno macro
10472         expansion.
10473         * manual/filesys.texi: Likewise.
10474         (getumask): Document as specific to GNU/Hurd.
10475         * manual/install.texi: Likewise.  Reword some references to
10476         GNU/Linux.
10477         * manual/intro.texi: Likewise.
10478         * manual/io.texi: Likewise.
10479         (File Name Portability): Detail which constraints are inapplicable
10480         to all GNU systems and which are only inapplicable to GNU/Hurd.
10481         * manual/job.texi: Likewise.
10482         * manual/llio.texi: Likewise.
10483         (O_NOCTTY): Document as present on GNU/Linux.
10484         * manual/maint.texi: Likewise.
10485         * manual/memory.texi: Likewise.
10486         * manual/pattern.texi: Likewise.
10487         * manual/pipe.texi: Likewise.
10488         * manual/process.texi: Likewise.
10489         * manual/resource.texi: Likewise.
10490         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10491         child on GNU/Hurd.
10492         * manual/setjmp.texi: Likewise.
10493         * manual/signal.texi: Likewise.
10494         * manual/startup.texi: Likewise.
10495         * manual/stdio.texi: Likewise.
10496         * manual/terminal.texi: Likewise.
10497         (ONLCR): Document as POSIX.
10498         (OXTABS): Document availability on GNU/Linux as XTABS.
10499         (ONOEOT): Document availability separately from other bits.
10500         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10501         * manual/time.texi: Likewise.
10502         * manual/users.texi: Likewise.
10503         * INSTALL: Regenerated.
10504         * sysdeps/gnu/errlist.c: Regenerated.
10505
10506         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10507         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10508         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10509         puts.
10510         * configure: Regenerated.
10511
10512 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10513
10514         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10515         default includes instead of AC_HEADER_CHECK.
10516         * sysdeps/i386/configure: Regenerated.
10517
10518         [BZ #10716]
10519         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10520         * math/s_cacoshf.c (__cacoshf): Likewise.
10521         * math/s_cacoshl.c (__cacoshl): Likewise.
10522         * math/s_casinh.c (__casinh): Set signs of result from argument.
10523         * math/s_casinhf.c (__casinhf): Likewise.
10524         * math/s_casinhl.c (__casinhl): Likewise.
10525         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10526         (casinh_test): Add more tests.
10527         * sysdeps/i386/fpu/libm-test-ulps: Update.
10528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10529
10530 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10531
10532         * po/zh_TW.po: Update from translation team.
10533
10534         * login/Makefile (distribute): Remove variable.
10535         * catgets/Makefile: Likewise.
10536         * mach/Makefile: Likewise.
10537         * malloc/Makefile: Likewise.
10538         * misc/Makefile: Likewise.
10539         * iconv/Makefile: Likewise.
10540         * nscd/Makefile: Likewise.
10541         * hurd/Makefile: Likewise.
10542         * manual/Makefile: Likewise.
10543         * locale/Makefile: Likewise.
10544         * intl/Makefile: Likewise.
10545         * conform/Makefile: Likewise.
10546         * nss/Makefile: Likewise.
10547         * time/Makefile: Likewise.
10548         * soft-fp/Makefile: Likewise.
10549         * dirent/Makefile: Likewise.
10550         * gmon/Makefile: Likewise.
10551         * po/Makefile: Likewise.
10552         * rt/Makefile: Likewise.
10553         * socket/Makefile: Likewise.
10554         * math/Makefile: Likewise.
10555         * signal/Makefile: Likewise.
10556         * debug/Makefile: Likewise.
10557         * elf/Makefile: Likewise.
10558         * timezone/Makefile: Likewise.
10559         * stdlib/Makefile: Likewise.
10560         * iconvdata/Makefile: Likewise.
10561         * sunrpc/Makefile: Likewise.
10562         * io/Makefile: Likewise.
10563         * argp/Makefile: Likewise.
10564         * inet/Makefile: Likewise.
10565         * hesiod/Makefile: Likewise.
10566         * grp/Makefile: Likewise.
10567         * csu/Makefile: Likewise.
10568         * wctype/Makefile: Likewise.
10569         * crypt/Makefile: Likewise.
10570         * libio/Makefile: Likewise.
10571         * string/Makefile: Likewise.
10572         * nis/Makefile: Likewise.
10573         * resolv/Makefile: Likewise.
10574         * stdio-common/Makefile: Likewise.
10575         * wcsmbs/Makefile: Likewise.
10576         * dlfcn/Makefile: Likewise.
10577         * posix/Makefile: Likewise.
10578
10579         [BZ #6959]
10580         * timezone/Makefile: Don't install timezone files, just the programs
10581         and scripts.
10582
10583 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10584
10585         * nss/databases.def: Add missing gshadow entry.
10586
10587         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10588
10589 2012-03-06  Marek Polacek  <polacek@redhat.com>
10590
10591         [BZ #13726]
10592         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10593         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10594         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10595         * stdio-common/tst-long-dbl-fphex.c: New file.
10596
10597 2012-03-06  David S. Miller  <davem@davemloft.net>
10598
10599         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10600         (set_obp_int): New function.
10601         (get_obp_int): New function.
10602         (__get_clockfreq_via_dev_openprom): Likewise.
10603         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10604         Avoid unused variable warnings on 'val' and use builtin_expect.
10605         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10606         __builtin_expect.
10607         (INLINE_CLONE_SYSCALL): Likewise.
10608
10609 2012-03-05  David S. Miller  <davem@davemloft.net>
10610
10611         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10612
10613 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10614
10615         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10616
10617         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10618         only for |x| >= 40.
10619         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10620
10621 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10622
10623         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10624         Replace gettimeofday with __vdso_gettimeofday.
10625
10626         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10627         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10628         __vdso_clock_gettime and __vdso_getcpu.
10629
10630         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10631         time with __vdso_time.
10632
10633 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10634
10635         * manual/lang.texi (size_t): Note types to which size_t may be
10636         equivalent with the GNU C Library, but do not describe when
10637         differences between them are significant.
10638
10639 2012-03-05  Andreas Jaeger  <aj@suse.de>
10640
10641         * sysdeps/i386/fpu/libm-test-ulps: Update.
10642
10643 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10644
10645         [BZ #3976]
10646         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10647         (__ieee754_pow): Save and restore rounding mode and use
10648         round-to-nearest for main computations.
10649         * math/libm-test.inc (pow_test_tonearest): New function.
10650         (pow_test_towardzero): Likewise.
10651         (pow_test_downward): Likewise.
10652         (pow_test_upward): Likewise.
10653         (main): Call the new functions.
10654         * sysdeps/i386/fpu/libm-test-ulps: Update.
10655         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10656
10657         [BZ #3976]
10658         * math/libm-test.inc (cosh_test_tonearest): New function.
10659         (cosh_test_towardzero): Likewise.
10660         (cosh_test_downward): Likewise.
10661         (cosh_test_upward): Likewise.
10662         (sinh_test_tonearest): Likewise.
10663         (sinh_test_towardzero): Likewise.
10664         (sinh_test_downward): Likewise.
10665         (sinh_test_upward): Likewise.
10666         (main): Call the new functions.
10667         * sysdeps/i386/fpu/libm-test-ulps: Update.
10668         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10669
10670 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10671
10672         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10673         default stack guard is set in last bytes.
10674         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10675
10676 2012-03-05  Kees Cook  <keescook@chromium.org>
10677
10678         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10679
10680         [BZ #13656]
10681         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10682         possibly allocate from heap instead of stack.
10683         * stdio-common/bug-vfprintf-nargs.c: New file.
10684         * stdio-common/Makefile (tests): Add nargs overflow test.
10685
10686 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10687
10688         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10689
10690 2012-03-03  Marek Polacek  <polacek@redhat.com>
10691
10692         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10693         * math/math_private.h: Likewise.
10694         * stdlib/tst-strtod.c: Likewise.
10695         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10696         * sysdeps/x86_64/bits/atomic.h: Likewise.
10697
10698 2012-03-02  David S. Miller  <davem@davemloft.net>
10699
10700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10702         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10703         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10704         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10705         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10706         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10707         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10708
10709 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10710
10711         [BZ #13792]
10712         * manual/examples/README: New file, says the example source files
10713         can be used under GPL>=2.
10714         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10715         line containing just "*/".
10716         * manual/examples/add.c: Add copyright header (GPL>=2).
10717         * manual/examples/argp-ex1.c: Likewise.
10718         * manual/examples/argp-ex2.c: Likewise.
10719         * manual/examples/argp-ex3.c: Likewise.
10720         * manual/examples/argp-ex4.c: Likewise.
10721         * manual/examples/atexit.c: Likewise.
10722         * manual/examples/db.c: Likewise.
10723         * manual/examples/dir.c: Likewise.
10724         * manual/examples/dir2.c: Likewise.
10725         * manual/examples/execinfo.c: Likewise.
10726         * manual/examples/filecli.c: Likewise.
10727         * manual/examples/filesrv.c: Likewise.
10728         * manual/examples/fmtmsgexpl.c: Likewise.
10729         * manual/examples/genpass.c: Likewise.
10730         * manual/examples/inetcli.c: Likewise.
10731         * manual/examples/inetsrv.c: Likewise.
10732         * manual/examples/isockad.c: Likewise.
10733         * manual/examples/longopt.c: Likewise.
10734         * manual/examples/memopen.c: Likewise.
10735         * manual/examples/memstrm.c: Likewise.
10736         * manual/examples/mkfsock.c: Likewise.
10737         * manual/examples/mkisock.c: Likewise.
10738         * manual/examples/mygetpass.c: Likewise.
10739         * manual/examples/pipe.c: Likewise.
10740         * manual/examples/popen.c: Likewise.
10741         * manual/examples/rprintf.c: Likewise.
10742         * manual/examples/search.c: Likewise.
10743         * manual/examples/select.c: Likewise.
10744         * manual/examples/setjmp.c: Likewise.
10745         * manual/examples/sigh1.c: Likewise.
10746         * manual/examples/sigusr.c: Likewise.
10747         * manual/examples/stpcpy.c: Likewise.
10748         * manual/examples/strdupa.c: Likewise.
10749         * manual/examples/strftim.c: Likewise.
10750         * manual/examples/strncat.c: Likewise.
10751         * manual/examples/subopt.c: Likewise.
10752         * manual/examples/swapcontext.c: Likewise.
10753         * manual/examples/termios.c: Likewise.
10754         * manual/examples/testopt.c: Likewise.
10755         * manual/examples/testpass.c: Likewise.
10756         * manual/examples/timeval_subtract.c: Likewise.
10757
10758         [BZ #13792]
10759         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10760         function to ...
10761         * manual/timeval_subtract.c.texi: ... here, new file.
10762
10763 2012-03-02  David S. Miller  <davem@davemloft.net>
10764
10765         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10766
10767 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10768
10769         [BZ #3976]
10770         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10771         (__sin): Save and restore rounding mode and use round-to-nearest
10772         for all computations.
10773         (__cos): Save and restore rounding mode and use round-to-nearest
10774         for all computations.
10775         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10776         <fenv.h>.
10777         (tan): Save and restore rounding mode and use round-to-nearest for
10778         all computations.
10779         * math/libm-test.inc (cos_test_tonearest): New function.
10780         (cos_test_towardzero): Likewise.
10781         (cos_test_downward): Likewise.
10782         (cos_test_upward): Likewise.
10783         (sin_test_tonearest): Likewise.
10784         (sin_test_towardzero): Likewise.
10785         (sin_test_downward): Likewise.
10786         (sin_test_upward): Likewise.
10787         (tan_test_tonearest): Likewise.
10788         (tan_test_towardzero): Likewise.
10789         (tan_test_downward): Likewise.
10790         (tan_test_upward): Likewise.
10791         (main): Call the new functions.
10792         * sysdeps/i386/fpu/libm-test-ulps: Update.
10793         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10794
10795         [BZ #10135]
10796         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10797         small n, then large n, before computing and testing k+n.
10798         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10799         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10800         Likewise.
10801         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10802         Likewise.
10803         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10804         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10805         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10806         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10807         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10808         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10809         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10810         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10811         * math/libm-test.inc (scalbn_test): Add more tests.
10812         (scalbln_test): Likewise.
10813
10814         * manual/filesys.texi (mode_t): Describe constraints on size and
10815         signedness, not exact equivalence to a particular type.
10816         (ino_t): Likewise.
10817         (ino64_t): Likewise.
10818         (dev_t): Likewise.
10819         (nlink_t): Likewise.
10820         (blkcnt_t): Likewise.
10821         (blkcnt64_t): Likewise.
10822         * manual/llio.texi (off_t): Likewise.
10823
10824         [BZ #3976]
10825         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10826         (__ieee754_exp): Save and restore rounding mode and use
10827         round-to-nearest for all computations.
10828         * math/libm-test.inc (exp_test_tonearest): New function.
10829         (exp_test_towardzero): Likewise.
10830         (exp_test_downward): Likewise.
10831         (exp_test_upward): Likewise.
10832         (main): Call the new functions.
10833         * sysdeps/i386/fpu/libm-test-ulps: Update.
10834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10835
10836 2012-03-01  Chris Demetriou  <cgd@google.com>
10837
10838         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10839         have predictable order.
10840
10841 2012-03-01  David S. Miller  <davem@davemloft.net>
10842
10843         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10844
10845         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10846         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10847         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10848         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10849
10850         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10851         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10852         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10853         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10854         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10855         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10856         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10857         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10858         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10859
10860         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10861
10862         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10863         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10864         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10865
10866         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10867         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10868         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10869         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10870         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10871         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10872         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10873         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10874         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10875         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10876         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10877         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10878         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10879         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10880         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10881         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10882         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10883         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10884         * sysdeps/sparc/elf/configure: Regenerated.
10885
10886 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10887
10888         * configure.in (AS, LD): Require binutils 2.20 or later.
10889         * configure: Regenerated.
10890         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10891         as required minimum version.
10892         * INSTALL: Regenerated.
10893
10894         [BZ #2541]
10895         [BZ #4108]
10896         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10897         before squaring exponent.
10898         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10899         bottom long double and 27 bits of top long double before squaring
10900         exponent.
10901         * math/libm-test.inc (erfc_test): Add more tests.
10902         * sysdeps/i386/fpu/libm-test-ulps: Update.
10903         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10905
10906 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10907
10908         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10909         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10910         containing bit-fields.
10911         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10912         * soft-fp/single.h (_FP_UNION_S): Likewise.
10913         * soft-fp/double.h (_FP_UNION_D): Likewise.
10914
10915 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10916
10917         [BZ #13786]
10918         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10919         not include ../strcmp.S.
10920         [USE_AS_STRNCASECMP_L]: Likewise.
10921         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10922         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10923         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10924         (__strncasecmp_l_ia32): Define as alias to
10925         __strncasecmp_l_nonascii.
10926
10927         [BZ #5794]
10928         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10929         * sysdeps/i386/fpu/libm-test-ulps: Update.
10930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10931
10932         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10934
10935 2012-02-29  Jeff Law  <law@redhat.com>
10936
10937         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10938         out of bounds read.
10939
10940 2012-02-29  Marek Polacek  <polacek@redhat.com>
10941
10942         [BZ #13706]
10943         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10944         * elf/Makefile: Add rules to run tst-unused-dep.out.
10945
10946 2012-02-28  David S. Miller  <davem@davemloft.net>
10947
10948         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10949         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10950         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10951         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10952         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10953         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10954
10955 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10956
10957         * math/libm-test.inc (llround_test): Move one test from
10958         lround_test.  Use TEST_f_L in moved test.
10959         (lround_test): Move misplaced test to llround_test.  Add testcase
10960         from bug 2561.
10961
10962 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10963
10964         * sysdeps/x86_64/fpu/e_expf.S: New file.
10965         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10966
10967 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10968
10969         [BZ #13637]
10970         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10971         of remain_len that may cause incomplete multi-byte character and
10972         false match.
10973         * posix/bug-regex33.c: New file.
10974         * posix/Makefile (tests): Add bug-regex33.
10975
10976 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10977
10978         * manual/macros.texi: New file.
10979         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10980         * manual/libc.texinfo: Include macros.texi.
10981         * manual/creatute.texi: Likewise.
10982         * manual/install.texi: Likewise.
10983         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10984         @glibcadj{} in references to the GNU C Library.
10985         * manual/charset.texi: Likewise.
10986         * manual/conf.texi: Likewise.
10987         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10988         when not using those macros.
10989         * manual/creature.texi: Likewise.
10990         * manual/crypt.texi: Likewise.
10991         * manual/errno.texi: Likewise.
10992         * manual/filesys.texi: Likewise.
10993         * manual/header.texi: Likewise.
10994         * manual/install.texi: Likewise.
10995         * manual/intro.texi: Likewise.
10996         * manual/io.texi: Likewise.
10997         * manual/job.texi: Likewise.
10998         * manual/lang.texi: Likewise.
10999         * manual/libc.texiinfo: Likewise.
11000         * manual/llio.texi: Likewise.
11001         * manual/locale.texi: Likewise.
11002         * manual/maint.texi: Likewise.
11003         * manual/math.texi: Likewise.
11004         * manual/memory.texi: Likewise.
11005         * manual/message.texi: Likewise.
11006         * manual/nss.texi: Likewise.
11007         * manual/pattern.texi: Likewise.
11008         * manual/process.texi: Likewise.
11009         * manual/resource.texi: Likewise.
11010         * manual/search.texi: Likewise.
11011         * manual/setjmp.texi: Likewise.
11012         * manual/signal.texi: Likewise.
11013         * manual/socket.texi: Likewise.
11014         * manual/startup.texi: Likewise.
11015         * manual/stdio.texi: Likewise.
11016         * manual/string.texi: Likewise.
11017         * manual/sysinfo.texi: Likewise.
11018         * manual/syslog.texi: Likewise.
11019         * manual/terminal.texi: Likewise.
11020         * manual/time.texi: Likewise.
11021         * manual/users.texi: Likewise.
11022         * INSTALL: Regenerated.
11023         * NOTES: Regenerated.
11024         * sysdeps/gnu/errlist.c: Regenerated.
11025
11026 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11027
11028         * include/dirent.h: Include <dirstream.h> before
11029         <dirent/dirent.h>.
11030
11031 2012-02-28  David S. Miller  <davem@davemloft.net>
11032
11033         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11034         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11035         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11036         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11037
11038 2012-02-27  David S. Miller  <davem@davemloft.net>
11039
11040         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11041         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11042         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11043         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11044
11045         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11046         frame pointer instead of stack pointer relative arg slot.
11047         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11048         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11049         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11050
11051 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11052
11053         [BZ #3992]
11054         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11055
11056 2012-02-27  David S. Miller  <davem@davemloft.net>
11057
11058         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11059         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11060         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11062         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11063         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11064         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11065         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11066
11067 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11068
11069         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11070         later.  Allow versions 5-9.
11071         * configure: Regenerated.
11072         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11073         required minimum version and 4.6 as recommended version.  Do not
11074         mention bugs in GCC 2.7 and 2.8.
11075         * INSTALL: Regenerated.
11076
11077 2012-02-27  David S. Miller  <davem@davemloft.net>
11078
11079         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11080         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11081         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11082         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11083         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11084         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11085         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11086         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11087
11088         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11089         manipulate bits before adding and subtracting TWO112[sx].
11090         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11091
11092 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11093
11094         [BZ #13775]
11095         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11096         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11097         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11098         being in POSIX, because they are in 1003.1-2008.
11099
11100         * rt/tst-aio.c: Include <fcntl.h>.
11101         * rt/tst-aio7.c: Likewise.
11102         * rt/tst-aio64.c: Likewise.
11103
11104         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11105
11106 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11107
11108         * manual/install.texi (--with-headers): Describe headers as
11109         interface headers, not private headers.
11110         (Specific advice for GNU/Linux systems): Describe use of headers
11111         from "make headers_install", not private headers from older
11112         kernels.
11113         * INSTALL: Regenerated.
11114         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11115         Change to 2.6.19.
11116         * sysdeps/unix/sysv/linux/configure: Regenerated.
11117
11118         * manual/llio.texi (fclean): Remove documentation.
11119
11120         * manual/Makefile (libc-texi-generated): New variable.  Include
11121         version.texi.
11122         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11123         $(libc-texi-generated), not duplicated list of files.
11124         (version.texi, stamp-version): New rules.
11125         (realclean): Remove $(libc-texi-generated), not individual files
11126         from that list.  Do not remove dir-add.texinfo.
11127         * manual/libc.texinfo: Comment out uses of edition numbers and
11128         references to printed manual.  Remove last-updated dates.
11129         (EDITION): Comment out.
11130         (ISBN): Likewise.
11131         (VERSION, UPDATED): Remove.
11132         (version.texi): Include.
11133
11134 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11135
11136         * sysdeps/posix/spawni.c: Include <signal.h>.
11137         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11138         * sysdeps/pthread/aio_fsync.c: Likewise.
11139
11140 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11141
11142         * conform/Makefile (tests): Run only when not cross-compiling and
11143         when fast-check is not defined.
11144
11145         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11146         * conform/data/limits.h-data: Fixes for POSIX2008.
11147         * conform/run-conformtest.sh: Run all tests.
11148         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11149         headers.
11150         * include/bits/dlfcn.h: Likewise.
11151         * include/langinfo.h: Likewise.
11152         * include/monetary.h: Likewise.
11153         * include/sys/poll.h: Likewise.
11154
11155         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11156         for __USE_GNU.
11157         * posix/spawn.h: Define __need_sigset_t.
11158         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11159         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11160         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11161         to get sigevent_t only.
11162         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11163         only for __USE_GNU.
11164         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11165         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11166         process_vm_writev only for __USE_GNU.
11167         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11168
11169         * conform/Makefile: For now ignore errors from run-conformtest.
11170         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11171         POSIX to avoid namespace pollution.  Don't prepend headers.
11172         * conform/data/aio.h-data: Fixes for POSIX testing.
11173         * conform/data/fcntl.h-data: Likewise.
11174         * conform/data/glob.h-data: Likewise.
11175         * conform/data/grp.h-data: Likewise.
11176         * conform/data/pthread.h-data: Likewise.
11177         * conform/data/pwd.h-data: Likewise.
11178         * conform/data/signal.h-data: Likewise.
11179         * conform/data/spawn.h-data: Likewise.
11180         * conform/data/stdio.h-data: Likewise.
11181         * conform/data/stdlib.h-data: Likewise.
11182         * conform/data/stropts.h-data: Likewise.
11183         * conform/data/sys/mman.h-data: Likewise.
11184         * conform/data/sys/stat.h-data: Likewise.
11185         * conform/data/sys/types.h-data: Likewise.
11186         * conform/data/sys/wait.h-data: Likewise.
11187         * conform/data/time.h-data: Likewise.
11188         * conform/data/unistd.h-data: Likewise.
11189         * conform/data/utime.h-data: Likewise.
11190
11191         * io/sys/stat.h: fchmod was always in POSIX.
11192         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11193         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11194         * rt/aio.h: Define __need_timespec before including <time.h>.
11195         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11196         struct.  Add forward declaration of pthread_attr_t and use it in
11197         sigevent.
11198         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11199         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11200         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11201         always remove CLK_TCK definition.
11202
11203 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11204
11205         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11206
11207 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11208
11209         * conform/run-conformtest.sh: New file.
11210         * conform/Makefile: Run run-conformtest for tests.
11211         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11212         support.
11213
11214         * conform/data/uchar.h-data: New file.
11215         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11216         * conform/data/arpa/inet.h-data: Likewise.
11217         * conform/data/assert.h-data: Likewise.
11218         * conform/data/complex.h-data: Likewise.
11219         * conform/data/cpio.h-data: Likewise.
11220         * conform/data/ctype.h-data: Likewise.
11221         * conform/data/dirent.h-data: Likewise.
11222         * conform/data/dlfcn.h-data: Likewise.
11223         * conform/data/errno.h-data: Likewise.
11224         * conform/data/fcntl.h-data: Likewise.
11225         * conform/data/float.h-data: Likewise.
11226         * conform/data/fmtmsg.h-data: Likewise.
11227         * conform/data/fnmatch.h-data: Likewise.
11228         * conform/data/ftw.h-data: Likewise.
11229         * conform/data/glob.h-data: Likewise.
11230         * conform/data/grp.h-data: Likewise.
11231         * conform/data/iconv.h-data: Likewise.
11232         * conform/data/inttypes.h-data: Likewise.
11233         * conform/data/langinfo.h-data: Likewise.
11234         * conform/data/libgen.h-data: Likewise.
11235         * conform/data/limits.h-data: Likewise.
11236         * conform/data/locale.h-data: Likewise.
11237         * conform/data/math.h-data: Likewise.
11238         * conform/data/monetary.h-data: Likewise.
11239         * conform/data/mqueue.h-data: Likewise.
11240         * conform/data/ndbm.h-data: Likewise.
11241         * conform/data/net/if.h-data: Likewise.
11242         * conform/data/netdb.h-data: Likewise.
11243         * conform/data/netinet/in.h-data: Likewise.
11244         * conform/data/nl_types.h-data: Likewise.
11245         * conform/data/poll.h-data: Likewise.
11246         * conform/data/pthread.h-data: Likewise.
11247         * conform/data/pwd.h-data: Likewise.
11248         * conform/data/regex.h-data: Likewise.
11249         * conform/data/sched.h-data: Likewise.
11250         * conform/data/search.h-data: Likewise.
11251         * conform/data/semaphore.h-data: Likewise.
11252         * conform/data/setjmp.h-data: Likewise.
11253         * conform/data/signal.h-data: Likewise.
11254         * conform/data/spawn.h-data: Likewise.
11255         * conform/data/stdarg.h-data: Likewise.
11256         * conform/data/stdio.h-data: Likewise.
11257         * conform/data/stdlib.h-data: Likewise.
11258         * conform/data/string.h-data: Likewise.
11259         * conform/data/strings.h-data: Likewise.
11260         * conform/data/stropts.h-data: Likewise.
11261         * conform/data/sys/ipc.h-data: Likewise.
11262         * conform/data/sys/mman.h-data: Likewise.
11263         * conform/data/sys/msg.h-data: Likewise.
11264         * conform/data/sys/resource.h-data: Likewise.
11265         * conform/data/sys/select.h-data: Likewise.
11266         * conform/data/sys/sem.h-data: Likewise.
11267         * conform/data/sys/shm.h-data: Likewise.
11268         * conform/data/sys/socket.h-data: Likewise.
11269         * conform/data/sys/stat.h-data: Likewise.
11270         * conform/data/sys/statvfs.h-data: Likewise.
11271         * conform/data/sys/time.h-data: Likewise.
11272         * conform/data/sys/timeb.h-data: Likewise.
11273         * conform/data/sys/times.h-data: Likewise.
11274         * conform/data/sys/types.h-data: Likewise.
11275         * conform/data/sys/uio.h-data: Likewise.
11276         * conform/data/sys/un.h-data: Likewise.
11277         * conform/data/sys/utsname.h-data: Likewise.
11278         * conform/data/sys/wait.h-data: Likewise.
11279         * conform/data/syslog.h-data: Likewise.
11280         * conform/data/tar.h-data: Likewise.
11281         * conform/data/termios.h-data: Likewise.
11282         * conform/data/utime.h-data: Likewise.
11283         * conform/data/utmpx.h-data: Likewise.
11284         * conform/data/varargs.h-data: Likewise.
11285         * conform/data/wchar.h-data: Likewise.
11286         * conform/data/wctype.h-data: Likewise.
11287         * conform/data/wordexp.h-data: Likewise.
11288
11289         * include/stropts.h: New file.
11290         * include/uchar.h: New file.
11291         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11292         * include/assert.h: Likewise.
11293         * include/ctype.h: Likewise.
11294         * include/dirent.h: Likewise.
11295         * include/dlfcn.h: Likewise.
11296         * include/fcntl.h: Likewise.
11297         * include/fnmatch.h: Likewise.
11298         * include/glob.h: Likewise.
11299         * include/grp.h: Likewise.
11300         * include/libio.h: Likewise.
11301         * include/locale.h: Likewise.
11302         * include/math.h: Likewise.
11303         * include/net/if.h: Likewise.
11304         * include/netdb.h: Likewise.
11305         * include/netinet/in.h: Likewise.
11306         * include/pthread.h: Likewise.
11307         * include/pwd.h: Likewise.
11308         * include/regex.h: Likewise.
11309         * include/sched.h: Likewise.
11310         * include/search.h: Likewise.
11311         * include/setjmp.h: Likewise.
11312         * include/signal.h: Likewise.
11313         * include/stdio.h: Likewise.
11314         * include/stdlib.h: Likewise.
11315         * include/string.h: Likewise.
11316         * include/sys/cdefs.h: Likewise.
11317         * include/sys/mman.h: Likewise.
11318         * include/sys/msg.h: Likewise.
11319         * include/sys/resource.h: Likewise.
11320         * include/sys/select.h: Likewise.
11321         * include/sys/socket.h: Likewise.
11322         * include/sys/stat.h: Likewise.
11323         * include/sys/statvfs.h: Likewise.
11324         * include/sys/time.h: Likewise.
11325         * include/sys/times.h: Likewise.
11326         * include/sys/uio.h: Likewise.
11327         * include/sys/utsname.h: Likewise.
11328         * include/sys/wait.h: Likewise.
11329         * include/termios.h: Likewise.
11330         * include/time.h: Likewise.
11331         * include/ulimit.h: Likewise.
11332         * include/unistd.h: Likewise.
11333         * include/utime.h: Likewise.
11334         * include/wchar.h: Likewise.
11335         * include/wctype.h: Likewise.
11336         * include/wordexp.h: Likewise.
11337
11338         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11339
11340         * time/time.h: TIME_UTC must be a macro.
11341         Make timespec_get available for ISO C11 only as well.
11342
11343 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11344
11345         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11346         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11347
11348 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11349
11350         * configure.in: Use -o not -a in test for unsupported multi-arch.
11351
11352 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11353
11354         * manual/texinfo.tex: Update to version 2012-01-19.16.
11355
11356 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11357
11358         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11359
11360 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11361
11362         [BZ #13738]
11363         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11364         * manual/fdl-1.3.texi: New file.
11365         * manual/fdl-1.1.texi: File removed.
11366
11367         [BZ #13738]
11368         * manual/libc.texinfo (FDL_VERSION): New @set.
11369         Use it for mention of FDL in cover text.
11370         (Documentation License): Use it in @include file name.
11371
11372 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11373             Roland McGrath  <roland@hack.frob.com>
11374
11375         [BZ #5461]
11376         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11377         not LONG_LONG_MAX and LONG_LONG_MIN.
11378         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11379         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11380         name.
11381         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11382
11383 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11384
11385         [BZ #2547]
11386         [BZ #11365]
11387         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11388         manipulate bits before adding and subtracting TWO23[sx].
11389         * math/libm-test.inc (nearbyint_test): Add more tests.
11390
11391 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11392
11393         [BZ #2548]
11394         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11395         bits before adding and subtracting TWO23[sx].
11396         * math/libm-test.inc (rint_test): Add more tests.
11397         (rint_test_tonearest): Likewise.
11398         (rint_test_towardzero): Likewise.
11399         (rint_test_downward): Likewise.
11400         (rint_test_upward: Likewise.
11401
11402 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11403
11404         [BZ #10110]
11405         * include/stdc-predef.h: New file.  Extracted from features.h.
11406         * include/features.h: Include stdc-predef.h.
11407         * Makefile (headers): Add stdc-predef.h.
11408         * CONFORMANCE (Compiler limitations): Update.
11409
11410 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11411
11412         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11413
11414 2012-02-21  David S. Miller  <davem@davemloft.net>
11415
11416         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11417         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11418
11419 2012-02-20  David S. Miller  <davem@davemloft.net>
11420
11421         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11422         using a normal save/restore sequence, rather than allocating a
11423         dummy stack frame just to store a frame pointer and restore.
11424         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11425
11426 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11427
11428         * manual/install.texi: Fix stray word in line-wrapped comment.
11429
11430 2012-02-20  David S. Miller  <davem@davemloft.net>
11431
11432         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11433         both binutils and gcc support GOTDATA.
11434
11435         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11436         "rd %pc" in the PIC register setup sequences.
11437
11438         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11439         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11440         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11441         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11442         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11443         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11444         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11445         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11446         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11447         (SYSCALL_ERROR_HANDLER): Likewise.
11448         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11449         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11450         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11451         (SYSCALL_ERROR_HANDLER): Likewise.
11452
11453         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11454         (HAVE_GCC_GOTDATA): New.
11455         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11456         relocation support in both binutils and gcc.
11457         * sysdeps/sparc/elf/configure: Regenerate.
11458
11459         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11460         * sysdeps/sparc/sparc32/elf/configure: Delete.
11461         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11462         * sysdeps/sparc/sparc64/elf/configure: Delete.
11463         * sysdeps/sparc/elf/configure.in: New file.
11464         * sysdeps/sparc/elf/configure: Generate.
11465
11466         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11467         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11468         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11469         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11470         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11471
11472 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11473
11474         * manual/install.texi: Do not mention specific glibc version
11475         numbers.
11476         * manual/libc.texinfo (VERSION, UPDATED): Update.
11477         (@copying): Use @copyright{} and range of years.
11478
11479 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11480
11481         [BZ #13695]
11482         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11483         [crti.S not in sysdirs] (generated): Do not append.
11484         [crti.S not in sysdirs] (omit-deps): Likewise.
11485         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11486         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11487         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11488         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11489         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11490         Likewise.
11491         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11492         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11493         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11494         * csu/defs.awk: Remove file.
11495         * sysdeps/generic/initfini.c: Likewise.
11496         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11497         variable.
11498         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11499         Likewise.
11500
11501 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11502
11503         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11504         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11505         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11506         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11507         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11508         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11509         <bits/epoll.h>.
11510         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11511         (__EPOLL_PACKED): Define to empty if not defined by
11512         <bits/epoll.h>.
11513         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11514         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11515         bits/epoll.h.
11516
11517 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11518
11519         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11520         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11521         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11522         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11523         <bits/timerfd.h>.
11524         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11525         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11526         bits/timerfd.h.
11527
11528 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11529
11530         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11531         in C locale.
11532         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11533         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11534         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11535         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11536
11537 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11538
11539         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11540         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11541
11542 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11543
11544         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11545         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11546         defined.
11547         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11548         Likewise.
11549         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11550         entry for 2.16.
11551
11552 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11553
11554         * math/w_acos.c: Use non-signaling floating-point comparisons.
11555         * math/w_acosf.c: Likewise.
11556         * math/w_acosh.c: Likewise.
11557         * math/w_acoshf.c: Likewise.
11558         * math/w_acoshl.c: Likewise.
11559         * math/w_acosl.c: Likewise.
11560         * math/w_asin.c: Likewise.
11561         * math/w_asinf.c: Likewise.
11562         * math/w_asinl.c: Likewise.
11563         * math/w_atanh.c: Likewise.
11564         * math/w_atanhf.c: Likewise.
11565         * math/w_atanhl.c: Likewise.
11566         * math/w_exp2.c: Likewise.
11567         * math/w_exp2f.c: Likewise.
11568         * math/w_exp2l.c: Likewise.
11569         * math/w_j0.c: Likewise.
11570         * math/w_j0f.c: Likewise.
11571         * math/w_j0l.c: Likewise.
11572         * math/w_j1.c: Likewise.
11573         * math/w_j1f.c: Likewise.
11574         * math/w_j1l.c: Likewise.
11575         * math/w_jn.c: Likewise.
11576         * math/w_jnf.c: Likewise.
11577         * math/w_log.c: Likewise.
11578         * math/w_log10.c: Likewise.
11579         * math/w_log10f.c: Likewise.
11580         * math/w_log10l.c: Likewise.
11581         * math/w_log2.c: Likewise.
11582         * math/w_log2f.c: Likewise.
11583         * math/w_log2l.c: Likewise.
11584         * math/w_logf.c: Likewise.
11585         * math/w_logl.c: Likewise.
11586         * math/w_sqrt.c: Likewise.
11587         * math/w_sqrtf.c: Likewise.
11588         * math/w_sqrtl.c: Likewise.
11589         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11590         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11591         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11592         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11593         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11594
11595 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11596
11597         [BZ #9739]
11598         * manual/string.texi (strnlen): Use correct parameter name in
11599         equivalent expression.
11600
11601 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11602
11603         [BZ #11174]
11604         * manual/users.texi (seteuid): Consistently use neweuid for
11605         argument name.
11606
11607 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11608
11609         [BZ #13704]
11610         * manual/nss.texi (Services in the NSS configuration): Correct
11611         list of services in example configuration file.
11612
11613 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11614
11615         [BZ #11322]
11616         * manual/arith.texi: Remove statements about negative zero
11617         behaving identically to zero.
11618
11619 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11620
11621         [BZ #5993]
11622         * manual/install.texi: Do not document upgrading from libc5.
11623
11624 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11625
11626         [BZ #4596]
11627         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11628
11629 2012-02-18  David S. Miller  <davem@davemloft.net>
11630
11631         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11632         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11633         %o7 across the call.
11634         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11635         instead.
11636         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11637         SETUP_PIC_REG_LEAF.
11638         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11639         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11640         * sysdeps/sparc/crtn.S: Likewise.
11641
11642 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11643
11644         * aout/Makefile: Remove.
11645
11646 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11647
11648         [BZ #13058]
11649         * manual/examples/argp-ex1.c (main): Format definition in GNU
11650         style.
11651         * manual/examples/argp-ex2.c (main): Likewise.
11652         * manual/examples/argp-ex3.c (main): Likewise.
11653         * manual/examples/argp-ex4.c (main): Likewise.
11654         * manual/examples/longopt.c (main): Use new-style prototype
11655         definition.
11656         * manual/examples/strncat.c (main): Specify return type and use
11657         (void) for arguments.
11658         * manual/examples/subopt.c (main): Use char **argv argument.
11659
11660 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11661
11662         [BZ #5077]
11663         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11664         rounding modes.
11665
11666 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11667
11668         [BZ #6907]
11669         * manual/string.texi (strchr): Change when strchrnul is
11670         recommended.
11671
11672 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11673
11674         [BZ #174]
11675         * manual/locale.texi (setlocale): Document LOCPATH.
11676
11677 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11678
11679         [BZ #10210]
11680         * manual/process.texi (execle): Move @dots{} before last argument.
11681
11682 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11683
11684         [BZ #12047]
11685         * manual/charset.texi (Generic Charset Conversion): Fix typo
11686         (LC_TYPE -> LC_CTYPE).
11687
11688 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11689
11690         [BZ #5805]
11691         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11692         (scalbnf): Likewise.
11693         (scalbnl): Likewise.
11694         (scalbln): Likewise.
11695         (scalblnf): Likewise.
11696         (scalblnl): Likewise.
11697         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11698         (vwarnx): Likewise.
11699         (verr): Likewise.
11700         (verrx): Likewise.
11701         * manual/filesys.texi (telldir): Use braces around return type.
11702         * manual/llio.texi (mmap): Add space after comma.
11703         (mmap64): Likewise.
11704         * manual/math.texi (jn): Use @var{} on parameter names.
11705         (jnf): Likewise.
11706         (jnl): Likewise.
11707         (yn): Likewise.
11708         (ynf): Likewise.
11709         (ynl): Likewise.
11710         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11711         line.
11712         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11713         "...".
11714         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11715         (sched_get_priority_max): Likewise.
11716         * manual/signal.texi (sigvec): Add space after comma.
11717         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11718         names.
11719         (if_indextoname): Likewise.
11720         (if_freenameindex): Likewise.
11721         (sendto): Use ',' instead of '.' in prototype.
11722         * manual/startup.texi (syscall): Use @dots{} instead of literal
11723         "...".
11724         * manual/stdio.texi (__fpending): Separate initial words of
11725         paragraph from @deftypefun line.
11726         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11727         "...".
11728         (vsyslog): Use @var{} on parameter names.
11729         * manual/terminal.texi (stty): Use @var{} on parameter names.
11730         * manual/users.texi (getutmp): Use @var{} on parameter names.
11731         (getutmpx): Likewise.
11732
11733 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11734
11735         [BZ #6884]
11736         * manual/stdio.texi (fopen): Fix typos in description of
11737         ",ccs=STRING".
11738
11739 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11740
11741         [BZ #4026]
11742         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11743         get clock_id definition.
11744
11745 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11746
11747         [BZ #4822]
11748         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11749         (madvise): Cast every argument to void on its own.
11750
11751 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11752
11753         [BZ #9902]
11754         * manual/startup.texi (Exit Status): Fix typo.
11755
11756 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11757
11758         [BZ #10140]
11759         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11760         * manual/examples/argp-ex2.c: Likewise.
11761         * manual/examples/argp-ex3.c: Likewise.
11762
11763 2012-02-16  Richard Henderson  <rth@redhat.com>
11764
11765         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11766         * sysdeps/s390/s390-32/initfini.c: Remove.
11767         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11768         * sysdeps/s390/s390-64/initfini.c: Remove.
11769
11770 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11771
11772         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11773         compiler output for sysdeps/generic/initfini.c.
11774         * sysdeps/sh/elf/initfini.c: Remove file.
11775
11776 2012-02-16  David S. Miller  <davem@davemloft.net>
11777
11778         [BZ #11494]
11779         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11780
11781         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11782         * sysdeps/sparc/crti.S: New file.
11783         * sysdeps/sparc/crtn.S: New file.
11784         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11785         * sysdeps/sparc/sparc64/Makefile: Likewise.
11786
11787 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11788
11789         [BZ #3335]
11790         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11791
11792 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11793
11794         [BZ #4822]
11795         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11796
11797         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11798         (write, read, close): Likewise.
11799         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11800
11801 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11802
11803         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11804         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11805         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11806         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11807         <bits/signalfd.h>.
11808         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11809         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11810         bits/signalfd.h.
11811
11812 2012-02-14  Marek Polacek  <polacek@redhat.com>
11813
11814         * sysdeps/x86_64/crti.S: New file.
11815         * sysdeps/x86_64/crtn.S: New file.
11816         * sysdeps/x86_64/elf/initfini.c: Remove file.
11817
11818 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11819
11820         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11821         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11822         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11823         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11824         <bits/inotify.h>.
11825         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11826         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11827         bits/inotify.h.
11828
11829 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11830
11831         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11832         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11833         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11834         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11835         <bits/eventfd.h>.
11836         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11837         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11838         bits/eventfd.h.
11839
11840 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11841
11842         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11843         __feraiseexcept instead of feraiseexcept.
11844
11845         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11846         nanosleep invocations.
11847         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11848         strings, and add error checking for a nanosleep invocations.
11849
11850 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11851
11852         Replace FSF snail mail address with URLs, as per GNU coding standards.
11853         Most of the snail mail addresses were wrong anyway, and omitting
11854         them makes the source code easier to maintain.  Almost all of the
11855         changes are to license notices and to locale LC_IDENTIFICATION
11856         addresses, except for this one:
11857         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11858         not its snail mail address.
11859
11860 2012-02-09  Richard Henderson  <rth@twiddle.net>
11861
11862         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11863         of kernel-features.h.
11864
11865         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11866
11867 2012-02-08  Marek Polacek  <polacek@redhat.com>
11868
11869         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11870         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11871         * sysdeps/gnu/_G_config.h: Likewise.
11872         * sysdeps/generic/_G_config.h: Likewise.
11873
11874 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11875
11876         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11877         tests.
11878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11879
11880         * sysdeps/powerpc/powerpc32/crti.S: New file.
11881         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11882         * sysdeps/powerpc/powerpc64/crti.S: New file.
11883         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11884
11885         * Makeconfig (have-initfini): Don't set.
11886         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11887         * configure.in (nopic_initfini): Don't substitute.
11888         * config.h.in (HAVE_INITFINI): Don't #undef.
11889         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11890         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11891
11892 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11893
11894         Support crti.S and crtn.S provided directly by architectures.
11895         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11896         [crti.S in sysdirs] (omit-deps): Likewise.
11897         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11898         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11899         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11900         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11901         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11902         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11903         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11904         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11905         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11906         compiler output for sysdeps/generic/initfini.c.
11907         * sysdeps/i386/elf/Makefile: Remove file.
11908         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11909
11910 2012-02-07  Marek Polacek  <polacek@redhat.com>
11911
11912         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11913         * sysdeps/gnu/_G_config.h: Likewise.
11914         * sysdeps/mach/hurd/_G_config.h: Likewise.
11915
11916 2012-02-07  Marek Polacek  <polacek@redhat.com>
11917
11918         * math/Makefile (tests): Add tst-CMPLX2.
11919         * math/tst-CMPLX2.c: New file.
11920
11921 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11922
11923         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11924
11925         * math/libm-test.inc (jn_test): Add missing L suffix.
11926
11927 2012-02-06  Marek Polacek  <polacek@redhat.com>
11928
11929         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11930         * sysdeps/i386/fpu/e_powf.S: Likewise.
11931         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11932         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11933         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11934         * sysdeps/i386/fpu/e_pow.S: Likewise.
11935         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11936         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11937         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11938         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11939         * sysdeps/i386/fpu/e_log2.S: Likewise.
11940         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11941         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11942         * sysdeps/i386/fpu/e_powl.S: Likewise.
11943         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11944         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11945         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11946         * sysdeps/i386/fpu/e_logl.S: Likewise.
11947         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11948         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11949         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11950         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11951         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11952         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11953         * sysdeps/i386/fpu/e_log.S: Likewise.
11954         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11955         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11956         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11957         * sysdeps/i386/fpu/e_logf.S: Likewise.
11958         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11959         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11960         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11961         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11962         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11963         * sysdeps/i386/fpu/e_log10.S: Likewise.
11964         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11965         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11966         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11967         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11968         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11969         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11970         * sysdeps/i386/asm-syntax.h: Likewise.
11971         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11972         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11973         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11974         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11975         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11976         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11977         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11978         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11979         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11980         * sysdeps/powerpc/sysdep.h: Likewise.
11981         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11982         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11983
11984 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11985
11986         [BZ #411]
11987         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11988
11989 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11990
11991         * sysdeps/i386/sysdep.h: Include <features.h>.
11992         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11993         version.
11994
11995 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11996
11997         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11998         Define.
11999         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12000         LOAD_PIC_REG_STR.
12001
12002 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12003
12004         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12005         (SETUP_PIC_REG): Use GET_PC_THUNK.
12006         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12007         macro.
12008
12009 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12010
12011         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12012         for non-PIC compilation.
12013         (SETUP_PIC_REG): Add .p2align directive.
12014         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12015         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12016         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12017         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12018         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12019         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12020         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12021         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12022         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12023         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12024         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12025         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12026         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12027         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12028         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12029         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12030         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12031         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12032         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12033         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12034         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12035         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12036         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12037         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12038         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12039         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12040         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12041         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12042         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12043         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12044         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12045         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12046         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12047         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12048         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12049         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12050         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12051         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12052         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12053         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12054         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12055
12056 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12057
12058         * math/tst-CMPLX.c: Include <stdio.h>.
12059
12060 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12061
12062         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12063         float.
12064         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12065         * sysdeps/sparc/bits/mathdef.h: Likewise.
12066
12067 2012-01-31  Marek Polacek  <polacek@redhat.com>
12068
12069         * libio/libio.h: Don't define _PARAMS.
12070         * locale/programs/config.h: Don't define PARAMS.
12071         * stdlib/strtol_l.c: Likewise.
12072         (__strtol_l): Remove PARAMS from the prototype.
12073
12074 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12075
12076         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12077         names.  Just use the correct names.  Remove unnecessary wrapper
12078         functions.
12079         * malloc/arena.c: Likewise.
12080         * malloc/hooks.c: Likewise.
12081
12082         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12083         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12084         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12085
12086 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12087
12088         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12089         into tail calls.
12090         (update_get_addr): New function.
12091         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12092         GET_ADDR_MODULE parameter.
12093
12094 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12095
12096         * crypt/cert.c: Remove __STDC__ conditionals.
12097         * crypt/crypt-entry.c: Likewise.
12098         * crypt/crypt_util.c: Likewise.
12099         * libio/filedoalloc.c: Likewise.
12100         * libio/fileops.c: Likewise.
12101         * libio/genops.c: Likewise.
12102         * libio/iofclose.c: Likewise.
12103         * libio/iofdopen.c: Likewise.
12104         * libio/iofopen.c: Likewise.
12105         * libio/iofopen64.c: Likewise.
12106         * libio/iogetdelim.c: Likewise.
12107         * libio/iopopen.c: Likewise.
12108         * libio/obprintf.c: Likewise.
12109         * libio/oldfileops.c: Likewise.
12110         * libio/oldiofclose.c: Likewise.
12111         * libio/oldiofdopen.c: Likewise.
12112         * libio/oldiofopen.c: Likewise.
12113         * libio/oldiopopen.c: Likewise.
12114         * libio/wfiledoalloc.c: Likewise.
12115         * libio/wgenops.c: Likewise.
12116         * locale/programs/xmalloc.c: Likewise.
12117         * misc/syslog.c: Likewise.
12118         * stdio-common/xbug.c: Likewise.
12119         * string/memchr.c: Likewise.
12120         * string/memcmp.c: Likewise.
12121         * string/memrchr.c: Likewise.
12122         * string/rawmemchr.c: Likewise.
12123         * sysdeps/posix/getcwd.c: Likewise.
12124         * time/strftime_l.c: Likewise.
12125
12126 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12127
12128         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12129         * config.make.in (config-cflags-sse2avx): Define.
12130         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12131         Fix typo.
12132
12133 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12134
12135         * scripts/config.guess: Update from upstream config git repository.
12136         * scripts/config.sub: Likewise.
12137
12138 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12139
12140         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12141         (EM_NUM): Update.
12142         (R_TILEPRO_*, R_TILEGX_*): New macros.
12143
12144         * scripts/firstversions.awk: Fix bug in version range handling.
12145
12146         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12147
12148         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12149
12150         * include/sys/epoll.h: New file.
12151         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12152         libc_hidden_def.
12153
12154 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12155
12156         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12157         Avoid unnecessary __WORDSIZE == 64 test.
12158         (fmaxf): Use VEX format if possible.
12159         (fmax): Likewise.
12160         (fminf): Likewise.
12161         (fmin): Likewise.
12162
12163         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12164         * math/math_private.h: Remove libc_fegetround* and
12165         libc_fesetround*.
12166         * sysdeps/i386/configure.in: Check for -msse2avx.
12167         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12168         also if SSE2AVX is defined.
12169         Remove libc_fegetround* and libc_fesetround*.
12170         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12171         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12172         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12173         of HAS_YMM_USABLE.
12174         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12175         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12176         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12177         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12178         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12179
12180         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12181
12182 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12183
12184         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12185         size is not set.
12186         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12187
12188 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12189
12190         [BZ #13618]
12191         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12192         relocation.
12193         * Makeconfig (libm): Define.
12194         * elf/Makefile: Add rules to build and run tst-relsort1.
12195         * elf/tst-relsort1.c: New file.
12196         * elf/tst-relsort1mod1.c: New file.
12197         * elf/tst-relsort1mod2.c: New file.
12198
12199 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12200
12201         * math/s_ldexp.c: Remove __STDC__ conditionals.
12202         * math/s_ldexpf.c: Likewise.
12203         * math/s_ldexpl.c: Likewise.
12204         * math/s_nextafter.c: Likewise.
12205         * math/s_nexttowardf.c: Likewise.
12206         * math/s_significand.c: Likewise.
12207         * math/s_significandf.c: Likewise.
12208         * math/s_significandl.c: Likewise.
12209         * math/w_jnl.c: Likewise.
12210         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12211         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12212         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12213         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12214         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12215         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12216         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12217         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12218         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12219         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12220         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12221         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12222         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12223         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12224         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12225         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12226         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12227         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12228         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12229         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12230         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12231         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12232         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12233         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12234         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12235         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12236         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12237         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12238         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12239         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12240         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12241         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12242         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12243         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12244         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12245         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12246         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12247         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12248         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12249         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12250         * sysdeps/ieee754/k_standard.c: Likewise.
12251         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12252         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12253         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12255         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12256         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12257         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12258         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12259         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12260         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12261         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12262         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12263         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12265         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12266         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12269         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12270         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12271         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12272         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12273         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12274         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12275         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12276         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12277         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12278         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12281         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12282         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12283         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12284         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12285         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12286         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12287         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12288         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12289         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12290         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12291         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12292         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12293         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12294         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12295         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12296         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12297         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12298         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12299         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12300         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12301         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12302         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12303         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12304         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12305         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12306         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12307         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12308         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12309         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12310         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12311         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12312         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12313         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12314         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12315         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12316         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12317         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12318         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12319         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12320         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12321         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12322         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12323         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12324         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12325         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12326         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12327         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12328         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12329         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12330         * sysdeps/ieee754/s_matherr.c: Likewise.
12331         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12332         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12333         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12334         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12335
12336 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12337
12338         * crypt/md5.h: Remove __STDC__ conditionals.
12339         * libio/libioP.h: Likewise.
12340         * locale/programs/config.h: Likewise.
12341         * sysdeps/generic/sysdep.h: Likewise.
12342         * sysdeps/i386/asm-syntax.h: Likewise.
12343         * sysdeps/s390/asm-syntax.h: Likewise.
12344         * sysdeps/unix/sysdep.h: Likewise.
12345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12347
12348 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12349
12350         * libio/libio.h: Remove __STDC__ conditionals.
12351         * malloc/obstack.h: Likewise.
12352         * math/complex.h: Likewise.
12353         * math/math.h: Likewise.
12354         * sysdeps/generic/_G_config.h: Likewise.
12355         * sysdeps/gnu/_G_config.h: Likewise.
12356         * sysdeps/mach/hurd/_G_config.h: Likewise.
12357         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12358         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12359         * sysdeps/sparc/bits/mathdef.h: Likewise.
12360
12361 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12362
12363         [BZ #13583]
12364         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12365         Clean up HAS_* macros.
12366         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12367         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12368         possible.
12369         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12370         HAS_AVX.
12371         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12372         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12373         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12374         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12375         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12376
12377 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12378
12379         * elf/tst-unique3.cc (gets): Remove declaration.
12380         * elf/tst-unique3lib.cc (gets): Likewise.
12381         * elf/tst-unique3lib2.cc (gets): Likewise.
12382         * elf/tst-unique4.cc (gets): Likewise.
12383
12384 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12385
12386         * include/stdio.h: Add C++ protection.  Add gets declarations and
12387         definitions.
12388         * debug/tst-chk1.c: Don't declare gets here.
12389         * stdio-common/tst-gets.c: Likewise.
12390
12391 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12392
12393         * posix/glob: Remove directory.
12394
12395 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12396
12397         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12398
12399 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12400
12401         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12402         of the non-standard EPFNOSUPPORT.
12403
12404 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12405
12406         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12407         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12408         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12409
12410 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12411
12412         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12413
12414 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12415
12416         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12417         transient errors.
12418         * nscd/grpcache.c (cache_addgr): Likewise.
12419         * nscd/hstcache.c (cache_addhst): Likewise.
12420         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12421         * nscd/pwdcache.c (cache_addpw): Likewise.
12422         * nscd/servicescache.c (cache_addserv): Likewise.
12423
12424 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12425
12426         * malloc/malloc.c: Various cleanups.
12427         * malloc/hooks.c: Likewise.
12428
12429         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12430         * stdlib/bug-fmtmsg1.c: New file.
12431
12432         * stdlib/fmtmsg.c (init): Add missing unlock.
12433         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12434
12435 2012-01-12  Marek Polacek  <polacek@redhat.com>
12436
12437         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12438         and _GNU_SOURCE.
12439
12440 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12441
12442         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12443         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12444         macro to ensure uniqueness of label name.
12445         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12446         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12447
12448 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12449
12450         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12451
12452         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12453         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12454         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12455         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12456
12457 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12458
12459         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12460
12461         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12462         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12463         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12464
12465         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12466
12467         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12468         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12469         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12470         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12471
12472         * math/bits/math-finite.h: Add ldexp support.
12473
12474 2012-01-10  Marek Polacek  <polacek@redhat.com>
12475
12476         * locale/programs/localedef.h (show_archive_content): Add noreturn
12477         attribute.
12478
12479 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12480
12481         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12482
12483 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12484
12485         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12486
12487         * io/Makefile (headers): Add bits/poll2.h.
12488
12489 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12490
12491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12492         typo #include statement.
12493
12494 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12495
12496         * include/sys/cdefs.h: Define __attribute_alloc_size.
12497         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12498         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12499         * elf/pldd.c: Likewise.
12500         * iconv/iconv_charmap.c: Likewise.
12501         * iconv/iconvconfig.c: Likewise.
12502         * iconv/strtab.c: Likewise.
12503         * locale/programs/locale.c: Likewise.
12504         * locale/programs/localedef.h: Likewise.
12505         * locale/programs/simple-hash.c: Likewise.
12506         * nscd/nscd.h: Likewise.
12507         * nss/makedb.c: Likewise.
12508         * sysdeps/generic/ldconfig.h: Likewise.
12509         * locale/programs/localedef.c: Remove xmalloc prototype.
12510         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12511
12512 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12513
12514         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12515         appropriate.
12516
12517 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12518
12519         * math/Makefile (tests): Add tst-CMPLX.
12520         * math/tst-CMPLX.c: New file.
12521
12522         * math/complex.h (CMPLXL): Fix typo.
12523
12524         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12525         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12526         GLIBC_2.16.
12527         * debug/tst-chk1.c: Add poll and ppoll tests.
12528         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12529         * include/sys/poll.h: Add hidden proto for ppoll.
12530         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12531         * sysdeps/mach/hurd/ppoll.c: Likewise.
12532         * io/ppoll.c: Likewise.
12533         * debug/poll_chk.c: New file.
12534         * debug/ppoll_chk.c: New file.
12535         * include/bits/poll2.h: New file.
12536         * io/bits/poll2.h: New file.
12537
12538         [BZ #1350]
12539         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12540
12541         * configure.in: static is always set to yes.  Remove.
12542         * config.make.in: Don't set build-static.
12543         * Makeconfig: Remove use of build-static.
12544         * dlfcn/Makefile: Likewise.
12545         * elf/Makefile: Likewise.
12546         * math/Makefile: Likewise.
12547         * misc/Makefile: Likewise.
12548         * nptl/Makefile: Likewise.
12549         * sysdeps/mach/hurd/Makefile: Likewise.
12550
12551         * configure.in: PWD_P is not used anymore.
12552         * config.make.in: Remove PWD_P entry.
12553
12554         * configure.in: Remove last remnants of RANLIB.
12555         No need to check for signed size_t anymore.
12556         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12557         and IA-64.
12558         Remove __builtin_expect test because we require at least gcc 3.4.
12559         * aclocal.m4: Likewise.
12560
12561         * wcsmbs/mbrtoc16.c: Implement using towc function.
12562         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12563         * wcsmbs/wcsmbsload.c: Likewise.
12564         * iconv/gconv_simple.c: Likewise.
12565         * iconv/gconv_int.h: Likewise.
12566         * iconv/gconv_builtin.h: Likewise.
12567         * iconv/iconv_prog.c: Remove CHAR16 handling.
12568
12569         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12570
12571         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12572
12573         * configure.in: Remove --with-elf and --enable-bounded options.
12574         Dont set base_machine for ia64.  More non-ELF conditions removed.
12575         Remove testing and setting of leading underscore information.
12576         * config.make.in (build-bounded): Set to no.
12577         * config.h.in: Remove NO_UNDERSCORES entry.
12578         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12579         them.
12580         * csu/start.c: Remove !NO_UNDERSCORE code.
12581         * locale/localeinfo.h: Likewise.
12582         * sysdeps/generic/machine-gmon.h: Likewise.
12583         * sysdeps/generic/sysdep.h: Likewise.
12584         * sysdeps/i386/sysdep.h: Likewise.
12585         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12586         * sysdeps/mach/sysdep.h: Likewise.
12587         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12588         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12589         * sysdeps/sh/sysdep.h: Likewise.
12590         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12591         * sysdeps/unix/i386/sysdep.S: Likewise.
12592         * sysdeps/unix/sparc/start.c: Likewise.
12593         * sysdeps/unix/sparc/sysdep.S: Likewise.
12594         * sysdeps/unix/sparc/sysdep.h: Likewise.
12595         * sysdeps/unix/start.c: Likewise.
12596         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12597         * sysdeps/x86_64/sysdep.h: Likewise.
12598
12599 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12600
12601         [BZ #13553]
12602         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12603         for non-gcc.
12604         * argp/argp-fmtstream.h: Use const instead __const.
12605         * argp/argp.h: Likewise.
12606         * assert/assert.h: Likewise.
12607         * bits/fenv.h: Likewise.
12608         * bits/sched.h: Likewise.
12609         * bits/sigset.h: Likewise.
12610         * bits/sigthread.h: Likewise.
12611         * catgets/nl_types.h: Likewise.
12612         * conform/data/pthread.h-data: Likewise.
12613         * crypt/crypt-private.h: Likewise.
12614         * crypt/crypt.h: Likewise.
12615         * crypt/crypt_util.c: Likewise.
12616         * ctype/ctype.h: Likewise.
12617         * debug/execinfo.h: Likewise.
12618         * debug/mbsnrtowcs_chk.c: Likewise.
12619         * debug/mbsrtowcs_chk.c: Likewise.
12620         * debug/wcsnrtombs_chk.c: Likewise.
12621         * debug/wcsrtombs_chk.c: Likewise.
12622         * debug/wcstombs_chk.c: Likewise.
12623         * dirent/dirent.h: Likewise.
12624         * dlfcn/dlfcn.h: Likewise.
12625         * elf/neededtest4.c: Likewise.
12626         * grp/grp.h: Likewise.
12627         * gshadow/gshadow.h: Likewise.
12628         * iconv/gconv.h: Likewise.
12629         * iconv/gconv_int.h: Likewise.
12630         * iconv/gconv_simple.c: Likewise.
12631         * iconv/iconv.h: Likewise.
12632         * iconv/loop.c: Likewise.
12633         * iconv/skeleton.c: Likewise.
12634         * include/aio.h: Likewise.
12635         * include/aliases.h: Likewise.
12636         * include/argz.h: Likewise.
12637         * include/arpa/inet.h: Likewise.
12638         * include/assert.h: Likewise.
12639         * include/dirent.h: Likewise.
12640         * include/dlfcn.h: Likewise.
12641         * include/execinfo.h: Likewise.
12642         * include/fcntl.h: Likewise.
12643         * include/fenv.h: Likewise.
12644         * include/glob.h: Likewise.
12645         * include/grp.h: Likewise.
12646         * include/libintl.h: Likewise.
12647         * include/mntent.h: Likewise.
12648         * include/netdb.h: Likewise.
12649         * include/pwd.h: Likewise.
12650         * include/rpc/netdb.h: Likewise.
12651         * include/sched.h: Likewise.
12652         * include/search.h: Likewise.
12653         * include/shadow.h: Likewise.
12654         * include/signal.h: Likewise.
12655         * include/stdio.h: Likewise.
12656         * include/stdlib.h: Likewise.
12657         * include/string.h: Likewise.
12658         * include/sys/socket.h: Likewise.
12659         * include/sys/stat.h: Likewise.
12660         * include/sys/statfs.h: Likewise.
12661         * include/sys/statvfs.h: Likewise.
12662         * include/sys/syslog.h: Likewise.
12663         * include/sys/time.h: Likewise.
12664         * include/sys/uio.h: Likewise.
12665         * include/time.h: Likewise.
12666         * include/unistd.h: Likewise.
12667         * include/utmp.h: Likewise.
12668         * include/wchar.h: Likewise.
12669         * include/wctype.h: Likewise.
12670         * inet/aliases.h: Likewise.
12671         * inet/arpa/inet.h: Likewise.
12672         * inet/netinet/ether.h: Likewise.
12673         * inet/netinet/in.h: Likewise.
12674         * intl/libintl.h: Likewise.
12675         * io/bits/fcntl2.h: Likewise.
12676         * io/fcntl.h: Likewise.
12677         * io/ftw.h: Likewise.
12678         * io/sys/poll.h: Likewise.
12679         * io/sys/stat.h: Likewise.
12680         * io/sys/statfs.h: Likewise.
12681         * io/sys/statvfs.h: Likewise.
12682         * io/utime.h: Likewise.
12683         * libio/bits/stdio.h: Likewise.
12684         * libio/bits/stdio2.h: Likewise.
12685         * libio/libio.h: Likewise.
12686         * libio/libioP.h: Likewise.
12687         * libio/stdio.h: Likewise.
12688         * locale/lc-ctype.c: Likewise.
12689         * locale/locale.h: Likewise.
12690         * login/utmp.h: Likewise.
12691         * malloc/arena.c: Likewise.
12692         * malloc/malloc.c: Likewise.
12693         * malloc/malloc.h: Likewise.
12694         * malloc/mcheck.c: Likewise.
12695         * malloc/mtrace.c: Likewise.
12696         * math/bits/mathcalls.h: Likewise.
12697         * math/fenv.h: Likewise.
12698         * math/math_private.h: Likewise.
12699         * misc/bits/error.h: Likewise.
12700         * misc/bits/syslog.h: Likewise.
12701         * misc/err.h: Likewise.
12702         * misc/error.h: Likewise.
12703         * misc/fstab.h: Likewise.
12704         * misc/mntent.h: Likewise.
12705         * misc/regexp.h: Likewise.
12706         * misc/search.h: Likewise.
12707         * misc/sgtty.h: Likewise.
12708         * misc/sys/mman.h: Likewise.
12709         * misc/sys/syslog.h: Likewise.
12710         * misc/sys/uio.h: Likewise.
12711         * misc/sys/xattr.h: Likewise.
12712         * misc/ttyent.h: Likewise.
12713         * nis/rpcsvc/ypclnt.h: Likewise.
12714         * nss/nss.h: Likewise.
12715         * posix/bits/unistd.h: Likewise.
12716         * posix/fnmatch.h: Likewise.
12717         * posix/glob.h: Likewise.
12718         * posix/sched.h: Likewise.
12719         * posix/spawn.h: Likewise.
12720         * posix/sys/wait.h: Likewise.
12721         * posix/unistd.h: Likewise.
12722         * posix/wordexp.h: Likewise.
12723         * pwd/pwd.h: Likewise.
12724         * resolv/netdb.h: Likewise.
12725         * resource/sys/resource.h: Likewise.
12726         * rt/aio.h: Likewise.
12727         * rt/bits/mqueue2.h: Likewise.
12728         * rt/mqueue.h: Likewise.
12729         * shadow/shadow.h: Likewise.
12730         * signal/signal.h: Likewise.
12731         * socket/send.c: Likewise.
12732         * socket/sendto.c: Likewise.
12733         * socket/sys/socket.h: Likewise.
12734         * stdio-common/printf.h: Likewise.
12735         * stdlib/bits/stdlib.h: Likewise.
12736         * stdlib/fmtmsg.h: Likewise.
12737         * stdlib/monetary.h: Likewise.
12738         * stdlib/stdlib.h: Likewise.
12739         * stdlib/ucontext.h: Likewise.
12740         * streams/stropts.h: Likewise.
12741         * string/argz.h: Likewise.
12742         * string/bits/string2.h: Likewise.
12743         * string/string.h: Likewise.
12744         * string/strings.h: Likewise.
12745         * sunrpc/rpc/auth.h: Likewise.
12746         * sunrpc/rpc/auth_des.h: Likewise.
12747         * sunrpc/rpc/clnt.h: Likewise.
12748         * sunrpc/rpc/netdb.h: Likewise.
12749         * sunrpc/rpc/pmap_clnt.h: Likewise.
12750         * sunrpc/rpc/xdr.h: Likewise.
12751         * sysdeps/generic/inttypes.h: Likewise.
12752         * sysdeps/generic/net/if.h: Likewise.
12753         * sysdeps/generic/sys/swap.h: Likewise.
12754         * sysdeps/gnu/net/if.h: Likewise.
12755         * sysdeps/gnu/utmpx.h: Likewise.
12756         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12757         * sysdeps/i386/i486/bits/string.h: Likewise.
12758         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12759         * sysdeps/s390/bits/string.h: Likewise.
12760         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12761         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12762         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12763         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12764         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12765         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12766         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12767         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12768         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12769         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12770         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12771         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12772         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12773         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12774         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12775         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12776         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12777         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12778         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12779         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12780         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12781         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12782         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12783         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12784         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12785         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12786         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12787         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12788         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12789         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12790         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12791         * sysvipc/sys/ipc.h: Likewise.
12792         * sysvipc/sys/msg.h: Likewise.
12793         * sysvipc/sys/sem.h: Likewise.
12794         * sysvipc/sys/shm.h: Likewise.
12795         * termios/termios.h: Likewise.
12796         * time/sys/time.h: Likewise.
12797         * time/time.h: Likewise.
12798         * wcsmbs/bits/wchar2.h: Likewise.
12799         * wcsmbs/uchar.h: Likewise.
12800         * wcsmbs/wchar.h: Likewise.
12801         * wctype/wctype.h: Likewise.
12802
12803         [BZ #13551]
12804         * Makeconfig: Remove all but ELF support including AIX support.
12805         * Makerules: Likewise.
12806         * config.h.in: Likewise.
12807         * config.make.in: Likewise.
12808         * configure: Likewise.
12809         * configure.in: Likewise.
12810         * csu/Makefile: Likewise.
12811         * csu/version.c: Likewise.
12812         * debug/Makefile: Likewise.
12813         * dlfcn/Makefile: Likewise.
12814         * elf/Makefile: Likewise.
12815         * extra-lib.mk: Likewise.
12816         * iconv/Makefile: Likewise.
12817         * include/libc-symbols.h: Likewise.
12818         * include/shlib-compat.h: Likewise.
12819         * resolv/Makefile: Likewise.
12820         * resolv/res_libc.c: Likewise.
12821         * rt/Makefile: Likewise.
12822         * sysdeps/i386/asm-syntax.h: Likewise.
12823         * sysdeps/i386/sysdep.h: Likewise.
12824         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12825         * sysdeps/mach/sysdep.h: Likewise.
12826         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12827         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12828         * sysdeps/s390/asm-syntax.h: Likewise.
12829         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12830         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12831         * sysdeps/sh/sysdep.h: Likewise.
12832         * sysdeps/unix/sparc/sysdep.h: Likewise.
12833         * sysdeps/wordsize-32/divdi3.c: Likewise.
12834         * sysdeps/x86_64/sysdep.h: Likewise.
12835
12836         * argp/Versions: Remove _argp_unlock_xxx.
12837
12838         [BZ #13559]
12839         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12840         * abilist/libBrokenLocale.abilist: Likewise.
12841         * abilist/libanl.abilist: Likewise.
12842         * abilist/libc.abilist: Likewise.
12843         * abilist/libcrypt.abilist: Likewise.
12844         * abilist/libdl.abilist: Likewise.
12845         * abilist/libm.abilist: Likewise.
12846         * abilist/libnsl.abilist: Likewise.
12847         * abilist/libpthread.abilist: Likewise.
12848         * abilist/libresolv.abilist: Likewise.
12849         * abilist/librt.abilist: Likewise.
12850         * abilist/libthread_db.abilist: Likewise.
12851         * abilist/libutil.abilist: Likewise.
12852         * abilist/libnss_db.abilist: New file.
12853
12854         * scripts/abilist.awk: Add support for indirect functions.
12855
12856         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12857
12858         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12859
12860         * shlib-versions: Remove entries for ports architectures.
12861
12862         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12863         files in ports.
12864         * elf/stackguard-macros.h: Remove support for IA-64.
12865         * elf/tst-auditmod1.c: Likewise.
12866         * sysdeps/generic/ldsodefs.h: Likewise.
12867
12868         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12869         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12870         configure files.
12871
12872         [BZ #13552]
12873         * configure.in: Remove --enable-omitfp support.
12874         * FAQ.in: Adjust.
12875         * config.make.in: Likewise.
12876         * Makeconfig: Likewise.
12877         * manual/install.texi: Likewise.
12878
12879         In case anyone cares, the IA-64 architecture could move to ports.
12880         * sysdeps/ia64/*: Removed.
12881         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12882         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12883
12884         [BZ #13555]
12885         * configure.in: Remove entries for unsupported architectures.
12886
12887         [BZ #13533]
12888         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12889         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12890         routines.
12891         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12892         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12893         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12894         fall back to using wcrtomb.
12895         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12896         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12897         renaming.
12898         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12899         * wcsmbs/tst-c16c32-1.c: New file.
12900
12901         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12902         local variable.
12903
12904         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12905
12906         * elf/tst-unique3.cc: Add explicit declaration of gets.
12907         * elf/tst-unique3lib.cc: Likewise.
12908         * elf/tst-unique3lib2.cc: Likewise.
12909         * elf/tst-unique4.cc: Likewise.
12910
12911         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12912
12913 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12914
12915         [BZ #13566]
12916         * assert/assert.h (static_assert): Don't define for C++.
12917         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12918         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12919
12920 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12921
12922         * iconv/loop.c (single loop): Fix assertion in storing of
12923         remaining bytes.
12924
12925         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12926
12927 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12928
12929         * posix/getconf.c: Update copyright year.
12930         * nss/getent.c: Likewise.
12931         * nss/makedb.c: Likewise.
12932         * iconv/iconvconfig.c: Likewise.
12933         * iconv/iconv_prog.c: Likewise.
12934         * elf/ldconfig.c: Likewise.
12935         * elf/pldd.c: Likewise.
12936         * elf/sotruss.ksh: Likewise.
12937         * catgets/gencat.c: Likewise.
12938         * csu/version.c: Likewise.
12939         * elf/ldd.bash.in: Likewise.
12940         * elf/sprof.c (print_version): Likewise.
12941         * locale/programs/locale.c: Likewise.
12942         * locale/programs/localedef.c: Likewise.
12943         * login/programs/pt_chown.c: Likewise.
12944         * nscd/nscd.c (print_version): Likewise.
12945         * debug/xtrace.sh: Likewise.
12946         * malloc/memusage.sh: Likewise.
12947         * malloc/mtrace.pl: Likewise.
12948         * debug/catchsegv.sh: Likewise.
12949
12950 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12951
12952         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12953         pure attribute.
12954
12955 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12956
12957         [BZ #13533]
12958         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12959         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12960         transformations.
12961         * iconv/gconv_int.h: Likewise.
12962         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12963         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12964         from libc for GLIBC_2.16.
12965         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12966         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12967         * wcsmbs/uchar.h: Really define mbstate_t.
12968         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12969         * wcsmbs/c16rtomb.c: New file.
12970         * wcsmbs/mbrtoc16.c: New file.
12971         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12972         for C/POSIX locale.
12973         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12974         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12975
12976         * wcsmbs/wchar.h: Add missing __restrict.
12977
12978 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12979
12980         [BZ #13532]
12981         * time/Makefile (routines): Add timespec_get.
12982         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12983         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12984         timespec for ISO C11.
12985         * time/timespec_get.c: New file.
12986         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12987         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12988
12989         [BZ #13531]
12990         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12991         * stdlib/stdlib.h: Declare aligned_alloc.
12992         * Versions.def: Add GLIBC_2.16 for libc.
12993         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12994
12995         [BZ 13527]
12996         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12997         ISO C11.
12998
12999         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13000         code.
13001
13002         [BZ #13528]
13003         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13004
13005         [BZ #13529]
13006         * assert/assert.h (static_assert): Define.
13007
13008         * version.h: Update for 2.16 development version.
13009
13010         [BZ #13526]
13011         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13012         _ISOC11_SOURCE.
13013
13014         * version.h (RELEASE): Bump for 2.15 release.
13015         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13016
13017         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13018         Patch by Marek Polacek <mpolacek@redhat.com>.
13019
13020         * bits/byteswap.h: Protect long long constants with __extension__.
13021         * sysdeps/i386/bits/byteswap.h: Likewise.
13022         * sysdeps/ia64/bits/byteswap.h: Likewise.
13023         * sysdeps/s390/bits/byteswap.h: Likewise.
13024         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13025
13026 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13027
13028         [BZ #13540]
13029         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13030         destination buffer.
13031         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13032
13033 2011-12-23  Marek Polacek  <polacek@redhat.com>
13034
13035         * elf/dl-addr.c (determine_info): Add inline keyword.
13036         * elf/tst-auditmod4b.c (check_avx): Likewise.
13037         * elf/tst-auditmod6b.c (check_avx): Likewise.
13038         * elf/tst-auditmod6c.c (check_avx): Likewise.
13039         * elf/tst-auditmod7b.c (check_avx): Likewise.
13040
13041 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13042
13043         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13044         !__SSE_MATH__.
13045
13046 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13047
13048         [BZ #13540]
13049         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13050         processing for last bytes.
13051
13052 2011-08-06  Bruno Haible  <bruno@clisp.org>
13053
13054         [BZ #13061]
13055         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13056         U+0385, not to U+1FEE.
13057
13058         [BZ #13062]
13059         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13060         entry for U+00A5 U+0301.
13061
13062 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13063
13064         [BZ #13166]
13065         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13066         buffer for the output is too small.
13067
13068         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13069         optimization.
13070
13071         [BZ #13185]
13072         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13073         SSE flags if possible.
13074
13075 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13076
13077         [BZ #13540]
13078         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13079         processing for last bytes.
13080
13081 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13082
13083         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13084         (syscall-list-default-options, syscall-list-default-condition)
13085         (syscall-list-includes): Define.
13086         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13087         list of ABIs and options and #if conditions for each ABI.  Do not
13088         handle common syscalls between ABIs specially.
13089         * sysdeps/unix/sysv/linux/powerpc/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/s390/Makefile (64bit-predefine): Remove.
13095         (syscall-list-variants, syscall-list-32bit-options)
13096         (syscall-list-32bit-condition, syscall-list-64bit-options)
13097         (syscall-list-64bit-condition): Define.
13098         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13099         Remove.
13100         (syscall-list-variants, syscall-list-32bit-options)
13101         (syscall-list-32bit-condition, syscall-list-64bit-options)
13102         (syscall-list-64bit-condition): Define.
13103         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13104         Remove.
13105         (syscall-list-variants, syscall-list-32bit-options)
13106         (syscall-list-32bit-condition, syscall-list-64bit-options)
13107         (syscall-list-64bit-condition): Define.
13108
13109 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13110
13111         * locale/iso-639.def: Add brx entry.
13112
13113         [BZ #13328]
13114         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13115         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13116
13117         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13118         __feraiseexcept_renamed.
13119
13120 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13121
13122         [BZ #13538]
13123         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13124         EPOLLET with unsigned values.
13125         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13126         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13127
13128         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13129         to large cancellation.
13130         * math/s_cacoshf.c: Likewise.
13131         * math/s_cacoshl.c: Likewise.
13132
13133 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13134
13135         [BZ #13305]
13136         [BZ #12786]
13137         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13138         * math/s_cacoshf.c: Likewise.
13139         * math/s_cacoshl.c: Likewise.
13140
13141 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13142
13143         [BZ #13439]
13144         * iconv/gconv.h: Define __GCONV_SWAP.
13145         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13146         * iconvdata/utf-16.c: Likewise.
13147         * iconvdata/utf-32.c: Likewise.
13148
13149 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13150
13151         [BZ #13524]
13152         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13153         numerator after shifting it by one limb.
13154
13155 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13156
13157         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13158         under [__USE_EXTERN_INLINES].
13159
13160 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13161
13162         [BZ #13446]
13163         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13164
13165 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13166
13167         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13168         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13169         optimized code.
13170         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13171         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13172         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13173         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13174         for strncasecmp/strncasecmp_l compilation.
13175         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13176         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13177
13178 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13179
13180         [BZ #13484]
13181         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13182         of __asm__.
13183
13184 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13185
13186         [BZ #13506]
13187         * time/tzfile.c (__tzfile_read): Check values from file header.
13188
13189 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13190
13191         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13192         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13193         * powerpc/powerpc32/dl-start.S: Likewise.
13194         * powerpc/powerpc32/elf/start.S: Likewise.
13195         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13196         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13197         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13198         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13199         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13200         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13201         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13202         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13203         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13204         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13205         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13206         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13207         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13208         * powerpc/powerpc32/memset.S: Likewise.
13209         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13210         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13211         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13212         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13213         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13214         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13215         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13216         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13217         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13218         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13219         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13220         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13221         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13222
13223 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13224
13225         * math/libm-test.inc: Added more nearbyint tests.
13226         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13227         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13228         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13229         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13230
13231 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13232
13233         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13234         FD_CLOEXEC.
13235
13236 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13237
13238         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13239         Add wcscpy-ssse3 wcscpy-c.
13240         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13241         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13242         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13243         * sysdeps/x86_64/wcschr.S: New file.
13244         * sysdeps/x86_64/wcsrchr.S: New file.
13245         * string/test-strcmp.c: Remove checking of wcscmp function for
13246         wrong alignments.
13247         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13248         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13249         wcsrchr-sse2 wcsrchr-c.
13250         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13251         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13252         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13253         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13254         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13255         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13256         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13257         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13258         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13259         * wcsmbc/wcschr.c (WCSCHR): New macro.
13260
13261 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13262
13263         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13264         * wcsmbs/test-wcsrchr.c: New file.
13265         * string/test-strrchr.c: Add wcsrchr support.
13266         (WIDE): New macro.
13267         * wcsmbs/test-wcscpy.c: New file.
13268         * string/test-strcpy.c: Add wcscpy support.
13269         (WIDE): New macro.
13270
13271 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13272
13273         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13274         the inner loop.
13275
13276 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13277
13278         [BZ #13472]
13279         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13280
13281 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13282
13283         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13284         Minor optimizations.
13285
13286         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13287         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13288         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13289
13290 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13291
13292         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13293         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13294         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13295         for gcc to avoid warnings.
13296         * inet/Makefile (tests): Add tst-checks.
13297         * inet/tst-checks.c: New file.
13298
13299         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13300         warning.
13301
13302         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13303         __wmemcmp_sse2.
13304
13305         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13306         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13307
13308         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13309
13310 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13311
13312         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13313         problem.
13314
13315         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13316
13317 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13318
13319         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13320         conditional on GCC version.
13321         (__arch_compare_and_exchange_val_8_acq)
13322         (__arch_compare_and_exchange_val_16_acq)
13323         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13324         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13325         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13326
13327 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13328
13329         * sysdeps/sh/backtrace.c: New file.
13330
13331 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13332
13333         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13334         parenthesis.
13335
13336 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13337
13338         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13339         falling back to utime.
13340
13341 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13342
13343         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13344         expectations for float.
13345
13346 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13347
13348         * locale/weight.h (findidx): Add parameter len.
13349         * locale/weightwc.h (findidx): Likewise.
13350         * posix/fnmatch_loop.c (FCT): Adjust caller.
13351         * posix/regcomp.c (build_equiv_class): Likewise.
13352         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13353         * posix/regexec.c (check_node_accept_bytes): Likewise.
13354         * string/strcoll_l.c (STRCOLL): Likewise.
13355         * string/strxfrm_l.c (STRXFRM): Likewise.
13356
13357 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13358
13359         * Makefile.in: Remove CVSOPT handling.
13360         * configure.in: Remove use of AC_REVISION.
13361         * iconvdata/Makefile (distribute): No need to filter out CVS.
13362         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13363         handling.
13364
13365 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13366
13367         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13368         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13369         [USE_AS_STRNCASECMP_L]: Likewise.
13370         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13371         NO_TLS_DIRECT_SEG_REFS.
13372         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13373         Fix argument offsets for non-PIC.
13374         [USE_AS_STRNCASECMP_L]: Likewise.
13375         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13376         NO_TLS_DIRECT_SEG_REFS.
13377
13378 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13379
13380         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13381         O_CLOEXEC.
13382         * locale/loadlocale.c (_nl_load_locale): Likewise.
13383
13384 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13385
13386         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13387         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13388         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13389         (SYSCALL_GETTIME): Set errno on error.
13390
13391         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13392         count references to noai6ai_cached.
13393
13394 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13395
13396         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13397
13398         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13399         FD_CLOEXEC for /proc/self/maps.
13400
13401         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13402         FD_CLOEXEC for /proc/meminfo.
13403
13404         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13405         gai.conf.
13406
13407         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13408         FD_CLOEXEC for given file.
13409
13410         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13411
13412         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13413         FD_CLOEXEC for /etc/hosts.
13414         (_gethtent): Likewise.
13415
13416         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13417
13418         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13419         cancellation and set FD_CLOEXEC for /etc/netgroup.
13420
13421         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13422         reading /etc/publickey.
13423
13424         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13425         allow cancellation when reading /etc/group.
13426
13427         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13428         cancellation.
13429         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13430
13431         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13432         when using data file.
13433
13434         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13435
13436         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13437         (write_nis_obj): Use "c" and "e" in fopen.
13438
13439         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13440
13441         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13442
13443         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13444
13445         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13446
13447         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13448         locale.alias.
13449
13450         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13451
13452         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13453
13454         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13455
13456         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13457         file parsing and set FD_CLOEXEC.
13458
13459 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13460
13461         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13462
13463 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13464
13465         * malloc/arena.c (arena_get2): Don't call reused_arena when
13466         _int_new_arena failed.
13467
13468 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13469
13470         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13471         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13472         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13473         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13474         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13475         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13476         to compile strcasecmp and strncasecmp.
13477         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13478         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13479
13480         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13481
13482 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13483
13484         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13485         locale-defines.sym to gen-as-const-headers.
13486         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13487         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13488         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13489         to compile strcasecmp and strncasecmp.
13490         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13491         strcasecmp_l and strncasecmp_l.
13492         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13493         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13494         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13495         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13496         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13497         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13498         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13499         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13500         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13501         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13502         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13503
13504 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13505
13506         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13507         result of SYSDEP_GETTIME_CPU to retval.
13508         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13509         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13510
13511         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13512         variable.
13513
13514         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13515         mantissa words.
13516         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13517
13518         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13519         from unused variable.
13520
13521         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13522         DWARF definitions.
13523         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13524         for assembling.
13525
13526         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13527         over namespaces.
13528
13529         * sunrpc/rpc_prot.c (rejected): Fix case value.
13530
13531         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13532         unsigned long long int to avoid warnings in shift.
13533
13534         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13535         of use of trans.
13536         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13537         variable tmp.
13538
13539         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13540         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13541         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13542
13543         * nis/nis_table.c (nis_list): Use variable of correct type for
13544         result of __follow_path call.
13545
13546 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13547
13548         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13549         of math functions ceil, trunc, floor, round, and sqrt, when
13550         avaliable on the platform.
13551         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13552         name clash.
13553         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13554         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13555         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13556
13557 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13558
13559         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13560         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13561
13562 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13563
13564         * include/unistd.h: Fix __readlink return type.
13565         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13566
13567 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13568
13569         * stdlib/ucontext.h: Undo last change for makecontext.
13570
13571 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13572
13573         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13574
13575         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13576         * setjmp/setjmp.h: Mark functions as non-leaf.
13577         * setjmp/bits/setjmp2.h: Likewise.
13578         * stdlib/ucontext.h: Likewise.
13579
13580 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13581
13582         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13583         (reused_arena): Don't check arena limit.
13584         (arena_get2): Atomically check arena limit.
13585
13586 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13587
13588         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13589         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13590
13591         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13592         instructions.
13593
13594 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13595
13596         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13597         handler when locking.
13598
13599         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13600         Fix size of allocated buffer.
13601
13602 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13603
13604         [BZ #10103]
13605         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13606         declarations for long double functions.
13607         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13608
13609         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13610
13611 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13612
13613         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13614         installed.
13615
13616         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13617         is disabled.
13618
13619 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13620
13621         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13622
13623 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13624
13625         * include/alloca.h (stackinfo_alloca_round): Define.
13626         (extend_alloca): Use it.
13627         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13628         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13629         here.
13630
13631         * scripts/check-local-headers.sh: Ignore libaudit.h.
13632
13633         * nscd/Makefile (extra-objs): Make recursively expanded.
13634
13635 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13636
13637         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13638         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13639
13640         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13641         * posix/tst-rfc3484-2.c: Likewise.
13642         * posix/tst-rfc3484-3.c: Likewise.
13643
13644         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13645         process_vm_writev.
13646         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13647         process_vm_writev.
13648         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13649         process_vm_writev from libc using GLIBC_2.15 version.
13650
13651         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13652
13653 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13654
13655         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13656         stack usage.
13657
13658 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13659
13660         [BZ #13367]
13661         * nss/getent.c (initgroups_keys): Show error message in case no group
13662         names are given.
13663
13664         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13665         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13666         __bump_nl_timestamp.
13667         * nscd/connections (nscd_init): When host database is served open
13668         netlink socket and request notification about configuration changes.
13669         (main_loop_poll): Track netlink file descriptor and bump timestamp
13670         in case data becomes available.
13671         (main_loop_epoll): Likewise.
13672         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13673         (database_pers_head): Add extra_data fileds.
13674         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13675         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13676         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13677         Adjust caller.
13678         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13679         in6ai data, call __free_in6ai.
13680         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13681         Add -DHAVE_NETLINK.
13682         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13683         interface information.  Reuse previous data if netlink timestamp
13684         is not changed.
13685         (__bump_nl_timestamp): New function.
13686         (__free_in6ai): New function.
13687
13688 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13689
13690         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13691         close_not_cancel_no_status here.
13692         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13693
13694 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13695
13696         [BZ #13276]
13697         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13698         return value.
13699
13700         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13701         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13702         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13703
13704 2011-07-03  Andreas Jaeger  <aj@suse.de>
13705
13706         [BZ #10709]
13707         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13708         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13709         * math/libm-test.inc (sin_test): Add test case.
13710
13711 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13712
13713         [BZ #13337]
13714         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13715         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13716
13717         * elf/chroot_canon.c (chroot_canon): Cleanups.
13718
13719         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13720
13721         [BZ #13335]
13722         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13723         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13724
13725         * string/test-strchr.c: Make usable for strchrnul testing.
13726         * string/test-strchrnul.c: New file.
13727         * string/Makefile (strop-tests): Add strchrnul.
13728
13729         * po/it.po: Update from translation team.
13730         * po/es.po: Likewise.
13731
13732 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13733
13734         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13735         the three constants needed as parameters.  Drop the others.
13736         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13737         __m128i_strloadu_tolower.
13738         Create and initialize variable zero and use it in all the places
13739         where _mm_setzero_si128 was used.
13740
13741         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13742         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13743         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13744         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13745         anymore.
13746         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13747         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13748         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13749         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13750         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13751         __mpranred, __mptan.
13752         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13753         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13754         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13755         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13756         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13757         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13758         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13759         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13760         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13761
13762 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13763
13764         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13765         redefine if SHARED.
13766         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13767
13768         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13769         wide char related routines to wcsmbs subdir.
13770
13771 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13772
13773         [BZ #13344]
13774         * misc/sys/cdefs.h (__THROWNL): Define.
13775         * posix/unistd.h: Use __THREADNL instead of __THREAD
13776         for memory synchronization functions.
13777
13778 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13779
13780         [BZ #13349]
13781         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13782         doesn't exist.
13783         * manual/stdio.texi (Obstack Streams): Node removed.
13784
13785 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13786
13787         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13788         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13789         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13790
13791         * math/math_private.h (math_force_eval): Allow non-addressable
13792         arguments.
13793         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13794
13795 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13796
13797         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13798         file is not needed.
13799
13800         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13801         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13802         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13803         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13804         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13805         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13806         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13807         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13808         Add AVX variants.
13809         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13810         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13811         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13812         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13813         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13814         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13815         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13816         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13817         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13818         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13819         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13820         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13821         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13822         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13823         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13824         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13825         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13826         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13827         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13828
13829         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13830         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13831
13832         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13833         place.  Use VEX encoding when compiling for AVX.
13834
13835 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13836
13837         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13838         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13839
13840         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13841
13842 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13843
13844         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13845         useless if() expression.
13846         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13847         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13848         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13849         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13850         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13851         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13852         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13853         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13854         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13855         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13856         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13857         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13858         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13859         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13860         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13861         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13862         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13863         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13864         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13865
13866         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13867
13868 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13869
13870         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13871         condition.
13872         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13873
13874 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13875
13876         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13877         .text section.  Avoid duplicate constants.
13878         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13879         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13880         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13881         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13882         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13883         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13884         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13885         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13886         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13887         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13888         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13889         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13890         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13891         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13892         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13893         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13894         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13895         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13896         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13897         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13898         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13899         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13900         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13901         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13902         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13903         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13904         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13905         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13906         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13907         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13908         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13909         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13910         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13911         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13912         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13913         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13914         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13915         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13916         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13917         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13918         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13919         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13920         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13921         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13922         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13923
13924 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13925
13926         * sysdeps/x86_64/dla.h: Move to ...
13927         * sysdeps/x86_64/fpu/dla.h: ...here.
13928         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13929         situations.  Use __builtin_fma only for gcc 4.6 and up.
13930
13931         * config.make.in: Add have-mfma4 entry.
13932         * configure.in: Substitute libc_cv_cc_fma4.
13933         * math/Makefile (dbl-only-routines): Add sincostab.
13934         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13935         Use __sincostab not sincos.
13936         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13937         name is a macro.
13938         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13939         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13940         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13941         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13942         using __copysign.
13943         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13944         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13945         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13946         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13947         and __inv.
13948         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13949         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13950         __copysign.
13951         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13952         define aliases when function name is a macro.
13953         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13954         sysdeps/ieee754/dbl-64/sincos.tbl.
13955         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13956         fma4-enabled routines.
13957         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13958         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13959         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13960         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13961         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13962         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13963         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13964         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13965         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13966         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13967         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13968         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13969         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13970         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13971         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13972         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13973         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13974         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13975         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13976         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13977         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13978         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13979         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13980         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13981         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13982         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13983         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13984         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13985         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13986         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13987
13988         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13989         rename.
13990         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13991         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13992         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13993         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13994         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13995         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13996         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13997         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13998
13999 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14000
14001         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14002
14003 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14004
14005         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14006
14007         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14008         prediction.
14009         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14010
14011         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14012         Remove unused variable magic_bits.
14013         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14014
14015         * string/strnlen.c: Define and use STRNLEN macro.
14016         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14017         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14018         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14019         * wcsmbs/wcslen.c: Define and use WCSLEN.
14020         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14021         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14022         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14023         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14024         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14025         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14026         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14027
14028 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14029
14030         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14031         strnlen-sse2-no-bsf.
14032         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14033         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14034         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14035         Add strnlen support.
14036         (USE_AS_STRNLEN): New macro.
14037         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14038         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14039         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14040         * sysdeps/x86_64/wcslen.S: New file.
14041
14042 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14043
14044         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14045         XMM-moves are used for copying on small sizes.
14046
14047 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14048
14049         * wcsmbs/Makefile (strop-tests): Add wcschr.
14050         * wcsmbs/test-wcschr.c: New file.
14051         * string/test-strchr.c: Update.
14052         Add wcschr support.
14053         (WIDE): New macro.
14054
14055 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14056
14057         * wcsmbs/Makefile (strop-tests): Add wcslen.
14058         * wcsmbs/test-wcslen.c: New file.
14059         * string/test-strlen.c: Update.
14060         Add wcslen support.
14061         (WIDE): New macro.
14062
14063 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14064
14065         * po/it.po: Update from translation team.
14066
14067 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14068
14069         * sysdeps/x86_64/wcscmp.S: Update.
14070         Fix wrong comparison semantics.
14071         wcscmp shall use signed comparison not unsigned.
14072         Don't use substraction to avoid overflow bug.
14073         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14074         * wcsmbc/wcscmp.c: Likewise.
14075         * string/test-strcmp.c: Likewise.
14076         Add new tests to check cases with negative values.
14077
14078 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14079
14080         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14081         * sysdeps/x86_64/dla.h: ...here.  New file.
14082         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14083         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14084         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14085         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14086         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14087         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14088         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14089         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14090         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14091
14092 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14093
14094         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14095         __ynl_finite aliases.
14096
14097 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14098
14099         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14100
14101         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14102         define DLA_FMA.
14103         [DLA_FMA] (EMULV): Use DLA_FMA.
14104         [DLA_FMA] (MUL12): Use EMULV.
14105         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14106         that are not needed.
14107         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14108         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14109         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14110         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14111         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14112         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14113         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14114
14115 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14116
14117         * math/s_nan.c: Undef __nan.
14118         * math/s_nanf.c: Undef __nanf.
14119         * math/s_nanl.c: Undef __nanl.
14120         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14121         "math_private.h".
14122
14123 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14124
14125         * math/s_catan.c: Add branch predictions.
14126         * math/s_catanf.c: Likewise.
14127         * math/s_catanh.c: Likewise.
14128         * math/s_catanhf.c: Likewise.
14129         * math/s_catanhl.c: Likewise.
14130         * math/s_catanl.c: Likewise.
14131         * math/s_cexp.c: Likewise.
14132         * math/s_cexpf.c: Likewise.
14133         * math/s_cexpl.c: Likewise.
14134         * math/s_clog.c: Likewise.
14135         * math/s_clog10.c: Likewise.
14136         * math/s_clog10f.c: Likewise.
14137         * math/s_clog10l.c: Likewise.
14138         * math/s_clogf.c: Likewise.
14139         * math/s_clogl.c: Likewise.
14140         * math/s_csqrt.c: Likewise.
14141         * math/s_csqrtf.c: Likewise.
14142         * math/s_csqrtl.c: Likewise.
14143         * math/s_ctanf.c: Likewise.
14144         * math/s_ctanh.c: Likewise.
14145         * math/s_ctanhf.c: Likewise.
14146         * math/s_ctanhl.c: Likewise.
14147         * math/s_ctanl.c: Likewise.
14148
14149         * math/math_private.h: Define __nan, __nanf, __nanl.
14150         * math/s_cacosh.c: Include <math_private.h>.
14151         * math/s_cacoshl.c: Likewise.
14152         * math/s_casinh.c: Likewise.
14153         * math/s_casinhf.c: Likewise.
14154         * math/s_casinhl.c: Likewise.
14155         * math/s_ccos.c: Rely entire on ccosh.
14156         * math/s_ccosf.c: Rely entire on ccoshf.
14157         * math/s_ccosl.c: Rely entirely on ccoshl.
14158         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14159         Remove tests for FE_INVALID.
14160         * math/s_ccoshf.c: Likewise.
14161         * math/s_ccoshl.c: Likewise.
14162         * math/s_csin.c: Likewise.
14163         * math/s_csinf.c: Likewise.
14164         * math/s_csinh.c Likewise.
14165         * math/s_csinhf.c: Likewise.
14166         * math/s_csinhl.c: Likewise.
14167         * math/s_csinl.c: Likewise.
14168         * math/s_ctan.c: Likewise.
14169         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14170         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14171         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14172
14173 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14174
14175         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14176         compilation problems.
14177
14178         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14179         __builtin_expect.
14180
14181 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14182
14183         * sysdeps/i386/configure.in: Test for -mfma4 option.
14184         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14185         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14186         COMMON_CPUID_INDEX_80000001.
14187         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14188         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14189         use it if FMA3 is not supported.
14190         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14191
14192         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14193         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14194
14195 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14196
14197         [BZ #12892]
14198         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14199         it would create a cycle with a link time dependency.
14200
14201 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14202
14203         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14204         instruction.
14205         * string/Makefile (strop-tests): Add rawmemchr.
14206         * string/test-rawmemchr.c: New file.
14207
14208         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14209         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14210         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14211         when compiling str{,n}casecmp and when AVX is available.  Hook up
14212         new optimized code in initializers.
14213
14214 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14215
14216         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14217         __feraiseexcept instead of feraiseexcept.
14218
14219 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14220
14221         * math/math_private.h: Define defaults for libc_fetestexcept and
14222         libc_feupdateenv.
14223         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14224         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14225         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14226         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14227         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14228         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14229         libc_fetestexcept and libc_feupdateenv.
14230
14231         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14232         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14233         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14234         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14235         libc_feholdexcept_setround.
14236
14237         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14238         Add s_nearbyint-c and s_nearbyintf-c.
14239         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14240         nearbyintf inlines.
14241         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14242         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14243         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14244         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14245
14246         * math/math_private.h: Define defaults for libc_fegetround,
14247         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14248         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14249         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14250         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14251         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14252         standard functions.
14253         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14254         Remove comments and hacks for old compiler versions.
14255         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14256         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14257         libc_feholdexceptl.
14258
14259 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14260
14261         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14262         (__feraiseexcept_renamed): Add __NTH.
14263         (feraiseexcept): Add __NTH.  Rename local variables to fix
14264         namespace violations.
14265
14266 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14267
14268         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14269
14270         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14271
14272         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14273         recently added interfaces.
14274         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14275
14276         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14277         about macro parameter expansion.
14278
14279         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14280         __NO_MATH_INLINES is defined.  Cleanups.
14281
14282         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14283         and __floorf is target has SSE4.1.
14284         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14285         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14286         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14287         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14288
14289         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14290         name.
14291         (floorf): Likewise.
14292
14293         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14294
14295 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14296
14297         * misc/sys/cdefs.h: Fix last change.
14298
14299         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14300         database lookup.
14301
14302 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14303
14304         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14305
14306         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14307         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14308         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14309         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14310         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14311         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14312         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14313         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14314         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14315         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14316         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14317         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14318         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14319         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14320         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14321         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14322         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14323         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14324         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14325         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14326         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14327         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14328
14329         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14330         ceil, ceilf, floor, floorf.
14331
14332         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14333         Perform IRELATIVE relocations last.
14334
14335         * elf/do-rel.h: Add another parameter nrelative, replacing the
14336         local variable with the same name.  Change name of the function
14337         to end in Rel or Rela (uppercase).
14338         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14339         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14340         elf_dynamic_do_##reloc function.
14341
14342 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14343
14344         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14345         is sufficient, at least on modern CPUs.
14346
14347         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14348
14349         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14350         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14351
14352         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14353         __expl_finite.
14354         * math/bits/math-finite.h: Add entries for exp.
14355         * math/e_expl.c: Add __*_finite alias.
14356         * sysdeps/i386/fpu/e_exp.S: Likewise.
14357         * sysdeps/i386/fpu/e_expf.S: Likewise.
14358         * sysdeps/i386/fpu/e_expl.c: Likewise.
14359         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14360         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14361         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14362         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14363         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14364         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14365         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14366
14367         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14368         is sufficient, at least on modern CPUs.
14369
14370         * ctype/ctype-info.c (__ctype_init): Define.
14371         * include/ctype.h (__ctype_init): Declare.
14372         (__ctype_b_loc): The variable is always initialized.
14373         (__ctype_toupper_loc): Likewise.
14374         (__ctype_tolower_loc): Likewise.
14375         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14376         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14377
14378 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14379
14380         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14381
14382         * configure.in: Also look in $cxxmachine/include for C++ system
14383         headers.
14384
14385 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14386
14387         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14388         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14389         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14390         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14391         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14392         (USE_AS_WMEMCMP): New macro.
14393         Fixing indents.
14394         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14395         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14396         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14397         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14398         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14399         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14400         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14401         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14402         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14403         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14404         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14405         (USE_AS_WMEMCMP): New macro.
14406         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14407         * sysdeps/string/test-memcmp.c: Update.
14408         Fix simple_wmemcmp.
14409         Add new tests.
14410         * wcsmbs/wmemcmp.c: Update.
14411         (WMEMCMP): New macro.
14412         Fix overflow bug.
14413
14414 2011-10-12  Andreas Jaeger  <aj@suse.de>
14415
14416         [BZ #13268]
14417         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14418
14419 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14420
14421         * libio/iofwide.c (do_length): Avoid warning.
14422
14423         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14424
14425 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14426
14427         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14428
14429         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14430         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14431         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14432         * sysdeps/i386/i686/fpu/e_log.S: New file.
14433         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14434         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14435
14436         * ctype/ctype.h: Add support for inlined isXXX functions when
14437         compiling C++ code.
14438
14439 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14440
14441         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14442
14443         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14444
14445 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14446
14447         [BZ #13291]
14448         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14449
14450 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14451
14452         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14453         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14454         feraiseexcept.
14455
14456         * sysdeps/x86_64/memrchr.S: Check for zero size.
14457
14458         * string/stratcliff.c: Add memrchr tests.
14459
14460 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14461
14462         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14463         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14464         rawmemchr-sse2 rawmemchr-sse2-bsf.
14465         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14466         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14467         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14468         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14469         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14470         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14471         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14472         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14473         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14474         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14475         * string/memrchr.c (MEMRCHR): New macro.
14476
14477 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14478
14479         Add integration with gcc's -ffinite-math-only and optimize wrapper
14480         functions in libm.
14481         * Versions.def: Define GLIBC_2.15 version for libm.
14482         * math/Makefile (headers): Add bits/math-finite.h.
14483         * math/bits/math-finite.h: New file.
14484         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14485         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14486         * math/e_acoshl.c: Add __*_finite alias.
14487         * math/e_acosl.c: Likewise.
14488         * math/e_asinl.c: Likewise.
14489         * math/e_atan2l.c: Likewise.
14490         * math/e_atanhl.c: Likewise.
14491         * math/e_coshl.c: Likewise.
14492         * math/e_exp10.c: Likewise.
14493         * math/e_exp10f.c: Likewise.
14494         * math/e_exp10l.c: Likewise.
14495         * math/e_exp2l.c: Likewise.
14496         * math/e_fmodl.c: Likewise.
14497         * math/e_gammal_r.c: Likewise.
14498         * math/e_hypotl.c: Likewise.
14499         * math/e_j0l.c: Likewise.
14500         * math/e_j1l.c: Likewise.
14501         * math/e_jnl.c: Likewise.
14502         * math/e_lgammal_r.c: Likewise.
14503         * math/e_log10l.c: Likewise.
14504         * math/e_log2l.c: Likewise.
14505         * math/e_logl.c: Likewise.
14506         * math/e_powl.c: Likewise.
14507         * math/e_sinhl.c: Likewise.
14508         * math/e_sqrtl.c: Likewise.
14509         * math/e_scalb.c: Completely rewritten and optimized.
14510         * math/e_scalbf.c: Likewise.
14511         * math/e_scalbl.c: Likewise.
14512         * math/w_acos.c: Likewise.
14513         * math/w_acosf.c: Likewise.
14514         * math/w_acosl.c: Likewise.
14515         * math/w_acosh.c: Likewise.
14516         * math/w_acoshf.c: Likewise.
14517         * math/w_acoshl.c: Likewise.
14518         * math/w_asin.c: Likewise.
14519         * math/w_asinf.c: Likewise.
14520         * math/w_asinl.c: Likewise.
14521         * math/w_atan2.c: Likewise.
14522         * math/w_atan2f.c: Likewise.
14523         * math/w_atan2l.c: Likewise.
14524         * math/w_atanh.c: Likewise.
14525         * math/w_atanhf.c: Likewise.
14526         * math/w_atanhl.c: Likewise.
14527         * math/w_exp10.c: Likewise.
14528         * math/w_exp10f.c: Likewise.
14529         * math/w_exp10l.c: Likewise.
14530         * math/w_fmod.c: Likewise.
14531         * math/w_fmodf.c: Likewise.
14532         * math/w_fmodl.c: Likewise.
14533         * math/w_j0.c: Likewise.
14534         * math/w_j0f.c: Likewise.
14535         * math/w_j0l.c: Likewise.
14536         * math/w_j1.c: Likewise.
14537         * math/w_j1f.c: Likewise.
14538         * math/w_j1l.c: Likewise.
14539         * math/w_jn.c: Likewise.
14540         * math/w_jnf.c: Likewise.
14541         * math/w_log.c: Likewise.
14542         * math/w_logf.c: Likewise.
14543         * math/w_logl.c: Likewise.
14544         * math/w_log10.c: Likewise.
14545         * math/w_log10f.c: Likewise.
14546         * math/w_log10l.c: Likewise.
14547         * math/w_log2.c: Likewise.
14548         * math/w_log2f.c: Likewise.
14549         * math/w_log2l.c: Likewise.
14550         * math/w_pow.c: Likewise.
14551         * math/w_powf.c: Likewise.
14552         * math/w_powl.c: Likewise.
14553         * math/w_remainder.c: Likewise.
14554         * math/w_remainderf.c: Likewise.
14555         * math/w_remainderl.c: Likewise.
14556         * math/w_scalb.c: Likewise.
14557         * math/w_scalbf.c: Likewise.
14558         * math/w_scalbl.c: Likewise.
14559         * math/w_sqrt.c: Likewise.
14560         * math/w_sqrtf.c: Likewise.
14561         * math/w_sqrtl.c: Likewise.
14562         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14563         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14564         used.
14565         * math/math_private.h: Declare __kernel_standard_f.
14566         * math/w_cosh.c: Remove cruft and optimize a bit.
14567         * math/w_coshf.c: Likewise.
14568         * math/w_coshl.c: Likewise.
14569         * math/w_exp2.c: Likewise.
14570         * math/w_exp2f.c: Likewise.
14571         * math/w_exp2l.c: Likewise.
14572         * math/w_hypot.c: Likewise.
14573         * math/w_hypotf.c: Likewise.
14574         * math/w_hypotl.c: Likewise.
14575         * math/w_lgamma.c: Likewise.
14576         * math/w_lgamma_r.c: Likewise.
14577         * math/w_lgammaf.c: Likewise.
14578         * math/w_lgammaf_r.c: Likewise.
14579         * math/w_lgammal.c: Likewise.
14580         * math/w_lgammal_r.c: Likewise.
14581         * math/w_sinh.c: Likewise.
14582         * math/w_sinhf.c: Likewise.
14583         * math/w_sinhl.c: Likewise.
14584         * math/w_tgamma.c: Likewise.
14585         * math/w_tgammaf.c: Likewise.
14586         * math/w_tgammal.c: Likewise.
14587         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14588         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14589         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14590         Minor optimizations.  Pretty printing.  Remove cruft.
14591         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14592         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14593         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14594         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14595         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14596         * sysdeps/i386/fpu/e_asin.S: Likewise.
14597         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14598         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14599         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14600         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14601         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14602         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14603         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14604         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14605         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14606         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14607         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14608         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14609         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14610         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14611         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14612         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14613         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14614         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14615         * sysdeps/i386/fpu/e_log.S: Likewise.
14616         * sysdeps/i386/fpu/e_log10.S: Likewise.
14617         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14618         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14619         * sysdeps/i386/fpu/e_log2.S: Likewise.
14620         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14621         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14622         * sysdeps/i386/fpu/e_logf.S: Likewise.
14623         * sysdeps/i386/fpu/e_logl.S: Likewise.
14624         * sysdeps/i386/fpu/e_pow.S: Likewise.
14625         * sysdeps/i386/fpu/e_powf.S: Likewise.
14626         * sysdeps/i386/fpu/e_powl.S: Likewise.
14627         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14628         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14629         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14630         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14631         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14632         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14633         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14634         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14635         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14636         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14637         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14638         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14639         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14640         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14641         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14642         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14643         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14644         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14645         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14646         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14647         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14648         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14649         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14650         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14651         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14652         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14653         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14654         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14655         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14656         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14657         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14658         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14659         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14660         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14661         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14662         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14663         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14664         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14665         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14666         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14667         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14668         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14669         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14670         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14671         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14672         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14673         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14674         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14675         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14676         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14677         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14678         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14679         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14680         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14681         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14682         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14683         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14684         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14685         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14686         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14687         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14688         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14689         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14690         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14691         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14692         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14693         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14694         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14695         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14696         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14697         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14698         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14699         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14700         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14701         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14702         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14703         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14704         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14705         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14706         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14707         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14708         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14709         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14710         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14711         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14712         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14713         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14714         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14715         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14716         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14717         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14718         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14719         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14720         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14721         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14722         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14723         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14724         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14725         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14726         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14727         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14728         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14729         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14730         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14731         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14732         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14733         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14734         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14735         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14736         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14737         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14738         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14739         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14740         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14741         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14742         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14743         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14744         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14745         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14746         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14747         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14748         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14749         (__isnanf): Likewise.
14750         (__isinf_ns): Likewise.
14751         (__isinf_nsf): Likewise.
14752         (__finite): Likewise.
14753         (__finitef): Likewise.
14754         (__ieee754_sqrt): Define as macro.
14755         (__ieee754_sqrtf): Define as macro.
14756         (__ieee754_sqrtl): Define as macro.
14757         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14758         inlined copy.
14759         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14760         __FINITE_MATH_ONLY__ consistent.
14761         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14762
14763 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14764
14765         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14766         of rawmemchr.
14767
14768         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14769
14770 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14771
14772         * po/ja.po: Update from translation team.
14773
14774 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14775
14776         * locale/programs/locarchive.c (prepare_address_space): New function.
14777         (create_archive, enlarge_archive, open_archive): Use it.
14778
14779         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14780         inside [SHARED], where it is used.
14781
14782         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14783
14784         * nss/getent.c (netgroup_keys): Remove unused variable.
14785         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14786
14787 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14788
14789         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14790         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14791         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14792         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14793         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14794         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14795         * math/Makefile (libm-calls): Add s_isinf_ns.
14796         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14797         * math/multc3.c: Likewise.
14798         * math/s_casin.c: Likewise.
14799         * math/s_casinf.c: Likewise.
14800         * math/s_casinl.c: Likewise.
14801         * math/s_ccos.c: Likewise.
14802         * math/s_ccosf.c: Likewise.
14803         * math/s_ccosl.c: Likewise.
14804         * math/s_ctan.c: Likewise.
14805         * math/s_ctanf.c: Likewise.
14806         * math/s_ctanh.c: Likewise.
14807         * math/s_ctanhf.c: Likewise.
14808         * math/s_ctanhl.c: Likewise.
14809         * math/s_ctanl.c: Likewise.
14810         * math/w_fmod.c: Likewise.
14811         * math/w_fmodf.c: Likewise.
14812         * math/w_fmodl.c: Likewise.
14813         * math/w_remainder.c: Likewise.
14814         * math/w_remainderf.c: Likewise.
14815         * math/w_remainderl.c: Likewise.
14816         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14817         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14818         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14819         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14820         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14821         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14822         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14823         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14824
14825         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14826         of the number.
14827         * stdio-common/printf_fphex.c: Likewise.
14828         * stdio-common/printf_size.c: Likewise.
14829
14830         * math/e_exp10.c: Include math_private.h using <...> not "...".
14831         * math/e_exp10f.c: Likewise.
14832         * math/e_exp10l.c: Likewise.
14833         * math/e_exp2l.c: Likewise.
14834         * math/e_j0l.c: Likewise.
14835         * math/e_j1l.c: Likewise.
14836         * math/e_jnl.c: Likewise.
14837         * math/e_lgammal_r.c: Likewise.
14838         * math/e_rem_pio2l.c: Likewise.
14839         * math/e_scalb.c: Likewise.
14840         * math/e_scalbf.c: Likewise.
14841         * math/e_scalbl.c: Likewise.
14842         * math/k_cosl.c: Likewise.
14843         * math/k_sinl.c: Likewise.
14844         * math/k_tanl.c: Likewise.
14845         * math/s_cacoshf.c: Likewise.
14846         * math/s_catan.c: Likewise.
14847         * math/s_catanf.c: Likewise.
14848         * math/s_catanh.c: Likewise.
14849         * math/s_catanhf.c: Likewise.
14850         * math/s_catanhl.c: Likewise.
14851         * math/s_catanl.c: Likewise.
14852         * math/s_ccosh.c: Likewise.
14853         * math/s_ccoshf.c: Likewise.
14854         * math/s_ccoshl.c: Likewise.
14855         * math/s_cexp.c: Likewise.
14856         * math/s_cexpf.c: Likewise.
14857         * math/s_cexpl.c: Likewise.
14858         * math/s_clog.c: Likewise.
14859         * math/s_clog10.c: Likewise.
14860         * math/s_clog10f.c: Likewise.
14861         * math/s_clog10l.c: Likewise.
14862         * math/s_clogf.c: Likewise.
14863         * math/s_clogl.c: Likewise.
14864         * math/s_csin.c: Likewise.
14865         * math/s_csinf.c: Likewise.
14866         * math/s_csinh.c: Likewise.
14867         * math/s_csinhf.c: Likewise.
14868         * math/s_csinhl.c: Likewise.
14869         * math/s_csinl.c: Likewise.
14870         * math/s_csqrt.c: Likewise.
14871         * math/s_csqrtf.c: Likewise.
14872         * math/s_csqrtl.c: Likewise.
14873         * math/s_ctan.c: Likewise.
14874         * math/s_ctanf.c: Likewise.
14875         * math/s_ctanh.c: Likewise.
14876         * math/s_ctanhf.c: Likewise.
14877         * math/s_ctanhl.c: Likewise.
14878         * math/s_ctanl.c: Likewise.
14879         * math/s_ldexp.c: Likewise.
14880         * math/s_ldexpf.c: Likewise.
14881         * math/s_ldexpl.c: Likewise.
14882         * math/s_significand.c: Likewise.
14883         * math/s_significandf.c: Likewise.
14884         * math/s_significandl.c: Likewise.
14885         * math/w_acos.c: Likewise.
14886         * math/w_acosf.c: Likewise.
14887         * math/w_acosh.c: Likewise.
14888         * math/w_acoshf.c: Likewise.
14889         * math/w_acoshl.c: Likewise.
14890         * math/w_acosl.c: Likewise.
14891         * math/w_asin.c: Likewise.
14892         * math/w_asinf.c: Likewise.
14893         * math/w_asinl.c: Likewise.
14894         * math/w_atan2.c: Likewise.
14895         * math/w_atan2f.c: Likewise.
14896         * math/w_atan2l.c: Likewise.
14897         * math/w_atanh.c: Likewise.
14898         * math/w_atanhf.c: Likewise.
14899         * math/w_atanhl.c: Likewise.
14900         * math/w_cosh.c: Likewise.
14901         * math/w_coshf.c: Likewise.
14902         * math/w_coshl.c: Likewise.
14903         * math/w_dremf.c: Likewise.
14904         * math/w_exp10.c: Likewise.
14905         * math/w_exp10f.c: Likewise.
14906         * math/w_exp10l.c: Likewise.
14907         * math/w_exp2.c: Likewise.
14908         * math/w_exp2f.c: Likewise.
14909         * math/w_fmod.c: Likewise.
14910         * math/w_fmodf.c: Likewise.
14911         * math/w_fmodl.c: Likewise.
14912         * math/w_hypot.c: Likewise.
14913         * math/w_hypotf.c: Likewise.
14914         * math/w_hypotl.c: Likewise.
14915         * math/w_j0.c: Likewise.
14916         * math/w_j0f.c: Likewise.
14917         * math/w_j0l.c: Likewise.
14918         * math/w_j1.c: Likewise.
14919         * math/w_j1f.c: Likewise.
14920         * math/w_j1l.c: Likewise.
14921         * math/w_jn.c: Likewise.
14922         * math/w_jnf.c: Likewise.
14923         * math/w_jnl.c: Likewise.
14924         * math/w_lgamma.c: Likewise.
14925         * math/w_lgamma_r.c: Likewise.
14926         * math/w_lgammaf.c: Likewise.
14927         * math/w_lgammaf_r.c: Likewise.
14928         * math/w_lgammal.c: Likewise.
14929         * math/w_lgammal_r.c: Likewise.
14930         * math/w_log.c: Likewise.
14931         * math/w_log10.c: Likewise.
14932         * math/w_log10f.c: Likewise.
14933         * math/w_log10l.c: Likewise.
14934         * math/w_log2.c: Likewise.
14935         * math/w_log2f.c: Likewise.
14936         * math/w_log2l.c: Likewise.
14937         * math/w_logf.c: Likewise.
14938         * math/w_logl.c: Likewise.
14939         * math/w_pow.c: Likewise.
14940         * math/w_powf.c: Likewise.
14941         * math/w_powl.c: Likewise.
14942         * math/w_remainder.c: Likewise.
14943         * math/w_remainderf.c: Likewise.
14944         * math/w_remainderl.c: Likewise.
14945         * math/w_scalb.c: Likewise.
14946         * math/w_scalbf.c: Likewise.
14947         * math/w_scalbl.c: Likewise.
14948         * math/w_sinh.c: Likewise.
14949         * math/w_sinhf.c: Likewise.
14950         * math/w_sinhl.c: Likewise.
14951         * math/w_sqrt.c: Likewise.
14952         * math/w_sqrtf.c: Likewise.
14953         * math/w_sqrtl.c: Likewise.
14954         * math/w_tgamma.c: Likewise.
14955         * math/w_tgammaf.c: Likewise.
14956         * math/w_tgammal.c: Likewise.
14957
14958         * po/ja.po: Update from translation team.
14959
14960 2011-09-29  Andreas Jaeger  <aj@suse.de>
14961
14962         [BZ #13179]
14963         * sunrpc/netname.c (netname2host): Fix logic.
14964
14965         [BZ #6779]
14966         [BZ #6783]
14967         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14968         correctly.
14969         * math/w_remainder.c (__remainder): Likewise.
14970         * math/w_remainderf.c (__remainderf): Likewise.
14971         * math/libm-test.inc (remainder_test): Add test cases.
14972
14973 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14974
14975         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14976         sdiv_qrnnd.
14977
14978 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14979
14980         * string/test-memcmp.c: Avoid unncessary #defines.
14981         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14982
14983 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14984
14985         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14986         Use new sse2 version for core i3 - i7 as it's faster
14987         than sse42 version.
14988         (bit_Prefer_PMINUB_for_stringop): New.
14989         * sysdeps/x86_64/rawmemchr.S: Update.
14990         Replace with faster SSE2 version.
14991         * sysdeps/x86_64/memrchr.S: New file.
14992         * sysdeps/x86_64/memchr.S: Update.
14993         Replace with faster SSE2 version.
14994
14995 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14996
14997         * elf/dl-load.c (lose): Add cast to avoid warning.
14998
14999 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15000
15001         * po/ca.po: Update from translation team.
15002
15003         * inet/getnetgrent_r.c: Hook up nscd.
15004         * nscd/Makefile (routines): Add nscd_netgroup.
15005         (nscd-modules): Add netgroupcache.
15006         (CFLAGS-netgroupcache.c): Define.
15007         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15008         (cache_search): Add const to second parameter.
15009         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15010         INNETGR.
15011         (dbs): Add netgrdb entry.
15012         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15013         (verify_persistent_db): Handle netgrdb.
15014         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15015         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15016         GETFDNETGR.
15017         (netgroup_response_header): Define.
15018         (innetgroup_response_header): Define.
15019         (datahead): Add netgroup_response_header and innetgroup_response_header
15020         elements.
15021         * nscd/nscd.conf: Add entries for netgroup cache.
15022         * nscd/nscd.h (dbtype): Add netgrdb.
15023         (_PATH_NSCD_NETGROUP_DB): Define.
15024         (netgroup_iov_disabled): Declare.
15025         (xmalloc, xcalloc, xrealloc): Move declarations here.
15026         (cache_search): Adjust prototype.
15027         Add netgroup-related prototypes.
15028         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15029         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15030         (__nscd_innetgr): Declare.
15031         * nscd/selinux.c (perms): Use access_vector_t as element type and
15032         add netgroup-related initializers.
15033         * nscd/netgroupcache.c: New file.
15034         * nscd/nscd_netgroup.c: New file.
15035         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15036         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15037         For four parameters use innetgr.
15038         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15039         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15040         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15041         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15042
15043         * nscd/connections.c (register_traced_file): Don't register file
15044         for disabled databases.
15045
15046 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15047
15048         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15049
15050         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15051         from tree and freeing node.
15052
15053 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15054
15055         * nss/nsswitch.c (__nss_database_lookup): Handle
15056         nss_parse_service_list out of memory case.
15057
15058 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15059
15060         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15061         out of memory case.
15062
15063 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15064
15065         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15066         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15067         pass it down.
15068         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15069         elf_machine_rela, elf_machine_lazy_rel.
15070         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15071         (ELF_DYNAMIC_DO_REL): Likewise.
15072         (ELF_DYNAMIC_DO_RELA): Likewise.
15073         (ELF_DYNAMIC_RELOCATE): Likewise.
15074         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15075         to ELF_DYNAMIC_DO_REL.
15076         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15077         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15078         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15079         elf_machine_rela.
15080         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15081         skip_ifunc, don't call ifunc function if non-zero.
15082         (elf_machine_rela): Likewise.
15083         (elf_machine_lazy_rel): Likewise.
15084         (elf_machine_lazy_rela): Likewise.
15085         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15086         (elf_machine_lazy_rel): Likewise.
15087         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15088         Likewise.
15089         (elf_machine_lazy_rel): Likewise.
15090         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15091         Likewise.
15092         (elf_machine_lazy_rel): Likewise.
15093         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15094         (elf_machine_lazy_rel): Likewise.
15095         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15096         (elf_machine_lazy_rel): Likewise.
15097         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15098         (elf_machine_lazy_rel): Likewise.
15099         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15100         (elf_machine_lazy_rel): Likewise.
15101         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15102         (elf_machine_lazy_rel): Likewise.
15103         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15104         (elf_machine_lazy_rel): Likewise.
15105
15106 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15107
15108         * nss/nss_files/files-init.c (_nss_files_init): Use static
15109         initialization for all the *_traced_file variables.
15110
15111 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15112
15113         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15114
15115 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15116
15117         [BZ #13226]
15118         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15119
15120 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15121
15122         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15123         Reread the line before reparsing it.
15124
15125 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15126
15127         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15128
15129 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15130             Maxim Kuvyrkov  <maxim@codesourcery.com>
15131             Joseph Myers  <joseph@codesourcery.com>
15132
15133         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15134         if needed for __stack_chk_guard.
15135
15136 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15137
15138         * sysdeps/posix/spawni.c (script_execute): Always define it.
15139         It will be optimized away if unused.
15140         (maybe_script_execute): New function.
15141         (__spawni): Call it.
15142
15143         * Makerules: Don't include tls.make.
15144         (config-tls): Always set to thread.
15145         * tls.make.c: File removed.
15146
15147 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15148
15149         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15150         * config.make.in (CPPFLAGS-config): New substituted variable.
15151
15152 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15153
15154         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15155
15156         [BZ #13192]
15157         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15158         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15159
15160 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15161
15162         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15163         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15164         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15165         (CALL_FAIL): Likewise.
15166         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15167         (CALL_FAIL): Macro removed.
15168         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15169
15170 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15171
15172         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15173         for __FINITE_MATH_ONLY__ == 1.
15174
15175 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15176
15177         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15178         __ieee754_sqrt instead of sqrt.
15179         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15180         __ieee754_sqrtf instead of sqrtf.
15181         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15182         __floorf instead of floorf.
15183         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15184         __floorf, __truncf instead of floorf, truncf.
15185
15186 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15187
15188         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15189
15190         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15191         __extern_always_inline.
15192         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15193         32-bit.
15194
15195 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15196
15197         * elf/rtld.c (dl_main): Also relocate in dependency order when
15198         doing symbol dependency testing.
15199
15200 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15201
15202         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15203         Always define `refsym'.
15204
15205 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15206
15207         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15208         (__FD_ELT): Renamed from __FDELT.
15209         * misc/bits/select2.h (__FD_ELT): Likewise.
15210         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15211         __FD_MASK instead of __FDELT, __FDMASK.
15212         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15213         Likewise.
15214         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15215         Likewise.
15216
15217         * elf/Makefile (gen-ldd): Fix pattern.
15218
15219         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15220         (init_tls): Likewise.
15221
15222 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15223
15224         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15225
15226 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15227
15228         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15229         `struct cmsghdr *' instead of `void *'.
15230         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15231         Likewise.
15232
15233 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15234
15235         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15236         if non-absolute.
15237         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15238         ldd_rewrite_script.
15239
15240 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15241
15242         * configure.in: Remove --with-tls option.
15243         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15244         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15245         out in case it is missing.
15246         * sysdeps/ia64/elf/configure.in: Likewise.
15247         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15248         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15249         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15250         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15251         * sysdeps/sh/elf/configure.in: Likewise.
15252         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15253         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15254         * sysdeps/x86_64/elf/configure.in: Likewise.
15255         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15256         * sysdeps/mach/hurd/tls.h: Likewise.
15257
15258         [BZ #13067]
15259         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15260
15261         [BZ #13090]
15262         * configure.in: Fix use of AC_INIT.
15263
15264         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15265
15266 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15267
15268         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15269         __set_errno.
15270         * malloc/hooks.c: Likewise.
15271
15272         [BZ #11929]
15273         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15274         variables statically.
15275         (narenas): Initialize.
15276         (list_lock): Initialize.
15277         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15278         initializtion of main_arena and list_lock.  Small cleanups.
15279         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15280         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15281         Add initializers to main_arena and mp_.
15282         (malloc_state): Remove pagesize member.  Change all users to use
15283         GLRO(dl_pagesize).
15284
15285         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15286         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15287         is always initialized.
15288
15289         * malloc/malloc.c: Removed unused configurations and dead code.
15290         * malloc/arena.c: Likewise.
15291         * malloc/hooks.c: Likewise.
15292         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15293
15294         * include/tls.h: Removed.  USE___THREAD must always be defined.
15295         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15296         * elf/dl-libc.c: Likewise.
15297         * elf/dl-tsd.c: Likewise.
15298         * include/errno.h: Likewise.
15299         * include/netdb.h: Likewise.
15300         * include/resolv.h: Likewise.
15301         * inet/herrno-loc.c: Likewise.
15302         * inet/herrno.c: Likewise.
15303         * malloc/arena.c: Likewise.
15304         * malloc/hooks.c: Likewise.
15305         * malloc/malloc.c: Likewise.
15306         * resolv/res-state.c: Likewise.
15307         * resolv/res_libc.c: Likewise.
15308         * sysdeps/i386/dl-machine.h: Likewise.
15309         * sysdeps/ia64/dl-machine.h: Likewise.
15310         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15311         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15312         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15313         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15314         * sysdeps/sh/dl-machine.h: Likewise.
15315         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15316         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15317         * sysdeps/unix/i386/sysdep.S: Likewise.
15318         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15319         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15320         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15321         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15322         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15323         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15324         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15325         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15326         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15327         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15328         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15329         * sysdeps/x86_64/dl-machine.h: Likewise.
15330         * tls.make.c: Likewise.
15331
15332         * configure.in: Remove --with-__thread option.  Make tests for
15333         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15334         tls_model attribute fail if no support is available.  Remove
15335         USE_IN_LIBIO.
15336         * Makeconfig: Adjust for dropped configure option.  All features are
15337         now mandatory.
15338         * Makerules: Likewise.
15339         * Versions.def: Likewise.
15340         * argp/argp-fmtstream.c: Likewise.
15341         * argp/argp-fmtstream.h: Likewise.
15342         * argp/argp-help.c: Likewise.
15343         * assert/assert.c: Likewise.
15344         * config.h.in: Likewise.
15345         * config.make.in: Likewise.
15346         * configure: Likewise.
15347         * configure.in: Likewise.
15348         * csu/Versions: Likewise.
15349         * csu/init.c: Likewise.
15350         * elf/tst-audit2.c: Likewise.
15351         * elf/tst-tls10.c: Likewise.
15352         * elf/tst-tls10.h: Likewise.
15353         * elf/tst-tls11.c: Likewise.
15354         * elf/tst-tls12.c: Likewise.
15355         * elf/tst-tls14.c: Likewise.
15356         * elf/tst-tlsmod11.c: Likewise.
15357         * elf/tst-tlsmod12.c: Likewise.
15358         * elf/tst-tlsmod13.c: Likewise.
15359         * elf/tst-tlsmod13a.c: Likewise.
15360         * elf/tst-tlsmod14a.c: Likewise.
15361         * elf/tst-tlsmod15b.c: Likewise.
15362         * elf/tst-tlsmod16a.c: Likewise.
15363         * elf/tst-tlsmod16b.c: Likewise.
15364         * elf/tst-tlsmod7.c: Likewise.
15365         * elf/tst-tlsmod8.c: Likewise.
15366         * elf/tst-tlsmod9.c: Likewise.
15367         * gmon/gmon.c: Likewise.
15368         * grp/fgetgrent_r.c: Likewise.
15369         * grp/putgrent.c: Likewise.
15370         * hurd/fopenport.c: Likewise.
15371         * include/libc-symbols.h: Likewise.
15372         * include/tls.h: Likewise.
15373         * intl/gettextP.h: Likewise.
15374         * intl/loadinfo.h: Likewise.
15375         * locale/global-locale.c: Likewise.
15376         * locale/localeinfo.h: Likewise.
15377         * mach/devstream.c: Likewise.
15378         * malloc/arena.c: Likewise.
15379         * malloc/set-freeres.c: Likewise.
15380         * misc/err.c: Likewise.
15381         * misc/getttyent.c: Likewise.
15382         * misc/mntent_r.c: Likewise.
15383         * posix/getopt.c: Likewise.
15384         * posix/wordexp.c: Likewise.
15385         * pwd/fgetpwent_r.c: Likewise.
15386         * resolv/Versions: Likewise.
15387         * resolv/res_hconf.c: Likewise.
15388         * shadow/fgetspent_r.c: Likewise.
15389         * shadow/putspent.c: Likewise.
15390         * stdio-common/printf_fphex.c: Likewise.
15391         * stdio-common/tmpfile.c: Likewise.
15392         * stdlib/abort.c: Likewise.
15393         * stdlib/fmtmsg.c: Likewise.
15394         * sunrpc/auth_unix.c: Likewise.
15395         * sunrpc/clnt_perr.c: Likewise.
15396         * sunrpc/clnt_tcp.c: Likewise.
15397         * sunrpc/clnt_udp.c: Likewise.
15398         * sunrpc/clnt_unix.c: Likewise.
15399         * sunrpc/openchild.c: Likewise.
15400         * sunrpc/svc_simple.c: Likewise.
15401         * sunrpc/svc_tcp.c: Likewise.
15402         * sunrpc/svc_udp.c: Likewise.
15403         * sunrpc/svc_unix.c: Likewise.
15404         * sunrpc/xdr.c: Likewise.
15405         * sunrpc/xdr_array.c: Likewise.
15406         * sunrpc/xdr_rec.c: Likewise.
15407         * sunrpc/xdr_ref.c: Likewise.
15408         * sunrpc/xdr_stdio.c: Likewise.
15409
15410 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15411
15412         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15413
15414 2011-07-03  Andreas Jaeger  <aj@suse.de>
15415
15416         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15417         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15418         regenerate with gen-libm-tests.pl.
15419
15420 2010-05-12  Petr Baudis  <pasky@suse.cz>
15421
15422         [BZ #11589]
15423         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15424         around j0() zero points by switching to j1().
15425         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15426         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15427         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15428         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15429
15430 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15431
15432         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15433         instead of 0.
15434         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15435         instead of 0.                              .
15436         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15437         Patch in part by Pavel Roskin <proski@gnu.org>.
15438
15439         [BZ #13138]
15440         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15441         realloc.
15442         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15443         Free memory block if necessary.
15444
15445         [BZ #12847]
15446         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15447         be NULL.  Don't lock in this case.
15448
15449 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15450
15451         * elf/elf.h (ELFOSABI_GNU): New macro.
15452         (ELFOSABI_LINUX): Define to that.
15453
15454 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15455
15456         * string/strncat.c (strncat): Undef the symbol in case it has been
15457         defined in bits/string.h.
15458
15459 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15460
15461         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15462
15463         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15464         link map.
15465
15466 2011-08-17  Andreas Jaeger  <aj@suse.de>
15467
15468         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15469
15470 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15471             Ian Lance Taylor  <iant@google.com>
15472
15473         * math/libm-test.inc (lround_test): New testcase.
15474         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15475
15476 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15477
15478         * Makefile: Remove support for automatic cvs check-ins.
15479         * Makerules: Likewise.
15480         * config.make.in: Likewise.
15481         * configure.in: Likewise.
15482         * intl/Makefile: Likewise.
15483         * locale/Makefile: Likewise.
15484         * po/Makefile: Likewise.
15485         * posix/Makefile: Likewise.
15486         * sysdeps/gnu/Makefile: Likewise.
15487         * sysdeps/mach/hurd/Makefile: Likewise.
15488         * sysdeps/sparc/sparc32/Makefile: Likewise.
15489
15490         [BZ #13118]
15491         * posix/Makefile (bug-regex32-ENV): Define.
15492         Patch by John Stanley <jpsinthemix@verizon.net>.
15493
15494         * misc/Makefile (headers): Add bits/select2.h.
15495         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15496         * misc/bits/select2.h: New file.
15497         * include/bits/select2.h: New file.
15498         * debug/Makefile (routines): Add fdelt_chk.
15499         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15500         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15501         FD_ISSET.
15502         * debug/fdelt_chk.c: New file.
15503
15504         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15505         * wcsmbs/test-wmemcmp.c: Likewise.
15506         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15507         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15508
15509 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15510
15511         * string/Makefile (strop-tests): Add memcmp.
15512         * string/test-wmemcmp.c: New file.
15513         * string/test-memcmp.c: Add wmemcmp support.
15514
15515 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15516
15517         [BZ #13153]
15518         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15519         2011-07-19 change.
15520
15521         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15522         garbage value in a __mach_port_mod_refs call in the cases of the
15523         task-self and thread-self ports.
15524
15525 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15526
15527         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15528
15529 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15530
15531         * elf/dl-load.c (lose): Check for non-null L.
15532
15533 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15534
15535         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15536
15537         * elf/dl-libc.c (dlerror_run): Pass back error code from
15538         dl_catch_error.
15539
15540         [BZ #13123]
15541         * elf/dl-load.c (lose): Free l_origin if it is valid.
15542
15543         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15544         names.
15545         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15546         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15547         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15548         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15549         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15550         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15551
15552 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15553
15554         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15555         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15556         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15557         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15558         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15559         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15560         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15561         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15562         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15563         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15564
15565 2011-08-15  Alan Modra  <amodra@gmail.com>
15566
15567         [BZ #13092]
15568         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15569         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15570         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15571         ppc_mcount to static-only-routines.
15572         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15573         __mcount_internal.
15574         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15575         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15576
15577 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15578
15579         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15580         for finite and infinity parameters.
15581
15582 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15583
15584         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15585         and add nop instructions for throughput optimization.
15586         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15587
15588 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15589
15590         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15591         aligned copy for power7 with vector-scalar instructions.
15592         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15593
15594 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15595
15596         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15597         AVX check.
15598
15599 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15600
15601         [BZ #13144]
15602         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15603         last change.
15604
15605 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15606
15607         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15608         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15609         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15610         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15611         clock_gettime.
15612
15613 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15614
15615         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15616         Forgot to demangle the pointer.
15617
15618         * sysdeps/i386/sysdep.h: Define atom_text_section.
15619         * sysdeps/x86_64/sysdep.h: Likewise.
15620         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15621         section with atom_text_section.
15622         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15623         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15624         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15625         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15626         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15627
15628         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15629         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15630         already be defined.  Change to take two parameters and don't assign
15631         result to variable.  Adjust all users.
15632         Define INTERNAL_GETTIME if not already defined.
15633         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15634         call.
15635         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15636         HAVE_CLOCK_GETTIME_VSYSCALL.
15637         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15638
15639         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15640         gettimeofday vsyscall, just use time.
15641
15642 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15643
15644         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15645         <errno.h>.
15646
15647 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15648
15649         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15650         syscall on x86-64.
15651         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15652         syscall.
15653         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15654         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15655         syscall if possible.
15656
15657 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15658
15659         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15660         e_ident.  Don't pass to find_mapsXX.
15661         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15662
15663 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15664
15665         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15666         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15667         * sysdeps/x86_64/multiarch/strchr.S: Update.
15668         Check bit_slow_BSF bit.
15669         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15670         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15671         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15672
15673 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15674
15675         [BZ #13134]
15676         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15677         before glibc 2.15.
15678         (tryshell): Define.
15679         (__spawni): Change last parameter to be flag.  Test
15680         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15681         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15682         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15683         * posix/spawni.c: Likewise.
15684         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15685         * posix/spawnp.c: Likewise.  Change normal version to use
15686         SPAWN_XFLAGS_USE_PATH.
15687         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15688         SPAWN_XFLAGS_TRY_SHELL.
15689
15690         [BZ #13150]
15691         * posix/glob.h: Remove gcc 1.x support.
15692
15693         [BZ #13068]
15694         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15695
15696 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15697
15698         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15699         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15700         strrchr-sse2-bsf
15701         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15702         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15703         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15704         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15705         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15706         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15707
15708 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15709
15710         * sysdeps/x86_64/wcscmp.S: New file.
15711
15712         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15713         wcscmp-c wcscmp-sse2
15714         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15715         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15716         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15717         * wcsmbs/wcscmp.c: Allow renaming.
15718
15719 2011-09-05  David S. Miller  <davem@davemloft.net>
15720
15721         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15722         stack slot, rather than the struct return pointer slot.
15723         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15724         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15725         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15726         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15727
15728 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15729
15730         * po/ja.po: Update from translation team.
15731
15732         [BZ #13144]
15733         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15734         kernel in 64-bit binaries.
15735
15736 2011-09-01  David S. Miller  <davem@davemloft.net>
15737
15738         * elf/elf.h (HWCAP_SPARC_*): Move to..
15739         * sysdeps/sparc/sysdep.h: this new file and add new values.
15740         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15741         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15742         _DL_HWCAP_COUNT to 24.
15743         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15744         entries.
15745         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15746         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15747         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15748         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15749         instead of magic constants.
15750         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15751
15752 2011-08-31  David S. Miller  <davem@davemloft.net>
15753
15754         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15755         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15756         Reimplement to do errno handling inline.
15757         (SYSCALL_ERROR_HANDLER): New macro.
15758         (__SYSCALL_STRING): Do not do errno handling in asm.
15759         (__CLONE_SYSCALL_STRING): Delete.
15760         (__INTERNAL_SYSCALL_STRING): Delete.
15761         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15762         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15763         (PSEUDO): Reimplement to do errno handling inline.
15764         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15765         (SYSCALL_ERROR_HANDLER): New macro.
15766         (__SYSCALL_STRING): Do not do errno handling in asm.
15767         (__CLONE_SYSCALL_STRING): Delete.
15768         (__INTERNAL_SYSCALL_STRING): Delete.
15769         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15770         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15771         i386.
15772         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15773         (inline_syscall*): Add 'err' argument.
15774         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15775         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15776         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15777         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15778
15779         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15780         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15781
15782 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15783
15784         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15785
15786 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15787
15788         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15789         directive.
15790
15791 2011-08-24  David S. Miller  <davem@davemloft.net>
15792
15793         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15794
15795 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15796
15797         * elf/Makefile: Add rules to build and run unload8 test.
15798         * elf/unload8.c: New file.
15799         * elf/unload8mod1.c: New file.
15800         * elf/unload8mod1x.c: New file.
15801         * elf/unload8mod2.c: New file.
15802         * elf/unload8mod3.c: New file.
15803
15804         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15805         it wasn't used.
15806
15807 2011-08-23  David S. Miller  <davem@davemloft.net>
15808
15809         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15810         subtract stack bias.
15811         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15812         %sp not %fp in calculations.
15813         (_JMPBUF_UNWINDS_ADJ): Likewise.
15814
15815         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15816         (aio_suspend): Call it to force an exception region around the
15817         AIO_MISC_WAIT() invocation.
15818
15819 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15820
15821         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15822         backslash.
15823
15824 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15825
15826         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15827         protection macro.
15828         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15829         and <dl-machine.h>.
15830         (Elf64_FuncDesc): Remove.
15831
15832 2011-08-22  David S. Miller  <davem@davemloft.net>
15833
15834         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15835         sigaltstack check, add missing cfi directives.
15836         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15837         missing cfi directives, and sigaltstack handling.
15838
15839 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15840
15841         [BZ #11724]
15842         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15843         object is seen twice.
15844         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15845
15846         * elf/Makefile (distribute): Add tst-initorder2.c.
15847         (tests): Add tst-initorder2.
15848         (modules-names): Add tst-initorder2a tst-initorder2b
15849         tst-initorder2c tst-initorder2d.  Add rules to build them.
15850         ($(objpfx)tst-initorder2.out): New rule.
15851         * elf/tst-initorder2.c: New file.
15852         * elf/tst-initorder2.exp: New file.
15853
15854 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15855
15856         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15857
15858         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15859         dependencies back to end of function.
15860
15861         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15862         $(elfobjdir)/ld.so.
15863
15864 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15865
15866         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15867         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15868         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15869         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15870         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15871         of __vdso_gettimeofday.
15872         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15873         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15874         attribute_hidden.
15875         (_libc_vdso_platform_setup): Remove initialization of
15876         __vdso_gettimeofday and __vdso_time.
15877
15878 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15879
15880         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15881         and fgetc_unlocked.
15882         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15883         getc_unlocked.
15884
15885         * elf/dl-open.c (add_to_global): Report additions to the global scope
15886         for LD_DEBUG=scopes.
15887         (dl_open_worker): Also print scope of newly loaded dependencies.
15888         (_dl_show_scope): Indicate if there is no scope.
15889
15890         [BZ #13114]
15891         * stdio-common/Makefile (tests): Add bug24.
15892         * stdio-common/bug24.c: New file.
15893
15894 2011-08-19  Andreas Jaeger  <aj@suse.de>
15895
15896         [BZ #13114]
15897         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15898         non-existant file when using close-on-exec mode.
15899
15900 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15901
15902         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15903         the very first instruction.
15904
15905         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15906         the CFI state in the end.
15907         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15908         inclusion of dl-trampoline.h.
15909         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15910
15911 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15912
15913         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15914         expectations for long double.
15915
15916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15917         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15918
15919 2011-08-14  David S. Miller  <davem@davemloft.net>
15920
15921         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15922         artificual limit depends upon the system page size.
15923
15924 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15925
15926         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15927         * resolv/Makefile: Define CFLAGS-libresolv.
15928
15929 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15930
15931         * nss/makedb.c (compute_tables): Make variables used in nested
15932         function static.
15933
15934 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15935
15936         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15937         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15938         if buffer was too small.
15939
15940         * elf/pldd.c (main): Attach to all threads in the process.
15941         Rewrite /proc handling to use *at functions.
15942
15943 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15944
15945         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15946         specifies first scope to show.
15947         (dl_open_worker): Update callers.  Move printing scope of new
15948         object to before the relocation.
15949         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15950         * sysdeps/generic/ldsodefs.h: Update declaration.
15951
15952         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15953         string for the scope number.
15954
15955 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15956
15957         * nscd/servicescache.c (cache_addserv): Make sure written is always
15958         initialized.
15959
15960 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15961
15962         * sysdeps/i386/i486/bits/atomic.h
15963         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15964         statement expression, so as to suppress "set but not used" warning.
15965         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15966
15967         * string/strncat.c (STRNCAT): Use prototype definition.
15968
15969         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15970         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15971         -Iprograms here.
15972         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15973         (localedef-modules): Add localedef.
15974         (locale-modules): Add locale.
15975
15976         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15977         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15978         to avoid a warning.
15979
15980 2011-08-14  David S. Miller  <davem@davemloft.net>
15981
15982         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15983         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15984
15985 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15986
15987         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15988         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15989         * elf/rtld.c (dl_main): Set l_name of vDSO.
15990         Call _dl_show_scope when DL_DEBUG_SCOPES.
15991         (process_dl_debug): Recognize scopes flag and also set it for all.
15992         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15993         Declare _dl_show_scope.
15994
15995         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15996         (do_dlopen): Pass caller_dlopen to dl_open.
15997         (__libc_dlopen_mode): Initialize caller_dlopen.
15998
15999         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16000         of libc.  Make tolower call locale-independent.  Optimize a bit by
16001         using isdigit instead of isalnum.
16002         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16003
16004 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16005
16006         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16007         was a dependency or dynamically loaded.
16008
16009 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16010
16011         * intl/l10nflist.c: Allow architecture-specific pop function.
16012         * sysdeps/x86_64/l10nflist.c: New file.
16013
16014         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16015         classification.
16016
16017 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16018
16019         * include/dirent.h: Add libc_hidden_proto for scandirat and
16020         scandirat64.  Don't declare __scandirat64.
16021         * dirent/scandirat.c: Add libc_hidden_def.
16022         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16023         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16024
16025 2011-08-10  David S. Miller  <davem@davemloft.net>
16026
16027         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16028         enum.
16029         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16030         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16031         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16032
16033 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16034
16035         * Versions.def [libc]: Add GLIBC_2.15.
16036         * dirent/Makefile (routines): Add scandirat and scandirat64.
16037         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16038         GLIBC_2.15.
16039         * dirent/dirent.h: Declare scandirat and scandirat64.
16040         * dirent/scandirat.c: New file.
16041         * dirent/scandirat64.c: New file.
16042         * sysdeps/wordsize-64/scandirat.c: New file.
16043         * sysdeps/wordsize-64/scandirat64.c: New file.
16044         * dirent/opendir.c: Define opendirat.
16045         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16046         using scandirat.
16047         * dirent/scandir64.c: Adjust for scandir.c change.
16048         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16049         __scandirat64, and __scandir_cancel_handler.
16050         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16051         additional parameter and use openat instead of open (outside of ld.so).
16052         Add new __opendir as wrapper around __opendirat.
16053         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16054         here without requiring old scandirat implementation.
16055
16056 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16057
16058         * dirent/scandir.c (cancel_handler): Renamed to
16059         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16060         defined.  Adjust users.
16061         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16062         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16063
16064 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16065
16066         * string/test-string.h (IMPL): Use __STRING to expand name and then
16067         stringify it.
16068
16069         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16070         of cleanups.
16071
16072 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16073
16074         * string/Makefile: Update.
16075         (strop-tests): Append strncat.
16076         * string/test-wcscmp.c: New file.
16077         New comprehensive test for wcscmp.
16078         * string/test-strcmp.c: Update.
16079         (WIDE): New define.
16080
16081 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16082
16083         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16084         line.
16085
16086 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16087
16088         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16089         encoding to ACE if AI_IDN.
16090
16091 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16092
16093         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16094         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16095
16096 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16097
16098         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16099         Fix overflow bug in strncat.
16100         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16101
16102         * string/test-strncat.c: Update.
16103         Add new tests for checking overflow bugs.
16104
16105 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16106
16107         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16108         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16109         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16110         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16111         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16112         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16113         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16114         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16115         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16116
16117         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16118         (USE_AS_STRCAT): Define.
16119         Add strcat and strncat support.
16120         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16121
16122 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16123
16124         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16125         __n bigger than INT_MAX+1.
16126         (__strncmp_g): Likewise.
16127
16128 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16129
16130         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16131         * libio/stido.h: Likewise.
16132
16133         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16134         (AF_NFC): Define.
16135         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16136         (AF_NFC): Define.
16137
16138         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16139         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16140         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16141         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16142         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16143
16144         [BZ #13021]
16145         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16146         installed.
16147
16148         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16149         typo.
16150         (_dl_x86_64_save_sse): Likewise.
16151
16152 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16153
16154         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16155         OSXSAVE.
16156         (_dl_x86_64_save_sse): Likewise.
16157
16158         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16159
16160         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16161
16162 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16163
16164         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16165         change.
16166         (_dl_x86_64_save_sse): Use correct AVX check.
16167
16168 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16169
16170         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16171         bug in strncpy/strncat.
16172         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16173
16174 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16175
16176         * string/tester.c (test_strcat): Add tests for different alignments
16177         of source and destination.
16178         (test_strncat): Likewise.
16179
16180 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16181
16182         [BZ #12852]
16183         * posix/glob.c (glob): Check passed in values before using them in
16184         expressions to avoid some overflows.
16185         (glob_in_dir): Likewise.
16186
16187         [BZ #13007]
16188         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16189         check for AVX enablement so that we don't crash with old kernels and
16190         new hardware.
16191         * elf/tst-audit4.c: Add same checks here.
16192         * elf/tst-audit6.c: Likewise.
16193
16194         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16195
16196 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16197
16198         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16199
16200 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16201
16202         * po/cs.po: Update from translation team.
16203         * po/bg.po: Likewise.
16204
16205 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16206
16207         * misc/sys/cdefs.h: Add support for const attribute.
16208         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16209         to gnu_dev_{major,minor,makedev} functions.
16210
16211 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16212
16213         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16214
16215 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16216
16217         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16218         strlen results.
16219
16220 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16221
16222         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16223         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16224         register in order to avoid conflicts with the soft frame pointer
16225         being held in r11 when necessary.
16226         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16227         (INTERNAL_VSYSCALL_NCS): Likewise.
16228
16229 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16230
16231         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16232         * elf/dl-fini.c (_dl_fini): Adjust caller.
16233         * elf/dl-close.c (_dl_close_worker): Likewise.
16234         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16235
16236 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16237
16238         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16239         "aux_cache->nlibs < 0".
16240
16241         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16242         in the reload-count case.
16243
16244 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16245
16246         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16247         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16248         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16249         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16250         * sysdeps/x86_64/multiarch/strcat.S: New file.
16251         * sysdeps/x86_64/multiarch/strncat.S: New file.
16252         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16253         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16254         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16255         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16256         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16257         (USE_AS_STRCAT): Define.
16258         Add strcat and strncat support.
16259         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16260         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16261         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16262         * string/strncat.c: Update.
16263         (USE_AS_STRNCAT): Define.
16264         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16265         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16266         and i7.
16267         * sysdeps/x86_64/multiarch/init-arch.h
16268         (bit_Prefer_PMINUB_for_stringop): New.
16269         (index_Prefer_PMINUB_for_stringop): Likewise.
16270         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16271         bit_Prefer_PMINUB_for_stringop.
16272
16273 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16274
16275         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16276         buffer64.
16277         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16278         of casting of buffer.
16279         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16280         buffer32 and buffer64.
16281         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16282         writes instead of casting of buffer.
16283         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16284         buffer32.
16285         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16286         casting of buffer.
16287
16288 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16289
16290         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16291
16292 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16293
16294         * nscd/nscd.c (termination_handler): Don't do anything for a database
16295         if it has not yet been initialized.
16296
16297 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16298
16299         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16300
16301 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16302
16303         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16304
16305 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16306
16307         * po/nl.po: Update from translation team.
16308         * po/sv.po: Likewise.
16309
16310 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16311
16312         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16313         now disallowed by GCC.
16314
16315         * configure.in (use-default-link): Default to yes if a test -shared
16316         link meets our qualifications.
16317         * configure: Regenerated.
16318
16319         * config.make.in (output-format): New variable.
16320         * configure.in: Check for ld --print-output-format support.
16321         * configure: Regenerated.
16322         * Makerules ($(common-objpfx)format.lds)
16323         [$(output-format) != unknown]: Just use $(output-format),
16324         instead of the linker-script munging.
16325
16326 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16327
16328         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16329         of $(common-objpfx)shlib.lds.
16330         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16331
16332         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16333         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16334
16335         * configure.in (-z relro check): Adjust test code to add a large
16336         writable data section after it.
16337         * configure: Regenerated.
16338
16339 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16340
16341         * configure.in (-z relro check): Fix test code to make the variable
16342         truly const.
16343         * configure: Regenerated.
16344
16345 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16346
16347         * nscd/nscd.h (struct traced_file): Define.
16348         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16349         elements.  Add traced_files.
16350         (inotify_fd): Declare.
16351         (register_traced_file): Declare.
16352         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16353         (inotify_fd): Export.
16354         (resolv_conf_descr): Remove.
16355         (nscd_init): Move inotify descriptor creation to main.
16356         Don't register files for notification here.
16357         (register_traced_file): New function.
16358         (invalidate_cache): Don't use reset_res to determine whether to call
16359         res_init, go through the list of registered files.
16360         (main_loop_poll): The inotify descriptors are now stored in the
16361         structures for the traced files.
16362         (main_loop_epoll): Likewise
16363         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16364         to __nss_disable_nscd.
16365         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16366         for a database anymore.  Check the records for all the registered
16367         files instead.
16368         * nss/Makefile (libnss_files-routines): Add files-init.
16369         (libnss_db-routines): Add db-init.
16370         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16371         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16372         * nss/nss_db/db-init.c: New file.
16373         * nss/nss_files/files-init.c: New file.
16374         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16375         __nss_lookup_function.
16376         (__nss_lookup_function): Call nss_load_library.
16377         (nss_load_all_libraries): New function.
16378         (__nss_disable_nscd): Take parameter with callback function for files
16379         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16380         used for the cached services.
16381         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16382         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16383         options for features to all the files in nscd.
16384
16385         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16386
16387 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16388
16389         * csu/elf-init.c (__libc_csu_init): Comment typo.
16390
16391 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16392
16393         * po/pl.po: Update from translation team.
16394         * po/ja.po: Likewise.
16395         * po/ru.po: Likewise.
16396         * po/ko.po: Likewise.
16397         * po/fr.po: Likewise.
16398
16399 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16400
16401         * configure.in (.ctors/.dtors header and trailer check):
16402         Use an empirical test on a built program.
16403         * configure: Regenerated.
16404
16405         * configure.in (-z relro check): Use an empirical test on a built DSO.
16406         Detect, but do not require, on ia64.
16407         * configure: Regenerated.
16408
16409         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16410         Update tests that use readelf to use $READELF instead.
16411         * configure: Regenerated.
16412
16413 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16414
16415         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16416         if the result is not used.
16417
16418 2011-07-05  Andreas Jaeger  <aj@suse.de>
16419
16420         [BZ#9696]
16421         * stdlib/tst-strtod.c: Add testcase.
16422
16423 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16424
16425         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16426         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16427         The latter has a higher limit.  Take additional parameter to pass to
16428         the new function.
16429         (__pathconf): Pass file to __statfs_link_max.
16430         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16431         __statfs_link_max.
16432         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16433         __statfs_link_max.
16434
16435         [BZ #12868]
16436         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16437         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16438         Handle Lustre.
16439         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16440         (__statfs_filesize_max): Likewise.
16441         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16442
16443 2011-07-05  Andreas Jaeger  <aj@suse.de>
16444
16445         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16446
16447 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16448
16449         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16450         `status' variable.
16451         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16452         Likewise.
16453
16454 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16455
16456         * Makefile (strop-tests): Add strncat.
16457         * string/test-strncat.c: New file.
16458
16459 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16460
16461         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16462
16463 2011-06-21  Andreas Jaeger  <aj@suse.de>
16464
16465         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16466         Copy rule from iconvdata/Makefile.
16467
16468 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16469
16470         [BZ #12922]
16471         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16472         but no long options are defined, just return 'W'.
16473
16474 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16475
16476         [BZ #9696]
16477         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16478
16479 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16480
16481         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16482         netgroups to read.
16483         (innetgr): Likewise.
16484
16485 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16486
16487         * config.make.in (install_root): Default to $(DESTDIR).
16488
16489 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16490
16491         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16492
16493 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16494
16495         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16496
16497         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16498         containing directory rather than embedding absolute directory names.
16499
16500         * scripts/check-local-headers.sh: Rewritten using awk.
16501         Match by word, not by line.  Print error messages for matches.
16502         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16503
16504         * Makerules [shlib-lds-flags empty]:
16505         ($(common-objpfx)libc_pic.opts): New target.
16506         ($(common-objpfx)libc_pic.os.clean): New target.
16507         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16508
16509         * config.make.in (OBJCOPY): New variable.
16510         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16511         * configure: Regenerated.
16512
16513         * config.make.in (use-default-link): New variable.
16514         * configure.in (use_default_link): Grok --with-default-link to set it.
16515         * configure: Regenerated.
16516         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16517         (shlib-lds, shlib-lds-flags): Define to empty.
16518
16519         * Makerules (shlib-lds): New variable.
16520         (shlib-lds-flags): New variable.
16521         (build-shlib, build-moduile, build-module-asneeded): Use it.
16522         ($(common-objpfx)libc.so): Use $(shlib-lds).
16523         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16524         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16525
16526         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16527         DT_FLAGS/DT_FLAGS_1 with zero flags.
16528
16529         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16530         linker script munging.
16531
16532 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16533
16534         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16535         as 128-bit value.
16536         * crypt/sha512.c (sha512_process_block): Perform total addition using
16537         128-bit if possible.
16538         (__sha512_finish_ctx): Likewise.
16539         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16540         as 64-bit value.
16541         * crypt/sha256.c (SWAP64): Define.
16542         (sha256_process_block): Perform total addition using 64-bit if
16543         possible.
16544         (__sha256_finish_ctx): Likewise.
16545
16546 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16547
16548         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
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         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16554
16555 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16556
16557         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16558         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16559         * nscd/hstcache.c (cache_addhst): Likewise.
16560         * nscd/grpcache.c (cache_addgr): Likewise.
16561         * nscd/aicache.c (addhstaiX): Likewise
16562
16563 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16564
16565         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16566         domain only when needed.
16567
16568 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16569
16570         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16571         is always restored.
16572
16573 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16574
16575         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16576         are re-adding the entry.
16577         * nscd/servicescache.c (cache_addserv): Likewise.
16578
16579 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16580
16581         * sysdeps/generic/dl-irel.h: fix protection against multiple
16582         inclusions.
16583         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16584
16585 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16586
16587         [BZ #12935]
16588         * malloc/memusage.sh: Fix quoting in message.
16589         * debug/xtrace.sh: Likewise.
16590
16591         * configure.in: Remove support for --experimental-malloc option, make
16592         it the default.
16593         * config.make.in: Likewise.
16594         * malloc/Makefile: Likewise.
16595
16596 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16597
16598         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16599         two-byte characters.
16600
16601 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16602
16603         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16604         AC_CACHE_CHECK invocation.
16605         * configure: Regenerated.
16606
16607         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16608
16609 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16610
16611         [BZ #12350]
16612         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16613         bit from old_res_options.
16614
16615         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16616
16617         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16618         value type for setfct.
16619
16620 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16621
16622         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16623         __gettimeofday instead of gettimeofday.
16624
16625 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16626
16627         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16628
16629 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16630
16631         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16632
16633         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16634         info.
16635
16636 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16637
16638         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16639         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16640         strcpy-sse2-unaligned strncpy-sse2-unaligned
16641         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16642         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16643         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16644         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16645         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16646         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16647         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16648         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16649         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16650         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16651         (STRCPY): Support SSE2 and SSSE3 versions.
16652
16653 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16654
16655         [BZ #12874]
16656         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16657         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16658         kernels which artificially limit size of requests.
16659
16660 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16661
16662         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16663         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16664         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16665         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16666         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16667         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16668         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16669         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16670         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16671         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16672         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16673         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16674         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16675         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16676         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16677         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16678         Enable unaligned load optimization for Intel Core i3, i5 and i7
16679         processors.
16680         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16681         Define.
16682         (index_Fast_Unaligned_Load): Define.
16683         (HAS_FAST_UNALIGNED_LOAD): Define.
16684
16685 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16686
16687         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16688
16689 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16690
16691         [BZ #12907]
16692         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16693         until it is clear that the information is realy needed.
16694         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16695
16696 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16697
16698         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16699
16700 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16701
16702         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16703         /sys/devices/system/cpu/online if it is usable.
16704
16705         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16706         reading the information from the /proc filesystem to once a second.
16707
16708 2011-06-21  Andreas Jaeger  <aj@suse.de>
16709
16710         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16711         NULL after inclusion of kernel headers.
16712
16713 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16714
16715         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16716         calls to internal_setent.
16717
16718         [BZ #12885]
16719         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16720         addresses using gethostbyname4_r ignore IPv4 addresses.
16721
16722         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16723         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16724
16725         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16726
16727 2011-06-20  David S. Miller  <davem@davemloft.net>
16728
16729         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16730         inclusions.
16731         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16732
16733         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16734         (elf_irel): Use it.
16735         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16736         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16737         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16738         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16739         * sysdeps/x86_64/dl-irel.h: Likewise.
16740
16741         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16742         * elf/dl-sym.c: Likewise.
16743
16744 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16745
16746         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16747         need to dereference resplen2.
16748
16749 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16750
16751         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16752
16753 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16754
16755         * Makeconfig: Define vardbdir and inst_vardbdir.
16756         * nss/Makefile: Add rules to install db-Makefile.
16757
16758         * nss/nss_db/db-XXX.c: Cleanup.
16759
16760         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16761         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16762         GLIBC_PRIVATE.
16763         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16764         * nss/makedb.c: Implement -g option to specify that value strings
16765         are generated and should not be added to table iterated over for
16766         get*ent calls.
16767         * nss/nss_db/db-initgroups.c: New file.
16768
16769         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16770         interface.
16771
16772         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16773         (internal_getgrouplist): Adjust to name change.
16774         Update use_initgroups_entry if this is not the first call.
16775         * nss/databases.def: Add initgroups entry.
16776
16777         * nss/makedb.c (compute_tables): Check result of multiple hash table
16778         sizes to minimize maximum chain length.
16779
16780 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16781
16782         * Versions.def: Add entry for libnss_db.
16783         * shlib-versions: Likewise.
16784         * nss/Makefile: Add rules to build libnss_db.
16785         * nss/Versions: Add libnss_db information.  Organize libnss_files
16786         entries better.
16787         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16788         makedb progra.  Some minor improvements to generate smaller files.
16789         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16790         here from...
16791         * nss/makedb.c: ...here.
16792         Improve database format to be smaller and require less memory at
16793         runtime.
16794         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16795         db anymore.
16796         * nss/nss_db/db-netgrp.c: Likewise.
16797         * nss/nss_db/db-open.c: Likewise.
16798         * nss/nss_files/flies-XXX.x: Adjust comments.
16799         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16800         * nss/nss_files/files-grp.c: Likewise.
16801         * nss/nss_files/files-hosts.c: Likewise.
16802         * nss/nss_files/files-network.c: Likewise.
16803         * nss/nss_files/files-proto.c: Likewise.
16804         * nss/nss_files/files-pwd.c: Likewise.
16805         * nss/nss_files/files-rpc.c: Likewise.
16806         * nss/nss_files/files-service.c: Likewise.
16807         * nss/nss_files/files-sgrp.c: Likewise.
16808         * nss/nss_files/files-spwd.c: Likewise.
16809         * nss/nss_db/db-alias.c: Removed.
16810         * nss/nss_db/dummy-db.h: Removed.
16811
16812 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16813
16814         * nss/makedb.c: Rewritten to not use database library.
16815         * nss/Makefile: Update to build new makedb program.
16816
16817 2011-06-14  Andreas Jaeger  <aj@suse.de>
16818
16819         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16820         memset declaration.
16821
16822 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16823
16824         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16825         tmpbuf.
16826
16827 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16828
16829         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16830         * elf/Makefile ($(objpfx)ld.so): Likewise.
16831
16832         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16833         Don't list ld.so twice in dependencies.
16834
16835         * posix/bug-regex31.c: Include <stdlib.h>.
16836
16837         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16838
16839         * nis/nss_compat/compat-spwd.c
16840         (getspent_next_nss_netgr): Remove unused variable.
16841         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16842
16843         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16844         nonmembers" output to use the right array.
16845
16846         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16847
16848         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16849
16850         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16851         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16852         * catgets/gencat.c (read_input_file): Likewise.
16853         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16854
16855         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16856         variable definition inside #if's controlling its use.
16857
16858         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16859
16860         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16861
16862         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16863
16864         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16865         unreachable code.
16866
16867         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16868
16869         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16870         * configure: Regenerated.
16871
16872         * Makerules: Revert last change.
16873         * elf/Makefile: Likewise.
16874
16875 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16876
16877         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16878         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16879         (reloc-link): Likewise.
16880
16881 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16882
16883         * elf/Makefile: Add rules to build pldd.
16884         * elf/pldd.c: New file.
16885         * elf/pldd-xx.c: New file.
16886
16887 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16888
16889         * version.h: Update for 2.15 development version.
16890
16891 2011-06-07  David S. Miller  <davem@davemloft.net>
16892
16893         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16894         ifuncs.
16895         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16896         elf_machine_lazy_rel): Likewise.
16897         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16898         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16899         elf_machine_lazy_rel): Likewise.
16900         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16901         dl_hwcap via passed in argument.
16902         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16903         Likewise.
16904
16905 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16906
16907         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16908
16909 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16910
16911         [BZ #12849]
16912         * manual/fdl-1.1.texi: New file, verbatim from:
16913         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16914         * manual/lgpl-2.1.texi: New file, verbatim from:
16915         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16916         * manual/Makefile (licenses): New variable, list those new file names.
16917         (texis): Use it.
16918         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16919
16920         * manual/fdl.texi: File removed.
16921         * manual/lesser.texi: File removed.
16922         * manual/libc.texinfo (Copying, Documentation License):
16923         Use new @include file names, put @appendix directive before @include.
16924
16925 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16926
16927         [BZ #12841]
16928         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16929         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16930         (mq_open): Add __NTH.
16931
16932 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16933
16934         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16935         Assume Intel Core i3/i5/i7 processor if AVX is available.
16936
16937 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16938
16939         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16940         typo.
16941
16942 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16943
16944         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16945         memory.  Use alloca_account.  Fix memory leak when retrying.
16946
16947 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16948
16949         * version.h (RELEASE): Bump for 2.14 release.
16950         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16951
16952         * config.make.in (RANLIB): Remove entry.
16953
16954 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16955
16956         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16957         (libc.pot): Work around missing support for .ksh extension in xgettext.
16958
16959         [BZ #12684]
16960         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16961         if both request failed.
16962         (send_dg): In case of server errors clear resplen or *resplen2.
16963
16964         [BZ #12454]
16965         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16966         when there are multiple maps.
16967         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16968         (_dl_fini): Remove test here.
16969
16970         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16971
16972 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16973
16974         [BZ #12350]
16975         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16976         bit from old_res_options.
16977         (gaih_inet): Likewise.
16978
16979         [BZ #11099]
16980         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16981         as signed.
16982
16983         * resolv/res_init.c (res_setoptions): Make the code more compact.
16984
16985         [BZ #11558]
16986         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16987         set RES_USEVC.
16988
16989         [BZ #11634]
16990         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16991
16992         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16993
16994         [BZ #11781]
16995         * malloc/malloc.h: Declare malloc hook variables as volatile.
16996
16997         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16998         in last patch.
16999
17000         [BZ #11799]
17001         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17002         raise in the comment.
17003         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17004         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17005         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17006
17007 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17008
17009         [BZ #12811]
17010         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17011         grow the buffers more if it already has to be sufficient.
17012         (build_wcs_upper_buffer): Likewise.
17013         * posix/regexec.c (check_matching): Likewise.
17014         (clean_state_log_if_needed): Likewise.
17015         (extend_buffers): Don't enlarge buffers beyond size of the input
17016         buffer.
17017         Patches mostly by Emil Wojak <emil@wojak.eu>.
17018         * posix/bug-regex32.c: New file.
17019         * posix/Makefile (tests): Add bug-regex32.
17020
17021         * locale/findlocale.c (_nl_find_locale): Return right away if
17022         _nl_explode_name failed.
17023         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17024
17025         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17026
17027         * debug/xtrace.sh: Unify messages.
17028         * malloc/memusage.sh: Likewise.
17029
17030         [BZ #12813]
17031         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17032         time symbol from vDSO.  Substitute with vsyscall if not available.
17033         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17034         __vdso_time.
17035
17036         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17037         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17038         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17039         Add sendmmsg and internal_sendmmsg.
17040         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17041         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17042         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17043
17044         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17045         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17046         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17047
17048 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17049
17050         [BZ #12813]
17051         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17052         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17053         available.
17054         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17055         __vdso_getcpu.
17056
17057         [BZ #12814]
17058         * iconvdata/Makefile (tests): Add bug-iconv9.
17059         * iconvdata/bug-iconv9.c: New file.
17060
17061 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17062
17063         [BZ #12814]
17064         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17065
17066 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17067
17068         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17069         (struct user_regs_struct): Change intcs field back to cs.
17070
17071 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17072
17073         * po/ja.po: Update from translation team.
17074
17075 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17076
17077         [BZ #12795]
17078         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17079         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17080
17081 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17082
17083         * stdlib/longlong.h: Update from GCC.
17084
17085 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17086
17087         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17088         parameter name.
17089         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17090         Add parameter name.
17091         (__sysconf): Pass it down.
17092
17093 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17094
17095         [BZ #12671]
17096         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17097         some situations.
17098         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17099         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17100         add in in __libc_use_alloca calls.  Adjust callers.
17101         (glob): Use malloc in some situations.
17102
17103         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17104         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17105         pltexit.
17106
17107 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17108
17109         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17110         and CLOCK_BOOTTIME_ALARM.
17111
17112         [BZ #12782]
17113         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17114         is returned.
17115
17116         * string/_strerror.c (__strerror_r): Print negative errors as signed
17117         numbers.
17118
17119         [BZ #12777]
17120         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17121         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17122         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17123
17124         * configure.in: Fix typo in redirection and correct removal of test
17125         files in two cases.
17126
17127         [BZ #12788]
17128         * locale/setlocale.c (new_composite_name): Fix test to check for
17129         identical name of all categories.
17130
17131         [BZ #12792]
17132         * libio/filedoalloc.c (local_isatty): New function.
17133         (_IO_file_doallocate): Use local_isatty.
17134         * stdio-common/perror.c (perror): In case a new stream is used
17135         forward the stream error.
17136         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17137         error flag.
17138
17139 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17140
17141         [BZ #11869]
17142         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17143         alloca.
17144         * include/alloca.h (extend_alloca_account): Define.
17145
17146         [BZ #11857]
17147         * posix/regex.h: Fix comments with documentation of user-accessible
17148         fields after compilation and describe correct free'ing of pattern
17149         after re_compile_pattern.
17150         Patch by Reuben Thomas <rrt@sc3d.org>.
17151
17152 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17153
17154         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17155         and -mno-altivec to prevent the compiler from using Altivec and/or
17156         VSX instructions when the corresponding registers are not available.
17157
17158 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17159
17160         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17161
17162 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17163
17164         * libio/freopen.c (freopen): Use __dup2, not dup2.
17165         * libio/freopen64.c (freopen64): Likewise.
17166
17167 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17168
17169         [BZ #12775]
17170         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17171         * math/Makefile (tests): Add test-powl.
17172         (CFLAGS-test-powl.c): Define.
17173         * math/test-powl.c: New file.
17174
17175 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17176
17177         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17178
17179 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17180
17181         [BZ #11837]
17182         * iconvdata/gb18030.c: Update to GB18020-2005.
17183
17184 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17185
17186         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17187         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17188         Patch by Aharon Robbins <arnold@skeeve.com>.
17189
17190         [BZ #11892]
17191         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17192         on the stack.
17193
17194         [BZ #11895]
17195         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17196         through underflows.
17197
17198         [BZ #12766]
17199         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17200         point to strings before performing equality test for error_one_per_line
17201         mode.
17202
17203         [BZ #11697]
17204         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17205
17206         [BZ #11820]
17207         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17208         (struct user_fpregs_struct): Avoid __uint*_t types.
17209
17210         [BZ #6420]
17211         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17212         symbol info.  Use it instead of calling _dl_addr locally.
17213         (lock_and_info): New function.
17214         (tr_freehook): Call lock_and_info and pass symbol info as additional
17215         parameter to tr_where.
17216         (tr_mallochook): Likewise.
17217         (tr_reallochook): Likewise.
17218         (tr_memalignhook): Likewise.
17219
17220         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17221         used and couldn't be at all thread-safe.
17222
17223 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17224
17225         * libio/freopen.c (freopen): Don't close old file descriptor
17226         before the new one is opened.  Instead dup the new file descriptor
17227         to the old one after the new stream is created.
17228         * libio/freopen64.c (freopen64): Likewise.
17229         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17230         * libio/fileops.c (_IO_new_file_close_it): Handle new
17231         _IO_FLAGS2_NOCLOSE flag.
17232         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17233         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17234         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17235         _IO_FLAGS2_NOCLOSE flag.
17236         * include/unistd.h: Add hidden_proto for dup3.
17237         Define __have_dup3.
17238         * io/dup3.c: Define hidden symbol.
17239         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17240
17241         [BZ #7101]
17242         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17243         when an incomplete long option is used.
17244         * posix/tst-getopt_long1.c: New file.
17245         * posix/Makefile (tests): Add tst-getopt_long1.
17246
17247         [BZ #10138]
17248         * scripts/config.guess: Update from autoconf-2.68.
17249         * scripts/config.sub: Likewise.
17250
17251         [BZ #10157]
17252         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17253         tests into ...
17254         (has_cpuclock): ...this.  New function.
17255         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17256         macro here based on has_cpuclock code.
17257
17258         [BZ #10149]
17259         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17260         First byte (not low byte) is now always NUL.
17261         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17262
17263         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17264         Use non-cancelable interfaces.
17265
17266         [BZ #9809]
17267         * locale/iso-639.def: Add entry for Sorani.
17268
17269         [BZ #11901]
17270         * include/stdlib.h: Move include protection to the right place.
17271         Define abort_msg_s.  Declare __abort_msg with it.
17272         * stdlib/abort.c (__abort_msg): Adjust type.
17273         * assert/assert.c (__assert_fail_base): New function.  Majority
17274         of code from __assert_fail.  Allocate memory for __abort_msg with
17275         mmap.
17276         (__assert_fail): Now call __assert_fail_base.
17277         * assert/assert-perr.c: Remove bulk of implementation.  Use
17278         __assert_fail_base.
17279         * include/assert.hL Declare __assert_fail_base.
17280         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17281         mmap.
17282         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17283
17284 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17285
17286         [BZ #11952]
17287         [BZ #12453]
17288         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17289         until all modules are registered in the DTV.
17290         * elf/Makefile: Add rules to build and run tst-tls19.
17291         * elf/tst-tls19.c: New file.
17292         * elf/tst-tls19mod1.c: New file.
17293         * elf/tst-tls19mod2.c: New file.
17294         * elf/tst-tls19mod3.c: New file.
17295         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17296
17297         [BZ #12083]
17298         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17299         correctly.
17300
17301         [BZ #12601]
17302         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17303         two-byte sequence errors.
17304         * iconvdata/Makefile (tests): Add bug-iconv8.
17305         * iconvdata/bug-iconv8.c: New file.
17306
17307         [BZ #12626]
17308         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17309         buf2 definition.
17310
17311         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17312
17313         [BZ #12432]
17314         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17315         (dummy_getcfa): New function.
17316         (init): Get _Unwind_GetCFA address, use dummy if not found.
17317         (backtrace_helper): In recursion check, also check whether CFA changes.
17318         (__backtrace): Completely initialize arg.
17319
17320         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17321         storing incomplete byte sequence in state object.  Avoid testing for
17322         guaranteed too small input if we know there is enough data available.
17323
17324 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17325
17326         * Makeconfig (+link-pie): Indent.
17327         * Rules (binaries-pie): Define if $(have-fpie) and
17328         $(build-shared).
17329         (binaries-shared): Also filter out $(binaries-pie).
17330         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17331         * nscd/Makefile (others-pie): Add nscd.
17332         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17333         ($(objpfx)nscd): Remove command override.
17334         * login/Makefile (others-pie): Add pt_chown.
17335         ($(objpfx)pt_chown): Remove command override.
17336         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17337         remove command overrides.
17338
17339 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17340
17341         * libio/tst_putwc.c: Fix error messages.
17342
17343         [BZ #12724]
17344         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17345         currently writing and seek to current position when not.
17346         * libio/Makefile (tests): Add bug-fclose1.
17347         * libio/bug-fclose1.c: New file.
17348
17349 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17350
17351         [BZ #12511]
17352         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17353         don't set DF_1_NODELETE here.
17354         (do_lookup_x): When entering new entry test for copy relocation
17355         and if necessary set DF_1_NODELETE flag.
17356         * elf/tst-unique4.cc: New file.
17357         * elf/tst-unique4.h: New file.
17358         * elf/tst-unique4lib.cc: New file.
17359         * elf/Makefile: Add rules to build and run tst-unique4.
17360         Patch by Piotr Bury <pbury@goahead.com>.
17361
17362 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17363
17364         [BZ #12052]
17365         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17366
17367         [BZ #12625]
17368         * misc/mntent_r.c (addmntent): Flush the stream after the output
17369
17370         [BZ #12393]
17371         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17372         (is_trusted_path_normalize): Skip initial colon.  Append slash
17373         to empty buffer.  Duplicate is_trusted_path code but allow
17374         constructed patch to be prefix.
17375         (is_dst): Allow $ORIGIN followed by /.
17376         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17377         Correct testing of result of is_trusted_path_normalize
17378         (decompose_rpath): Fix warning.
17379
17380 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17381
17382         [BZ #11257]
17383         * grp/initgroups.c (internal_getgrouplist): When we found the service
17384         list through the initgroups entry in nsswitch.conf do not always
17385         continue on a successful lookup.  Don't always use the
17386         __nss_group_database value if it is set.
17387         * nss/nsswitch.conf (initgroups): Change action for successful db
17388         lookup to continue for compatibility.
17389
17390 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17391
17392         [BZ #11532]
17393         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17394         and CP774 modules.
17395         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17396         and CP774 modules.
17397         * iconvdata/tst-tables.sh: Likewise.
17398         * iconvdata/cp770.c: New file.
17399         * iconvdata/cp771.c: New file.
17400         * iconvdata/cp772.c: New file.
17401         * iconvdata/cp773.c: New file.
17402         * iconvdata/cp774.c: New file.
17403         * iconvdata/testdata/CP770: New file.
17404         * iconvdata/testdata/CP770..UTF8: New file.
17405         * iconvdata/testdata/CP771: New file.
17406         * iconvdata/testdata/CP771..UTF8: New file.
17407         * iconvdata/testdata/CP772: New file.
17408         * iconvdata/testdata/CP772..UTF8: New file.
17409         * iconvdata/testdata/CP773: New file.
17410         * iconvdata/testdata/CP773..UTF8: New file.
17411         * iconvdata/testdata/CP774: New file.
17412         * iconvdata/testdata/CP774..UTF8: New file.
17413
17414         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17415         END CHARMAP line.
17416         * iconvdata/gen-8bit-gap.sh: Likewise.
17417         * iconvdata/gen-8bit.sh: Likewise.
17418
17419         * locale/iso-639.def: Add ary entry.
17420
17421         [BZ #11258]
17422         * locale/C-translit.h.in: Add U20A1 transliteration.
17423
17424         [BZ #12178]
17425         * locale/iso-639.def: Add wae entry.
17426         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17427
17428         [BZ #12545]
17429         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17430         for n.
17431
17432         [BZ #12711]
17433         * locale/C-translit.h.in: Add entry for U20B9.
17434         Patch by pravin.d.s@gmail.com.
17435
17436 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17437
17438         [BZ #12713]
17439         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17440         ENAMETOOLONG use generic getcwd.
17441         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17442         in rtld.  Use *stat64.
17443         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17444         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17445         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17446         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17447         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17448         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17449         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17450         __fstatat64 macros.
17451         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17452         * dirent/rewinddir.c: Add libc_hidden_def.
17453         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17454         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17455
17456         * include/dirent.h (__alloc_dir): Add flags parameter.
17457         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17458         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17459         __alloc_dir.
17460         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17461         from fdopendir if O_CLOEXEC is already set.
17462
17463 2011-03-15  Alan Modra  <amodra@gmail.com>
17464
17465         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17466         l_tls_firstbyte_offset non-zero.  Save padding offset in
17467         l_tls_firstbyte_offset for later use.
17468         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17469         freeing static tls block.
17470
17471 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17472
17473         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17474         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17475         being defined by the kernel headers.
17476
17477 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17478
17479         [BZ #12734]
17480         * resolv/resolv.h: Define RES_NOTLDQUERY.
17481         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17482         no-tld-query and set RES_NOTLDQUERY.
17483         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17484         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17485         modern BIND to search name as TLD unless forbidden.
17486
17487 2011-05-07  Petr Baudis  <pasky@suse.cz>
17488             Ulrich Drepper  <drepper@gmail.com>
17489
17490         [BZ #12393]
17491         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17492         (is_trusted_path): ...to here.
17493         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17494         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17495         using is_trusted_path_normalize() in setuid scripts.
17496
17497 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17498
17499         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17500         __BEGIN/__END_DECLS.
17501
17502 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17503
17504         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17505         NSS_STATUS_NOTFOUND if no record was found.
17506
17507 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17508
17509         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17510         (headers-not-in-tirpc): Remove rpc/netdb.h
17511         * resolv/netdb.h: Revert last change.
17512
17513 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17514
17515         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17516         circular dependency between libgcc.a and libc.a.
17517
17518 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17519
17520         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17521         * nis/Makefile: Don't install rpcsvc/*.
17522         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17523         instead of <rpc/types.h>.
17524         (MAXHOSTNAMELEN): Define.
17525
17526 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17527
17528         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17529
17530 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17531
17532         [BZ #12714]
17533         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17534         gethostbyname4_r when IPv6 results are possible.
17535
17536 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17537
17538         [BZ #12723]
17539         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17540         _PC_PIPE_BUF handling.
17541
17542 2011-04-30  Bruno Haible  <bruno@clisp.org>
17543
17544         [BZ #12717]
17545         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17546         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17547         to 'int'.
17548         * inet/getnameinfo.c (getnameinfo): Likewise.
17549
17550 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17551
17552         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17553         to groups setting in database lookup.
17554         * nss/nsswitch.conf: Add initgroups entry.
17555
17556 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17557
17558         [BZ #12685]
17559         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17560         mode string.
17561         Patch by Eric Blake <eblake@redhat.com>.
17562
17563 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17564
17565         * sunrpc/Makefile (need-export-routines): Add svc_run.
17566         (routines): Remove svc_run.
17567         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17568         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17569         * sunrpc/svc_run.c (svc_run): Likewise.
17570         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17571
17572 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17573
17574         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17575         problem in reallocation in last patch.
17576
17577 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17578
17579         * sunrpc/Makefile: Move inclusion of Rules.
17580
17581 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17582
17583         * nss/nss_files/files-initgroups.c: New file.
17584         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17585         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17586         _nss_files_initgroups_dyn.
17587
17588 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17589
17590         * elf/elf.h (R_ARM_IRELATIVE): Define.
17591
17592 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17593
17594         * po/ru.po: Update from translation team.
17595
17596 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17597
17598         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17599         dependencies.
17600
17601 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17602
17603         [BZ #12653]
17604         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17605         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17606         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17607         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17608         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17609
17610 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17611
17612         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17613         differing bytes.
17614         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17615         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17616         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17617
17618 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17619
17620         [BZ #12420]
17621         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17622         storing it.
17623         * stdlib/bug-getcontext.c: New file.
17624         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17625
17626 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17627
17628         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17629         instructions into .machine "z9-109".
17630         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17631         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17632
17633 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17634
17635         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17636         between environment variables and auxiliary vector.
17637
17638 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17639
17640         * Makefile: Add rules to build linkobj/libc.so.
17641         * include/libc-symbols.h: Define libc_hidden_nolink.
17642         * include/rpc/auth.h: Mark functions which are to be hidden.
17643         * include/rpc/auth_des.h: Likewise.
17644         * include/rpc/auth_unix.h: Likewise.
17645         * include/rpc/clnt.h: Likewise.
17646         * include/rpc/des_crypt.h: Likewise.
17647         * include/rpc/key_prot.h: Likewise.
17648         * include/rpc/pmap_clnt.h: Likewise.
17649         * include/rpc/pmap_prot.h: Likewise.
17650         * include/rpc/pmap_rmt.h: Likewise.
17651         * include/rpc/rpc_msg.h: Likewise.
17652         * include/rpc/svc.h: Likewise.
17653         * include/rpc/svc_auth.h: Likewise.
17654         * include/rpc/xdr.h: Likewise.
17655         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17656         * nss/Makefile: Likewise.
17657         * sunrpc/Makefile: Don't install headers.  Build library with normal
17658         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17659         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17660         for the compat linking library.  Remove use of INTDEF/INTUSE.
17661         * sunrpc/auth_none.c: Likewise.
17662         * sunrpc/auth_unix.c: Likewise.
17663         * sunrpc/authdes_prot.c: Likewise.
17664         * sunrpc/authuxprot.c: Likewise.
17665         * sunrpc/clnt_gen.c: Likewise.
17666         * sunrpc/clnt_perr.c: Likewise.
17667         * sunrpc/clnt_raw.c: Likewise.
17668         * sunrpc/clnt_simp.c: Likewise.
17669         * sunrpc/clnt_tcp.c: Likewise.
17670         * sunrpc/clnt_udp.c: Likewise.
17671         * sunrpc/clnt_unix.c: Likewise.
17672         * sunrpc/des_crypt.c: Likewise.
17673         * sunrpc/des_soft.c: Likewise.
17674         * sunrpc/get_myaddr.c: Likewise.
17675         * sunrpc/key_call.c: Likewise.
17676         * sunrpc/key_prot.c: Likewise.
17677         * sunrpc/netname.c: Likewise.
17678         * sunrpc/pm_getmaps.c: Likewise.
17679         * sunrpc/pm_getport.c: Likewise.
17680         * sunrpc/pmap_clnt.c: Likewise.
17681         * sunrpc/pmap_prot.c: Likewise.
17682         * sunrpc/pmap_prot2.c: Likewise.
17683         * sunrpc/pmap_rmt.c: Likewise.
17684         * sunrpc/publickey.c: Likewise.
17685         * sunrpc/rpc_cmsg.c: Likewise.
17686         * sunrpc/rpc_common.c: Likewise.
17687         * sunrpc/rpc_dtable.c: Likewise.
17688         * sunrpc/rpc_prot.c: Likewise.
17689         * sunrpc/rpc_thread.c: Likewise.
17690         * sunrpc/rtime.c: Likewise.
17691         * sunrpc/svc.c: Likewise.
17692         * sunrpc/svc_auth.c: Likewise.
17693         * sunrpc/svc_authux.c: Likewise.
17694         * sunrpc/svc_raw.c: Likewise.
17695         * sunrpc/svc_run.c: Likewise.
17696         * sunrpc/svc_simple.c: Likewise.
17697         * sunrpc/svc_tcp.c: Likewise.
17698         * sunrpc/svc_udp.c: Likewise.
17699         * sunrpc/svc_unix.c: Likewise.
17700         * sunrpc/svcauth_des.c: Likewise.
17701         * sunrpc/xcrypt.c: Likewise.
17702         * sunrpc/xdr.c: Likewise.
17703         * sunrpc/xdr_array.c: Likewise.
17704         * sunrpc/xdr_float.c: Likewise.
17705         * sunrpc/xdr_intXX_t.c: Likewise.
17706         * sunrpc/xdr_mem.c: Likewise.
17707         * sunrpc/xdr_rec.c: Likewise.
17708         * sunrpc/xdr_ref.c: Likewise.
17709         * sunrpc/xdr_sizeof.c: Likewise.
17710         * sunrpc/xdr_stdio.c: Likewise.
17711
17712 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17713
17714         [BZ #12650]
17715         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17716         * sysdeps/ia64/dl-tls.h: Likewise.
17717         * sysdeps/powerpc/dl-tls.h: Likewise.
17718         * sysdeps/s390/dl-tls.h: Likewise.
17719         * sysdeps/sh/dl-tls.h: Likewise.
17720         * sysdeps/sparc/dl-tls.h: Likewise.
17721         * sysdeps/x86_64/dl-tls.h: Likewise.
17722         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17723
17724 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17725
17726         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17727         rpath element also skip the following colon.
17728         (expand_dynamic_string_token): Add is_path parameter and pass
17729         down to DL_DST_REQUIRED and _dl_dst_substitute.
17730         (decompose_rpath): Call expand_dynamic_string_token with
17731         non-zero is_path.  Ignore empty rpaths.
17732         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17733         with zero is_path.
17734
17735 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17736
17737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17738         Make cancelable.
17739
17740 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17741
17742         [BZ #12655]
17743         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17744         Patch by Filipe David Manana <fdmanana@apache.org>.
17745
17746 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17747
17748         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17749         Maintain aligned stack.
17750         (CHECK_RSP): Remove unused macro.
17751
17752 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17753
17754         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17755         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17756
17757 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17758
17759         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17760
17761         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17762
17763 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17764
17765         [BZ #12518]
17766         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17767         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17768         * sysdeps/x86_64/memmove.c: New file.
17769         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17770         (memcpy): Renamed to ...
17771         (__new_memcpy): This.
17772         (memcpy): Provide GLIBC_2_14 memcpy.
17773         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17774         (memcpy): Provide GLIBC_2_2_5 memcpy.
17775
17776 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17777
17778         [BZ #12631]
17779         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17780
17781 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17782
17783         * misc/syncfs.c: New file.
17784         * misc/Makefile (routines): Add syncfs.
17785         * posix/unistd.h: Declare syncfs.
17786         * sysdeps/unix/syscalls.list: Add syncfs.
17787
17788 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17789
17790         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17791         open_by_handle_at.
17792         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17793         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17794         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17795         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17796         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17797         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17798         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17799
17800 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17801
17802         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17803         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17804         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17805         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17806         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17807         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17808         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17809
17810         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17811         sync_file_range.c with -fexceptions.
17812         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17813         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17814         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17815         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17816         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17817         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17818         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17819         sync_file_range as cancellation point
17820         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17821         now a wrapper around __call_sync_file_range with cancellation handling.
17822         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17823         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17824         function name to __call_sync_file_range.
17825         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17826         Add call_sync_file_range.
17827
17828 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17829
17830         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17831         bits/timex.h.
17832
17833 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17834
17835         * iconv/iconv.h: Fix typo in comment.
17836         * io/fcntl.h: Likewise.
17837         * libio/stdio.h: Likewise.
17838         * posix/spawn.h: Likewise.
17839         * posix/unistd.h: Likewise.
17840         * stdlib/stdlib.h: Likewise.
17841         * time/time.h: Likewise.
17842         * wcsmbs/wchar.h: Likewise.
17843
17844         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17845         open_by_handle): Add.
17846         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17847         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17848         Augment a few comments.
17849         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17850         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17851         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17852         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17853         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17854         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17855         open_by_handle.
17856
17857         * io/fcntl.h (AT_EMPTY_PATH): Define.
17858
17859 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17860
17861         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17862         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17863         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17864         to...
17865         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17866         * Versions.def: Add GLIBC_2.14.
17867         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17868         Export.
17869
17870 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17871
17872         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17873         round counter.
17874         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17875
17876 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17877
17878         [BZ #12597]
17879         * string/test-strncmp.c (do_page_test): New function.
17880         (check2): Likewise.
17881         (test_main): Call check2.
17882         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17883
17884 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17885
17886         [BZ #12587]
17887         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17888         Handle cache information in CPU leaf 4.
17889         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17890
17891 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17892
17893         [BZ #12583]
17894         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17895         character representation.
17896         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17897
17898 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17899
17900         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17901         END(__isnan) to END(__isnanf) to match function entry point/label
17902         EALIGN(__isnanf,...).
17903
17904 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17905
17906         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17907
17908 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17909
17910         [BZ #12510]
17911         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17912         copy from the symbol referenced in the relocation to initialize the
17913         used variable.
17914         Patch by Piotr Bury <pbury@goahead.com>.
17915         * elf/Makefile: Add rules to build and tst-unique3.
17916         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17917         * elf/tst-unique3.cc: New file.
17918         * elf/tst-unique3.h: New file.
17919         * elf/tst-unique3lib.cc: New file.
17920         * elf/tst-unique3lib2.cc: New file.
17921
17922         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17923
17924 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17925
17926         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17927         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17928         to _start.
17929
17930 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17931
17932         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17933         to-be-loaded object along a path to loader is ld.so.
17934
17935 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17936             Ulrich Drepper  <drepper@gmail.com>
17937
17938         * sysdeps/x86_64/memset.S: After aligning destination, code
17939         branches to different locations depending on the value of
17940         misalignment, when multiarch is enabled. Fix this.
17941
17942 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17943
17944         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17945         Set _x86_64_preferred_memory_instruction for AMD processsors.
17946         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17947         Set bit_Prefer_SSE_for_memop for AMD processors.
17948
17949 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17950
17951         * libio/fmemopen.c (fmemopen): Optimize a bit.
17952
17953 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17954
17955         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17956
17957 2011-03-03  Roland McGrath  <roland@redhat.com>
17958
17959         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17960
17961 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17962
17963         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17964         __bzero_ultra1 instead of __memset_ultra1.
17965
17966 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17967             Ulrich Drepper  <drepper@gmail.com>
17968
17969         [BZ #12509]
17970         * include/link.h (struct link_map): Add l_orig_initfini.
17971         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17972         returning unsuccessfully.
17973         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17974         close of a file loaded at startup, restore the original l_initfini
17975         list.
17976         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17977         list, store the pointer.
17978         * elf/Makefile ($(objpfx)noload-mem): New rule.
17979         (noload-ENV): Define.
17980         (tests): Add $(objpfx)noload-mem.
17981         * elf/noload.c: Include <memcheck.h>.
17982         (main): Call mtrace.  Close all opened handles.
17983
17984 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17985
17986         [BZ #12454]
17987         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17988         dependencies are missing.
17989
17990 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17991
17992         Fix __if_freereq crash: Unlike the generic version which uses free,
17993         Hurd needs munmap.
17994         * sysdeps/mach/hurd/ifreq.h: New file.
17995
17996 2011-01-27  Petr Baudis  <pasky@suse.cz>
17997             Ulrich Drepper  <drepper@gmail.com>
17998
17999         [BZ 12445]#
18000         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18001         to extend_alloca().
18002         * stdio-common/bug23.c: New file.
18003         * stdio-common/Makefile (tests): Add bug23.
18004
18005 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18006             Ulrich Drepper  <drepper@gmail.com>
18007
18008         [BZ #12489]
18009         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18010         before performing relro protection.  At old place add assertion
18011         to make sure nothing changed.
18012
18013 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18014             Glauber de Oliveira Costa  <glommer@gmail.com>
18015
18016         * elf/elf.h: Add new ARM TLS relocs.
18017
18018 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18019
18020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18021         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18022         cast from r3.
18023         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18024         'tests' variable.
18025         * sysdeps/wordsize-64/tst-writev.c: New file.
18026
18027 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18028
18029         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18030         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18031         insns in _dl_start to prevent a TOC reference before relocs are
18032         resolved.
18033
18034 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18035
18036         [BZ #12469]
18037         * Makeconfig: Remove RANLIB definition.
18038         * Makerules: Don't use RANLIB.
18039         * aclocal.m4: Remove ranlib test.
18040         * configure.in: No need to check for ranlib.
18041         * elf/rtld-Rules: Don't use RANLIB.
18042
18043 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18044
18045         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18046         protection macro.
18047         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18048         inclusion protection macro.
18049
18050         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18051         SIGRTMIN and SIGRTMAX and print information in that case only when
18052         SIGRTMIN is defined.
18053
18054 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18055
18056         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18057         arginfo fn returning -1.
18058
18059         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18060         and thousands string is zero terminated.
18061
18062 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18063
18064         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18065         sysdeps/unix/sysv/linux/bits/socket.h.
18066
18067 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18068
18069         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18070         (__CPU_COUNT): Remove old macros.
18071         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18072         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18073         (__CPU_ALLOC, __CPU_FREE): Add macros.
18074         (__sched_cpualloc, __sched_cpufree): Add declarations.
18075
18076 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18077
18078         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18079         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18080         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18081         (readdhstai): Return value of addhstaiX call.
18082         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18083         (addgrbyX): Return value returned by cache_addgr.
18084         (readdgrbyname): Return value returned by addgrbyX.
18085         (readdgrbygid): Likewise.
18086         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18087         (addpwbyX): Return value returned by cache_addpw.
18088         (readdpwbyname): Return value returned by addhstbyX.
18089         (readdpwbyuid): Likewise.
18090         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18091         (addservbyX): Return value returned by cache_addserv.
18092         (readdservbyname): Return value returned by addservbyX:
18093         (readdservbyport): Likewise.
18094         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18095         (addhstbyX): Return value returned by cache_addhst.
18096         (readdhstbyname): Return value returned by addhstbyX.
18097         (readdhstbyaddr): Likewise.
18098         (readdhstbynamev6): Likewise.
18099         (readdhstbyaddrv6): Likewise.
18100         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18101         (readdinitgroups): Return value returned by addinitgroupsX.
18102         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18103         (prune_cache): Keep track of timeout value of re-added entries.
18104         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18105         * nscd/nscd.h: Adjust prototypes of readd* functions.
18106
18107 2011-02-04  Roland McGrath  <roland@redhat.com>
18108
18109         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18110         (nis_stats): Likewise.
18111         * nis/nis_modify.c (nis_modify): Likewise.
18112         * nis/nis_remove.c (nis_remove): Likewise.
18113         * nis/nis_add.c (nis_add): Likewise.
18114
18115         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18116
18117         * posix/fnmatch_loop.c: Add some consts.
18118
18119         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18120
18121 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18122
18123         [BZ #12460]
18124         * config.make.in (config-cflags-novzeroupper): Define.
18125         * configure.in: Substitute libc_cv_cc_novzeroupper.
18126         * elf/Makefile (AVX-CFLAGS): Define.
18127         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18128         (CFLAGS-tst-auditmod4a.c): Likewise.
18129         (CFLAGS-tst-auditmod4b.c): Likewise.
18130         (CFLAGS-tst-auditmod6b.c): Likewise.
18131         (CFLAGS-tst-auditmod6c.c): Likewise.
18132         (CFLAGS-tst-auditmod7b.c): Likewise.
18133         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18134
18135 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18136
18137         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18138         function to the callback.
18139         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18140
18141 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18142
18143         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18144         of errno.
18145
18146 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18147
18148         [BZ #11724]
18149         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18150         of constructors.
18151         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18152         of destructors.
18153         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18154
18155         [BZ #11724]
18156         * elf/Makefile: Add rules to build and run new test.
18157         * elf/tst-initorder.c: New file.
18158         * elf/tst-initorder.exp: New file.
18159         * elf/tst-initordera1.c: New file.
18160         * elf/tst-initordera2.c: New file.
18161         * elf/tst-initordera3.c: New file.
18162         * elf/tst-initordera4.c: New file.
18163         * elf/tst-initorderb1.c: New file.
18164         * elf/tst-initorderb2.c: New file.
18165         * elf/tst-order-a1.c: New file.
18166         * elf/tst-order-a2.c: New file.
18167         * elf/tst-order-a3.c: New file.
18168         * elf/tst-order-a4.c: New file.
18169         * elf/tst-order-b1.c: New file.
18170         * elf/tst-order-b2.c: New file.
18171         * elf/tst-order-main.c: New file.
18172         New test case by George Gensure <werkt0@gmail.com>.
18173
18174 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18175
18176         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18177         decoding ACE if AI_CANONIDN.
18178
18179 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18180
18181         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18182
18183 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18184
18185         * version.h (RELEASE): Bump for 2.13 release.
18186         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18187
18188         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18189
18190         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18191         MADV_NOHUGEPAGE.
18192         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18193         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18194         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18195         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18196         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18197         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18198
18199         * posix/getconf.c: Update copyright year.
18200         * catgets/gencat.c: Likewise.
18201         * csu/version.c: Likewise.
18202         * debug/catchsegv.sh: Likewise.
18203         * debug/xtrace.sh: Likewise.
18204         * elf/ldconfig.c: Likewise.
18205         * elf/ldd.bash.in: Likewise.
18206         * elf/sprof.c (print_version): Likewise.
18207         * iconv/iconv_prog.c: Likewise.
18208         * iconv/iconvconfig.c: Likewise.
18209         * locale/programs/locale.c: Likewise.
18210         * locale/programs/localedef.c: Likewise.
18211         * malloc/memusage.sh: Likewise.
18212         * malloc/mtrace.pl: Likewise.
18213         * nscd/nscd.c (print_version): Likewise.
18214         * nss/getent.c: Likewise.
18215
18216         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18217         PF_CAIF, and PF_ALG.
18218         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18219
18220 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18221
18222         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18223         (modules-names): Use them.
18224         (ifunc-test-modules, ifunc-pie-tests): Define.
18225         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18226         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18227         (test-extras): Likewise.
18228         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18229         $(compile-command.c).
18230         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18231         (all-built-dso): Define.
18232         (check-textrel.out, check-execstack.out): Depend on it.
18233
18234         * configure.in: Don't override --enable-multi-arch.
18235
18236 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18237
18238         [BZ #6812]
18239         * nscd/hstcache.c (tryagain): Define.
18240         (cache_addhst): Return tryagain not notfound for temporary errors.
18241         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18242         failed.
18243
18244 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18245
18246         [BZ #10563]
18247         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18248         to make the syscall.
18249         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18250
18251         [BZ #12378]
18252         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18253         and fall back to matching as normal character if the string ends before
18254         the matching ']' is found.  This is what POSIX requires.
18255         * posix/testfnm.c: Adjust test result.
18256         * posix/globtest.sh: Adjust test result.  Add new test.
18257         * posix/tst-fnmatch.input: Likewise.
18258         * posix/tst-fnmatch2.c: Add new test.
18259
18260 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18261
18262         * elf/Makefile (check-execstack): Revert last change.  Depend on
18263         check-execstack.h.
18264         (check-execstack.h): New target.
18265         (generated): Add check-execstack.h.
18266         * elf/check-execstack.c: Include "check-execstack.h".
18267         (main): Revert last change.
18268         (handle_file): Return zero if GNU_STACK is absent and
18269         DEFAULT_STACK_PERMS doesn't include PF_X.
18270
18271 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18272
18273         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18274         in child fails because the descriptor is already closed.
18275         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18276         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18277         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18278
18279         [BZ #12397]
18280         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18281         syscall.
18282
18283         [BZ #10484]
18284         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18285         temporary buffer used to handle multi lookups locally.
18286         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18287
18288 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18289
18290         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18291         loader is ld.so.
18292
18293 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18294
18295         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18296         alignment for SSE2.
18297
18298 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18299
18300         [BZ #12394]
18301         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18302         characters.  When rounding increased number of integer digits recompute
18303         number of groups.
18304         * stdio-common/tst-grouping.c: New file.
18305         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18306
18307 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18308
18309         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18310         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18311
18312         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18313         void.
18314         * bits/select.h: Likewise.
18315
18316 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18317
18318         * po/ja.po: Update from translation team.
18319
18320 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18321
18322         [BZ #11155]
18323         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18324         implementation just like for lxstat, fxstatat, et al.
18325
18326 2010-12-27  Jim Meyering  <meyering@redhat.com>
18327
18328         [BZ #12348]
18329         * posix/regexec.c (build_trtable): Return failure indication upon
18330         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18331
18332 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18333
18334         [BZ #12201]
18335         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18336         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18337         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18338         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18339
18340         [BZ #12207]
18341         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18342
18343         [BZ #12204]
18344         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18345         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18346
18347 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18348
18349         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18350         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18351         script has SORT_BY_INIT_PRIORITY.
18352         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18353         NO_CTORS_DTORS_SECTIONS is defined.
18354         * elf/soinit.c: Likewise.
18355         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18356         NO_CTORS_DTORS_SECTIONS is defined.
18357         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18358         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18359         * sysdeps/sh/init-first.c: Likewise.
18360         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18361
18362 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18363
18364         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18365         always use the slow path.
18366
18367 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18368
18369         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18370         similar rule which adds the sysdep directories to the header search in
18371         order to pick up the correct platform stackinfo.h.
18372         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18373         perform test if it is, otherwise return successfully without testing.
18374         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18375         DEFAULT_STACK_PERMS define in stackinfo.h.
18376         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18377         defined in stackinfo.h.
18378         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18379         DEFAULT_STACK_PERMS defined in stackinfo.h.
18380         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18381         * sysdeps/ia64/stackinfo.h: Likewise.
18382         * sysdeps/s390/stackinfo.h: Likewise.
18383         * sysdeps/sh/stackinfo.h: Likewise.
18384         * sysdeps/sparc/stackinfo.h: Likewise.
18385         * sysdeps/x86_64/stackinfo.h: Likewise.
18386         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18387         PF_X for powerpc64.  Retain PF_X for powerpc32.
18388
18389 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18390
18391         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18392         accurately.
18393         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18394         GETDENTS_64BIT_ALIGNED.
18395
18396 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18397
18398         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18399
18400 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18401
18402         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18403         _GNU_SOURCE.
18404
18405         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18406         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18407         Remove __restrict.
18408         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18409         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18410
18411 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18412
18413         [BZ #11655]
18414         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18415         are initialized.
18416
18417 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18418
18419         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18420
18421 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18422
18423         * po/it.po: Update from translation team.
18424
18425 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18426
18427         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18428         unused codes.
18429
18430 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18431
18432         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18433
18434 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18435
18436         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18437         specially.
18438         (gaih_getanswer_slice): Likewise.
18439
18440 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18441
18442         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18443
18444 2010-05-31  Petr Baudis  <pasky@suse.cz>
18445
18446         [BZ #11149]
18447         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18448         silently even in the chroot mode.
18449
18450 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18451
18452         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18453         last patch a bit.  Pretty printing
18454
18455 2010-05-31  Petr Baudis <pasky@suse.cz>
18456
18457         [BZ #10085]
18458         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18459         initialization of skip_initgroups_dyn.
18460
18461 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18462
18463         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18464         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18465
18466 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18467
18468         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18469
18470 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18471
18472         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18473         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18474         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18475         ($(objpfx)tst-fnmatch-mem): New rule.
18476         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18477         * posix/tst-fnmatch.c (main): Call mtrace.
18478
18479 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18480
18481         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18482         Support Intel processor model 6 and model 0x2c.
18483
18484 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18485
18486         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18487           signed comparison.
18488
18489 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18490
18491         [BZ #12205]
18492         * string/test-strncasecmp.c (check_result): New function.
18493         (do_one_test): Use it.
18494         (check1): New function.
18495         (test_main): Use it.
18496         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18497         Support strcasecmp and strncasecmp.
18498
18499 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18500
18501         [BZ #12194]
18502         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18503         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18504
18505 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18506
18507         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18508         IFUNC support.
18509         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18510         memset-x86-64.
18511         * sysdeps/x86_64/multiarch/bzero.S: New file.
18512         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18513         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18514         * sysdeps/x86_64/multiarch/memset.S: New file.
18515         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18516         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18517         Set bit_Prefer_SSE_for_memop for Intel processors.
18518         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18519         Define.
18520         (index_Prefer_SSE_for_memop): Define.
18521         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18522
18523 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18524
18525         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18526         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18527
18528 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18529
18530         [BZ #12191]
18531         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18532         (__x86_64_raw_data_cache_size_half): Likewise.
18533         (__x86_64_raw_shared_cache_size): Likewise.
18534         (__x86_64_raw_shared_cache_size_half): Likewise.
18535
18536         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18537         (__x86_64_raw_data_cache_size_half): Likewise.
18538         (__x86_64_raw_shared_cache_size): Likewise.
18539         (__x86_64_raw_shared_cache_size_half): Likewise.
18540         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18541         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18542         and __x86_64_raw_shared_cache_size_half.  Round
18543         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18544         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18545         to multiple of 256 bytes.
18546
18547 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18548
18549         [BZ #12167]
18550         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18551         of inacessible symlinks.  Verify result of symlink before returning it.
18552         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18553         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18554
18555 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18556
18557         * math/math.h (isinf): Fix typo in comment.
18558
18559 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18560
18561         * po/da.po: Update from translation team.
18562
18563 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18564
18565         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18566         is added to the list.
18567
18568 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18569             Ulrich Drepper  <drepper@gmail.com>
18570
18571         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18572         the global list here.  Move code to...
18573         (_dl_add_to_namespace_list): ...here.  New function.
18574         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18575         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18576         * elf/dl-load.c (lose): Don't remove the element from the list.
18577         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18578         (_dl_map_object): Likewise.
18579
18580 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18581
18582         [BZ #12159]
18583         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18584         into all bytes of SSE register.
18585         Patch by Richard Li <richardpku@gmail.com>.
18586
18587 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18588
18589         [BZ #12140]
18590         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18591         perturbing.
18592
18593 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18594
18595         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18596         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18597         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18598         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18600         submachine.
18601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18602
18603 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18604
18605         * include/dlfcn.h (__RTLD_SECURE): Define.
18606         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18607         mode & __RTLD_SECURE instead.
18608         (open_path): Rename preloaded parameter to secure.
18609         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18610         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18611         * elf/dl-deps.c (openaux): Likewise.
18612         * elf/rtld.c (struct map_args): Remove is_preloaded.
18613         (map_doit): Don't use it.
18614         (dl_main): Likewise.
18615         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18616         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18617
18618 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18619
18620         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18621         (sysd-rules-targets): Remove duplicates.
18622         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18623         rtld-%.$o dependency.
18624
18625 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18626
18627         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18628         _dl_map_object do it.
18629
18630 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18631
18632         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18633         fast fma builtins, define the macros in the C99 standard.
18634         (FP_FAST_FMAF): Likewise.
18635         (FP_FAST_FMAL): Likewise.
18636         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18637
18638         * bits/mathdef.h: Update copyright year.
18639         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18640
18641 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18642
18643         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18644         builtins, define the macros in the C99 standard.
18645         (FP_FAST_FMAF): Likewise.
18646         (FP_FAST_FMAL): Likewise.
18647         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18648         multiply/add.
18649         (FP_FAST_FMAF): Likewise.
18650
18651 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18652
18653         [BZ #3268]
18654         * math/libm-test.inc (fma_test): Some new testcases.
18655         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18656         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18657         y and infinite z.  Do multiplication by C already in long double.
18658         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18659         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18660         y and infinite z.  Do bitwise or of inexact bit into u.d.
18661         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18662         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18663         * sysdeps/i386/fpu/s_fma.S: Removed.
18664         * sysdeps/i386/fpu/s_fmal.S: Removed.
18665
18666 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18667
18668         [BZ #3268]
18669         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18670         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18671         computation is not scheduled after fetestexcept.  Fix value
18672         of minimum denormal long double.
18673
18674 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18675
18676         [BZ #3268]
18677         * math/libm-test.inc (fma_test): Add some more tests.
18678         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18679         correctly.
18680
18681 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18682
18683         * scripts/data/localplt-s390-linux-gnu.data: New file.
18684         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18685
18686 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18687
18688         [BZ #3268]
18689         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18690         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18691         instead of dbl-64.
18692         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18693         inlines.
18694         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18695         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18696         if one of x and y is very large and the other is subnormal.
18697         * sysdeps/s390/fpu/s_fmaf.c: New file.
18698         * sysdeps/s390/fpu/s_fma.c: New file.
18699         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18700         * sysdeps/powerpc/fpu/s_fma.S: New file.
18701         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18702         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18703         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18704
18705 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18706
18707         [BZ #3268]
18708         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18709         fma tests.
18710         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18711         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18712         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18713         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18714         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18715         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18716         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18717
18718 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18719
18720         [BZ #12078]
18721         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18722         * posix/bug-regex31.input: Add test case.
18723
18724 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18725
18726         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18727         * posix/bug-regex31.input: New file.
18728
18729         [BZ #12078]
18730         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18731         (parse_sub_exp): Fix last change, use postorder.
18732
18733         * posix/bug-regex31.c: New file.
18734         * posix/Makefile: Add rules to build and run bug-regex31.
18735
18736         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18737
18738         [BZ #12078]
18739         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18740
18741         [BZ #12108]
18742         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18743         to have entries in sys_siglist.
18744
18745         [BZ #12093]
18746         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18747         be NULL.
18748
18749 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18750
18751         [BZ #3268]
18752         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18753         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18754         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18755         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18756         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18757         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18758         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18759         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18760         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18761         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18762         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18763         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18764         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18765         * math/ftestexcept.c (fetestexcept): Likewise.
18766         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18767         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18768         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18769         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18770         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18771         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18772         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18773
18774 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18775
18776         [BZ #12107]
18777         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18778         newline.
18779
18780 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18781
18782         * string/bug-strstr1.c: New file.
18783         * string/Makefile: Add rules to build and run bug-strstr1.
18784
18785 2010-10-05  Eric Blake  <eblake@redhat.com>
18786
18787         [BZ #12092]
18788         * string/str-two-way.h (two_way_long_needle): Always clear memory
18789         when skipping input due to the shift table.
18790
18791 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18792
18793         [BZ #12005]
18794         * malloc/mcheck.c: Handle large requests.
18795
18796         [BZ #12077]
18797         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18798         for strncmp and strncasecmp.
18799         * string/stratcliff.c: Add tests for strcmp and strncmp.
18800         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18801
18802 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18803
18804         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18805         __set_fpscr.
18806
18807 2010-09-30  Andreas Jaeger  <aj@suse.de>
18808
18809         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18810         (CGROUP_SUPER_MAGIC): Define.
18811         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18812         Handle btrfs and cgroup file systems.
18813         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18814         Likewise.
18815
18816 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18817
18818         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18819         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18820
18821 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18822
18823         [BZ #12067]
18824         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18825         trying to locate the ELF header.
18826
18827 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18828
18829         [BZ #11611]
18830         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18831         Mask out sign-bit copies when constructing f_fsid.
18832
18833 2010-09-24  Petr Baudis <pasky@suse.cz>
18834
18835         * debug/stack_chk_fail_local.c: Add missing licence exception.
18836         * debug/warning-nop.c: Likewise.
18837
18838 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18839
18840         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18841         implementing getdents64 using getdents syscall, set d_type if
18842         __ASSUME_GETDENTS32_D_TYPE.
18843
18844 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18845
18846         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18847         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18848
18849 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18850
18851         [BZ #12037]
18852         * posix/unistd.h: Undo change of feature selection for ftruncate from
18853         2010-01-11.
18854
18855 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18856
18857         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18858         detection.
18859
18860 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18861
18862         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18863         fanotify_mark.
18864         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18865
18866 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18867
18868         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18869         variables after CHECK_SP call.
18870         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18871
18872 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18873             Ulrich Drepper  <drepper@redhat.com>
18874
18875         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18876         re-relocationg ld.so.
18877         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18878         _dl_init_paths call.
18879         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18880         here anymore.
18881
18882 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18883
18884         * resolv/res_init.c (__res_vinit): Count the default server we added.
18885
18886 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18887             Ulrich Drepper  <drepper@redhat.com>
18888
18889         [BZ #11968]
18890         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18891         (____longjmp_chk): Use %ebx for saving value across system call.
18892         Add unwind info.
18893
18894 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18895
18896         * manual/Makefile: Don't mix pattern rules with normal rules.
18897
18898 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18899
18900         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18901         operation.
18902         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18903         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18904         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18905         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18906         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18907         Likewise.
18908
18909 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18910
18911         [BZ #11979]
18912         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18913         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18914
18915 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18916
18917         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18918         * sysdeps/x86_64/addmul_1.S: Likewise.
18919         * sysdeps/x86_64/lshift.S: Likewise.
18920         * sysdeps/x86_64/mul_1.S: Likewise.
18921         * sysdeps/x86_64/rshift.S: Likewise.
18922         * sysdeps/x86_64/sub_n.S: Likewise.
18923         * sysdeps/x86_64/submul_1.S: Likewise.
18924
18925 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18926
18927         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18928         Define __sched_param instead of SCHED_* and sched_param when
18929         <bits/sched.h> is included with __need_schedparam defined.
18930         * bits/sched.h [__need_schedparam]
18931         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18932         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18933         (__defined_schedparam): Define to 1.
18934         (__sched_param): New structure, identical to sched_param.
18935         (__need_schedparam): Undefine.
18936
18937 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18938
18939         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18940         (epoll_create1): Declare.
18941
18942         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18943
18944 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18945
18946         [BZ #7066]
18947         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18948         shifting retval into place.
18949
18950 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18951
18952         * nis/rpcsvc/nis.h: Update copyright notice.
18953         * nis/rpcsvc/nis.x: Likewise.
18954         * nis/rpcsvc/nis_callback.h: Likewise.
18955         * nis/rpcsvc/nis_callback.x: Likewise.
18956         * nis/rpcsvc/nis_object.x: Likewise.
18957         * nis/rpcsvc/nis_tags.h: Likewise.
18958         * nis/rpcsvc/yp.h: Likewise.
18959         * nis/rpcsvc/yp.x: Likewise.
18960         * nis/rpcsvc/ypupd.h: Likewise.
18961         * nis/yp_xdr.c: Likewise.
18962         * nis/ypupdate_xdr.c: Likewise.
18963
18964         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18965         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18966         (pmap_getport): Use __libc_rpc_getport.
18967         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18968         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18969         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18970
18971 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18972
18973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18974         fanotify_mark.
18975
18976 2010-08-27  Roland McGrath  <roland@redhat.com>
18977
18978         * sysdeps/i386/i686/multiarch/Makefile
18979         (CFLAGS-varshift.c): New variable.
18980
18981 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18982
18983         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18984         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18985
18986         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18987
18988         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18989
18990 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18991
18992         * sysdeps/x86_64/strlen.S: Unroll the loop.
18993         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18994         strlen-sse2 strlen-sse2-bsf.
18995         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18996         __strlen_no_bsf if bit_Slow_BSF is set.
18997         (__strlen_sse42): Removed.
18998         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18999         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19000
19001 2010-08-25  Roland McGrath  <roland@redhat.com>
19002
19003         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19004         * sysdeps/x86_64/multiarch/varshift.c: New file.
19005         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19006         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19007         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19008         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19009
19010 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19011
19012         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19013         strlen-sse2 strlen-sse2-bsf.
19014         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19015         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19016         (__strlen_sse2): Removed.
19017         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19018         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19019         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19020         bit_Slow_BSF for Atom.
19021         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19022         (index_Slow_BSF): Define.
19023         (HAS_SLOW_BSF): Define.
19024
19025 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19026
19027         [BZ #10851]
19028         * resolv/res_init.c (__res_vinit): When no server address at all
19029         is given default to loopback.
19030
19031 2010-08-24  Roland McGrath  <roland@redhat.com>
19032
19033         * configure.in: Remove config-name.h generation.
19034         * configure: Regenerated.
19035         * config-name.in: File removed.
19036         * scripts/config-uname.sh: New file.
19037         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19038         ($(objdir)config-name.h): New target.
19039
19040         * sunrpc/rpc_parse.h: Avoid nested comment.
19041
19042 2010-08-24  Richard Henderson  <rth@redhat.com>
19043             Ulrich Drepper  <drepper@redhat.com>
19044             H.J. Lu  <hongjiu.lu@intel.com>
19045
19046         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19047         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19048         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19049         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19050         _mm_alignr_epi8 with _mm_loadu_si128.
19051         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19052         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19053         (__m128i_shift_right): Removed.
19054         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19055         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19056         * sysdeps/x86_64/multiarch/varshift.h: New file.
19057         * sysdeps/x86_64/multiarch/varshift.S: New file.
19058
19059 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19060
19061         * configure.in: Move assembler checks to before sysdep dir checking.
19062
19063 2010-08-20  Petr Baudis  <pasky@suse.cz>
19064
19065         * LICENSES: Sync the sunrpc license.
19066
19067 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19068
19069         * sunrpc/auth_des.c: Update copyright notice once again.
19070         * sunrpc/auth_none.c: Likewise.
19071         * sunrpc/auth_unix.c: Likewise.
19072         * sunrpc/authdes_prot.c: Likewise.
19073         * sunrpc/authuxprot.c: Likewise.
19074         * sunrpc/bindrsvprt.c: Likewise.
19075         * sunrpc/clnt_gen.c: Likewise.
19076         * sunrpc/clnt_perr.c: Likewise.
19077         * sunrpc/clnt_raw.c: Likewise.
19078         * sunrpc/clnt_simp.c: Likewise.
19079         * sunrpc/clnt_tcp.c: Likewise.
19080         * sunrpc/clnt_udp.c: Likewise.
19081         * sunrpc/clnt_unix.c: Likewise.
19082         * sunrpc/des_crypt.c: Likewise.
19083         * sunrpc/des_soft.c: Likewise.
19084         * sunrpc/get_myaddr.c: Likewise.
19085         * sunrpc/getrpcport.c: Likewise.
19086         * sunrpc/key_call.c: Likewise.
19087         * sunrpc/key_prot.c: Likewise.
19088         * sunrpc/openchild.c: Likewise.
19089         * sunrpc/pm_getmaps.c: Likewise.
19090         * sunrpc/pm_getport.c: Likewise.
19091         * sunrpc/pmap_clnt.c: Likewise.
19092         * sunrpc/pmap_prot.c: Likewise.
19093         * sunrpc/pmap_prot2.c: Likewise.
19094         * sunrpc/pmap_rmt.c: Likewise.
19095         * sunrpc/rpc/auth.h: Likewise.
19096         * sunrpc/rpc/auth_unix.h: Likewise.
19097         * sunrpc/rpc/clnt.h: Likewise.
19098         * sunrpc/rpc/des_crypt.h: Likewise.
19099         * sunrpc/rpc/key_prot.h: Likewise.
19100         * sunrpc/rpc/netdb.h: Likewise.
19101         * sunrpc/rpc/pmap_clnt.h: Likewise.
19102         * sunrpc/rpc/pmap_prot.h: Likewise.
19103         * sunrpc/rpc/pmap_rmt.h: Likewise.
19104         * sunrpc/rpc/rpc.h: Likewise.
19105         * sunrpc/rpc/rpc_des.h: Likewise.
19106         * sunrpc/rpc/rpc_msg.h: Likewise.
19107         * sunrpc/rpc/svc.h: Likewise.
19108         * sunrpc/rpc/svc_auth.h: Likewise.
19109         * sunrpc/rpc/types.h: Likewise.
19110         * sunrpc/rpc/xdr.h: Likewise.
19111         * sunrpc/rpc_clntout.c: Likewise.
19112         * sunrpc/rpc_cmsg.c: Likewise.
19113         * sunrpc/rpc_common.c: Likewise.
19114         * sunrpc/rpc_cout.c: Likewise.
19115         * sunrpc/rpc_dtable.c: Likewise.
19116         * sunrpc/rpc_hout.c: Likewise.
19117         * sunrpc/rpc_main.c: Likewise.
19118         * sunrpc/rpc_parse.c: Likewise.
19119         * sunrpc/rpc_parse.h: Likewise.
19120         * sunrpc/rpc_prot.c: Likewise.
19121         * sunrpc/rpc_sample.c: Likewise.
19122         * sunrpc/rpc_scan.c: Likewise.
19123         * sunrpc/rpc_scan.h: Likewise.
19124         * sunrpc/rpc_svcout.c: Likewise.
19125         * sunrpc/rpc_tblout.c: Likewise.
19126         * sunrpc/rpc_util.c: Likewise.
19127         * sunrpc/rpc_util.h: Likewise.
19128         * sunrpc/rpcinfo.c: Likewise.
19129         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19130         * sunrpc/rpcsvc/key_prot.x: Likewise.
19131         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19132         * sunrpc/rpcsvc/mount.x: Likewise.
19133         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19134         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19135         * sunrpc/rpcsvc/rex.x: Likewise.
19136         * sunrpc/rpcsvc/rstat.x: Likewise.
19137         * sunrpc/rpcsvc/rusers.x: Likewise.
19138         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19139         * sunrpc/rpcsvc/spray.x: Likewise.
19140         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19141         * sunrpc/rtime.c: Likewise.
19142         * sunrpc/svc.c: Likewise.
19143         * sunrpc/svc_auth.c: Likewise.
19144         * sunrpc/svc_authux.c: Likewise.
19145         * sunrpc/svc_raw.c: Likewise.
19146         * sunrpc/svc_run.c: Likewise.
19147         * sunrpc/svc_simple.c: Likewise.
19148         * sunrpc/svc_tcp.c: Likewise.
19149         * sunrpc/svc_udp.c: Likewise.
19150         * sunrpc/svc_unix.c: Likewise.
19151         * sunrpc/svcauth_des.c: Likewise.
19152         * sunrpc/xcrypt.c: Likewise.
19153         * sunrpc/xdr.c: Likewise.
19154         * sunrpc/xdr_array.c: Likewise.
19155         * sunrpc/xdr_float.c: Likewise.
19156         * sunrpc/xdr_mem.c: Likewise.
19157         * sunrpc/xdr_rec.c: Likewise.
19158         * sunrpc/xdr_ref.c: Likewise.
19159         * sunrpc/xdr_sizeof.c: Likewise.
19160         * sunrpc/xdr_stdio.c: Likewise.
19161
19162         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19163         handling.
19164
19165 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19166
19167         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19168
19169 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19170
19171         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19172         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19173         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19174         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19175         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19176         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19177         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19178         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19179         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19180         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19181         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19182         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19183         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19184         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19185
19186 2010-07-26  Anton Blanchard  <anton@samba.org>
19187
19188         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19189         * malloc/arena.c (heap_trim): Likewise.
19190
19191 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19192
19193         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19194         here.  Not...
19195         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19196         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19197
19198 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19199
19200         * sysdeps/i386/elf/Makefile: New file.
19201
19202 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19203
19204         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19205         from fanotify_init.
19206         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19207         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19208
19209 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19210
19211         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19212         of strncasecmp_l.
19213         * sysdeps/multiarch/strcmp.S: Likewise.
19214
19215 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19216
19217         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19218         strncase_l-nonascii.
19219         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19220         Add strncase_l-ssse3.
19221         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19222         * sysdeps/x86_64/strcmp.S: Likewise.
19223         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19224         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19225         * sysdeps/x86_64/strncase.S: New file.
19226         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19227         * sysdeps/x86_64/strncase_l.S: New file.
19228         * string/Makefile (strop-tests): Add strncasecmp.
19229         * string/test-strncasecmp.c: New file.
19230
19231         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19232         warning.
19233
19234         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19235         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19236
19237 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19238
19239         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19240
19241 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19242
19243         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19244         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19245         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19246
19247 2010-05-01  Alan Modra  <amodra@gmail.com>
19248
19249         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19250         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19251         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19252         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19253         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19254         tidying.  Don't tail-call __sigjmp_save for static lib.
19255         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19256         save location.
19257         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19258         (CALL_MCOUNT): Add eh info, and nop after bl.
19259         (TAIL_CALL_SYSCALL_ERROR): New macro.
19260         (PSEUDO_RET): Use it.
19261         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19262         Correct save location of integer regs and cr.
19263         (_dl_profile_resolve): Correct cr save location.  Delete nops
19264         after bl when SHARED.  Reduce cfi size a little by better
19265         placement of cfi directives.
19266         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19267         make a stack frame.  Instead use parm save area as a temp.
19268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19269         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19271         Don't make a stack frame for parent, use parm save area.
19272         Increase child stack frame to 112 bytes.  Don't save unused reg,
19273         and adjust reg usage.  Set up cfi on error recovery and
19274         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19276         (__makecontext): Add dummy nop after jump to exit.
19277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19278         Use correct parm save area and cr save, reduce stack frame.
19279         Correct cfi for possible PSEUDO_RET frame setup.
19280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19281         Branch to local label emitted by PSEUDO_RET rather than
19282         __syscall_error.
19283
19284 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19285
19286         [BZ #11904]
19287         * locale/programs/locale.c (print_assignment): New function.
19288         (show_locale_vars): Use it.
19289
19290 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19291
19292         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19293         field.
19294         (struct statfs64): Likewise.
19295         (_STATFS_F_FLAGS): Define.
19296         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19297         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19298         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19299         (ST_VALID): Define locally.
19300         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19301         __statvfs_getflags, use the provided value.
19302         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19303         __ASSUME_STATFS_F_FLAGS.
19304
19305         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19306
19307         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19308         Add sys/fanotify.h.
19309         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19310         fanotify_mask for GLIBC_2.13.
19311         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19312         fanotify_init and fanotify_mark.
19313         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19314         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19315
19316         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19317         Add prlimit.
19318         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19319         prlimit64 for GLIBC_2.13.
19320         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19321         prlimit64.
19322         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19323         syscall.
19324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19325         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19326         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19327         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19328         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19329         add prlimit alias.
19330         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19331
19332         [BZ #11903]
19333         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19334         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19335
19336         * nss/Makefile: Add rules to build and run tst-nss-test1.
19337         * shlib-versions: Add entry for libnss_test1.
19338         * nss/nss_test1.c: New file.
19339         * nss/tst-nss-test1.c: New file.
19340
19341         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19342         (__nss_configure_lookup): Set appropriate entry in
19343         __nss_configure_lookup to true.
19344         * nss/nsswitch.h: Define enum with indeces of databases in
19345         databases and __nss_database_custom arrays.  Declare
19346         __nss_database_custom.
19347         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19348         to avoid using nscd when custom rules are installed.
19349         * nss/getXXbyYY_r.c: Likewise.
19350         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19351
19352         * nss/nss_files/files-parse.c: Whitespace fixes.
19353
19354 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19355
19356         [BZ #11883]
19357         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19358         * posix/fnmatch_loop.c: Likewise.
19359
19360 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19361
19362         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19363         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19364         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19365         * Versions.def [GLIBC_2.13]: Add.
19366
19367 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19368
19369         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19370         Also fail if tpwd after pwuid call is NULL.
19371
19372 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19373
19374         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19375         when converting to ms.
19376
19377 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19378
19379         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19380         EOPNOTSUPP errors with ENOTTY.
19381         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19382         EOPNOTSUPP errors with ENOTTY.
19383
19384 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19385
19386         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19387         Add strcasecmp_l-ssse3.
19388         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19389         strcasecmp.
19390         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19391         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19392         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19393
19394 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19395
19396         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19397
19398         * string/Makefile (strop-tests): Add strcasecmp.
19399         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19400         strcasecmp_l-nonascii.
19401         (gen-as-const-headers): Add locale-defines.sym.
19402         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19403         * sysdeps/x86_64/strcasecmp.S: New file.
19404         * sysdeps/x86_64/strcasecmp_l.S: New file.
19405         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19406         * sysdeps/x86_64/locale-defines.sym: New file.
19407         * string/test-strcasecmp.c: New file.
19408
19409         * string/test-strcasestr.c: Test both ends of the range of characters.
19410         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19411
19412 2010-07-29  Roland McGrath  <roland@redhat.com>
19413
19414         [BZ #11856]
19415         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19416
19417 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19418
19419         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19420         for ld.so.
19421
19422 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19423
19424         * manual/memory.texi (Malloc Tunable Parameters): Document
19425         M_PERTURB.
19426
19427 2010-07-26  Roland McGrath  <roland@redhat.com>
19428
19429         [BZ #11840]
19430         * configure.in (-fgnu89-inline check): Set and substitute
19431         gnu89_inline, not libc_cv_gnu89_inline.
19432         * configure: Regenerated.
19433         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19434
19435 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19436
19437         * string/test-strnlen.c: New file.
19438         * string/Makefile (strop-tests): Add strnlen.
19439         * string/tester.c (test_strnlen): Add a few more test cases.
19440         * string/tst-strlen.c: Better error reporting.
19441
19442         * sysdeps/x86_64/strnlen.S: New file.
19443
19444 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19445
19446         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19447         lower-latency instructions.
19448
19449 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19450
19451         * string/test-strcasestr.c: New file.
19452         * string/test-strstr.c: New file.
19453         * string/Makefile (strop-tests): Add strstr and strcasestr.
19454         * string/str-two-way.h: Don't undefine MAX.
19455         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19456
19457 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19458
19459         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19460         strcasestr-nonascii.
19461         (CFLAGS-strcasestr-nonascii.c): Define.
19462         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19463         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19464         Remove unused attribute.
19465
19466 2010-07-20  Roland McGrath  <roland@redhat.com>
19467
19468         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19469         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19470         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19471         like LD_HWCAP_MASK can disable hwcaps.
19472
19473 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19474
19475         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19476
19477 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19478
19479         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19480         call in strcasestr.
19481         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19482         __strcasestr_sse42_nonascii.
19483         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19484         strcasestr-nonascii.c.
19485         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19486
19487 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19488
19489         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19490         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19491         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19492         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19493
19494 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19495
19496         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19497         fcntl.
19498
19499 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19500
19501         [BZ #11577]
19502         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19503         dl_signal_cerror.
19504
19505 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19506
19507         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19508         _PC_PIPE_BUF using F_GETPIPE_SZ.
19509
19510 2010-07-05  Roland McGrath  <roland@redhat.com>
19511
19512         * manual/arith.texi (Rounding Functions): Fix rint description
19513         implicit in round description.
19514
19515 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19516
19517         * elf/Makefile: Fix linking for a few tests to make recent linker
19518         happy.
19519
19520 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19521
19522         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19523         $(common-objpfx)libc_nonshared.a.
19524
19525 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19526
19527         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19528         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19529         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19530         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19531         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19532         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19533         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19534         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19549         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19550         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19551         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19552         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19553         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19554         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19555         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19556         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19557         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19558         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19559         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19560         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19575
19576 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19577
19578         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19579         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19580         * string/memmove.c (memmove): Renamed to ...
19581         (MEMMOVE): ...this.  Default to memmove.
19582         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19583         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19584         (END_CHK): Define.
19585         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19586         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19587         mempcpy-ssse3-back memmove-ssse3-back.
19588         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19589         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19590         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19591         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19592         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19593         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19594         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19595         * sysdeps/x86_64/multiarch/memmove.c: New file.
19596         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19597         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19598         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19599         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19600         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19601         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19602         Define.
19603         (index_Fast_Copy_Backward): Define.
19604         (HAS_ARCH_FEATURE): Define.
19605         (HAS_FAST_REP_STRING): Define.
19606         (HAS_FAST_COPY_BACKWARD): Define.
19607
19608 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19609
19610         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19611         Restore proper fallback handling.
19612
19613 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19614
19615         [BZ #11701]
19616         * posix/group_member.c (__group_member): Correct checking loop.
19617
19618         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19619         OOM in getpwuid_r correctly.  Return error number when the caller
19620         should return, otherwise -1.
19621         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19622         call returning > 0 value.
19623         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19624
19625 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19626
19627         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19628         libc_nonshared.a from targets in modules-names.
19629
19630 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19631
19632         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19633         requires it.
19634
19635 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19636
19637         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19638         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19639         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19640         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19641
19642 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19643
19644         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19645
19646 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19647
19648         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19649         and F_GETPIPE_SZ.
19650         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19651         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19652         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19653         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19654         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19655         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19656
19657 2010-06-14  Roland McGrath  <roland@redhat.com>
19658
19659         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19660
19661 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19662
19663         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19664         __REDIRECT followed by __THROW.
19665         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19666         * posix/getopt.h (getopt): Likewise.
19667
19668 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19669
19670         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19671         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19672         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19673         in AT_FLAGS.
19674         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19675         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19676
19677 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19678
19679         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19680
19681 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19682
19683         [BZ #11640]
19684         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19685         Properly check family and model.
19686
19687 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19688
19689         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19690
19691 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19692
19693         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19694
19695 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19696
19697         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19698         symbol reference.
19699
19700 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19701
19702         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19703         symbol reference.
19704
19705 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19706
19707         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19708         and internal_recvmmsg.
19709         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19710         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19711         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19712         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19713
19714         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19715         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19716         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19717
19718 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19719
19720         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19721
19722 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19723
19724         POWER7 optimizations.
19725         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19726         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19727
19728 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19729
19730         * version.h: Update for 2.13 development version.
19731
19732 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19733
19734         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19735         exceptions.  Return 0.
19736
19737 2010-05-07  Roland McGrath  <roland@redhat.com>
19738
19739         * elf/ldconfig.c (main): Add a const.
19740
19741 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19742
19743         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19744         (args_options): Add no-idn option.
19745         (ahosts_keys_int): Add idn_flags to ai_flags.
19746         (parse_option): Handle 'i' option to clear idn_flags.
19747
19748         * malloc/malloc.c (_int_free): Possible race in the most recently
19749         added check.  Only act on the data if no current modification
19750         happened.
19751
19752 See ChangeLog.17 for earlier changes.