Add missed ildouble case in yesterday's sparc ULPs update for clog/clog10.
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-28  David S. Miller  <davem@davemloft.net>
2
3         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4
5         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
6         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
7         file.
8         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9         sysdep_routines.
10         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
11         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
12         when HWCAP_SPARC_CRYPTO is present.
13
14 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15
16         * io/tst-mknodat.c: Create a FIFO instead of a socket.
17
18 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
19
20         [BZ #6530]
21         * stdio-common/vfprintf.c (process_string_arg): Revert
22         2000-07-22 change.
23
24 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
25
26         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
27         for testcase.
28         * stdio-common/tst-sprintf.c: Include <locale.h>
29         (main): Test sprintf's handling of incomplete multibyte
30         characters.
31
32 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
33
34         * elf/dl-runtime.c (VERSYMIDX): Removed.
35         * elf/dl-version.c (VERSYMIDX): Likewise.
36         * elf/do-rel.h (VERSYMIDX): Likewise.
37         (VALIDX): Likewise.
38         * elf/dynamic-link.h (VERSYMIDX): Likewise.
39         * elf/rtld.c (VALIDX): Likewise.
40         (ADDRIDX): Likewise.
41         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
42         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
43         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
44         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
45         (VALIDX): Likewise.
46         (ADDRIDX): Likewise.
47
48 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
49
50         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
51
52 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
53
54         [BZ #11438]
55         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
56         to global scope.
57         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
58         addresses are in the same scope as 192.0.2/24.
59         * posix/gai.conf: Document new scope table defaults.
60
61 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
62
63         [BZ #5298]
64         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
65         for ftell.  Compute offsets from write pointers instead.
66         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
67
68 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
69
70         [BZ #14543]
71         * libio/Makefile (tests): New test case tst-fseek.
72         * libio/tst-fseek.c: New test case to verify that fseek/ftell
73         combination works in wide mode.
74         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
75         state when the external buffer state changes.
76
77 2012-09-27  David S. Miller  <davem@davemloft.net>
78
79         [BZ #14376]
80         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
81         pass reloc->r_addend in as the 'high' argument to
82         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
83
84         * sysdeps/sparc/fpu/libm-test-ulps: Update.
85
86 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
87
88         * rt/tst-aio2.c: Include <pthread.h>.
89         * rt/tst-aio3.c: Likewise.
90
91 2012-09-27  Steve Ellcey  <sellcey@mips.com>
92
93         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
94
95 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
96
97         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
98         contents on [SHARED].
99
100 2012-09-26  Marek Polacek  <polacek@redhat.com>
101
102         [BZ #14530]
103         [BZ #13741]
104         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
105         for C++ and GCC <4.3 as well as for non GCC compilers.
106
107 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
108
109         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
110
111 2012-09-25  Roland McGrath  <roland@hack.frob.com>
112
113         * Makefile.in (all, install): Declare with .PHONY.
114         Reported by Michael Hope <michael.hope@linaro.org>.
115
116 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
117
118         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
119         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
120         system header.
121         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
122         Likewise.
123         (sydep_routines): Add the new and the internal functions.
124         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
125         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
127         (GLIBC_2.17): Add the new function.
128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
129         (GLIBC_2.17): Likewise.
130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
131         (GLIBC_2.17): Likewise.
132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
133         (GLIBC_2.17): Likewise.
134         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
135
136 2012-09-25  Alan Modra  <amodra@gmail.com>
137
138         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
139         Add release barrier before setting once_control to say
140         initialisation is done.  Add hints on lwarx.  Use macro in
141         place of isync.
142         (clear_once_control): Add release barrier.
143
144 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
145
146         [BZ #13629]
147         * math/s_clog.c (__clog): Handle more values close to |z| = 1
148         specially.
149         * math/s_clog10.c (__clog10): Likewise.
150         * math/s_clog10f.c (__clog10f): Likewise.
151         * math/s_clog10l.c (__clog10l): Likewise.
152         * math/s_clogf.c (__clogf): Likewise.
153         * math/s_clogl.c (__clogl): Likewise.
154         * math/Makefile (libm-calls): Add x2y2m1.
155         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
156         (__x2y2m1): Likewise.
157         (__x2y2m1l): Likewise.
158         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
159         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
160         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
161         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
162         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
163         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
164         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
165         * sysdeps/i386/fpu/libm-test-ulps: Update.
166         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
167
168         [BZ #14621]
169         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
170         int as type of variable DEPTH.
171         (glob): Use size_t instead of int as type of variables NEWCOUNT
172         and OLD_PATHC.
173
174 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
175
176         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
177         Add s_sincosf-sse2.
178         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
179         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
180         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
181         macros for using routine as __sincosf_ia32.
182         Use macro for function declaration and weak_alias.
183         * sysdeps/i386/fpu/libm-test-ulps: Update.
184
185         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
186         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
187
188         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
189         subnormal argument.
190         * math/s_cexpf.c (__cexpf): Likewise.
191         * math/s_csinf.c (__csinf): Likewise.
192         * math/s_csinhf.c (__csinhf): Likewise.
193         * math/s_ctanf.c (__ctanf): Likewise.
194         * math/s_ctanhf.c (__ctanhf): Likewise.
195         * math/s_ccosh.c (__ccoshf): Likewise.
196         * math/s_cexp.c (__cexpl): Likewise.
197         * math/s_csin.c (__csin): Likewise.
198         * math/s_csinh.c (__csinh): Likewise.
199         * math/s_ctan.c (__ctan): Likewise.
200         * math/s_ctanh.c (ctanh): Likewise.
201         * math/s_ccoshl.c (__ccoshl): Likewise.
202         * math/s_cexpl.c (__cexpl): Likewise.
203         * math/s_csinl.c (__csinl): Likewise.
204         * math/s_csinhl.c (__csinhl): Likewise.
205         * math/s_ctanl.c (__ctanl): Likewise.
206         * math/s_ctanhl.c (__ctanhl): Likewise.
207
208 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
209
210         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
211         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
212         (_IO_off_t): Define to __off_t, not _G_off_t.
213         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
214         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
215         (_IO_wint_t): Define to wint_t, not _G_wint_t.
216         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
217         type of __dummy and __dummy2 fields.
218         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
219         (_G_ssize_t): Likewise.
220         (_G_off_t): Likewise.
221         (_G_pid_t): Likewise.
222         (_G_uid_t): Likewise.
223         (_G_wchar_t): Likewise.
224         (_G_wint_t): Likewise.
225         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
226         (_G_ssize_t): Likewise.
227         (_G_off_t): Likewise.
228         (_G_pid_t): Likewise.
229         (_G_uid_t): Likewise.
230         (_G_wchar_t): Likewise.
231         (_G_wint_t): Likewise.
232         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
233         (_G_ssize_t): Likewise.
234         (_G_off_t): Likewise.
235         (_G_pid_t): Likewise.
236         (_G_uid_t): Likewise.
237         (_G_wchar_t): Likewise.
238         (_G_wint_t): Likewise.
239
240 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
241
242         * malloc/arena.c: Include malloc-sysdep.h.
243         (shrink_heap): Use check_may_shrink_heap to decide if madvise
244         is sufficient to shrink the heap or an unmap is needed.
245         * sysdeps/generic/malloc-sysdep.h: New file.  Define
246         new function check_may_shrink_heap.
247         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
248         new function check_may_shrink_heap.
249
250 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
251
252         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
253         comments.
254
255 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
256
257         * catgets/test-gencat.sh: Add "set -e".
258         * elf/tst-pathopt.sh: Likewise.
259         * grp/tst_fgetgrent.sh: Likewise.
260         * iconvdata/run-iconv-test.sh: Likewise.
261         * intl/tst-gettext.sh: Likewise.
262         * intl/tst-gettext2.sh: Likewise.
263         * intl/tst-gettext4.sh: Likewise.
264         * intl/tst-gettext6.sh: Likewise.
265         * intl/tst-translit.sh: Likewise.
266         * io/ftwtest-sh: Likewise.
267         * libio/test-freopen.sh: Likewise.
268         * malloc/tst-mtrace.sh: Likewise.
269         * posix/globtest.sh: Likewise.
270         * posix/tst-getconf.sh: Likewise.
271         * posix/wordexp-tst.sh: Likewise.
272         * stdio-common/tst-printf.sh: Likewise.
273         * stdio-common/tst-unbputc.sh: Likewise.
274         * stdlib/tst-fmtmsg.sh: Likewise.
275         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
276         * catgets/Makefile: Do not specify -e option when running
277         testsuite shell scripts.
278         * elf/Makefile: Likewise.
279         * grp/Makefile: Likewise.
280         * iconvdata/Makefile: Likewise.
281         * intl/Makefile: Likewise.
282         * io/Makefile: Likewise.
283         * libio/Makefile: Likewise.
284         * malloc/Makefile: Likewise.
285         * posix/Makefile: Likewise.
286         * stdio-common/Makefile: Likewise.
287         * stdlib/Makefile: Likewise.
288         * sysdeps/x86_64/Makefile: Likewise.
289
290         * io/ftwtest-sh: Add copyright header.
291         * posix/globtest.sh: Likewise.
292         * posix/tst-getconf.sh: Likewise.
293         * posix/wordexp-tst.sh: Likewise.
294         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
295
296 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
297
298         [BZ #13679]
299         * Makeconfig (+link): Defined as $(+link-static) if
300         $(build-shared) isn't yes.
301         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
302         isn't yes.
303         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
304
305         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
306
307         [BZ #14562]
308         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
309         new chunk size with MALLOC_ALIGN_MASK.
310
311 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
312
313         [BZ #5044]
314         * stdio-common/printf_fphex.c: Include <stdbool.h> and
315         <rounding-mode.h>.
316         (__printf_fphex): Determine rounding using get_rounding_mode and
317         round_away.
318         * stdio-common/tst-printf-round.c (struct hex_test): New
319         structure.
320         (hex_tests): New variable.
321         (test_hex_in_one_mode): New function.
322         (do_test): Also run tests for hex float output.
323
324 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
325
326         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
327         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
328         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
329         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
330         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
331         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
332         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
333         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
334
335 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
336
337         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
338         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
339         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
340         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
341
342 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
343
344         [BZ #14579]
345         * elf/rtld.c (dl_main): Limit the check for self loading to normal
346         mode only.
347         * elf/tst-rtld-load-self.sh: New test.
348         * elf/Makefile: Run it.
349
350 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
351
352         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
353         (tst-writev-ENV): Remove.
354         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
355
356 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
357
358         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
359
360 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
361
362         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
363         unconditional.
364         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
365         Likewise.
366         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
367         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
368         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
369         Likewise.
370
371 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
372
373         [BZ #14587]
374         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
375         * config.make.in (have-cpp-asm-debuginfo): Removed.
376         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
377         * configure: Regenerated.
378
379 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
380
381         [BZ #5044]
382         * stdio-common/printf_fp.c: Include <stdbool.h> and
383         <rounding-mode.h>.
384         (___printf_fp): Determine rounding using get_rounding_mode and
385         round_away.
386         * stdio-common/tst-printf-round.c: New file.
387         * stdio-common/Makefile (tests): Add tst-printf-round.
388         (link-libm): New variable.
389         ($(objpfx)tst-printf-round): Depend in $(link-libm).
390
391 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
392
393         [BZ #14576]
394         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
395         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
396         Likewise.
397         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
398         Likewise.
399
400 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
401
402         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
403         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
404         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
405         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
406
407 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
408
409         [BZ #14518]
410         * include/rounding-mode.h: New file.
411         * sysdeps/generic/get-rounding-mode.h: Likewise.
412         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
413         * stdlib/strtod_l.c: Include <rounding-mode.h>.
414         (MAX_VALUE): New macro.
415         (MIN_VALUE): Likewise.
416         (overflow_value): New function.
417         (underflow_value): Likewise.
418         (round_and_return): Use overflow_value and underflow_value to
419         determine return values in overflow and underflow cases.  Use
420         round_away to determine rounding depending on rounding mode.
421         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
422         determine return values in overflow and underflow cases.
423         * stdlib/tst-strtod-round.c: Include <fenv.h>.
424         (struct test_results): New structure.
425         (struct test): Use struct test_results to store expected results
426         for all rounding modes.
427         (TEST): Include expected results for all rounding modes.
428         (test_in_one_mode): New function.
429         (do_test): Use test_in_one_mode to compute and check results.
430         Check results for all rounding modes.
431         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
432         $(link-libm).
433
434 2012-12-09  Allan McRae  <allan@archlinux.org>
435
436         * sysdeps/i386/fpu/libm-test-ulps: Update
437
438 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
439
440         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
441         (_G_int32_t): Likewise.
442         (_G_uint16_t): Likewise.
443         (_G_uint32_t): Likewise.
444         (_G_HAVE_BOOL): Likewise.
445         (_G_HAVE_ATEXIT): Likewise.
446         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
447         (_G_HAVE_IO_FILE_OPEN): Likewise.
448         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
449         (_G_int32_t): Likewise.
450         (_G_uint16_t): Likewise.
451         (_G_uint32_t): Likewise.
452         (_G_HAVE_BOOL): Likewise.
453         (_G_HAVE_ATEXIT): Likewise.
454         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
455         (_G_HAVE_IO_FILE_OPEN): Likewise.
456         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
457         (_G_int32_t): Likewise.
458         (_G_uint16_t): Likewise.
459         (_G_uint32_t): Likewise.
460         (_G_HAVE_BOOL): Likewise.
461         (_G_HAVE_ATEXIT): Likewise.
462         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
463         (_G_HAVE_IO_FILE_OPEN): Likewise.
464
465 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
466
467         * csu/libc-tls.c: Update copyright years.
468
469 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
470
471         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
472         [!_G_USING_THUNKS]: Remove conditional code.
473         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
474         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
475
476         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
477         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
478         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
479         (_G_VTABLE_LABEL_PREFIX): Likewise.
480         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
481         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
482         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
483         (_G_VTABLE_LABEL_PREFIX): Likewise.
484         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
485         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
486         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
487         (_G_VTABLE_LABEL_PREFIX): Likewise.
488         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
489
490 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
491
492         * libio/Makefile: Include ../Makeconfig before tests.
493         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
494         only if $(build-shared) is yes.
495
496         * iconv/gconv_db.c: Update copyright years.
497
498 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
499
500         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
501         unwind info if defined PIC. Fix special cases description.
502         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
503
504         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
505         DP_HI_MASK entry.
506         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
507
508 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
509
510         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
511
512         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
513         is NULL.
514
515         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
516         (LDLIBS-tst-chk4): This.
517         (LDFLAGS-tst-chk5): Renamed to ...
518         (LDLIBS-tst-chk5): This.
519         (LDFLAGS-tst-chk6): Renamed to ...
520         (LDLIBS-tst-chk6): This.
521         (LDFLAGS-tst-lfschk4): Renamed to ...
522         (LDLIBS-tst-lfschk4): This.
523         (LDFLAGS-tst-lfschk5): Renamed to ...
524         (LDLIBS-tst-lfschk5): This.
525         (LDFLAGS-tst-lfschk6): Renamed to ...
526         (LDLIBS-tst-lfschk6): This.
527
528         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
529         on $(common-objpfx)soversions.mk.
530
531 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
532
533         [BZ #10014]
534         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
535         example host name.
536
537 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
538
539         * malloc/arena.c (arena_get_retry): New function that gets
540         another arena for the caller to try its request on.
541         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
542         current arena cannot fulfill the request.
543         (__libc_memalign): Likewise.
544         (__libc_memalign): Likewise.
545         (__libc_pvalloc): Likewise.
546         (__libc_calloc): Likewise.
547
548 2012-09-05  John Tobey  <john.tobey@gmail.com>
549
550         [BZ #13542]
551         * manual/arith.texi (Operations on Complex): Fix description
552         of carg branch cut.
553
554 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
555
556         [BZ #10014]
557         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
558         host name.
559
560         [BZ #10038]
561         * manual/memory.texi (Memory): Make order of menu items match
562         order of sections.
563
564 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
565
566         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
567         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
568         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
569
570 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
571
572         * csu/libc-tls.c (static_dtv): Renamed to ...
573         (_dl_static_dtv): This.  Make it global.
574         (_dl_initial_dtv): Removed.
575         (__libc_setup_tls): Updated.
576         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
577         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
578         DL_INITIAL_DTV.
579
580 2012-09-06  Petr Machata  <pmachata@redhat.com>
581
582         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
583         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
584         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
585         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
586
587 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
588
589         [BZ #14545]
590         * csu/libc-tls.c (_dl_initial_dtv): New variable.
591         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
592         freeing dtv[-1].
593
594 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
595
596         [BZ #14544]
597         * Makeconfig (link-static-before-libc): Replace $(+prector)
598         with $(+prectorT).
599         (link-static-after-libc): Replace $(+postctor) with
600         $(+postctorT).
601         (link-bounded): Replace $(+prector)/$(+postctor) with
602         $(+prectorT)/$(+postctorT).
603         (+prectorT): New macro.
604         (+postctorT): Likewise.
605
606 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
607
608         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
609         (round_str): Handle values above the maximum for IBM long double
610         as inexact.
611         * stdlib/tst-strtod-round.c (tests): Regenerated.
612
613 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
614
615         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
616         assembler flag.
617         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
618         zarch_nohighgprs around the zarch optimized routines.
619         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
620         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
621         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
622         for zarch.
623
624 2012-09-05  David S. Miller  <davem@davemloft.net>
625
626         * sysdeps/sparc/fpu/libm-test-ulps: Update.
627
628         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
629         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
630         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
631         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
632         entries.
633
634 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
635
636         * malloc/arena.c: Fold copyright years.
637         * malloc/mcheck.c, malloc/memusage.c: Likewise.
638
639 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
640
641         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
642
643 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
644
645         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
646
647 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
648
649         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
650         change internal state upon failure.
651
652 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
653
654         * malloc/mcheck.c (mcheck_check_all): Fix typo.
655         * malloc/memusage.c (mmap): Likewise.
656         (mmap64, mremap): Likewise.  Adjust name in comment.
657
658 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
659
660         * libio/fileops.c: Fix typos in comments.
661         * libio/oldfileops.c: Likewise.
662         * libio/wfileops.c: Likewise.
663
664 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
665
666         [BZ #1349]
667         * malloc/Makefile (tests): Add tst-malloc-usable test case.
668         (tst-malloc-usable-ENV): Set environment for test case.
669         * malloc/hooks.c (malloc_check_get_size): New function to get
670         requested size.
671         * malloc/malloc.c (musable): Use malloc_check_get_size.
672         * malloc/tst-malloc-usable.c: New test case.
673
674 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
675
676         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
677
678 2012-09-05  Allan McRae  <allan@archlinux.org>
679
680         [BZ #13966]
681         * configure.in (CXX_SYSINCLUDES): Use compiler output to
682         determine header location.
683         * configure: Regenerated.
684
685 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
686
687         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
688         float format.
689         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
690         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
691         format.
692         (test): Regenerate.
693
694 2012-09-04  David S. Miller  <davem@davemloft.net>
695
696         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
697         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
698         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
699
700 2012-09-04  Florian Weimer  <fweimer@redhat.com>
701
702         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
703         failures.
704
705         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
706
707 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
708
709         [BZ #9914]
710         * libio/iogetdelim.c: Include <limits.h>.
711         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
712         + len + 1 would overflow.
713
714 2012-09-03  Andreas Jaeger  <aj@suse.de>
715
716         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
717         * sysdeps/i386/fpu/libm-test-ulps: Update.
718
719 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
720
721         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
722         Add s_sinf-sse2, s_conf-sse2.
723
724         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
725         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
726         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
727         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
728
729         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
730         for using routine as __sinf_ia32.
731         Use macro for function declaration and weak_alias.
732         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
733         for using routine as __cosf_ia32.
734         Use macro for function declaration and weak_alias.
735
736         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
737         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
738
739         * sysdeps/x86_64/fpu/s_sinf.S: New file.
740         * sysdeps/x86_64/fpu/s_cosf.S: New file.
741         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
742
743         * math/libm-test.inc (cos_test): Add more test cases.
744         (sin_test): Likewise.
745         (sincos_test): Likewise.
746
747 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
748
749         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
750         (IFUNC_RESOLVE): Make pointers to the specialized implementations
751         hidden.
752         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
753
754 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
755
756         [BZ #14538]
757         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
758         first element of the GOT.
759         (elf_machine_load_address): Return the difference between
760         the runtime address of _DYNAMIC and elf_machine_dynamic ().
761
762 2012-09-01  Allan McRae  <allan@archlinux.org>
763
764         [BZ #13412]
765         * configure.in (AWK): Require gawk version 3.0 or later.
766         * configure: Regenerated.
767
768 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
769
770         * sysdeps/unix/sysv/linux/kernel-features.h
771         (__ASSUME_POSIX_CPU_TIMERS): Remove.
772         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
773         [__NR_clock_getres]: Make code unconditional.
774         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
775         (clock_getcpuclockid): Remove code left unreachable by removal of
776         conditionals.
777         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
778         code unconditional.
779         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
780         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
781         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
782         Make code unconditional.
783         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
784         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
785         * sysdeps/unix/sysv/linux/clock_settime.c
786         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
787         conditional code.
788         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
789         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
790
791 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
792
793         [BZ #14476]
794         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
795         scripts/test-installation.pl.
796
797         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
798         and $ld_so_version if it is set.
799
800 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
801
802         [BZ #14516]
803         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
804         failure if reading from procfs failed.
805         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
806
807 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
808
809         * sysdeps/unix/sysv/linux/kernel-features.h
810         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
811         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
812         Remove conditional code.
813         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
814         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
815         Remove conditional code.
816         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
817         * sysdeps/unix/sysv/linux/i386/fxstat.c
818         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
819         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
820         * sysdeps/unix/sysv/linux/i386/fxstatat.c
821         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
822         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
823         * sysdeps/unix/sysv/linux/i386/lxstat.c
824         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
825         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
826         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
827         Remove conditional code.
828         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
829         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
830         Remove conditional code.
831         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
832         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
833         <kernel-features.h>.
834         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
835         Remove.
836         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
837         Remove conditional code.
838         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
839         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
840         Remove conditional.
841
842 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
843
844         [BZ #5400]
845         * NEWS: Add fixed bug number.
846
847 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
848
849         [BZ #14519]
850         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
851         underflowing exponent in case of negative sign.
852         * stdlib/tst-strtod-round-data: Add more tests.
853         * stdlib/tst-strtod-round.c (tests): Regenerated.
854
855         [BZ #3479]
856         * stdlib/strtod_l.c (NDIG): Remove.
857         (HEXNDIG): Likewise.
858         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
859         smallest representable value.
860         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
861         lie within an exact representation of 1/2 ulp of the result.
862         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
863         unconditionally.
864         (TENS_P9_IDX): Define unconditionally.
865         (TENS_P9_SIZE): Likewise.
866         (TENS_P10_IDX): Likewise.
867         (TENS_P10_SIZE): Likewise.
868         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
869         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
870         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
871         entries for 10^2^13 and 10^2^14.
872         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
873         (TENS_P13_IDX): Define.
874         (TENS_P13_SIZE): Likewise.
875         (TENS_P14_IDX): Likewise.
876         (TENS_P14_SIZE): Likewise.
877         (_fpioconst_pow10): Change array size to
878         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
879         unconditional.
880         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
881         1024]: Add entries for 10^2^13 and 10^2^14.
882         [LAST_POW10 > _LAST_POW10]: Remove #error.
883         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
884         (_fpioconst_pow10): Change array size to
885         FPIOCONST_POW10_ARRAY_SIZE.
886         * stdlib/gen-fpioconst.c: New file.
887         * stdlib/gen-tst-strtod-round.c: Likewise.
888         * stdlib/tst-strtod-round-data: Likewise.
889         * stdlib/tst-strtod-round.c: Likewise.
890         * stdlib/Makefile (tests): Add tst-strtod-round.
891
892         [BZ #14459]
893         * stdlib/strtod_l.c: Include <stdint.h>.
894         (NDEBUG): Do not define.
895         (round_and_return): Change EXPONENT parameter to type intmax_t.
896         Rearrange calculations to avoid internal overflow possibilities.
897         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
898         Rearrange calculations to avoid internal overflow possibilities.
899         Assert that number fits inside MPNSIZE limbs.
900         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
901         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
902         calculations and add assertions to avoid internal overflow
903         possibilities.  Add casts to avoid signed/unsigned operations.
904         * stdlib/tst-strtod-overflow.c: New file.
905         * stdlib/Makefile (tests): Add tst-strtod-overflow.
906
907 2012-08-25  Marek Polacek  <polacek@redhat.com>
908
909         * time/time.h: Fix some typos in comments.
910
911 2012-08-23  Roland McGrath  <roland@hack.frob.com>
912
913         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
914         * posix/tst-rfc3484-2.c: Likewise.
915         * posix/tst-rfc3484-3.c: Likewise.
916
917 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
918
919         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
920         (EF_ARM_ABI_FLOAT_HARD): Likewise.
921
922 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
923
924         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
925         #include of fxstatat64.c.
926
927 2012-08-22  Roland McGrath  <roland@hack.frob.com>
928
929         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
930         * shadow/getspent_r.c: Likewise.
931         * shadow/getspnam.c: Likewise.
932         * shadow/getspnam_r.c: Likewise.
933         * gshadow/getsgent.c: Likewise.
934         * gshadow/getsgent_r.c: Likewise.
935         * gshadow/getsgnam.c: Likewise.
936         * gshadow/getsgnam_r.c: Likewise.
937         * inet/getnetbyad.c: Likewise.
938         * inet/getnetbyad_r.c: Likewise.
939         * inet/getnetbynm.c: Likewise.
940         * inet/getnetbynm_r.c: Likewise.
941         * inet/getnetent.c: Likewise.
942         * inet/getnetent_r.c: Likewise.
943         * inet/getproto.c: Likewise.
944         * inet/getproto_r.c: Likewise.
945         * inet/getprtent.c: Likewise.
946         * inet/getprtent_r.c: Likewise.
947         * inet/getprtname.c: Likewise.
948         * inet/getprtname_r.c: Likewise.
949         * inet/getrpcbyname.c: Likewise.
950         * inet/getrpcbyname_r.c: Likewise.
951         * inet/getrpcbynumber.c: Likewise.
952         * inet/getrpcbynumber_r.c: Likewise.
953         * inet/getrpcent.c: Likewise.
954         * inet/getrpcent_r.c: Likewise.
955         * inet/getaliasent.c: Likewise.
956         * inet/getaliasent_r.c: Likewise.
957         * inet/getaliasname.c: Likewise.
958         * inet/getaliasname_r.c: Likewise.
959         * nscd/getgrgid_r.c: Likewise.
960         * nscd/getgrnam_r.c: Likewise.
961         * nscd/gethstbyad_r.c: Likewise.
962         * nscd/gethstbynm3_r.c: Likewise.
963         * nscd/getpwnam_r.c: Likewise.
964         * nscd/getpwuid_r.c: Likewise.
965         * nscd/getsrvbynm_r.c: Likewise.
966         * nscd/getsrvbypt_r.c: Likewise.
967         * nscd/gai.c: Likewise.
968
969         * configure.in (build_nscd): New substituted variable, set
970         by --disable-build-nscd and defaults to $use_nscd.
971         * configure: Regenerated.
972         * config.make.in (build-nscd): New substituted variable.
973         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
974         Change conditional to require [$(build-nscd) = yes] as well.
975         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
976
977         [BZ# 13696]
978         * configure.in (use_nscd): New substituted variable, set by
979         --disable-nscd.  If enabled, define USE_NSCD.
980         * configure: Regenerated.
981         * config.h.in: Add USE_NSCD.
982         * config.make.in (use-nscd): New substituted variable.
983         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
984         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
985         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
986         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
987         (CFLAGS-getgrnam_r.c): Likewise.
988         (CFLAGS-initgroups.c): Likewise.
989         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
990         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
991         Variables removed.
992         * inet/getnetgrent_r.c
993         (nscd_setnetgrent): New function, broken out of ...
994         (setnetgrent): ... here.  Call it.
995         (innetgr): Conditionalize nscd bits on [USE_NSCD].
996         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
997         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
998         * nscd/Makefile (routines, aux): Move definitions after include of
999         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1000         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1001         Conditionalize on [USE_NSCD].
1002         (is_nscd, nscd_init_cb): Likewise.
1003         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1004         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1005         * nss/nss_db/db-init.c: Likewise.
1006         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1007         [USE_NSCD].
1008         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1009         (make_request): Use it.
1010         (cache_valid_p): New function.
1011         (__check_pf): Use it.
1012         * NEWS: Add item for --disable-nscd.
1013
1014 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1015
1016         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1017         to support sed >= 4.2.1-20-ga9bf076.
1018         * configure: Regenerated.
1019
1020 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1021
1022         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1023         Conditionalize whole body on [IREL].
1024
1025 2012-08-22  Jeff Law <law@redhat.com>
1026
1027         [BZ #14505]
1028         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1029         if the family is PF_UNSPEC.
1030
1031 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1032
1033         * Makerules (lib-version): Rename from V.
1034         (install-lib-nosubdir): Change V to lib-version.
1035
1036 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1037
1038         [BZ #14252]
1039         * powerpc32/power6/wcschr.c: New file.
1040         * powerpc32/power6/wcscpy.c: New file.
1041         * powerpc32/power6/wcsrchr.c: New file.
1042         * powerpc64/power6/wcschr.c: New file.
1043         * powerpc64/power6/wcscpy.c: New file.
1044         * powerpc64/power6/wcsrchr.c: New file.
1045
1046 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1047
1048         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1049         (two_way_short_needle): Use it.
1050         * string/strstr.c (AVAILABLE1_USES_J): Define.
1051         * string/strcasestr.c: Likewise.
1052
1053         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1054         array references.
1055         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1056
1057         [BZ #11607]
1058         * NEWS: Add an entry.
1059         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1060         define their defaults.
1061         (two_way_short_needle): Detect end-of-string on-the-fly.
1062         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1063         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1064         * string/bug-strcasestr1.c: New test.
1065         * string/Makefile: Run it.
1066
1067 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1068
1069         [BZ #11607]
1070         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1071         the first character.
1072
1073 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1074
1075         * csu/elf-init.c (__libc_csu_irel): Function removed.
1076         * csu/libc-start.c (apply_irel): New function.
1077         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1078
1079 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1080
1081         * sysdeps/unix/sysv/linux/kernel-features.h
1082         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1083         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1084         <kernel-features.h>.
1085         [__NR_fadvise64_64]: Make code unconditional.
1086         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1087         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1088         !__NR_fadvise64_64)]: Likewise.
1089         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1090         !__NR_fadvise64_64))]: Likewise.
1091         [__NR_fadvise64]: Make code unconditional.
1092         [!__NR_fadvise64]: Remove conditional code.
1093         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1094         <kernel-features.h>.
1095         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1096         unconditional.
1097         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1098         conditional code.
1099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1100         not include <kernel-features.h>.
1101         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1102         unconditional.
1103         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1104         conditional code.
1105         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1106         include <kernel-features.h>.
1107         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1108         unconditional.
1109         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1110         conditional code.
1111
1112 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1113
1114         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1115         slight instruction rearrangements per scrollpipe analysis.
1116         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1117
1118 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1119
1120         * manual/syslog.texi (syslog; vsyslog, closelog):
1121         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1122         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1123
1124         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1125         DSOCAPS to match condition on defining it.
1126
1127 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1128
1129         * sysdeps/unix/sysv/linux/kernel-features.h
1130         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1132         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1133         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1135         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1136         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1138         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1139         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1140
1141         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1142         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1143
1144         * sysdeps/unix/sysv/linux/kernel-features.h
1145         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1146         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1147         unconditional.
1148         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1149         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1150         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1151         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1152         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1153         Make code unconditional.
1154         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1155         (__mmap64) [!__NR_mmap2]: Likewise.
1156         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1157         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1158         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1159         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1160         [__NR_mmap2]: Make code unconditional.
1161         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1162         (__mmap64) [!__NR_mmap2]: Likewise.
1163
1164 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1165
1166         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1167
1168 2012-08-18  Andreas Jaeger  <aj@suse.de>
1169
1170         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1171
1172 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1173
1174         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1175         * include/unistd.h (__have_sock_cloexec): Likewise.
1176         (__have_pipe2): Likewise.
1177         (__have_dup3): Likewise.
1178
1179 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1180
1181         [BZ #9685]
1182         * include/unistd.h (__have_pipe2): Change define into an extern int.
1183         (__have_dup3): Likewise.
1184         * socket/have_sock_cloexec.c: Include fcntl.h.
1185         (__have_pipe2): New variable.
1186         (__have_dup3): Likewise.
1187
1188 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1189
1190         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1191
1192 2012-08-17  Marek Polacek  <polacek@redhat.com>
1193
1194         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1195         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1196
1197 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1198
1199         * configure.in: Add AC_SUBST for sysheaders.
1200         * configure: Regenerated.
1201         * config.make.in (sysheaders): New substituted variable.
1202
1203         * sysdeps/unix/mkfifo.c: Moved ...
1204         * sysdeps/posix/mkfifo.c: ... here.
1205         * sysdeps/unix/mkfifoat.c: Moved ...
1206         * sysdeps/posix/mkfifoat.c: ... here.
1207
1208         * sysdeps/unix/utime.c: Moved ...
1209         * sysdeps/posix/utime.c: ... here.
1210
1211         * sysdeps/unix/time.c: Moved ...
1212         * sysdeps/posix/time.c: ... here.
1213         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1214         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1215
1216         * sysdeps/unix/nice.c: Moved ...
1217         * sysdeps/posix/nice.c: ... here.
1218
1219         * sysdeps/unix/alarm.c: Moved ...
1220         * sysdeps/posix/alarm.c: ... here.
1221
1222         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1223
1224 2012-08-17  Jeff Law <law@redhat.com>
1225
1226         * intl/Makefile (codeset_mo): New variable.
1227         ($(codeset_mo)): New target.
1228         (tst-codeset.out): Depend on that.  Remove explicit rule.
1229         (tst-gettext3.out, tst-gettext5.out): Likewise.
1230         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1231         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1232         * intl/tst-codeset.sh: Remove.
1233         * intl/tst-gettext3.sh: Likewise.
1234         * intl/tst-gettext5.sh: Likewise.
1235
1236 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1237
1238         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1239         * sysdeps/unix/syscalls.list: ... here.
1240
1241         * sysdeps/posix/getaddrinfo.c
1242         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1243         (gaiconf_init, gaiconf_reload): Use them.
1244         [!_STATBUF_ST_NSEC]
1245         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1246         Define using time_t rather than struct timespec.
1247
1248         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1249         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1250         Macros removed.
1251         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1252         [!NO_THREADS].
1253         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1254         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1255         Likewise.
1256
1257         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1258         __libc_cleanup_push argument.
1259
1260         * bits/param.h: New file.
1261         * misc/sys/param.h: New file.
1262         * include/sys/param.h: New file.
1263         * misc/Makefile (headers): Add bits/param.h.
1264         * sysdeps/generic/sys/param.h: File removed.
1265         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1266         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1267         * sysdeps/mach/hurd/bits/param.h: New file.
1268         * sysdeps/mach/hurd/sys/param.h: New file.
1269
1270         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1271         last change.
1272
1273         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1274         [_IO_MTSAFE_IO].
1275         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1276         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1277         New macros.
1278
1279         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1280         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1281         rather than -D_IO_MTSAFE_IO conditionally.
1282         * stdio-common/Makefile (CPPFLAGS): Likewise.
1283         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1284         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1285         Use $(libio-mtsafe).
1286         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1287         of -D_IO_MTSAFE_IO.
1288         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1289         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1290         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1291         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1292         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1293         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1294         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1295         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1296         (CFLAGS-fread_u_chk.c): Likewise.
1297         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1298         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1299         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1300         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1301         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1302         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1303         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1304         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1305         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1306
1307         * libio/Makefile: Test [$(libc-reentrant) = yes]
1308         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1309
1310         * Makeconfig
1311         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1312         * sysdeps/pthread/configure: File removed.
1313         * sysdeps/pthread/Makeconfig: New file.
1314         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1315         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1316
1317 2012-08-16  Gary Benson  <gbenson@redhat.com>
1318
1319         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1320         unmapping the first object in a namespace.
1321
1322 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1323
1324         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1325         (__internal_setnetgrent): ... this.  Add internal_function to
1326         definition.  Add libc_hidden_def.
1327         (setnetgrent): Update caller.
1328         (internal_endnetgrent): Renamed to ...
1329         (__internal_endnetgrent): ... this.  Add internal_function to
1330         definition.  Add libc_hidden_def.
1331         (endnetgrent): Update caller.
1332         (internal_getnetgrent_r): Renamed to ...
1333         (__internal_getnetgrent_r): ... this.  Add internal_function to
1334         definition.  Add libc_hidden_def.
1335         (__getnetgrent_r): Update caller.
1336         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1337
1338 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1339
1340         * stdlib/longlong.h: Update from GCC.
1341
1342 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1343
1344         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1345         on _QL, which is set by umul_ppmm but never used.
1346         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1347         variables, which are set by GMP macros but never used.
1348         * stdio-common/_itowa.c (_itowa): Likewise.
1349         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1350         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1351
1352 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1353
1354         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1355         struct La_sh_regs is not constant.
1356         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1357         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1358         and struct La_sparc64_regs are not constant.
1359
1360 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1361
1362         * sysdeps/unix/sysv/linux/kernel-features.h
1363         (__ASSUME_POSIX_TIMERS): Remove.
1364         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1365         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1366         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1367         Make code unconditional.
1368         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1369         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1370         Make code unconditional.
1371         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1372         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1373         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1374         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1375         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1376         Make code unconditional.
1377         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1378         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1379         (__libc_missing_posix_timers): Remove.
1380
1381 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1382
1383         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1384         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1385
1386         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1387
1388         * elf/dl-sym.c: Include <stdlib.h>.
1389
1390         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1391         constants, which avoids warnings in 32-bit builds.
1392
1393         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1394         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1395
1396         * misc/lseek.c: File moved to ...
1397         * io/lseek.c: ... here.
1398
1399         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1400
1401         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1402         shifting LEN more than 31 bits at once.
1403
1404 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1405
1406         [BZ #14195]
1407         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1408         segmentation fault for a case of two empty input strings.
1409         * string/test-strncasecmp.c (check1): Renamed to...
1410         (bz12205): ...this.
1411         (bz14195): Add new testcase for two empty input strings and N > 0.
1412         (test_main): Call new testcase, adapt for renamed function.
1413
1414 2012-08-15  Andreas Jaeger  <aj@suse.de>
1415
1416         [BZ #14090]
1417         * crypt/md5test2.c: New test, based on test supplied by Serge
1418         Belyshev <belyshev@depni.sinp.msu.ru>.
1419         * crypt/Makefile (xtests): Add md5test-giant..
1420         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1421
1422 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1423
1424         [BZ #14090]
1425         * crypt/md5.c (md5_process_block): Don't assume the buffer
1426         length is less than 2**32.
1427         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1428         length is less than 2**64.
1429
1430 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1431
1432         * string/str-two-way.h: Include <sys/param.h>.
1433         (MAX): Macro removed.
1434
1435         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1436         Move #define and #undef of memmove to just before and after
1437         including <string.h>.
1438
1439         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1440         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1441         and after including <string.h>.  Move declarations of
1442         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1443         to before #include "string/memmove.c".
1444
1445         * include/dirent.h: Declare __getdirentries.
1446
1447         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1448         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1449
1450 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1451
1452         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1453         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1454         * sysdeps/i386/configure: Regenerated.
1455         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1456         STABS_CURRENT_FILE, and STABS_FUN.
1457         (END): Remove call to STABS_FUN_END.
1458         (STABS_CURRENT_FILE1): Delete.
1459         (STABS_CURRENT_FILE): Likewise.
1460         (STABS_FUN): Likewise.
1461         (STABS_FUN_END): Likewise.
1462         (STABS_FUN2): Likewise.
1463         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1464         * sysdeps/x86_64/configure: Regenerated.
1465
1466 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1467
1468         * elf/dl-open.c: Include <atomic.h>.
1469         * elf/dl-lookup.c: Likewise.
1470
1471 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1472
1473         * sysdeps/unix/sysv/linux/kernel-features.h
1474         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1475         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1476         unconditionally.
1477         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1478         unconditionally.
1479         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1480         condition on __ASSUME_CLONE_THREAD_FLAGS.
1481
1482 2012-08-14  Andreas Jaeger  <aj@suse.de>
1483
1484         * sysdeps/i386/fpu/libm-test-ulps: Update.
1485
1486 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1487
1488         * include/atomic.h (atomic_exchange_and_add): Split into ...
1489         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1490         New atomic macros.
1491
1492 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1493
1494         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1495
1496 2012-08-13  Jeff Law <law@redhat.com>
1497
1498         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1499         null byte in the output string.
1500
1501 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1502
1503         * sysdeps/unix/sysv/linux/kernel-features.h
1504         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1505         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1506         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1507         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1508         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1509         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1510         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1511
1512 2012-08-09  Jeff Law <law@redhat.com>
1513
1514         [BZ #13939]
1515         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1516         When avoid_arena is set, don't retry in the that arena.  Pick the
1517         next one, whatever it might be.
1518         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1519         (arena_lock): Pass in new parameter to arena_get2.
1520         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1521         arena_get2.
1522         (__libc_malloc): Unify retrying after main arena failure with
1523         __libc_memalign version.
1524         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1525
1526 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1527
1528         [BZ #14166]
1529         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1530         to __redirect_strstr.
1531         (__strstr_sse42): Use typeof __redirect_strstr.
1532         (__strstr_ia32): Likewise.
1533         (__libc_strstr): New prototype.
1534         (strstr): Renamed to ...
1535         (__libc_strstr): This.
1536         (strstr): New strong alias of __libc_strstr.
1537         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1538         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1539         __redirect_time.
1540         Include <time.h>.
1541         (__libc_time): New prototype.
1542         (time_ifunc): Replace time with __libc_time.
1543         (time): New strong alias and hidden definition of __libc_time.
1544         (__GI_time): Remove strong alias.
1545         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1546         Include <stddef.h>.
1547         (memmove): Redefined to __redirect_memmove.
1548         (__memmove_sse2): Use typeof __redirect_memmove.
1549         (__memmove_ssse3): Likewise.
1550         (__memmove_ssse3_back): Likewise.
1551         (__libc_memmove): New prototype.
1552         (memmove): Renamed to ...
1553         (__libc_memmove): This.
1554         (memmove): New strong alias of __libc_memmove.
1555
1556 2012-08-08  Mark Salter  <msalter@redhat.com>
1557
1558         * elf/elf.h
1559         (R_MN10300_TLS_GD): Define.
1560         (R_MN10300_TLS_LD): Likewise.
1561         (R_MN10300_TLS_LDO): Likewise.
1562         (R_MN10300_TLS_GOTIE): Likewise.
1563         (R_MN10300_TLS_IE): Likewise.
1564         (R_MN10300_TLS_LE): Likewise.
1565         (R_MN10300_TLS_DTPMOD): Likewise.
1566         (R_MN10300_TLS_DTPOFF): Likewise.
1567         (R_MN10300_TLS_TPOFF): Likewise.
1568         (R_MN10300_SYM_DIFF): Likewise.
1569         (R_MN10300_ALIGN): Likewise.
1570         (R_MN10300_NUM): Update.
1571
1572 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1573
1574         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1575         Remove.
1576
1577 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1578
1579         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1580
1581         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1582         sysdeps/unix -> sysdeps/posix move.
1583         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1584
1585 2012-08-07      Allan McRae     <allan@archlinux.org>
1586
1587         [BZ #14303]
1588         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1589         (SUNOS_CPP): Likewise.
1590         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1591         not found.
1592         (open_input): Call CPP using execvp.
1593
1594 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1595
1596         * sysdeps/unix/sysv/linux/kernel-features.h
1597         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1598         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1599         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1600         (__ASSUME_WAITID_SYSCALL): Likewise.
1601         * sysdeps/unix/sysv/linux/dl-execstack.c
1602         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1603         code unconditional.
1604         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1605         conditional code.
1606         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1607         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1608         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1609         code.
1610         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1611         unconditional.
1612         [__ASSUME_WAITID_SYSCALL]: Likewise.
1613         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1614
1615 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1616
1617         * sysdeps/unix/closedir.c: Renamed to ...
1618         * sysdeps/posix/closedir.c: ... here.
1619         * sysdeps/unix/dirfd.c: Renamed to ...
1620         * sysdeps/posix/dirfd.c: ... here.
1621         * sysdeps/unix/dirstream.h: Renamed to ...
1622         * sysdeps/posix/dirstream.h: ... here.
1623         * sysdeps/unix/fdopendir.c: Renamed to ...
1624         * sysdeps/posix/fdopendir.c: ... here.
1625         * sysdeps/unix/opendir.c: Renamed to ...
1626         * sysdeps/posix/opendir.c: ... here.
1627         * sysdeps/unix/readdir.c: Renamed to ...
1628         * sysdeps/posix/readdir.c: ... here.
1629         * sysdeps/unix/readdir_r.c: Renamed to ...
1630         * sysdeps/posix/readdir_r.c: ... here.
1631         * sysdeps/unix/rewinddir.c: Renamed to ...
1632         * sysdeps/posix/rewinddir.c: ... here.
1633         * sysdeps/unix/seekdir.c: Renamed to ...
1634         * sysdeps/posix/seekdir.c: ... here.
1635         * sysdeps/unix/telldir.c: Renamed to ...
1636         * sysdeps/posix/telldir.c: ... here.
1637         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1638         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1639         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1640         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1641
1642         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1643         * bits/fcntl.h: ... here.
1644
1645         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1646         not 0.
1647         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1648         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1649         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1650         (struct flock): Move l_start, l_len to the beginning.
1651         Use __pid_t for l_pid.
1652         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1653         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1654         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1655         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1656         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1657         [__USE_LARGEFILE64] (struct flock64): New type.
1658         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1659
1660         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1661         * bits/dirent.h: ... here.
1662
1663         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1664         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1665
1666 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1667
1668         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1669         Change from 2.6.0 to 2.6.16.
1670         * sysdeps/unix/sysv/linux/configure: Regenerated.
1671         * sysdeps/unix/sysv/linux/kernel-features.h
1672         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1673         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1674         version.
1675         (__ASSUME_UTIMES): Likewise.
1676         (__ASSUME_CLONE_STOPPED): Remove.
1677         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1678         architectures, not kernel version.
1679         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1680         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1681         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1682         (__ASSUME_WAITID_SYSCALL): Likewise.
1683         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1684         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1685         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1686         refer to older versions.
1687
1688 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1689
1690         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1691         Define alphasort64 as an alias.
1692         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1693         Define versionsort64 as an alias.
1694         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1695         Define scandir64 as an alias.
1696         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1697         Define scandirat64 as an alias.
1698         * dirent/alphasort64.c (alphasort64):
1699         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1700         * dirent/versionsort64.c: Likewise.
1701         * dirent/scandir64.c: Likewise.
1702         * dirent/scandirat64.c: Likewise.
1703         * sysdeps/wordsize-64/alphasort.c: File removed.
1704         * sysdeps/wordsize-64/alphasort64.c: File removed.
1705         * sysdeps/wordsize-64/scandir.c: File removed.
1706         * sysdeps/wordsize-64/scandir64.c: File removed.
1707         * sysdeps/wordsize-64/scandirat.c: File removed.
1708         * sysdeps/wordsize-64/scandirat64.c: File removed.
1709         * sysdeps/wordsize-64/versionsort.c: File removed.
1710         * sysdeps/wordsize-64/versionsort64.c: File removed.
1711         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1712         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1713         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1714         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1715         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1716         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1717         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1718         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1719
1720         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1721         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1722         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1723         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1724         [defined __arch64__ || defined __sparcv9]
1725         (__INO_T_MATCHES_INO64_T): New macro.
1726         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1727         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1728         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1729         * sysdeps/unix/sysv/linux/bits/dirent.h
1730         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1731         (_DIRENT_MATCHES_DIRENT64): New macro.
1732
1733         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1734         Define lockf64 as an alias.
1735         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1736         Define fseeko64 as an alias.
1737         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1738         Define ftello64 as an alias.
1739         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1740         Define _IO_fgetpos64 and fgetpos64 as aliases.
1741         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1742         Define _IO_fsetpos64 and fsetpos64 as aliases.
1743         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1744         Conditionalize body on this.
1745         * libio/fseeko64.c: Likewise.
1746         * libio/ftello64.c: Likewise.
1747         * libio/iofgetpos64.c: Likewise.
1748         * libio/iofsetpos64.c: Likewise.
1749         * sysdeps/wordsize-64/lockf.c: File removed.
1750         * sysdeps/wordsize-64/lockf64.c: File removed.
1751         * sysdeps/wordsize-64/fseeko.c: File removed.
1752         * sysdeps/wordsize-64/fseeko64.c: File removed.
1753         * sysdeps/wordsize-64/ftello.c: File removed.
1754         * sysdeps/wordsize-64/ftello64.c: File removed.
1755         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1756         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1757         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1758         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1759         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1760         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1761         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1762         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1763         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1764         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1765         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1766         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1767         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1768         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1769
1770         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1771         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1772         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1773         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1774         [defined __arch64__ || defined __sparcv9]
1775         (__OFF_T_MATCHES_OFF64_T): New macro.
1776         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1777         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1778         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1779         (__OFF_T_MATCHES_OFF64_T): New macro.
1780
1781 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1782
1783         * stdlib/secure-getenv.c (__secure_getenv): Replace
1784         GLIBC_2_16 with GLIBC_2_17.
1785
1786 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1787
1788         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1789         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1790
1791 2012-08-03  David S. Miller  <davem@davemloft.net>
1792
1793         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1794
1795 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1796
1797         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1798         Remove.
1799         (__ASSUME_CORRECT_SI_PID): Likewise.
1800         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1801         (__ASSUME_TMPFS_NAME): Likewise.
1802         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1803         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1804         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1805         (HAVE_AUX_SECURE): Make definition unconditional.
1806         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1807         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1808
1809 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1810
1811         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1812         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1813         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1814         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1815         __eloop_threshold instead of SYMLOOP_MAX.
1816
1817         * sysdeps/generic/eloop-threshold.h: New file.
1818         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1819         of MAXSYMLINKS.
1820         * elf/chroot_canon.c (chroot_canon): Likewise.
1821
1822 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1823
1824         [BZ #13717]
1825         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1826         Change to 2.6.0 everywhere.
1827         * sysdeps/unix/sysv/linux/configure: Regenerated.
1828         * sysdeps/unix/sysv/linux/kernel-features.h
1829         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1830         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1831         kernel versions.
1832         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1833         (__ASSUME_FUTEX_REQUEUE): Remove.
1834         (__ASSUME_STATFS64): Define unconditionally.
1835         (__ASSUME_AT_SECURE): Likewise.
1836         (__ASSUME_CORRECT_SI_PID): Likewise.
1837         (__ASSUME_TGKILL): Define without depending on kernel version for
1838         i386.
1839         (__ASSUME_UTIMES): Likewise.
1840         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1841         kernel version.
1842         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1843         (__ASSUME_TMPFS_NAME): Likewise.
1844         * README: Update reference to Linux kernel versions.
1845
1846 2012-08-02  Marek Polacek  <polacek@redhat.com>
1847
1848         [BZ# 14150]
1849         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1850         libc_cv_asm_type_prefix with %.
1851         * configure: Regenerated.
1852         * include/libc-symbols.h: Remove comment about
1853         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1854         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1855         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1856         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1857         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1858         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1859         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1860         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1861         * elf/tst-unique2mod1.c: Likewise.
1862         * elf/tst-unique1mod2.c: Likewise.
1863         * elf/tst-unique1mod1.c: Likewise.
1864         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1865         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1866         Replace ASM_TYPE_DIRECTIVE with .type.
1867         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1868         * sysdeps/i386/sysdep.h: Likewise.
1869         * sysdeps/x86_64/sysdep.h: Likewise.
1870         * sysdeps/sh/sysdep.h: Likewise.
1871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1872         Do not define ASM_TYPE_DIRECTIVE.
1873         * sysdeps/powerpc/sysdep.h: Likewise.
1874         * sysdeps/powerpc/powerpc32/sysdep.h:
1875         Replace ASM_TYPE_DIRECTIVE with .type.
1876         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1877         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1878         * sysdeps/i386/fpu/e_powf.S: Likewise.
1879         * sysdeps/i386/fpu/e_expl.S: Likewise.
1880         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1881         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1882         * sysdeps/i386/fpu/e_pow.S: Likewise.
1883         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1884         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1885         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1886         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1887         * sysdeps/i386/fpu/e_log2.S: Likewise.
1888         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1889         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1890         * sysdeps/i386/fpu/e_powl.S: Likewise.
1891         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1892         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1893         * sysdeps/i386/fpu/e_logl.S: Likewise.
1894         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1895         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1896         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1897         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1898         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1899         * sysdeps/i386/fpu/e_log.S: Likewise.
1900         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1901         * sysdeps/i386/fpu/e_logf.S: Likewise.
1902         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1903         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1904         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1905         * sysdeps/i386/fpu/e_log10.S: Likewise.
1906         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1907         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1908         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1909         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1910         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1911         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1912         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1913         * sysdeps/i386/i686/strtok.S: Likewise.
1914         * sysdeps/i386/i386-mcount.S: Likewise.
1915         * sysdeps/i386/strtok.S: Likewise.
1916         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1917         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1918         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1919         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1920         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1921         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1922         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1923         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1924         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1925         * sysdeps/x86_64/_mcount.S: Likewise.
1926         * sysdeps/x86_64/strtok.S: Likewise.
1927         * sysdeps/sh/_mcount.S: Likewise.
1928
1929 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1930
1931         * libio/iofopen.c: Include <fcntl.h>.
1932         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1933         (_IO_fopen64, fopen64): Define as aliases.
1934         * libio/iofopen64.c: Include <fcntl.h>.
1935         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1936         Conditionalize body on this.
1937         * sysdeps/wordsize-64/iofopen.c: File removed.
1938         * sysdeps/wordsize-64/iofopen64.c: File removed.
1939
1940 2012-08-01  Marek Polacek  <polacek@redhat.com>
1941
1942         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1943         Use dlfcn directly instead of a variable.
1944         (binfmt-subdir): Do not define.
1945         (dlfcn): Likewise.
1946
1947 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1948
1949         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1950         Remove all definitions.
1951         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1952         <kernel-features.h>.
1953         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1954         (miss_F_GETOWN_EX): Remove all definitions.
1955         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1956         macro definition.
1957         [!__ASSUME_FCNTL64]: Remove conditional code.
1958         [__ASSUME_FCNTL64]: Make code unconditional.
1959         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1960         <kernel-features.h>.
1961         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1962         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1963         (lockf64) [__NR_fcntl64]: Make code unconditional.
1964         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1965
1966         * sysdeps/unix/sysv/linux/kernel-features.h
1967         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1968         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1969         Make code unconditional.
1970         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1971         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1973         [__NR_vfork]: Make code unconditional.
1974         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1975         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1977         [__NR_vfork]: Make code unconditional.
1978         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1979         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1980
1981 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1982
1983         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1984         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1985
1986         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1987         Define mkstemp64 as an alias.
1988         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1989         Define mkstemps64 as an alias.
1990         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1991         Define mkostemp64 as an alias.
1992         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1993         Define mkostemps64 as an alias.
1994         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1995         Conditionalize body on this.
1996         * misc/mkostemp64.c: Likewise.
1997         * misc/mkostemps64.c: Likewise.
1998         * misc/mkstemps64.c: Likewise.
1999         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2000         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2001         * sysdeps/wordsize-64/mkostemp.c: File removed.
2002         * sysdeps/wordsize-64/mkstemp.c: File removed.
2003         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2004         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2005         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2006         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2007
2008         [BZ #14138]
2009         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2010         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2011         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2012         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2013
2014         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2015         compat_symbol macros from <shlib-compat.h> rather than the underlying
2016         default_symbol_version and symbol_version macros, so that DEFAULT
2017         lines in shlib-versions are respected.
2018         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2019
2020 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2021
2022         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2023         Declare with warn_unused_result.
2024         (setgid, setregid, setegid, setresgid): Likewise.
2025         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2026         Likewise.
2027         * WUR-REPORT: Remove set*id functions.
2028
2029 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2030
2031         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2032
2033 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2034
2035         * include/sys/socket.h (__libc_accept, __libc_accept4):
2036         Add attribute_hidden.
2037         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2038
2039         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2040         use of PTR_MANGLE.
2041         * inet/getnetgrent_r.c (setup): Likewise.
2042
2043         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2044
2045 2012-07-31  David S. Miller  <davem@davemloft.net>
2046
2047         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2048
2049 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2050
2051         [BZ #13629]
2052         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2053         value between 1.0 and 2.0 and smaller part has absolute value less
2054         than 1.0.
2055         * math/s_clog10.c (__clog10): Likewise.
2056         * math/s_clog10f.c (__clog10f): Likewise.
2057         * math/s_clog10l.c (__clog10l): Likewise.
2058         * math/s_clogf.c (__clogf): Likewise.
2059         * math/s_clogl.c (__clogl): Likewise.
2060         * math/libm-test.inc (clog_test): Add more tests.
2061         (clog10_test): Likewise.
2062         * sysdeps/i386/fpu/libm-test-ulps: Update.
2063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2064
2065 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2066
2067         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2068         Exit with zero in case no suitable GID is found, and write a
2069         message to standard error.
2070
2071 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2072
2073         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2074         rather than to 1.
2075         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2076         (MAXPATHLEN): Removed.
2077         (NOGROUP, NODEV): New macros.
2078         (setbit, clrbit, isset, isclr): New macros.
2079         (howmany, roundup, powerof2): New macros.
2080         (DEV_BSIZE): New macro.
2081
2082         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2083         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2084
2085         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2086         definition on [!__NO_LONG_DOUBLE_MATH].
2087
2088         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2089         PTR_MANGLE and PTR_DEMANGLE.
2090
2091         * socket/accept4.c (accept4): Rename to __libc_accept4.
2092         Define accept4 as a weak alias.
2093
2094         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2095         on [_DIRENT_HAVE_D_TYPE].
2096         * io/ftw.c (ftw_dir): Likewise.
2097
2098         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2099
2100         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2101
2102         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2103         Use the BSD numbers rather than the arbitrary ones we had.
2104         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2105         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2106         (SIGXCPU, SIGXFSZ): New macros.
2107         (_NSIG): Now 32.
2108
2109         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2110         initializer on [_LIBC_REENTRANT].
2111
2112         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2113         definitions inside [_POSIX_MAPPED_FILES].
2114
2115         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2116
2117         * dirent/opendir.c: Include <fcntl.h>.
2118
2119         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2120         (__libc_getspecific): Likewise.
2121         (__libc_key_create): Likewise.
2122
2123         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2124         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2125         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2126         (tmpfile64): Define as alias.
2127         * sysdeps/wordsize-64/tmpfile.c: File removed.
2128         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2129         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2130         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2131
2132         * stdio-common/vfscanf.c: Include <stdbool.h>.
2133         * nss/makedb.c: Likewise.
2134         * stdio-common/_i18n_number.h: Likewise.
2135         * argp/argp-help.c: Likewise.
2136         * posix/wordexp.c: Likewise.
2137         * sysdeps/posix/spawni.c: Likewise.
2138         * nss/nss_files/files-initgroups.c: Likewise.
2139         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2140         * nss/nss_files/files-initgroups.c: Likewise.
2141         * nss/nss_db/db-netgrp.c: Likewise.
2142         * nss/nss_db/db-initgroups.c: Likewise.
2143         * io/fchmodat.c: Include <sys/stat.h>.
2144
2145         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2146         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2147
2148         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2149         [HAVE_MMAP].
2150
2151         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2152         Add multiple inclusion protection.
2153
2154 2012-07-27  David S. Miller  <davem@davemloft.net>
2155
2156         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2157
2158 2012-07-27  Gary Benson  <gbenson@redhat.com>
2159
2160         [BZ #14298]
2161         * elf/rtld.c: Include <stap-probe.h>.
2162         (dl_main): Added static probes "init_start" and "init_complete".
2163         * elf/dl-load.c: Include <stap-probe.h>.
2164         (lose): Take new parameter "nsid".
2165         Added static probe "map_failed".
2166         (_dl_map_object_from_fd): Pass namespace id to lose.
2167         Added static probe "map_start".
2168         (open_verify): Pass namespace id to lose.
2169         * elf/dl-open.c: Include <stap-probe.h>.
2170         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2171         and "reloc_complete".
2172         * elf/dl-close.c: Include <stap-probe.h>.
2173         (_dl_close_worker): Added static probes "unmap_start" and
2174         "unmap_complete".
2175         * elf/rtld-debugger-interface.txt: New file documenting the above.
2176
2177 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2178
2179         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2180         rather than a string variable.
2181         * sunrpc/rpc_main.c (h_output): Likewise.
2182         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2183
2184 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2185
2186         * inet/check_native.c: New file.
2187
2188 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2189
2190         [BZ #13629]
2191         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2192         if larger part has absolute value 1.0.
2193         * math/s_clog10.c (__clog10): Likewise.
2194         * math/s_clog10f.c (__clog10f): Likewise.
2195         * math/s_clog10l.c (__clog10l): Likewise.
2196         * math/s_clogf.c (__clogf): Likewise.
2197         * math/s_clogl.c (__clogl): Likewise.
2198         * math/libm-test.inc (clog_test): Add more tests.
2199         (clog10_test): Likewise.
2200         * sysdeps/i386/fpu/libm-test-ulps: Update.
2201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2202
2203         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2204         (pltexit): Likewise.
2205         (La_regs): Likewise.
2206         (La_retval): Likewise.
2207         (int_retval): Likewise.
2208         Update #error for removed macros to refer only to definitions in
2209         tst-audit.h.
2210         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2211         macro.
2212         (pltexit): Likewise.
2213         (La_regs): Likewise.
2214         (La_retval): Likewise.
2215         (int_retval): Likewise.
2216         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2217         macro.
2218         (pltexit): Likewise.
2219         (La_regs): Likewise.
2220         (La_retval): Likewise.
2221         (int_retval): Likewise.
2222         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2223         macro.
2224         (pltexit): Likewise.
2225         (La_regs): Likewise.
2226         (La_retval): Likewise.
2227         (int_retval): Likewise.
2228         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2229         macro.
2230         (pltexit): Likewise.
2231         (La_regs): Likewise.
2232         (La_retval): Likewise.
2233         (int_retval): Likewise.
2234         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2235         macro.
2236         (pltexit): Likewise.
2237         (La_regs): Likewise.
2238         (La_retval): Likewise.
2239         (int_retval): Likewise.
2240         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2241         macro.
2242         (pltexit): Likewise.
2243         (La_regs): Likewise.
2244         (La_retval): Likewise.
2245         (int_retval): Likewise.
2246         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2247         macro definitions in tst-audit.h.
2248         * sysdeps/i386/tst-audit.h: New file.
2249         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2250         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2251         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2252         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2253         * sysdeps/sh/tst-audit.h: Likewise.
2254         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2255         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2256         * sysdeps/x86_64/tst-audit.h: Likewise.
2257
2258 2012-07-26  Andreas Jaeger  <aj@suse.de>
2259
2260         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2261         ptrace.
2262
2263         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2264         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2265         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2266         PTRACE_O_MASK.
2267         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2268         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2269         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2270
2271         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2272         value.
2273
2274         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2275         _sigsys.
2276         (si_call_addr, si_syscall, si_arch): Define new macro.
2277         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2278         _sigsys.
2279         (si_call_addr, si_syscall, si_arch): Define new marcro.
2280         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2281         _sigsys.
2282         (si_call_addr, si_syscall, si_arch): Define new macro.
2283         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2284         _sigsys.
2285         (si_call_addr, si_syscall, si_arch): Define new macro.
2286
2287 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2288
2289         [BZ #13717]
2290         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2291         Change to 2.4.21 where previously 2.4.1.
2292         * sysdeps/unix/sysv/linux/configure: Regenerated.
2293         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2294         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2295         Linux kernel version.
2296         (__ASSUME_STD_AUXV): Remove.
2297         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2298         kernel version.
2299         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2300         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2301         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2302         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2303         (__ASSUME_NETLINK_SUPPORT): Likewise.
2304         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2305         (__no_netlink_support): Remove conditional definition.
2306         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2307         Remove.
2308         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2309         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2310         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2311         (if_nameindex_ioctl): Remove.
2312         (if_nameindex_netlink): Do not handle __no_netlink_support.
2313         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2314         code.
2315         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2316         Remove conditional code.
2317         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2318         code.
2319         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2320         unconditional.
2321         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2322         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2323         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2324         Remove.
2325         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2326         [!__ASSUME_STD_AUXV]: Remove conditional code.
2327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2328         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2329         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2331         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2332         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2333         code.
2334         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2336         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2337         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2338         conditional code.
2339         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2341         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2342         code.
2343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2344         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2345         conditional code.
2346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2347         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2348         code unconditional.
2349         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2350         conditional code.
2351         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2352         unconditional.
2353         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2354         conditional code.
2355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2356         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2357         unconditional.
2358         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2359         conditional code.
2360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2361         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2362         code unconditional.
2363         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2364         conditional code.
2365         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2366         unconditional.
2367         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2368         conditional code.
2369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2370         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2371         code unconditional.
2372         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2373         conditional code.
2374         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2375         unconditional.
2376         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2377         conditional code.
2378
2379 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2380
2381         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2382         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2383         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2384         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2385         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2386         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2387         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2388         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2389         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2390         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2391         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2392         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2393         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2394         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2395         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2396         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2397         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2398         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2399         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2400         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2401         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2402         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2403         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2404
2405 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2406
2407         * Versions.def: Add GLIBC_2.17.
2408         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2409         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2410         Introduce __libc_secure_getenv.
2411         * stdlib/Versions (2.17): Add secure_getenv
2412         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2413         * stdlib/secure-getenv.c: Rename __secure_getenv to
2414         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2415         symbol __secure_getenv for GLIBC_2.0.
2416         * stdlib/tst-secure-getenv.c: New.
2417         * stdlib/Makefile (tests): Add testcase.
2418         * manual/startup.texi (Environment Access): Document
2419         secure_getenv.
2420         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2421         __libc_secure_getenv.
2422         * inet/ruserpass.c (ruserpass): Likewise.
2423         * malloc/mtrace.c (mtrace): Likewise.
2424         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2425         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2426         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2427         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2428         HAVE_SECURE_GETENV.
2429         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2430         __secure_getenv to __libc_secure_getenv.
2431         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2433         Likewise.
2434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2435         Likewise.
2436         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2437         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2438         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2439         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2440         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2441         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2442         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2443
2444 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2445
2446         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2447         (struct La_i86_retval): Likewise.
2448         (struct La_x86_64_regs): Likewise.
2449         (struct La_x86_64_retval): Likewise.
2450         (struct La_x32_regs): Likewise.
2451         (struct La_x32_retval): Likewise.
2452         (struct La_ppc32_regs): Likewise.
2453         (struct La_ppc32_retval): Likewise.
2454         (struct La_ppc64_regs): Likewise.
2455         (struct La_ppc64_retval): Likewise.
2456         (struct La_sh_regs): Likewise.
2457         (struct La_sh_retval): Likewise.
2458         (struct La_s390_32_regs): Likewise.
2459         (struct La_s390_32_retval): Likewise.
2460         (struct La_s390_64_regs): Likewise.
2461         (struct La_s390_64_retval): Likewise.
2462         (struct La_sparc32_regs): Likewise.
2463         (struct La_sparc32_retval): Likewise.
2464         (struct La_sparc64_regs): Likewise.
2465         (struct La_sparc64_retval): Likewise.
2466         (struct audit_ifaces): Remove architecture-specific pltenter and
2467         pltexit members.
2468         * sysdeps/i386/ldsodefs.h: New file.
2469         * sysdeps/powerpc/ldsodefs.h: Likewise.
2470         * sysdeps/s390/ldsodefs.h: Likewise.
2471         * sysdeps/sh/ldsodefs.h: Likewise.
2472         * sysdeps/sparc/ldsodefs.h: Likewise.
2473         * sysdeps/x86_64/ldsodefs.h: Likewise.
2474
2475 2012-07-25  Marek Polacek  <polacek@redhat.com>
2476
2477         [BZ #6808]
2478         * math/libm-test.inc (yn_test): Add another test.
2479         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2480         to ERANGE when the result is +-Inf.
2481         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2482         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2483         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2484         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2485
2486 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2487
2488         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2489         equal to 0.
2490         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2491         clock_t.
2492         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2493
2494 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2495
2496         * configure.in <sysdeps resolving>: Correct printing
2497         Implies_before.
2498         * configure: Regenerate.
2499
2500 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2501
2502         * math/w_ilogb.c: Include <limits.h>.
2503         * math/w_ilogbl.c: Likewise.
2504
2505 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2506
2507         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2508         va_copy.  Document allowing for unavailable va_copy only as
2509         pre-C99 compatibility.
2510         * manual/string.texi (Copying and Concatenation): Use va_copy
2511         instead of __va_copy in concat example.
2512
2513 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2514
2515         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2516         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2517         it if not null.
2518
2519         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2520         with O_NOLINK passed to __file_name_lookup.
2521
2522         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2523         with O_NOLINK passed to __file_name_lookup.
2524
2525         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2526         negative N or less than NGIDS.
2527
2528         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2529         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2530         enough.  Use memcpy instead of strncpy.
2531
2532 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2533
2534         * elf/Makefile (check-data): Remove.
2535         (localplt.data): New vpath directive.
2536         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2537         instead of $(check-data).
2538         * scripts/data/localplt-generic.data: Move to ...
2539         * sysdeps/generic/localplt.data: ... here.
2540         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2541         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2542         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2544         ... here.
2545         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2547         ... here.
2548         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2550         ... here.
2551         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2552         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2553         ... here.
2554         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2555         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2556         ... here.
2557         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2558         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2559         ... here.
2560
2561 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2562
2563         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2564         PPC32 and PPC64 files.
2565         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2566         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2567
2568 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2569
2570         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2571         __makecontext_ret to ...
2572         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2573         ... here and call exit if uc_link is NULL.  New file.
2574         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2575         __makecontext_ret.S.
2576         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2577         __makecontext_ret to ...
2578         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2579         ... here and call exit if uc_link is NULL.  New file.
2580         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2581         __makecontext_ret.S.
2582
2583 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2584
2585         * elf/elf.h (R_390_IRELATIVE): New definition.
2586         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2587         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2588         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2589         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2590         (elf_machine_lazy_rel): Likewise.
2591         * sysdeps/s390/dl-irel.h: New file.
2592         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2593         * sysdeps/s390/s390-64/memset.S: New asm code.
2594         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2595         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2596         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2597         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2598         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2599         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2600         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2601         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2602         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2603         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2604         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2605         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2606         * sysdeps/s390/s390-32/memset.S: New asm code.
2607         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2608
2609 2012-07-17  Marek Polacek  <polacek@redhat.com>
2610
2611         [BZ #14349]
2612         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2613         * sysdeps/s390/s390-64/configure.in: Likewise.
2614         * sysdeps/sparc/configure.in: Likewise.
2615         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2616         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2617         * sysdeps/i386/configure.in: Likewise.
2618         * sysdeps/x86_64/configure.in: Likewise.
2619         * sysdeps/sh/configure.in: Likewise.
2620         * sysdeps/s390/s390-32/configure: Regenerated.
2621         * sysdeps/s390/s390-64/configure: Likewise.
2622         * sysdeps/x86_64/configure: Likewise.
2623         * sysdeps/sh/configure: Likewise.
2624         * sysdeps/powerpc/powerpc64/configure: Likewise.
2625         * sysdeps/powerpc/powerpc32/configure: Likewise.
2626         * sysdeps/sparc/configure: Likwise.
2627         * sysdeps/i386/configure: Likewise.
2628
2629         * elf/dl-open.c: Comment fixes.
2630
2631 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2632
2633         * Makefile [CXX] (check-data): Remove.
2634         [CXX] (c++-types.data): New vpath directive.
2635         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2636         vpath.  Do not allow for C++ type data being missing.
2637         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2638         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2639         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2640         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2641         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2642         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2643         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2645         ... here.
2646         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2648         ... here.
2649         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2650         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2651         ... here.
2652         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2653         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2654         ... here.
2655         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2656         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2657         ... here.
2658         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2659         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2660         ... here.
2661         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2662         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2663         ... here.
2664         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2665         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2666
2667         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2668         definitions to architecture-specific files.
2669         (TLS_IE): Likewise.
2670         (TLS_LD): Likewise.
2671         (TLS_GD): Likewise.
2672         * sysdeps/i386/tls-macros.h: New file.
2673         * sysdeps/powerpc/tls-macros.h: Likewise.
2674         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2675         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2676         * sysdeps/sh/tls-macros.h: Likewise.
2677         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2678         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2679         * sysdeps/x86_64/tls-macros.h: Likewise.
2680
2681 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2682
2683         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2684         zero value for regular exit case.
2685
2686         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2687         (__start_context): Preserve zero value for regular exit case.
2688
2689 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2690             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2691
2692         * manual/setjmp.texi (setcontext): Clarify normal process
2693         termination when uc_link is the null pointer.
2694         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2695         exit call.
2696
2697 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2698
2699         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2700         preprocessor.  Test for each exception mask separately.
2701
2702 2012-07-16  Andreas Jaeger  <aj@suse.de>
2703
2704         * po/ru.po: Update from translation team.
2705
2706 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2707
2708         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2709         equal to 0.
2710         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2711         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2712         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2713         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2714         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2715
2716 2012-07-13  Andreas Jaeger  <aj@suse.de>
2717
2718         * po/fr.po: Update from translation team.
2719
2720 2012-07-12  Marek Polacek  <polacek@redhat.com>
2721
2722         [BZ #14173]
2723         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2724         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2725         loop condition.
2726
2727 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2728
2729         [BZ #13717]
2730         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2731         Change to 2.4.1 where previously 2.4.0.
2732         * sysdeps/unix/sysv/linux/configure: Regenerated.
2733         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2734         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2735         version.
2736         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2737         (__ASSUME_AT_CLKTCK): Remove.
2738         (__ASSUME_AT_PAGESIZE): Likewise.
2739         (__ASSUME_AT_XID): Likewise.
2740         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2741         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2742         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2743         unconditionally.
2744         (HAVE_AUX_PAGESIZE): Likewise.
2745         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2746         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2747         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2748
2749 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2750
2751         [BZ #14307]
2752         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2753         the temporary buffer used to invoke __gethostbyname2_r,
2754         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2755         host_data / struct gaih_addrtuple.
2756         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2757         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2758         header file nss/nsswitch.h.
2759         * nss/nsswitch.h (global scope): Add definition of implementation
2760         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2761         resolv/nss_dns/dns-host.c).
2762
2763 2012-07-11  Andreas Jaeger  <aj@suse.de>
2764
2765         * po/fr.po: Update from translation team.
2766
2767         * po/sv.po: Update from translation team
2768         * po/fr.po: Another update from translation team.
2769
2770 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2771
2772         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2773         for subnormals or multiply small sinh result by itself.
2774         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2776
2777 2012-07-11  David S. Miller  <davem@davemloft.net>
2778
2779         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2780
2781 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2782
2783         [BZ #14347]
2784         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2785         (INTERNAL_MARK): Shift it here.
2786
2787 2012-07-10  Marek Polacek  <polacek@redhat.com>
2788
2789         [BZ #14151]
2790         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2791         libc_cv_asm_global_directive with .globl.
2792         * configure: Regenerated.
2793         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2794         with .globl.
2795         * sysdeps/i386/configure: Regenerated.
2796         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2797         with .globl.
2798         * sysdeps/x86_64/configure: Regenerated.
2799         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2800         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2801         * elf/tst-unique2mod2.c: Likewise.
2802         * elf/tst-unique2mod1.c: Likewise.
2803         * elf/tst-unique1mod2.c: Likewise.
2804         * elf/tst-unique1mod1.c: Likewise.
2805         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2806         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2807         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2808         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2809         * sysdeps/mach/sysdep.h: Likewise.
2810         * sysdeps/i386/sysdep.h: Likewise.
2811         * sysdeps/i386/i386-mcount.S: Likewise.
2812         * sysdeps/x86_64/_mcount.S: Likewise.
2813         * sysdeps/x86_64/sysdep.h: Likewise.
2814         * sysdeps/sh/_mcount.S: Likewise.
2815         * sysdeps/sh/sysdep.h: Likewise.
2816         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2817         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2818         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2819         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2820         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2821         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2822         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2823         * locale/localeinfo.h: Likewise.
2824         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2825         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2826
2827 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2828
2829         [BZ #14336]
2830         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2831         system".
2832         * manual/message.texi (The Uniforum approach): Likewise.
2833         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2834         (glibc iconv Implementation): Likewise.
2835
2836 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2837
2838         [BZ #14337]
2839         * math/s_clog.c (__clog): Avoid scaling a value down where that
2840         could result in underflow.
2841         * math/s_clog10.c (__clog10): Likewise.
2842         * math/s_clog10f.c (__clog10f): Likewise.
2843         * math/s_clog10l.c (__clog10l): Likewise.
2844         * math/s_clogf.c (__clogf): Likewise.
2845         * math/s_clogl.c (__clogl): Likewise.
2846         * math/libm-test.inc (clog_test): Add more tests.
2847         (clog10_test): Likewise.
2848         * sysdeps/i386/fpu/libm-test-ulps: Update.
2849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2850
2851 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2852
2853         [BZ #14283]
2854         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2855         by 7 not 8 to examine high bit of fractional part.
2856
2857         [BZ #14042]
2858         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2859         for call to __mcount_internal.
2860         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2861         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2862         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2863
2864 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2865
2866         [BZ #14154]
2867         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2868         approximation for values within 0x1p-13f of an odd multiple of
2869         pi/4.
2870         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2871         exception.  Add more tests.
2872         * sysdeps/i386/fpu/libm-test-ulps: Update.
2873
2874         [BZ #6778]
2875         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2876         inputs and return -1 for them.  Do not check for +Inf in case not
2877         reachable for +Inf.
2878         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2879         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2880         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2881         and return -1 for them.  Do not check for +Inf in case not
2882         reachable for +Inf.
2883         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2884         define.
2885         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2886         and return -1 for them.  Do not check for +Inf in case not
2887         reachable for +Inf.
2888         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2889         spurious underflow.
2890         * sysdeps/i386/fpu/libm-test-ulps: Update.
2891         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2892
2893 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2894
2895         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2896
2897 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2898
2899         [BZ #14157]
2900         [BZ #14331]
2901         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2902         could result in spurious underflow.  Scale down values above
2903         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2904         * math/s_csqrtf.c (__csqrtf): Likewise.
2905         * math/s_csqrtl.c (__csqrtl): Likewise.
2906         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2907         spurious underflow.
2908         * sysdeps/i386/fpu/libm-test-ulps: Update.
2909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2910
2911 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2912
2913         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2914         xopen-msg.sed.
2915         * catgets/xopen-msg.awk: New file.
2916         * catgets/xopen-msg.sed: Removed.
2917
2918         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2919         po2text.sed.
2920         * intl/po2test.awk: New file.
2921         * intl/po2test.sed: Removed.
2922
2923 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2924
2925         [BZ #14328]
2926         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2927         or multiply small sinh result by itself.
2928         * math/s_ctanf.c (__ctanf): Likewise.
2929         * math/s_ctanh.c (__ctanh): Likewise.
2930         * math/s_ctanhf.c (__ctanhf): Likewise.
2931         * math/s_ctanhl.c (__ctanhl): Likewise.
2932         * math/s_ctanl.c (__ctanl): Likewise.
2933         * math/libm-test.inc (ctan_test_tonearest): New function.
2934         (ctan_test_towardzero): Likewise.
2935         (ctan_test_downward): Likewise.
2936         (ctan_test_upward): Likewise.
2937         (ctanh_test_tonearest): Likewise.
2938         (ctanh_test_towardzero): Likewise.
2939         (ctanh_test_downward): Likewise.
2940         (ctanh_test_upward): Likewise.
2941         (main): Call these new functions.
2942         * sysdeps/i386/fpu/libm-test-ulps: Update.
2943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2944
2945 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2946
2947         * .gitignore: Delete /ports entry.
2948
2949 2012-07-03  Andreas Jaeger  <aj@suse.de>
2950
2951         * po/bg.po: Update from translation team.
2952         * po/cs.po: Likewise.
2953         * po/de.po: Likewise.
2954         * po/hr.po: Likewise.
2955         * po/nl.pl: Likewise.
2956         * po/pl.po: Likewise.
2957         * po/vi.po: Likewise.
2958
2959 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2960
2961         * Makeconfig [!+link] (+link-before-libc): New variable.
2962         [!+link] (+link-after-libc): Likewise.
2963         [!+link] (+link-tests): Likewise.
2964         [!+link] (+link): Define in terms of $(+link-before-libc) and
2965         $(+link-after-libc).
2966         [!+link-static] (+link-static-before-libc): New variable.
2967         [!+link-static] (+link-static-after-libc): Likewise.
2968         [!+link-static] (+link-static-tests): Likewise.
2969         [!+link-static] (+link-static): Define in terms of
2970         $(+link-static-before-libc) and $(+link-static-after-libc).
2971         [build-shared] (link-libc-before-gnulib): New variable.
2972         [build-shared] (link-libc-tests): Likewise.
2973         [build-shared] (link-libc): Define in terms of
2974         $(link-libc-before-gnulib).
2975         [!build-shared] (link-libc-tests): New variable.
2976         (link-libc-static-tests): New variable.
2977         [!gnulib] (gnulib-arch): New variable.
2978         [!gnulib] (gnulib-tests): Likewise.
2979         [!gnulib] (static-gnulib-arch): Likewise.
2980         [!gnulib] (static-gnulib-tests): Likewise.
2981         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2982         Define with "=" instead of ":=".
2983         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2984         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2985         * Rules (binaries-all-notests): New variable.
2986         (binaries-all-tests): Likewise.
2987         (binaries-static-notests): Likewise.
2988         (binaries-static-tests): Likewise.
2989         (binaries-all): Define using $(binaries-all-notests) and
2990         $(binaries-all-tests).
2991         (binaries-static): Define using $(binaries-static-notests) and
2992         $(binaries-static-tests).
2993         (binaries-shared-tests): New variable.
2994         (binaries-shared-notests): Likewise.
2995         (binaries-shared): Remove variable.
2996         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2997         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2998         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2999         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3000         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3001         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3002         * elf/Makefile (sln-modules): New variable.
3003         (extra-objs): Add $(sln-modules:=.o).
3004         (ldconfig-modules): Add static-stubs.
3005         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3006         * elf/static-stubs.c: New file.
3007
3008         [BZ #14283]
3009         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3010         by 7 not 8 to examine high bit of fractional part.  Use volatile
3011         variables when splitting into final array of floats if
3012         __FLT_EVAL_METHOD__ != 0.
3013         * math/libm-test.inc (cos_test): Add another test.
3014         (sin_test): Likewise.
3015         * sysdeps/i386/fpu/libm-test-ulps: Update.
3016
3017         [BZ #14273]
3018         * math/libm-test.inc (cosh_test): Add more tests.
3019
3020         * version.h (RELEASE): Set to "development".
3021         (VERSION): Set to "2.16.90".
3022
3023 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3024
3025         * NEWS: Update copyright. Remove last-updated date.
3026         Mention math library bug fixes and timezone data changes.
3027         * README: Mention GNU/Hurd, x32, and HPPA support status.
3028
3029 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3030
3031         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3032
3033 2012-06-27  Andreas Jaeger  <aj@suse.de>
3034
3035         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3036
3037 2012-06-25  Andreas Jaeger  <aj@suse.de>
3038
3039         * sysdeps/s390/fpu/libm-test-ulps: Update.
3040
3041 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3042             Thomas Schwinge  <thomas@codesourcery.com>
3043
3044         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3045         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3046         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3047         fanotify_mark.
3048
3049 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3050
3051         * sysdeps/mach/start.c: Remove file.
3052         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3053         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3054         * sysdeps/sh/init-first.c: Likewise.
3055
3056         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3057         registers for frame unwinding purposes, add CFI directives.
3058         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3059         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3060         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3061         Likewise.
3062
3063         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3064         __fortify_fail returning.
3065         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3066
3067         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3068         sysdeps/sh/____longjmp_chk.S.
3069         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3070         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3071         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3072         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3073
3074         * sysdeps/sh/abort-instr.h: New file.
3075         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3076         process in case exit returns.
3077
3078         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3079         initialize the GOT register before use.
3080
3081         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3082         calculation of ARGC > 4.
3083
3084         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3085         meaningful names to some local labels.
3086
3087 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3088             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3089
3090         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3091         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3092         (__arch_compare_and_exchange_val_16_acq): Likewise.
3093         (__arch_compare_and_exchange_val_32_acq): Likewise.
3094         (atomic_exchange_and_add): Fix gUSA sequence.
3095         (atomic_add): Likewise.
3096         (atomic_add_negative): Likewise.
3097         (atomic_add_zero): Likewise.
3098         (atomic_bit_test_set): Likewise.
3099
3100 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3101
3102         [BZ #13579]
3103         * include/link.h (struct link_map): Add l_free_initfini.
3104         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3105         l_initfini.
3106         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3107         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3108         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3109         set.
3110
3111 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3112
3113         * configure.in: Use AC_LANG_SOURCE.
3114         * configure: Regenerate.
3115
3116 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3117
3118         * configure.in (libc_cv_localstatedir): New substituted variable.
3119         * configure: Regenerated.
3120         * config.make.in (localstatedir): New variable, substituted from
3121         libc_cv_localstatedir.
3122         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3123         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3124         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3125         * sysdeps/gnu/configure: Regenerated.
3126
3127 2012-06-21  Jeff Law  <law@redhat.com>
3128
3129         [BZ #14277]
3130         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3131         free.  Simplify list management for _LIBC case.
3132
3133 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3134
3135         [BZ #14273]
3136         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3137         Clear sign bit of 64-bit integer value before comparing against
3138         overflow value.
3139
3140         * sysdeps/mach/configure: Regenerated.
3141
3142 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3143
3144         [BZ #14278]
3145         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3146
3147 2012-06-21  Jeff Law  <law@redhat.com>
3148
3149         [BZ #13882]
3150         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3151         uint16_t for elements in the "seen" array to avoid char overflows.
3152         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3153         * elf/dl-open.c (dl_open_worker): Likewise.
3154
3155 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3156
3157         * scripts/list-sources.sh: Scan PORTS for translations.
3158         * po/libc.pot: Regenerated.
3159
3160 2012-06-21  Andreas Jaeger  <aj@suse.de>
3161
3162         [BZ #12194]
3163         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3164         warning.
3165         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3166         * bits/byteswap-16.h (__bswap_16): Likewise.
3167         * bits/byteswap.h (__bswap_constant_16): Likewise.
3168
3169 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3170
3171         [BZ #14117]
3172         * sysdeps/i386/fpu_control.h: Removed.
3173         * sysdeps/x86_64/fpu_control.h: Moved to ...
3174         * sysdeps/x86/fpu_control.h: Here.
3175
3176         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3177         (_FPU_SETCW): Likewise.
3178
3179 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3180
3181         [BZ #14117]
3182         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3183         * sysdeps/x86/fpu/bits/mathinline.h: This.
3184         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3185
3186         [BZ #14050]
3187         [BZ #14117]
3188         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3189         functions if __x86_64__ is defined.
3190
3191 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3192
3193         * string/endian.h: Add !__ASSEMBLER__ condition for including
3194         conversion interfaces.
3195
3196 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3197
3198         [BZ #14241]
3199         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3200         of ABS(x) in calculating zero to negative powers other than odd
3201         integers.
3202         * math/libm-test.inc (pow_test): Add more tests.
3203
3204 2012-06-15  Andreas Jaeger  <aj@suse.de>
3205
3206         * manual/contrib.texi (Contributors): Update entry of Liubov
3207         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3208         Machado Filho.
3209
3210 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3211
3212         * string/string.h: Add __wur to GNU version of strerror_r.
3213
3214 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3215
3216         [BZ #14229]
3217         * string/Makefile (tests): Add tst-strtok_r.
3218         * string/tst-strtok_r.c: New file.
3219         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3220         RAX_LP/RDX_LP on SAVE_PTR.
3221
3222 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3223
3224         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3225
3226 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3227
3228         * libm_test.inc (csqrt_test): Allow more spurious underflow
3229         exceptions.
3230         (j0_test): Likewise.
3231         (j1_test): Likewise.
3232         (y0_test): Likewise.
3233         (y1_test): Likewise.
3234
3235 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3236
3237         * po/Makefile (libc.pot): Use UTF-8 charset.
3238
3239 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3240
3241         [BZ #14210]
3242         Suppress sign-conversion warning from FD_SET.
3243         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3244         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3245         not unsigned long int.
3246         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3247
3248 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3249
3250         [BZ #14050]
3251         [BZ #14117]
3252         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3253         __extern_always_inline instead of __extern_inline.
3254         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3255         (__signbit): Likewise.
3256         (__signbitl): Support C++ namespace.
3257         (lrintf): New inline function.
3258         (lrint): Likewise.
3259         (llrintf): Likewise.
3260         (llrint): Likewise.
3261         (fmaxf): Likewise.
3262         (fmax): Likewise.
3263         (fminf): Likewise.
3264         (fmin): Likewise.
3265         (rint): Likewise.
3266         (rintf): Likewise.
3267         (ceil): Likewise.
3268         (ceilf): Likewise.
3269         (floor): Likewise.
3270         (floorf): Likewise.
3271         (nearbyint): Likewise.
3272         (nearbyintf): Likewise.
3273
3274 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3275
3276         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3277         non-default versions.
3278
3279 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3280
3281         [BZ #14218]
3282         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3283
3284 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3285
3286         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3287         (FE_UPWARD, FE_DOWNWARD): Don't define.
3288         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3289         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3290
3291         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3292         reading it.
3293         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3294         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3295
3296 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3297
3298         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3299         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3300         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3301         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3302
3303 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3304
3305         [BZ #14117]
3306         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3307         * sysdeps/i386/fpu/Implies: New file.
3308         * sysdeps/x86_64/fpu/Implies: Likewise.
3309         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3310         * sysdeps/x86/fpu/bits/fenv.h: This.
3311
3312         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3313         __SSE_MATH__.
3314
3315 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3316
3317         [BZ #14134]
3318         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3319         character 0xffff that matches the last element of the
3320         conversion table.
3321
3322 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3323
3324         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3325         fmodl commit.
3326
3327 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3328
3329         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3330         values higher than 25.6283.
3331
3332 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3333
3334         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3335         subnormal exponent extraction and add some __builtin_expect.
3336         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3337         Fix for subnormal mantissa calculation.
3338
3339 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3340
3341         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3342         cpu2 is -1 and errno is not ENOSYS.
3343
3344 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3345
3346         [BZ #14117]
3347         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3348         * sysdeps/x86/bits/string.h: This.
3349         * sysdeps/x86_64/bits/string.h: Removed.
3350
3351         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3352         if not compiling for x86-64, but compiling for >= i486.
3353
3354         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3355         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3356
3357         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3358         New macro from Linux kernel 3.4.0.
3359         (FP_XSTATE_MAGIC2): Likewise.
3360         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3361         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3362         (struct _fpx_sw_bytes): New struct.
3363         (struct _xsave_hdr): Likewise.
3364         (struct _ymmh_state): Likewise.
3365         (struct _xstate): Likewise.
3366
3367         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3368         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3369         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3370         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3371         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3372         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3373
3374         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3375         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3376         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3377         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3378         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3379         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3380
3381 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3382
3383         [BZ #13743]
3384         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3385         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3386         (sysdep_headers): Include sys/platform/ppc.h.
3387         * sysdeps/powerpc/test-gettimebase.c: Test for
3388         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3389         * manual/Makefile (appendices): Include platform.texi.
3390         * manual/contrib.texi (Contributors): Update @node pointers.
3391         * manual/maint.texi (Maintenance): Likewise.
3392         (Platform): New node.
3393         * manual/platform.texi: New file.  Document the new features.
3394
3395 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3396             Jakub Jelinek  <jakub@redhat.com>
3397
3398         [BZ #14188]
3399         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3400         where __builtin_expect is unavailable.
3401
3402 2012-06-03  David S. Miller  <davem@davemloft.net>
3403
3404         * stdlib/longlong.h: Updated from GCC.
3405
3406 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3407
3408         [BZ #14042]
3409         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3410         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3411         __mcount_internal.
3412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3413         (GLIBC_2.16): Likewise.
3414
3415 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3416
3417         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3418
3419 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3420
3421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3422         (default-abi): New variable.
3423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3424         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3425         variable.
3426         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3427         Likewise.
3428         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3429         Likewise.
3430         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3431         Likewise.
3432
3433         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3434         definition.  Document in comment.
3435
3436 2012-06-01  David S. Miller  <davem@davemloft.net>
3437
3438         * stdlib/longlong.h: Updated from GCC.
3439
3440 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3441
3442         [BZ #14117]
3443         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3444         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3445         sys/debugreg.h sys/io.h here.
3446         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3447         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3448         sys/io.h.
3449         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3450         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3451         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3452         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3453         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3454         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3455
3456         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3457         Define only if __x86_64__ is defined.
3458
3459 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3460
3461         [BZ #14048]
3462         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3463         Use int64_t for variable i.
3464         * math/libm-test.inc (fmod_test): Add more tests.
3465
3466         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3467         z computation is not scheduled after fetestexcept.
3468         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3469         Use math_force_eval instead of asm to ensure calculation scheduled
3470         before exception test.
3471         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3472         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3473
3474 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3475
3476         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3477         computation is not scheduled after fetestexcept.
3478
3479 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3480
3481         [BZ #14117]
3482         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3483         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3484
3485 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3486
3487         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3488         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3489
3490 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3491
3492         [BZ #14117]
3493         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3494         <bits/wordsize.h>.
3495         (__WCHAR_MIN): Support __WORDSIZE == 64.
3496         (__WCHAR_MAX): Likewise.
3497
3498         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3499         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3500
3501         [BZ #14183]
3502         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3503         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3504
3505         [BZ #14117]
3506         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3507         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3508
3509         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3510         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3511
3512         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3513         Defined to 1 if __x86_64__ isn't defined.
3514         (_STAT_VER_LINUX_OLD): New.
3515         (st_atime): Remove duplicate.
3516         (st_mtime): Likewise.
3517         (st_ctime): Likewise.
3518
3519 2012-05-31  David S. Miller  <davem@davemloft.net>
3520
3521         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3522         entries.
3523
3524 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3525
3526         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3527         gen-libm-test.pl.
3528
3529         [BZ #14132]
3530         * elf/dl-reloc.c: Include <_itoa.h>.
3531         (_dl_reloc_bad_type): Remove use of INTUSE.
3532         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3533         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3534         * stdio-common/psiginfo.c (psiginfo): Likewise.
3535         * stdio-common/psignal.c (psignal): Likewise.
3536         * string/strsignal.c (strsignal): Likewise.
3537         * include/signal.h (_sys_siglist): Declare hidden proto.
3538         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3539         INTVARDEF with libc_hidden_data_def.
3540         * stdio-common/itoa-udigits.c: Likewise.
3541         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3542         (_itoa_lower_digits_internal): Remove declaration.
3543         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3544         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3545         (_sys_sigabbrev_internal): Remove aliases.
3546         (_sys_siglist): Define hidden alias.
3547
3548 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3549
3550         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3551         bits/sysctl.h.
3552
3553 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3554
3555         [BZ #14117]
3556         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3557         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3558
3559         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3560         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3561         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3562         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3563         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3564         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3565
3566         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3567         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3568         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3569
3570         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3571         with __addr.
3572         (insw): Likewise.
3573         (insl): Likewise.
3574         (outsb): Likewise.
3575         (outsw): Likewise.
3576         (outsl): Likewise.
3577
3578         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3579         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3580         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3581
3582         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3583         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3584         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3585         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3586         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3587         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3588
3589         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3590         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3591
3592         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3593         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3594
3595         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3596         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3597         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3598
3599         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3600         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3601         to ...
3602         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3603
3604         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3605         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3606         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3607
3608         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3609         for x86-64.
3610         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3611
3612 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3613
3614         * math/math.h (M_El): Use two more decimal places.
3615         (M_LOG2El): Likewise.
3616         (M_LOG10El): Likewise.
3617         (M_LN2l): Likewise.
3618         (M_LN10l): Likewise.
3619         (M_PIl): Likewise.
3620         (M_PI_2l): Likewise.
3621         (M_PI_4l): Likewise.
3622         (M_1_PIl): Likewise.
3623         (M_2_PIl): Likewise.
3624         (M_2_SQRTPIl): Likewise.
3625         (M_SQRT2l): Likewise.
3626         (M_SQRT1_2l): Likewise.
3627
3628 2012-05-31  David S. Miller  <davem@davemloft.net>
3629
3630         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3631         values between float registers.
3632         * sysdeps/sparc/sparc64/memset.S: Likewise.
3633         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3634
3635 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3636
3637         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3638         -D_FORTIFY_SOURCE=1.
3639         (CPPFLAGS-tst-longjmp_chk.c): Define.
3640         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3641         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3642         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3643         CFLAGS-tst-wchar-h.c.
3644
3645 2012-05-31  Marek Polacek  <polacek@redhat.com>
3646
3647         [BZ #14132]
3648         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3649         __endmntent_internal): Remove declaration.
3650         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3651         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3652         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3653
3654 2012-05-30  David S. Miller  <davem@davemloft.net>
3655
3656         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3657         (___Q_simulate_exceptions): Use real FP ops rather than writing
3658         into the %fsr.
3659         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3660         Likewise.
3661
3662 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3663
3664         [BZ #14117]
3665         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3666         * sysdeps/x86/bits/xtitypes.h: This.
3667
3668         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3669         * sysdeps/x86/bits/wordsize.h: This.
3670
3671         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3672         * sysdeps/x86/bits/huge_vall.h: This.
3673
3674         * sysdeps/i386/bits/select.h: Removed.
3675         * sysdeps/x86_64/bits/select.h: Renamed to ...
3676         * sysdeps/x86/bits/select.h: This.
3677
3678         * sysdeps/i386/bits/setjmp.h: Removed.
3679         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3680         * sysdeps/x86/bits/setjmp.h: This.
3681
3682         * sysdeps/i386/bits/mathdef.h: Removed.
3683         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3684         * sysdeps/x86/bits/mathdef.h: This.
3685
3686 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3687
3688         [BZ #14132]
3689         * include/sys/socket.h (__connect_internal)
3690         (__libc_sa_len_internal): Remove declaration.
3691         (__connect, __libc_sa_len): Declare hidden_proto.
3692         (SA_LEN): Remove use of INTUSE.
3693         * socket/connect.c: Add libc_hidden_def.
3694         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3695         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3696         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3697         alias.
3698         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3699         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3700         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3701         of adding _internal alias.
3702
3703 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3704
3705         [BZ #14117]
3706         * sysdeps/i386/bits/link.h: Removed.
3707         * sysdeps/i386/bits/linkmap.h: Likewise.
3708         * sysdeps/x86_64/bits/link.h: Renamed to ...
3709         * sysdeps/x86/bits/link.h: This.
3710         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3711         * sysdeps/x86/bits/linkmap.h: This.
3712
3713         * sysdeps/i386/bits/endian.h: Removed.
3714         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3715         * sysdeps/x86/bits/endian.h: This.
3716
3717         * sysdeps/i386/bits/byteswap.h: Removed.
3718         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3719         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3720         * sysdeps/x86/bits/byteswap.h: This.
3721         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3722         * sysdeps/x86/bits/byteswap-16.h: This.
3723         * sysdeps/i386/Implies: Add x86.
3724         * sysdeps/x86_64/Implies: Likewise.
3725
3726 2012-05-30  David S. Miller  <davem@davemloft.net>
3727
3728         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3729         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3730         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3731         (FP_TRAPPING_EXCEPTIONS): Define.
3732         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3733         (FP_TRAPPING_EXCEPTIONS): Define.
3734         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3735         subnormals only when inexact has been signalled or underflow
3736         exceptions are enabled.
3737         (_FP_PACK_CANONICAL): Likewise.
3738
3739 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3740
3741         [BZ #14183]
3742         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3743         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3744
3745 2012-05-30  Richard Henderson  <rth@twiddle.net>
3746
3747         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3748         with #ifndef NOT_IN_libc.
3749
3750         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3751         marked to avoid plt entry.
3752
3753 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3754
3755         [BZ #14112]
3756         * Makeconfig (default-abi): New macro.
3757         (abi-includes): Likewise.
3758         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3759         $(abi-$(default-abi)-lib-soname) for soname if defined.
3760         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3761         abi-variants.
3762         * Makefile (installed-stubs): Likewise.
3763         * include/stubs-biarch.h: Removed.
3764         * scripts/lib-names.awk: Only handle one library at a time.
3765         * scripts/soversions.awk: Remove WORDSIZE support.
3766         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3767         entries.
3768         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3769         Removed.
3770         (syscall-list-default-condition): Likewise.
3771         (syscall-list-default-condition): Likewise.
3772         (syscall-list-includes): Likewise.
3773         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3774         syscall-list-* with abi-*.  Handle undefined abi-variants.
3775         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3776         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3777         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3778         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3779         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3780         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3781         Removed.
3782         (syscall-list-32-options): Likewise.
3783         (syscall-list-32-condition): Likewise.
3784         (syscall-list-64-options): Likewise.
3785         (syscall-list-64-condition): Likewise.
3786         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3787         macro.
3788         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3789         Renamed to ...
3790         (abi-*): This.
3791         (abi-64-ld-soname): New macro.
3792         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3793         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3794         Renamed to ...
3795         (abi-*): This.
3796         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3797         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3798
3799 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3800
3801         * sysdeps/unix/sysv/linux/kernel-features.h
3802         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3803         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3804         include <kernel-features.h>.
3805         [!__NR_ftruncate64]: Remove conditional code.
3806         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3807         [__NR_ftruncate64]: Make code unconditional.
3808         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3809         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3810         include <kernel-features.h>.
3811         [!__NR_ftruncate64]: Remove conditional code.
3812         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3813         [__NR_ftruncate64]: Make code unconditional.
3814         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3816         include <kernel-features.h>.
3817         [!__NR_ftruncate64]: Remove conditional code.
3818         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3819         [__NR_ftruncate64]: Make code unconditional.
3820         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3822         include <kernel-features.h>.
3823         [!__NR_ftruncate64]: Remove conditional code.
3824         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3825         [__NR_ftruncate64]: Make code unconditional.
3826         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3827
3828         * configure.in (libc_cv_fpie): Weaken to a compile test using
3829         LIBC_TRY_CC_OPTION.
3830         * configure: Regenerated.
3831
3832 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3833
3834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3835         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3836         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3837         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3838         Refreshed.
3839         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3840         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3841         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3842         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3843         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3844         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3845         Refreshed.
3846
3847 2012-05-27  David S. Miller  <davem@davemloft.net>
3848
3849         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3850         (___Q_zero): New.
3851         (__Q_simulate_exceptions): Return void.  Change to simulate
3852         exceptions by writing into the %fsr.
3853         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3854         (__Qp_handle_exceptions): Likewise.
3855         (numbers): Delete.
3856         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3857         __Qp_handle_exceptions.
3858         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3859         __Qp_handle_exceptions.
3860         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3861         as unused and give dummy FP_RND_NEAREST initializer.
3862         (FP_INHIBIT_RESULTS): Define.
3863         (___Q_simulate_exceptions): Update declaration.
3864         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3865         formatting.
3866         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3867         as unused and give dummy FP_RND_NEAREST initializer.
3868         (__Qp_handle_exceptions): Update declaration.
3869         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3870         formatting.
3871
3872 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3873
3874         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3875         the temporary FPU control word.
3876         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3877         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3878         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3879         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3880         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3881         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3882         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3883         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3884         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3885         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3886         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3887
3888 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3889
3890         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3891         fields.
3892
3893 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3894
3895         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3896         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3897         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3898         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3899         Likewise.
3900         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3901         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3902         Likewise.
3903
3904 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3905
3906         * po/h.po: Update from translation team.
3907
3908 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3909
3910         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3911
3912         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3913         handling of denormals.
3914         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3915         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3916         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3917         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3918         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3919         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3920         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3921         Likewise.
3922
3923 2012-05-26  Marek Polacek  <polacek@redhat.com>
3924
3925         [BZ #14152]
3926         * math/libm-test.inc (fma_test): Don't always expect underflow
3927         exception.
3928
3929 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3930
3931         [BZ #12416]
3932         * elf/tst-execstack.c: Include stackinfo.h.
3933         (do_test): Adjust test case to ensure that pthread_getattr_np
3934         behaviour remains the same after marking stack executable.
3935
3936 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3937
3938         * sysdeps/unix/sysv/linux/kernel-features.h
3939         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3940         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3941         kernel-features.h.
3942         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3943         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3944         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3945         kernel-features.h.
3946         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3947         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3948
3949 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3950
3951         * configure.in: Define the default includes to being none.
3952         * configure: Regenerated.
3953
3954 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3955
3956         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3957         * sysdeps/x86_64/setjmp.S: Likewise.
3958         * sysdeps/i386/bsd-setjmp.S: Likewise.
3959         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3960         * sysdeps/i386/setjmp.S: Likewise.
3961         * sysdeps/i386/__longjmp.S: Likewise.
3962         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3963         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3964
3965         * include/stap-probe.h: New file.
3966         * configure.in: Handle --enable-systemtap.
3967         * configure: Regenerated.
3968         * config.h.in (USE_STAP_PROBE): New #undef.
3969         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3970         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3971         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3972
3973 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3974
3975         [BZ #13717]
3976         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3977         to 2.4.0 where earlier.
3978         * sysdeps/unix/sysv/linux/configure: Regenerated.
3979         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3980         <kernel-features.h>.
3981         [__ASSUME_32BITUIDS]: Make code unconditional.
3982         [!__ASSUME_32BITUIDS]: Remove conditional code.
3983         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3984         <kernel-features.h>.
3985         [__ASSUME_32BITUIDS]: Make code unconditional.
3986         [!__ASSUME_32BITUIDS]: Remove conditional code.
3987         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3988         [__ASSUME_32BITUIDS]: Make code unconditional.
3989         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3990         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3991         <kernel-features.h>.
3992         [__ASSUME_32BITUIDS]: Make code unconditional.
3993         [!__ASSUME_32BITUIDS]: Remove conditional code.
3994         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3995         <kernel-features.h>.
3996         [__ASSUME_32BITUIDS]: Make code unconditional.
3997         [!__ASSUME_32BITUIDS]: Remove conditional code.
3998         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3999         <kernel-features.h>.
4000         [__ASSUME_32BITUIDS]: Make code unconditional.
4001         [!__ASSUME_32BITUIDS]: Remove conditional code.
4002         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4003         <kernel-features.h>.
4004         [__ASSUME_32BITUIDS]: Make code unconditional.
4005         [!__ASSUME_32BITUIDS]: Remove conditional code.
4006         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4007         <kernel-features.h>.
4008         [__ASSUME_32BITUIDS]: Make code unconditional.
4009         [!__ASSUME_32BITUIDS]: Remove conditional code.
4010         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4011         <kernel-features.h>.
4012         [__ASSUME_32BITUIDS]: Make code unconditional.
4013         [!__ASSUME_32BITUIDS]: Remove conditional code.
4014         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4015         <kernel-features.h>.
4016         [__ASSUME_32BITUIDS]: Make code unconditional.
4017         [!__ASSUME_32BITUIDS]: Remove conditional code.
4018         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4019         <kernel-features.h>.
4020         [__ASSUME_32BITUIDS]: Make code unconditional.
4021         [!__ASSUME_32BITUIDS]: Remove conditional code.
4022         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4023         <kernel-features.h>.
4024         [__ASSUME_32BITUIDS]: Make code unconditional.
4025         [!__ASSUME_32BITUIDS]: Remove conditional code.
4026         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4027         <kernel-features.h>.
4028         [__ASSUME_32BITUIDS]: Make code unconditional.
4029         [!__ASSUME_32BITUIDS]: Remove conditional code.
4030         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4031         <kernel-features.h>.
4032         [__NR_setresgid] (__setresgid): Do not declare.
4033         [__ASSUME_32BITUIDS]: Make code unconditional.
4034         [!__ASSUME_32BITUIDS]: Remove conditional code.
4035         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4036         <kernel-features.h>.
4037         [__NR_setresuid] (__setresuid): Do not declare.
4038         [__ASSUME_32BITUIDS]: Make code unconditional.
4039         [!__ASSUME_32BITUIDS]: Remove conditional code.
4040         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/setgroups.c: Do not include
4053         <kernel-features.h>.
4054         [__ASSUME_32BITUIDS]: Make code unconditional.
4055         [!__ASSUME_32BITUIDS]: Remove conditional code.
4056         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4057         <kernel-features.h>.
4058         [__ASSUME_32BITUIDS]: Make code unconditional.
4059         [!__ASSUME_32BITUIDS]: Remove conditional code.
4060         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4061         <kernel-features.h>.
4062         [__ASSUME_32BITUIDS]: Make code unconditional.
4063         [!__ASSUME_32BITUIDS]: Remove conditional code.
4064         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4065         <kernel-features.h>.
4066         [__ASSUME_32BITUIDS]: Make code unconditional.
4067         [!__ASSUME_32BITUIDS]: Remove conditional code.
4068         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4069         <kernel-features.h>.
4070         [__ASSUME_32BITUIDS]: Make code unconditional.
4071         [!__ASSUME_32BITUIDS]: Remove conditional code.
4072         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4073         <kernel-features.h>.
4074         [__ASSUME_32BITUIDS]: Make code unconditional.
4075         [!__ASSUME_32BITUIDS]: Remove conditional code.
4076         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4077         <kernel-features.h>.
4078         [__ASSUME_32BITUIDS]: Make code unconditional.
4079         [!__ASSUME_32BITUIDS]: Remove conditional code.
4080         * sysdeps/unix/sysv/linux/kernel-features.h
4081         (__ASSUME_SETRESUID_SYSCALL): Remove.
4082         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4083         (__ASSUME_32BITUIDS): Likewise.
4084         (__ASSUME_LDT_WORKS): Likewise.
4085         (__ASSUME_O_DIRECTORY): Likewise.
4086         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4087         architecture but not kernel version.
4088         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4089         (__ASSUME_MMAP2_SYSCALL): Likewise.
4090         (__ASSUME_STAT64_SYSCALL): Likewise.
4091         (__ASSUME_IPC64): Likewise.
4092         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4093         <kernel-features.h>.
4094         [__ASSUME_32BITUIDS]: Make code unconditional.
4095         [!__ASSUME_32BITUIDS]: Remove conditional code.
4096         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4097         <kernel-features.h>.
4098         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4099         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4100         132096]: Remove conditional code.
4101         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4102         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4103         <kernel-features.h>.
4104         [__ASSUME_32BITUIDS]: Make code unconditional.
4105         [!__ASSUME_32BITUIDS]: Remove conditional code.
4106         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4107         <kernel-features.h>.
4108         [__ASSUME_32BITUIDS]: Make code unconditional.
4109         [!__ASSUME_32BITUIDS]: Remove conditional code.
4110         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4111         <kernel-features.h>.
4112         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4113         unconditional.
4114         (__setresgid): Do not declare.
4115         [__ASSUME_32BITUIDS]: Make code unconditional.
4116         [!__ASSUME_32BITUIDS]: Remove conditional code.
4117         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4118         <kernel-features.h>.
4119         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4120         unconditional.
4121         (__setresuid): Do not declare.
4122         [__ASSUME_32BITUIDS]: Make code unconditional.
4123         [!__ASSUME_32BITUIDS]: Remove conditional code.
4124         * sysdeps/unix/sysv/linux/sh/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/sparc/sparc32/semctl.c: Do not include
4129         <kernel-features.h>.
4130         [__ASSUME_32BITUIDS]: Make code unconditional.
4131         [!__ASSUME_32BITUIDS]: Remove conditional code.
4132
4133 2012-05-25  Richard Henderson  <rth@twiddle.net>
4134
4135         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4136         dl_hwcap to ifunc resolver.
4137         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4138         elf_ifunc_invoke.
4139         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4140         dl_hwcap to ifunc resolver.
4141         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4142
4143 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4144
4145         [BZ #14153]
4146         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4147         for |x| <= 2**-26, not 2**-57.
4148         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4149         exception.
4150
4151 2012-05-24  Jeff Law  <law@redhat.com>
4152
4153         * stdio-common/Makefile (tests): Add bug25.
4154         * stdio-common/bug25.c: New test.
4155
4156 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4157
4158         [BZ #13576]
4159         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4160         multiple of MALLOC_ALIGNMENT in size.
4161         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4162
4163 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4164
4165         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4166         Require >= 256.
4167         (FILENAME_MAX): Use macro-int-constant.
4168         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4169         (_IOFBF): Use macro-int-constant.
4170         (_IOLBF): Likewise.
4171         (_IONBF): Likewise.
4172         (SEEK_CUR): Likewise.
4173         (SEEK_END): Likewise.
4174         (SEEK_SET): Likewise.
4175         (TMP_MAX): Likewise.
4176         (EOF): Use macro-int-constant.  Require < 0.
4177         (NULL): Use macro-constant.  Require == 0.
4178         (stdin): Require type to be FILE *.
4179         (stdout): Likewise.
4180         (stderr): Likewise.
4181         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4182         macro-int-constant.
4183         (EXIT_SUCCESS): Likewise.
4184         (NULL): Use macro-constant.  Require == 0.
4185         (RAND_MAX): Use macro-int-constant.
4186         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4187         [C99-based standards] (strtof): Require function.
4188         [C99-based standards] (strtold): Likewise.
4189         [C99-based standards] (strtoll): Likewise.
4190         [C99-based standards] (strtoull): Likewise.
4191         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4192         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4193         [ISO || ISO99 || ISO11] (math.h): Likewise.
4194         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4195         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4196         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4197
4198 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4199
4200         [BZ #14132]
4201         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4202         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4203         * intl/dgettext.c (DCGETTEXT): Likewise.
4204         * intl/gettext.c (DCGETTEXT): Likewise.
4205         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4206         * posix/regex_internal.h (gettext): Likewise.
4207         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4208         Remove declaration.
4209         * include/argz.h (__argz_count_internal)
4210         (__argz_stringify_internal): Remove declaration.
4211         (__argz_count, __argz_stringify): Declare hidden proto.
4212         * intl/dcgettext.c: Remove use of INTDEF.
4213         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4214         * string/argz-stringify.c: Likewise.
4215         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4216         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4217         Declare hidden proto.
4218         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4219         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4220         Declare hidden proto.
4221         * include/stdio.h (__asprintf_internal): Don't declare.
4222         (__asprintf): Don't define as macro.  Declare hidden proto.
4223         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4224         (__fsetlocking): Declare hidden proto.
4225         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4226         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4227         hidden proto.
4228         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4229         (_IO_setlinebuf): Remove use of INTUSE.
4230         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4231         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4232         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4233         Remove declaration.
4234         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4235         (_IO_do_flush): Remove use of INTUSE.
4236         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4237         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4238         (_IO_adjust_column, _IO_least_wmarker)
4239         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4240         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4241         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4242         (_IO_default_doallocate, _IO_wdefault_doallocate)
4243         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4244         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4245         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4246         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4247         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4248         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4249         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4250         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4251         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4252         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4253         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4254         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4255         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4256         proto.
4257         (_IO_flush_all_internal, _IO_adjust_column_internal)
4258         (_IO_default_uflow_internal, _IO_default_finish_internal)
4259         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4260         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4261         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4262         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4263         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4264         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4265         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4266         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4267         (_IO_file_close_internal, _IO_file_close_it_internal)
4268         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4269         (_IO_file_init_internal, _IO_file_attach_internal)
4270         (_IO_file_fopen_internal, _IO_file_read_internal)
4271         (_IO_file_sync_internal, _IO_file_seek_internal)
4272         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4273         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4274         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4275         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4276         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4277         (_IO_list_all_internal, _IO_link_in_internal)
4278         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4279         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4280         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4281         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4282         (_IO_do_write_internal, _IO_padn_internal)
4283         (_IO_getline_info_internal, _IO_getline_internal)
4284         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4285         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4286         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4287         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4288         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4289         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4290         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4291         with libc_hidden_ver, remove use of INTUSE.
4292         * libio/genops.c: Likewise.
4293         * libio/freopen.c: Likewise.
4294         * libio/freopen64.c: Likewise.
4295         * libio/iofclose.c: Likewise.
4296         * libio/iofdopen.c: Likewise.
4297         * libio/iofflush.c: Likewise.
4298         * libio/iofflush_u.c: Likewise.
4299         * libio/iofgets.c: Likewise.
4300         * libio/iofgets_u.c: Likewise.
4301         * libio/iofopen.c: Likewise.
4302         * libio/iofopncook.c: Likewise.
4303         * libio/iofread.c: Likewise.
4304         * libio/iofread_u.c: Likewise.
4305         * libio/ioftell.c: Likewise.
4306         * libio/iofwrite.c: Likewise.
4307         * libio/iogetline.c: Likewise.
4308         * libio/iogets.c: Likewise.
4309         * libio/iogetwline.c: Likewise.
4310         * libio/iopadn.c: Likewise.
4311         * libio/iopopen.c: Likewise.
4312         * libio/ioseekoff.c: Likewise.
4313         * libio/ioseekpos.c: Likewise.
4314         * libio/iosetbuffer.c: Likewise.
4315         * libio/iosetvbuf.c: Likewise.
4316         * libio/ioungetc.c: Likewise.
4317         * libio/ioungetwc.c: Likewise.
4318         * libio/iovdprintf.c: Likewise.
4319         * libio/iovsprintf.c: Likewise.
4320         * libio/iovsscanf.c: Likewise.
4321         * libio/memstream.c: Likewise.
4322         * libio/obprintf.c: Likewise.
4323         * libio/oldfileops.c: Likewise.
4324         * libio/oldiofclose.c: Likewise.
4325         * libio/oldiofdopen.c: Likewise.
4326         * libio/oldiofopen.c: Likewise.
4327         * libio/oldiopopen.c: Likewise.
4328         * libio/oldstdfiles.c: Likewise.
4329         * libio/putc.c: Likewise.
4330         * libio/setbuf.c: Likewise.
4331         * libio/setlinebuf.c: Likewise.
4332         * libio/stdfiles.c: Likewise.
4333         * libio/strops.c: Likewise.
4334         * libio/vasprintf.c: Likewise.
4335         * libio/vscanf.c: Likewise.
4336         * libio/vsnprintf.c: Likewise.
4337         * libio/vswprintf.c: Likewise.
4338         * libio/wfiledoalloc.c: Likewise.
4339         * libio/wfileops.c: Likewise.
4340         * libio/wgenops.c: Likewise.
4341         * libio/wmemstream.c: Likewise.
4342         * libio/wstrops.c: Likewise.
4343         * libio/__fpurge.c: Likewise.
4344         * libio/__fsetlocking.c: Likewise.
4345         * assert/assert.c: Likewise.
4346         * debug/fgets_chk.c: Likewise.
4347         * debug/fgets_u_chk.c: Likewise.
4348         * debug/fread_chk.c: Likewise.
4349         * debug/fread_u_chk.c: Likewise.
4350         * debug/gets_chk.c: Likewise.
4351         * debug/obprintf_chk.c: Likewise.
4352         * debug/vasprintf_chk.c: Likewise.
4353         * debug/vdprintf_chk.c: Likewise.
4354         * debug/vsnprintf_chk.c: Likewise.
4355         * debug/vsprintf_chk.c: Likewise.
4356         * malloc/mtrace.c: Likewise.
4357         * misc/error.c: Likewise.
4358         * misc/syslog.c: Likewise.
4359         * stdio-common/asprintf.c: Likewise.
4360         * stdio-common/fxprintf.c: Likewise.
4361         * stdio-common/getw.c: Likewise.
4362         * stdio-common/isoc99_fscanf.c: Likewise.
4363         * stdio-common/isoc99_scanf.c: Likewise.
4364         * stdio-common/isoc99_vfscanf.c: Likewise.
4365         * stdio-common/isoc99_vscanf.c: Likewise.
4366         * stdio-common/isoc99_vsscanf.c: Likewise.
4367         * stdio-common/printf-prs.c: Likewise.
4368         * stdio-common/printf_fp.c: Likewise.
4369         * stdio-common/printf_fphex.c: Likewise.
4370         * stdio-common/printf_size.c: Likewise.
4371         * stdio-common/putw.c: Likewise.
4372         * stdio-common/scanf.c: Likewise.
4373         * stdio-common/sprintf.c: Likewise.
4374         * stdio-common/tmpfile.c: Likewise.
4375         * stdio-common/vfprintf.c: Likewise.
4376         * stdio-common/vfscanf.c: Likewise.
4377         * stdlib/strfmon_l.c: Likewise.
4378         * sunrpc/openchild.c: Likewise.
4379         * sunrpc/xdr_stdio.c: Likewise.
4380         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4381         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4382
4383 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4384
4385         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4386
4387         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4388         in the third column, to generate for the shared library an IFUNC
4389         that uses _dl_vdso_vsym.
4390         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4391         * Makeconfig (object-suffixes-noshared): New variable.
4392
4393         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4394         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4395         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4396         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4397
4398         [BZ #14132]
4399         * include/sys/time.h (__gettimeofday): Remove macro.
4400         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4401         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4402         Remove INTDEF.
4403         (__gettimeofday): Add libc_hidden_def.
4404         (gettimeofday): Add libc_hidden_weak.
4405         * sysdeps/mach/gettimeofday.c: Likewise.
4406         * sysdeps/posix/gettimeofday.c: Likewise.
4407         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4408         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4409         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4410         (__gettimeofday_internal): Remove strong_alias.
4411         (__gettimeofday): Add libc_hidden_def.
4412         (gettimeofday): Add libc_hidden_weak.
4413         * sysdeps/unix/syscalls.list (gettimeofday):
4414         Remove __gettimeofday_internal alias.
4415
4416 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4417             H.J. Lu  <hongjiu.lu@intel.com>
4418
4419         [BZ #12495]
4420         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4421         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4422         (largebin_index_32_big): New.
4423         (largebin_index): Use it for 16-byte alignment.
4424         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4425         correction with front_misalign.
4426
4427 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4428
4429         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4430         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4431         Likewise.
4432         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4433         Likewise.
4434         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4435         Likewise.
4436         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4437         Likewise.
4438         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4439         Likewise.
4440         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4441         Likewise.
4442         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4443         Likewise.
4444         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4445         Likewise.
4446         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4447         Likewise.
4448         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4449         Likewise.
4450         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4451         Likewise.
4452         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4453         Likewise.
4454
4455         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4456         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4457
4458 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4459
4460         [BZ #10846]
4461         [BZ #14036]
4462         * math/libm-test.inc (exp_test): Add test from bug 14036.
4463         (pow_test): Add test from bug 10846.
4464
4465         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4466         and other flags.
4467         (special_function): Do not include flags in test name.
4468         (parse_args): Likewise.
4469         * sysdeps/i386/fpu/libm-test-ulps: Update.
4470         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4471         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4472         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4474
4475         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4476         exceptions.
4477         * math/libm-test.inc ("Philosophy"): Update comment about
4478         exception testing.
4479         (UNDERFLOW_EXCEPTION): New macro.
4480         (UNDERFLOW_EXCEPTION_OK): Likewise.
4481         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4482         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4483         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4484         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4485         (INVALID_EXCEPTION_OK): Update value.
4486         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4487         (OVERFLOW_EXCEPTION_OK): Likewise.
4488         (IGNORE_ZERO_INF_SIGN): Likewise.
4489         (test_exceptions): Handle underflow exceptions.
4490         (acos_test): Update for underflow exception expectations.
4491         (cexp_test): Likewise.
4492         (clog_test): Likewise.
4493         (clog10_test): Likewise.
4494         (csqrt_test): Likewise.
4495         (ctan_test): Likewise.
4496         (ctanh_test): Likewise.
4497         (exp_test): Likewise.
4498         (exp10_test): Likewise.
4499         (exp2_test): Likewise.
4500         (expm1_test): Likewise.
4501         (fma_test): Likewise.
4502         (j0_test): Likewise.
4503         (jn_test): Likewise.
4504         (nexttoward_test): Likewise.
4505         (pow_test): Likewise.
4506         (scalbn_test): Likewise.
4507         (scalbln_test): Likewise.
4508         (tan_test): Likewise.
4509         (y1_test): Likewise.
4510         * sysdeps/i386/fpu/libm-test-ulps: Update.
4511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4512
4513 2012-05-23  David S. Miller  <davem@davemloft.net>
4514
4515         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4516         (__libc_sigaction): Remove unused local variables.
4517
4518 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4519
4520         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4521
4522 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4523
4524         mktime: avoid signed integer overflow
4525         * time/mktime.c (__mktime_internal): Do not mishandle the case
4526         where diff == INT_MIN.
4527
4528         mktime: simplify computation of average
4529         * time/mktime.c (ranged_convert): Use new time_t_avg function
4530         instead of rolling our own (probably-slower) code.
4531
4532         mktime: do not assume signed right shift propagates sign bit
4533         * time/mktime.c (isdst_differ): New static function.
4534         (__mktime_internal): No need to normalize tm_isdst now.
4535         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4536         tm_isdst values.
4537
4538         mktime: merge another wrapv change from gnulib
4539         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4540         from some compilers.
4541
4542         mktime: remove incorrect attempt at unusual arithmetics
4543         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4544         The code didn't really work on such machines anyway.
4545         (TYPE_MINIMUM): Assume two's complement.
4546         (twos_complement_arithmetic): Verify that long_int and time_t
4547         are two's complement (or unsigned, in the latter case).
4548
4549         mktime: check signed shifts on long_int and time_t, too
4550         * time/mktime.c (SHR): Check that shifts work as desired
4551         on the types long_int and time_t too, as SHR is used on
4552         such types.
4553
4554         mktime: do not assume 'long' is wide enough
4555         * time/mktime.c (verify): Move decl up.
4556         (long_int): New type.
4557         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4558         to remove assumption in the code that 'long' is wide enough to
4559         store year values.  This assumption is not true on x32 and on
4560         some non-glibc platforms.
4561
4562         mktime: merge wrapv change from gnulib
4563         * time/mktime.c (WRAPV): New macro.
4564         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4565         (guess_time_tm, __mktime_internal): Do not assume that signed
4566         integer overflow wraps around; modern compilers generate code
4567         where this assumption is no longer valid.
4568
4569 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4570
4571         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4572         Replace "jmp L(pseudo_end)" with "ret".
4573         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4574         Likewise.
4575
4576 2012-05-23  Andreas Jaeger  <aj@suse.de>
4577
4578         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4579         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4580
4581 2012-05-23  Andreas Jaeger  <aj@suse.de>
4582             Maximilian Attems  <max@stro.at>
4583
4584         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4585         New macros.
4586
4587 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4588
4589         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4590         code so that pseudo_end is just ret and the stack pointer is
4591         correct also for static library in error case.
4592
4593 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4594
4595         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4596         move to syscalls.list.
4597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4601
4602         * manual/install.texi (Running make install): Do not mention Linux
4603         kernel version for which pt_chown is not needed.
4604         (Linux): Do not mention problems with nscd with 2.0 kernels.
4605         * INSTALL: Regenerated.
4606
4607 2012-05-23  Andreas Jaeger  <aj@suse.de>
4608
4609         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4610         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4611         macro.
4612         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4613         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4614         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4615         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4616         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4617         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4618         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4619         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4620         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4621         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4622         * sysdeps/unix/sysv/linux/bits/in.h
4623         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4624
4625 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4626
4627         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4628         (PREPARE_VERSION): Just use assert instead, it will be elided
4629         under [NDEBUG] anyway.
4630
4631 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4632
4633         * sysdeps/unix/sysv/linux/Makefile: Include
4634         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4635         (sysdep_routines): Remove sysctl.
4636         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4637         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4638         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4639         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4640         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4641
4642 2012-05-22  Andreas Jaeger  <aj@suse.de>
4643
4644         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4645         that pseudo_end is just ret and the stack pointer is correct also
4646         for static library in error case.
4647
4648 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4649
4650         [BZ #14122]
4651         * nss/nsswitch.c (defconfig_entries): New variable.
4652         (__nss_database_lookup): Don't leak defconfig entries.
4653         (nss_parse_service_list): Don't leak on error paths.
4654         (free_database_entries): New function.
4655         (free_defconfig): New function.
4656         (free_mem): Move common code to free_database_entries.
4657
4658 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4659
4660         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4661         Add arch_prctl.
4662         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4663
4664         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4665         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4666         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4667         New macro.
4668         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4669         (INTERNAL_SYSCALL_TYPES): Likewise.
4670         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4671         (LOAD_REGS_TYPES_[1-6]): Likewise.
4672         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4673         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4674
4675 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4676
4677         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4678         copysignl for GLIBC_2_0.
4679         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4680         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4681         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4682         logbl for GLIBC_2_0.
4683         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4684         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4685
4686 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4687
4688         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4689         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4690
4691         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4692         Use "neg %eax".
4693
4694         * time/mktime.c: Update copyright years.
4695
4696 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4697
4698         mktime: merge comment-quoting-style change from gnulib
4699         * time/mktime.c: Quote 'like this' in comments.
4700         The GNU coding standards suggest that we no longer quote `like this',
4701         as "`" and "'" are typically rendered asymmetrically nowadays.
4702         The typical gnulib style is to quote 'like this' when quoting
4703         code, and "like this" when quoting English.
4704
4705         * time/mktime.c (compile-command): Add "-I.".
4706
4707         mktime: merge mktime-internal.h change from gnulib
4708         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4709
4710         mktime: merge time_r change from gnulib
4711         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4712
4713         mktime: merge DEBUG change from gnulib
4714         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4715         case system <time.h> has a #define.
4716
4717         mktime: merge <sys/types.h> change from gnulib
4718         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4719         since <time.t> is now guaranteed to define time_t.
4720
4721         mktime: merge HAVE_CONFIG_H change from gnulib
4722         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4723
4724 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4725
4726         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4727         Use "neg %eax".
4728
4729         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4730         __rlim_t cast.
4731         (struct rusage): Use anonymous union to pad each field to
4732         __syscall_slong_t.
4733
4734 2012-05-21  David S. Miller  <davem@davemloft.net>
4735
4736         * Makefules (o-iterator): Remove .s cases.
4737         (compile-command.s): Delete.
4738         (COMPILE.s): Delete.
4739         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4740
4741 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4742
4743         * configure.in (libc_cv_predef_stack_protector): Only consider
4744         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4745         * configure: Regenerated.
4746
4747 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4748
4749         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4750         New macro.  Use R*LP on int and pointer.
4751         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4752         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4753         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4754         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4755
4756         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4757         [__WORDSIZE_TIME64_COMPAT32] instead of
4758         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4759         (struct utmp): Likewise.
4760         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4761         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4762         Renamed to ...
4763         (__WORDSIZE_TIME64_COMPAT32): This.
4764         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4765         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4766         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4767         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4768         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4769         (__WORDSIZE_TIME64_COMPAT32): New macro.
4770
4771 2012-05-21  Andreas Jaeger  <aj@suse.de>
4772
4773         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4774         only if [SHARED]. Add prototype for __wcschr_ia32.
4775
4776 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4777
4778         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4779         of %rbp unmolested in the jmp_buf while mangling the low bits.
4780         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4781         unmolested high bits of %rbp while demangling the low bits.
4782         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4783
4784 2012-05-21  Andreas Jaeger  <aj@suse.de>
4785
4786         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4787         * sunrpc/svc_simple.c: Use it for registerrpc.
4788         * sunrpc/xcrypt.c: Use it for passwd2des.
4789
4790         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4791
4792 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4793
4794         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4795         Don't define if [__SYSCALL_WORDSIZE != 32].
4796         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4797         New macro.
4798
4799 2012-05-21  Bruno Haible  <bruno@clisp.org>
4800             Andreas Jaeger  <aj@suse.de>
4801
4802         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4803         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4804         inptr and inend for must_buffer_ch.
4805         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4806         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4807         * stdio-common/Makefile (tests): Remove bug15.
4808         (bug15-ENV): Remove macro.
4809         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4810         anymore.
4811
4812 2012-05-19  Andreas Jaeger  <aj@suse.de>
4813             Roland McGrath  <roland@hack.frob.com>
4814
4815         * manual/contrib.texi: Completely rewritten. It contains now an
4816         alphabetical list of contributors and their contributions.
4817
4818 2012-05-21  Richard Henderson  <rth@twiddle.net>
4819
4820         * misc/getauxval.c (__getauxval): Use unsigned long int.
4821         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4822         (getauxval): Use unsigned long int.
4823
4824 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4825
4826         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4827
4828 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4829
4830         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4831         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4832         __alignof__ (long double).
4833
4834 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4835
4836         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4837
4838 2012-05-20  Richard Henderson  <rth@twiddle.net>
4839
4840         * misc/getauxval.c: New file.
4841         * misc/sys/auxv.h: New file.
4842         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4843         (routines): Add getauxval.
4844         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4845         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4846         * elf/dl-sysdep.c (_dl_auxv): Remove.
4847         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4848         * elf/dl-support.c (_dl_auxv): New variable.
4849         (_dl_aux_init): Initialize it.
4850         * manual/startup.texi (Auxiliary Vector): New node.
4851         * sysdeps/generic/bits/hwcap.h: New file.
4852         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4853         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4854         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4855         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4856         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4857         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4859         Update.
4860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4861         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4862         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4863         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4864         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4865         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4866         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4867         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4868
4869 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4870
4871         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4872
4873 2012-05-19  David S. Miller  <davem@davemloft.net>
4874
4875         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4876
4877 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4878
4879         [BZ #14123]
4880         * math/s_ccosh.c: Include <float.h>
4881         (__ccosh): Avoid internal overflow calculating sinh and cosh
4882         values before multiplying by sin and cos values.
4883         * math/s_ccoshf.c: Likewise.
4884         * math/s_ccoshl.c: Likewise.
4885         * math/s_csin.c: Likewise.
4886         * math/s_csinf.c: Likewise.
4887         * math/s_csinl.c: Likewise.
4888         * math/s_csinh.c: Likewise.
4889         * math/s_csinhf.c: Likewise.
4890         * math/s_csinhl.c: Likewise.
4891         * math/libm-test.inc (ccos_test): Add more tests.
4892         (ccosh_test): Likewise.
4893         (csin_test): Likewise.
4894         (csinh_test): Likewise.
4895         * sysdeps/i386/fpu/libm-test-ulps: Update.
4896         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4897
4898 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4899
4900         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4901         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4902
4903         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4904
4905 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4906
4907         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4908         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4909         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4910         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4911         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4912         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4913         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4914         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4915         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4916         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4917         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4918         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4919         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4920         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4921         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4922         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4923         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4924         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4925         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4926         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4927         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4928         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4929         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4930         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4931         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4932         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4933         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4934         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4935         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4936         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4937         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4938
4939 2012-05-18  Andreas Jaeger  <aj@suse.de>
4940
4941         * csu/.gitignore: Delete.
4942
4943 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4944
4945         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4946         (timex): Use __syscall_slong_t.
4947
4948 2012-05-18  Andreas Jaeger  <aj@suse.de>
4949             Carlos O'Donell  <carlos_odonell@mentor.com>
4950
4951         * manual/install.texi (Configuring and compiling): Update
4952         description about files modified in the source directory.
4953         * INSTALL: Regenerated.
4954
4955 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4956
4957         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4958         value.  Use "or" to set return value to -1.
4959         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4960         negate return value.
4961
4962 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4963
4964         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4965         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4966         failure if the compiler has Graphite support disabled.
4967         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4968         Likewise.
4969         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4970         CFLAGS-memmove.c): Likewise.
4971         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4972         Likewise.
4973
4974 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4975
4976         * sysdeps/x86_64/x32/_itoa.h: New file.
4977
4978         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4979         getdents system call only if kernel and user dirents have the
4980         same d_ino and d_off.
4981
4982         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4983         LLONG_MAX != LONG_MAX.
4984         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4985         (_fitoa_word): Likewise.
4986
4987         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4988         years.
4989         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4990         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4991         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4992
4993         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4994         include <bits/wordsize.h>.  Check __x86_64__ instead of
4995         __WORDSIZE.
4996         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4997         if __x86_64__ is defined.  Use anonymous union on fpstate.
4998
4999         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5000         anonymous union.
5001
5002 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5003
5004         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5005         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5006         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5007         Refer to _rtld_local_ro instead of _rtld_global_ro.
5008         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5009         Likewise.
5010         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5011         Likewise.
5012         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5013         Likewise.
5014         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5015         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5016         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5017
5018         * sysdeps/powerpc/powerpc32/dl-machine.c
5019         (__elf_machine_runtime_setup) [PROF]: Don't reference
5020         _dl_prof_resolve.
5021
5022 2012-05-18  Andreas Jaeger  <aj@suse.de>
5023
5024         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5025         function only available for GCCs before 3.4 since GCC 3.4
5026         introduced a builtin.
5027         (lrint): Likewise.
5028         (llrintf): Likewise.
5029         (llrint): Likewise.
5030         (fmaxf): Likewise.
5031         (fmax): Likewise.
5032         (fminf): Likewise.
5033         (fmin): Likewise.
5034         (rint): Likewise.
5035         (rintf): Likewise.
5036         (nearbyint): Likewise.
5037         (nearbyintf): Likewise.
5038         (ceil): Likewise.
5039         (ceilf): Likewise.
5040         (floor): Likewise.
5041         (floorf): Likewise.
5042
5043 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5044
5045         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5046         on both fields and cast pointer to __syscall_ulong_t.
5047
5048         * bits/types.h (__fsword_t): New type.
5049         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5050         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5051         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5052         (__FSWORD_T_TYPE): Likewise.
5053         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5054         (__FSWORD_T_TYPE): Likewise.
5055         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5056         (__FSWORD_T_TYPE): Likewise.
5057         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5058         (__FSWORD_T_TYPE): Likewise.
5059         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5060         __SWORD_TYPE with __fsword_t.
5061         (statfs64): Likewise.
5062
5063 2012-05-17  David S. Miller  <davem@davemloft.net>
5064
5065         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5066
5067 2012-05-17  Andreas Jaeger  <aj@suse.de>
5068
5069         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5070         warning.
5071
5072 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5073
5074         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5075
5076 2012-05-17  Andreas Jaeger  <aj@suse.de>
5077
5078         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5079         when it is used.
5080
5081 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5082
5083         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5084
5085 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5086
5087         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5088         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5089
5090 2012-05-17  Andreas Jaeger  <aj@suse.de>
5091             Carlos O'Donell  <carlos_odonell@mentor.com>
5092
5093         [BZ #14059]
5094         * sysdeps/x86_64/multiarch/init-arch.h
5095         (bit_YMM_Usable): Rename to...
5096         (bit_AVX_Usable): ... this.
5097         (bit_FMA4_Usable): New macro.
5098         (bit_XMM_state): New macro.
5099         (bit_YMM_state): New macro.
5100         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5101         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5102         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5103         (CPUID_OSXSAVE): New macro.
5104         (CPUID_AVX): New macro.
5105         (CPUID_FMA4): New macro.
5106         (index_YMM_Usable): Rename to...
5107         (index_AVX_Usable): ... this.
5108         (HAS_AVX): Use HAS_ARCH_FEATURE.
5109         (HAS_FMA4): Likewise.
5110         (HAS_YMM_USABLE): Remove.
5111         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5112         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5113         are present.
5114         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5115         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5116         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5117         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5118         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5119
5120 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5121
5122         * math/libm-test.c: Support platforms without multiple rounding modes.
5123         * math/bug-nextafter.c: Support platforms without FP exceptions.
5124         * math/bug-nexttoward.c: Likewise.
5125         * math/test-fenv.c: Likewise.
5126         * math/test-misc.c: Likewise.
5127         * stdlib/bug-getcontext.c: Likewise.
5128
5129 2012-05-17  Andreas Jaeger  <aj@suse.de>
5130
5131         * manual/examples/search.c (critter_cmp): Change signature to
5132         avoid warnings.
5133         * manual/string.texi (Collation Functions): Likewise.
5134
5135 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5136
5137         * bits/types.h: Fold copyright years.
5138         * bits/typesizes.h: Likewise.
5139         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5140         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5141         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5142         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5143         * time/time.h: Likewise.
5144
5145 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5146
5147         [BZ #208]
5148         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5149         in instead of returning them.  Return void.
5150         (__libc_mallinfo): Accumulate over all arenas.
5151         (__malloc_stats): Adjust for change in int_mallinfo interface.
5152
5153 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5154
5155         [BZ #10375]
5156         * configure.in (NM): Add AC_CHECK_TOOL for it.
5157         (libc_extra_cflags): New substituted variable.
5158         Check for -fstack-protector being used implicitly.
5159         * configure: Regenerated.
5160         * config.make.in (config-extra-cflags): New variable,
5161         gets @libc_extra_cflags@.
5162         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5163
5164         [BZ #10375]
5165         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5166         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5167         * configure: Regenerated.
5168         * config.make.in (CPPUNDEFS): New substituted variable.
5169         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5170         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5171         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5172
5173 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5174
5175         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5176         (mq_attr): Use __syscall_slong_t.
5177
5178 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5179
5180         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5181         Check __x86_64__ instead of __WORDSIZE.
5182         (_STAT_VER_LINUX): Likewise.
5183         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5184         __syscall_ulong_t and __syscall_slong_t.
5185         (stat64): Likewise.
5186
5187 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5188
5189         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5190
5191 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5192
5193         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5194
5195 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5196
5197         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5198         __syscall_ulong_t.
5199
5200         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5201         include <bits/wordsize.h>.  Check __x86_64__ instead of
5202         __WORDSIZE.
5203         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5204         defined.
5205         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5206
5207         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5208         include <bits/wordsize.h>.  Check __x86_64__ instead of
5209         __WORDSIZE.
5210         (user_regs_struct): Use "__extension__ unsigned long long"
5211         instead of "unsigned long" if __x86_64__ is defined.
5212         (user): Likewise.  Pad after pointer field if __ILP32__ is
5213         defined.
5214
5215 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5216
5217         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5218         versions 5 to 9.
5219         * configure: Regenerated.
5220         * manual/install.texi (texinfo): Increase version requirement to
5221         4.5 or later.
5222         * INSTALL: Regenerated.
5223
5224         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5225
5226 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5227
5228         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5229
5230         * sysdeps/x86_64/x32/ffs.c: New file.
5231
5232         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5233         __syscall_ulong_t.
5234         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5235         defined.  Use __syscall_ulong_t.
5236         (shminfo): Use __syscall_ulong_t.
5237         (shm_info): Likewise.
5238
5239         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5240         __syscall_ulong_t.
5241
5242         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5243         <bits/wordsize.h>.
5244         (msgqnum_t): Use __syscall_ulong_t.
5245         (msglen_t): Likewise.
5246         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5247         __syscall_ulong_t.
5248
5249         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5250         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5251
5252         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5253
5254         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5255         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5256
5257         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5258         __syscall_slong_t.
5259
5260         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5261         include <bits/wordsize.h>.  Check __x86_64__ instead of
5262         __WORDSIZE.
5263
5264         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5265         "unsigned long long int" if __x86_64__ is defined.
5266         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5267
5268         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5269         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5270         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5271
5272         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5273         <stdint.h>.
5274         (GET_PC): Cast to uintptr_t first.
5275         (GET_FRAME): Likewise.
5276         (GET_STACK): Likewise.
5277
5278         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5279         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5280         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5281         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5282         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5283         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5284         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5285         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5286         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5287         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5288         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5289         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5290         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5291         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5292         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5293         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5294         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5295         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5296         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5297         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5298         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5299         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5300         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5301         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5302         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5303         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5304         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5305         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5306         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5307
5308 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5309
5310         * Makerules (+depfiles): Also collect depfiles from .oS in
5311         $(extra-objs).
5312         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5313         .oS, $(libnldbl-routines)).
5314
5315         * Makerules (native-compile-mkdep-flags): Define.
5316         * sunrpc/Makefile (extra-objs): Add $(addprefix
5317         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5318         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5319         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5320         calling $(make-target-directory).
5321
5322 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5323
5324         * bits/types.h (__snseconds_t): Removed.
5325         * time/time.h (struct timespec): Replace __snseconds_t with
5326         __syscall_slong_t.
5327         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5328         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5329         Likewise.
5330         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5331         (__SNSECONDS_T_TYPE): Likewise.
5332         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5333         (__SNSECONDS_T_TYPE): Likewise.
5334         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5335         (__SNSECONDS_T_TYPE): Likewise.
5336
5337 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5338
5339         * sysdeps/mach/hurd/bits/typesizes.h
5340         (__SYSCALL_SLONG_TYPE): New macro.
5341         (__SYSCALL_ULONG_TYPE): Likewise.
5342
5343 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5344
5345         * bits/types.h (__syscall_slong_t): New type.
5346         (__syscall_ulong_t): Likewise.
5347
5348         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5349         (__SYSCALL_ULONG_TYPE): Likewise.
5350         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5351         (__SYSCALL_SLONG_TYPE): Likewise.
5352         (__SYSCALL_ULONG_TYPE): Likewise.
5353         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5354         (__SYSCALL_SLONG_TYPE): Likewise.
5355         (__SYSCALL_ULONG_TYPE): Likewise.
5356         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5357         (__SYSCALL_SLONG_TYPE): Likewise.
5358         (__SYSCALL_ULONG_TYPE): Likewise.
5359
5360 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5361
5362         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5363         Add sigaltstack-offsets.sym.
5364         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5365         <sigaltstack-offsets.h>.
5366         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5367         longjmp_msg pointer.
5368         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5369         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5370         signal stack.
5371         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5372
5373 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5374
5375         * elf/stackguard-macros.h: Remove file.
5376         * sysdeps/generic/stackguard-macros.h: New file.
5377         * sysdeps/i386/stackguard-macros.h: Likewise.
5378         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5379         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5380         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5381         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5382         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5383         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5384         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5385         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5386         <elf/stackguard-macros.h>.
5387
5388         [BZ #14109]
5389         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5390         __aligned__ in attribute.
5391         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5392         (gregset_t): Likewise.
5393
5394 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5395
5396         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5397         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5398         * sysdeps/x86_64/x32/Implies-after: New file.
5399
5400 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5401
5402         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5403         and access return value for _dl_profile_fixup.  Use R10_LP to
5404         load frame size.
5405
5406 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5407
5408         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5409
5410 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5411
5412         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5413         * sysdeps/x86_64/x32/sysdep.h: New file.
5414
5415 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5416
5417         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5418         * sysdeps/x86_64/setjmp.S: Likewise.
5419
5420 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5421
5422         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5423         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5424         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5425         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5426         remove unused global constant.
5427
5428 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5429
5430         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5431         include of <not-cancel.h>.
5432
5433 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5434
5435         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5436
5437 2012-05-15  Jeff Law  <law@redhat.com>
5438             Andreas Jaeger  <aj@suse.de>
5439
5440         [BZ #13594]
5441         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5442         out from...
5443         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5444         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5445         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5446         code changing __hst_map_handle.map.
5447
5448 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5449
5450         * configure.in (sysnames): Look for Implies-before and Implies-after
5451         files.
5452         * configure: Regenerated.
5453
5454 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5455
5456         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5457         8-byte data alignment with LP_SIZE alignment.
5458
5459 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5460
5461         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5462         into R10_LP.
5463
5464 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5465
5466         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5467
5468 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5469
5470         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5471         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5472         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5473         Likewise.
5474         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5475
5476 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5477
5478         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5479         (stackinfo_sub_sp): Likewise.
5480
5481 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5482
5483         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5484         RAX_LP.
5485
5486 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5487
5488         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5489         into R*_LP.
5490
5491 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5492
5493         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5494         sizes into R*_LP.
5495
5496 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5497
5498         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5499
5500 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5501
5502         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5503         into R11_LP and load __x86_64_shared_cache_size_half into
5504         R8_LP.
5505
5506 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5507
5508         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5509         R8_LP.
5510
5511 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5512
5513         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5514         logb for POWER7.
5515         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5516         logbf for POWER7.
5517         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5518         logbl for POWER7.
5519         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5520         powerpc32/power7/fpu/s_logb.c via #include.
5521         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5522         powerpc32/power7/fpu/s_logbf.c via #include.
5523         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5524         powerpc32/power7/fpu/s_logbl.c via #include.
5525
5526 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5527
5528         * README.libm: Remove file.
5529
5530 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5531
5532         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5533         count for x32.  Use R*_LP and omit operand-size suffix.
5534
5535 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5536
5537         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5538         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5539         * sysdeps/x86_64/x32/shlib-versions: New file.
5540
5541 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5542
5543         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5544         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5545         Use _dl_fatal_printf instead.
5546
5547 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5548
5549         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5550         set if not set by the user.  Do not allow for being unset.
5551         * sysdeps/unix/sysv/linux/configure: Regenerated.
5552
5553 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5554
5555         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5556         the `q' suffix from lea and replace .quad with ASM_ADDR.
5557
5558 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5559
5560         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5561         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5562         instead of $17.
5563         (PTR_DEMANGLE): Likewise.
5564
5565 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5566
5567         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5568         (LP_OP): Likewise.
5569         (ASM_ADDR): Likewise.
5570         (RAX_LP): Likewise.
5571         (RBP_LP): Likewise.
5572         (RBX_LP): Likewise.
5573         (RCX_LP): Likewise.
5574         (RDI_LP): Likewise.
5575         (RSI_LP): Likewise.
5576         (RSP_LP): Likewise.
5577         (R8_LP): Likewise.
5578         (R9_LP): Likewise.
5579         (R10_LP): Likewise.
5580         (R10_LP): Likewise.
5581         (R11_LP): Likewise.
5582         (R12_LP): Likewise.
5583         (R13_LP): Likewise.
5584         (R14_LP): Likewise.
5585         (R15_LP): Likewise.
5586
5587 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5588
5589         * sysdeps/x86_64/x32/dl-machine.h: New file.
5590
5591 2012-05-14  Andreas Jaeger  <aj@suse.de>
5592
5593         * manual/Makefile (subdir): Remove export of subdir.
5594         (all): Remove target.
5595         (.PHONY): Remove all from list.
5596         (mkinstalldirs): Remove.
5597         (.PHONY): Remove installdirs from list.
5598         ($(inst_infodir)/libc.info): Use make-target-directory.
5599         (installdirs): Remove.
5600         (subdir_%): Remove.
5601         (glibc-targets): Remove.
5602         (lib): Remove.
5603         (stubs): Remove.
5604         ($(objpfx)stubs ../po/manual.pot): Remove.
5605         ($(objpfx)stamp%): Remove.
5606         (make-target-directory): Remove.
5607         (subdir_install): Remove.
5608         (routines): Remove.
5609         (aux): Remove.
5610         (sources): Remove.
5611         (objects): Remove.
5612         (headers): Remove.
5613
5614         [BZ #13750]
5615         * manual/.gitignore: Remove, it's not needed anymore.
5616         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5617         all files in it.
5618         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5619         directory.
5620         (texis): Renamed to $(objpfx)texis.
5621         (texis-path): New, contains path to generated files.
5622         (chapters.%): Use texis-path for complete path, add extra argument
5623         libc-texinfo.sh.
5624         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5625         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5626         (summary,texi, stamp-summary): Use complete path of
5627         files. Generate files in build dir.
5628         (dir-add.texi): Build in build dir.
5629         (libm-err.texi,stamp-libm-err): Likewise.
5630         (version.texi, stamp-version): Likewise.
5631         (.%c.texi): Likewise.
5632         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5633         (mostlyclean): Remove target.
5634         (realclean): Remove target.
5635         (generated): Add new variable with contents from mostlyclean and
5636         realclean, remove entries duplicated in common-mostlyclean, add
5637         stamp-libm-err and stamp-version.
5638         (generated-dirs): Add libc directory.
5639         ($(inst_infodir)/libc.info): Install files from build dir.
5640
5641         * manual/install.texi (Configuring and compiling): Adjust since
5642         the info files are not part of the tar ball anymore.
5643
5644 2012-05-14  Andreas Jaeger  <aj@suse.de>
5645
5646         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5647         variable.
5648
5649 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5650
5651         [BZ #13717]
5652         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5653         to 2.2.0 where earlier.
5654         * sysdeps/unix/sysv/linux/configure: Regenerated.
5655         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5656         Remove conditional code.
5657         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5658         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5659         Remove conditional code.
5660         [!__NR_lchown]: Likewise.
5661         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5662         [__NR_lchown]: Likewise.
5663         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5664         comment referencing __ASSUME_LCHOWN_SYSCALL.
5665         * sysdeps/unix/sysv/linux/i386/sigaction.c
5666         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5667         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5668         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5669         Remove conditional code.
5670         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5671         (__protocol_available): Remove #if 0 code.
5672         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5673         conditional code.
5674         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5675         * sysdeps/unix/sysv/linux/kernel-features.h
5676         (__ASSUME_GETCWD_SYSCALL): Don't define.
5677         (__ASSUME_REALTIME_SIGNALS): Likewise.
5678         (__ASSUME_PREAD_SYSCALL): Likewise.
5679         (__ASSUME_PWRITE_SYSCALL): Likewise.
5680         (__ASSUME_POLL_SYSCALL): Likewise.
5681         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5682         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5683         non-SPARC.
5684         (__ASSUME_SIOCGIFNAME): Don't define.
5685         (__ASSUME_MSG_NOSIGNAL): Likewise.
5686         (__ASSUME_SENDFILE): Define unconditionally.
5687         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5688         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5689         conditional code.
5690         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5691         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5692         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5693         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5694         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5695         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5696         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5698         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5699         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5701         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5702         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5704         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5705         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5707         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5708         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5710         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5711         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5713         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5714         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5716         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5717         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5719         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5720         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5721         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5722         Remove conditional code.
5723         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5724         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5725         Remove conditional code.
5726         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5727         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5728         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5729         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5730         Remove conditional code.
5731         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5732         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5733         Remove conditional code.
5734         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5735         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5736         Remove conditional code.
5737         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5738         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5739         Remove conditional code.
5740         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5741         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5742         Remove conditional code.
5743         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5744         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5745         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5746         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5747         * sysdeps/unix/sysv/linux/sigaction.c
5748         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5749         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5750         * sysdeps/unix/sysv/linux/sigpending.c
5751         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5752         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5753         * sysdeps/unix/sysv/linux/sigprocmask.c
5754         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5755         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5756         * sysdeps/unix/sysv/linux/sigsuspend.c
5757         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5758         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5759         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5760         (__libc_missing_rt_sigs): Remove.
5761         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5762         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5763         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5764         Remove conditional code.
5765         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5766         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5767         return 1.
5768         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5769         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5770         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5771         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5772
5773 2012-05-14  Andreas Jaeger  <aj@suse.de>
5774
5775         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5776         it's not used in glibc.
5777         (__coshm1): Likewise.
5778         (__acosh1p): Likewise.
5779         (__sgn): Likewise.
5780
5781         * manual/string.texi (Copying and Concatenation): Add missing
5782         variable in concat example.
5783         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5784
5785 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5786
5787         [BZ #14103]
5788         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5789         __builtin_clzl with __builtin_clzll.
5790
5791 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5792
5793         [BZ #14104]
5794         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5795         libc_freeres_ptr.
5796
5797 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5798
5799         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5800         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5801         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5802         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5803
5804 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5805
5806         * NEWS: Update ia64 info.
5807
5808 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5809
5810         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5811         used as bcopy.
5812
5813 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5814
5815         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5816         * sysdeps/unix/syscalls.list (dup3): Likewise.
5817         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5818         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5819
5820 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5821
5822         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5823         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5824
5825 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5826
5827         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5828         thread pointer.
5829         (TLS_IE): Use mov/add instead of movq/addq to load thread
5830         pointer.
5831         (TLS_GD_PREFIX): New.
5832         (TLS_GD): Use it.
5833
5834 2012-05-11  David S. Miller  <davem@davemloft.net>
5835
5836         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5837         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5838         (_FPU_SETCW): Likewise.
5839
5840 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5841
5842         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5843         is 32-byte aligned.
5844
5845 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5846
5847         [BZ #11837]
5848         * iconvdata/gb18030.c: Update tables.
5849         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5850         characters specially.
5851         (BODY for TO_LOOP): Add encoding of missing ranges.
5852
5853 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5854
5855         [BZ #13673]
5856         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5857         * sysdeps/mach/hurd/dup3.c: Likewise.
5858         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5859         * sysdeps/powerpc/memmove.c:: Likewise.
5860
5861 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5862
5863         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5864         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5865
5866 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5867
5868         * elf/elf.h (R_X86_64_RELATIVE64): New.
5869         (R_X86_64_NUM): Updated.
5870         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5871         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5872         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5873         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5874         tst-quad1pie tst-quad2pie
5875         (modules-names): Add tst-quadmod1 tst-quadmod2.
5876         ($(objpfx)tst-quad1): New dependency.
5877         ($(objpfx)tst-quad2): Likewise.
5878         ($(objpfx)tst-quad1pie): Likewise.
5879         ($(objpfx)tst-quad2pie): Likewise.
5880         * sysdeps/x86_64/tst-quad1.c: New file.
5881         * sysdeps/x86_64/tst-quad1pie.c: New file.
5882         * sysdeps/x86_64/tst-quad2.c: Likewise.
5883         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5884         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5885         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5886         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5887         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5888
5889 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5890
5891         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5892         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5893         * streams/stropts.h (t_scalar_t): Define type.
5894
5895         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5896         (_PATH_PRESERVE): Set to "/var/lib".
5897         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5898
5899         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5900         instead of int.
5901
5902         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5903         if __dir_mkfile succeeded.
5904
5905         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5906         checking for _hurd_dtablesize.  Unlock it right after having
5907         finished _hurd_dtable allocation.
5908
5909 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5910
5911         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5912         * sysdeps/mach/hurd/configure: Regenerated.
5913         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5914         special-casing to...
5915         * sysdeps/gnu/configure.in: ... this new file.
5916         * sysdeps/unix/sysv/linux/configure: Regenerated.
5917         * sysdeps/gnu/configure: New generated file.
5918
5919         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5920         for Linux: use nsec instead of usec, as well as:
5921         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5922         members of type struct timespec.
5923         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5924         New macros.
5925         (struct stat64): Likewise.
5926         (_STATBUF_ST_NSEC): New macro.
5927         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5928
5929         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5930         __strtoul_internal rather than strtoul.
5931
5932 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5933
5934         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5935         and reject them.
5936
5937 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5938
5939         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5940         which preserves existing values.
5941         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5942
5943 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5944
5945         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5946         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5947         greater than FD_SETSIZE.
5948
5949 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5950
5951         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5952         allocated, call __vm_protect to finish enabling the existing space, and
5953         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5954         allocate the remainder.
5955
5956 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5957
5958         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5959         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5960
5961 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5962
5963         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5964         sysdeps/mach/hurd/readlink.c.
5965
5966         * posix/tst-sysconf.c (posix_options): Only use
5967         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5968         _POSIX_SYNCHRONIZED_IO when they are defined
5969         * sysdeps/mach/hurd/bits/posix_opt.h:
5970         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5971         (_XOPEN_REALTIME): Undefine macro.
5972         (_XOPEN_REALTIME_THREADS): Undefine macro.
5973         (_XOPEN_SHM): Undefine macro.
5974         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5975         macro to -1.
5976         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5977         macro to -1.
5978         (_POSIX_ASYNC_IO): Undefine macro.
5979         (_POSIX_PRIORITIZED_IO): Undefine macro.
5980         (_POSIX_SPIN_LOCKS): Define macro to -1.
5981
5982         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5983         SA_NODEFER, SA_RESETHAND.
5984         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5985         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5986         F_DUPFD_CLOEXEC.
5987
5988 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5989
5990         * elf/Makefile (pldd-modules): Define unconditionally.
5991
5992 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5993
5994         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5995
5996 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5997
5998         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5999         Return ENOENT when name is empty.
6000         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6001
6002 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6003
6004         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6005
6006         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6007
6008 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6009
6010         Fix mlock in all cases except non-readable pages.
6011         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6012         instead of VM_PROT_ALL as parameter to __vm_wire function.
6013
6014         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6015         (__mkdir): When path is `/', just fail with EEXIST.
6016         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6017
6018 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6019
6020         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6021         <sys/uio.h> (for writev).
6022         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6023         and <sys/param.h> (for MIN).
6024
6025 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6026
6027         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6028         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6029         if interrupted.
6030
6031 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6032
6033         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6034         Depend on against $(link-rpcuserlibs).
6035
6036 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6037
6038         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6039         (__libc_stack_end): Do not use attribute_relro.
6040         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6041         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6042         to libthread-provided value.
6043         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6044         attribute_relro.
6045
6046 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6047
6048         [BZ #3748]
6049         * bits/libc-lock.h (__libc_once_get): New macro.
6050         * sysdeps/mach/bits/libc-lock.h: Likewise.
6051         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6052         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6053         instead of using implementation details.
6054
6055         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6056         * libio/freopen.c: Likewise.
6057         * libio/freopen64.c: Likewise.
6058         * misc/syslog.c: Likewise.
6059         * nscd/connections.c: Likewise.
6060         * nscd/netgroupcache.c: Likewise.
6061         * sysdeps/posix/getcwd.c: Likewise.
6062
6063 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6064
6065         * math/w_ilogbf.c: Add #include <limits.h>.
6066
6067 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6068
6069         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6070         path instead of returning without unlocking.
6071
6072         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6073         immediate-write ioctls.
6074         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6075
6076 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6077
6078         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6079         __builtin_frame_address instead of making assumptions about the
6080         location of the return address relative to DATA.  Force early load of
6081         the return address.
6082         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6083         __builtin_frame_address.
6084
6085         dup3 for GNU Hurd.
6086         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6087         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6088         implement dup3 and do some further code clean-ups.
6089         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6090         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6091
6092 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6093
6094         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6095
6096         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6097         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6098         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6099         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6100         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6101         d->port.lock.
6102
6103         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6104         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6105         when handler == SIG_ERR, not when handler != SIG_ERR.
6106
6107 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6108
6109         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6110         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6111         definitions.
6112
6113         accept4 for GNU Hurd.
6114         * include/sys/socket.h (__libc_accept4): New prototype.
6115         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6116         to implement __libc_accept4.
6117         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6118         __libc_accept4.
6119         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6120
6121         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6122         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6123         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6124         signal-defines.sym.
6125
6126 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6127
6128         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6129
6130 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6131
6132         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6133         assertion on O_CLOEXEC flag.
6134         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6135         * hurd/intern-fd.c: Likewise.
6136         * hurd/port2fd.c: Likewise.
6137
6138 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6139
6140         [BZ #3906]
6141         * bits/in.h (IPV6_PKTINFO): Define new macro.
6142         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6143
6144 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6145
6146         [BZ #13954]
6147         [BZ #13955]
6148         [BZ #13956]
6149         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6150         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6151         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6152         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6153         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6154         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6155         * math/libm-test.inc (logb_test) : Additional logb tests.
6156
6157 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6158             Andreas Jaeger  <aj@suse.de>
6159
6160         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6161         * configure: Regenerated.
6162         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6163         * config.make.in (link-obsolete-rpc): New substituted variable.
6164         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6165         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6166         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6167         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6168         so that libc.a contains the symbols.
6169         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6170         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6171         * sunrpc/auth_none.c: Likewise.
6172         * sunrpc/auth_unix.c: Likewise.
6173         * sunrpc/authdes_prot.c: Likewise.
6174         * sunrpc/authuxprot.c: Likewise.
6175         * sunrpc/clnt_gen.c: Likewise.
6176         * sunrpc/clnt_perr.c: Likewise.
6177         * sunrpc/clnt_raw.c: Likewise.
6178         * sunrpc/clnt_simp.c: Likewise.
6179         * sunrpc/clnt_tcp.c: Likewise.
6180         * sunrpc/clnt_udp.c: Likewise.
6181         * sunrpc/clnt_unix.c: Likewise.
6182         * sunrpc/des_crypt.c: Likewise.
6183         * sunrpc/des_soft.c: Likewise.
6184         * sunrpc/get_myaddr.c: Likewise.
6185         * sunrpc/key_call.c: Likewise.
6186         * sunrpc/key_prot.c: Likewise.
6187         * sunrpc/netname.c: Likewise.
6188         * sunrpc/pm_getmaps.c: Likewise.
6189         * sunrpc/pm_getport.c: Likewise.
6190         * sunrpc/pmap_clnt.c: Likewise.
6191         * sunrpc/pmap_prot.c: Likewise.
6192         * sunrpc/pmap_prot2.c: Likewise.
6193         * sunrpc/pmap_rmt.c: Likewise.
6194         * sunrpc/publickey.c: Likewise.
6195         * sunrpc/rpc_cmsg.c: Likewise.
6196         * sunrpc/rpc_common.c: Likewise.
6197         * sunrpc/rpc_dtable.c: Likewise.
6198         * sunrpc/rpc_prot.c: Likewise.
6199         * sunrpc/rpc_thread.c: Likewise.
6200         * sunrpc/rtime.c: Likewise.
6201         * sunrpc/svc.c: Likewise.
6202         * sunrpc/svc_auth.c: Likewise.
6203         * sunrpc/svc_raw.c: Likewise.
6204         * sunrpc/svc_run.c: Likewise.
6205         * sunrpc/svc_tcp.c: Likewise.
6206         * sunrpc/svc_udp.c: Likewise.
6207         * sunrpc/svc_unix.c: Likewise.
6208         * sunrpc/svcauth_des.c: Likewise.
6209         * sunrpc/xcrypt.c: Likewise.
6210         * sunrpc/xdr.c: Likewise.
6211         * sunrpc/xdr_array.c: Likewise.
6212         * sunrpc/xdr_float.c: Likewise.
6213         * sunrpc/xdr_intXX_t.c: Likewise.
6214         * sunrpc/xdr_mem.c: Likewise.
6215         * sunrpc/xdr_rec.c: Likewise.
6216         * sunrpc/xdr_ref.c: Likewise.
6217         * sunrpc/xdr_sizeof.c: Likewise.
6218         * sunrpc/xdr_stdio.c: Likewise.
6219
6220 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6221
6222         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6223         change.  Update copyright years.
6224
6225 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6226
6227         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6228
6229 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6230             Joseph Myers  <joseph@codesourcery.com>
6231             Paul Pluzhnikov  <ppluzhnikov@google.com>
6232
6233         [BZ #14012]
6234         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6235         requiring rpcgen.
6236         [cross-compiling] (extra-libs): Likewise.
6237         [cross-compiling] (extra-libs-others): Likewise.
6238         [cross-compiling] (librpcsvc-routines): Likewise.
6239         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6240         [cross-compiling] (omit-deps): Likewise.
6241         (sunrpc-CPPFLAGS): New variable.
6242         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6243         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6244         (cross-rpcgen-objs): New variable.
6245         (extra-objs): Append $(cross-rpcgen-objs).
6246         ($(cross-rpcgen-objs)): New rule.
6247         ($(objpfx)cross-rpcgen): Likewise.
6248         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6249         comment.
6250         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6251         ($(objpfx)x%.stmp): Likewise.
6252         * sunrpc/proto.h [IS_IN_build] (_): Define.
6253         [IS_IN_build] (_libc_intl_domainname): Likewise.
6254
6255 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6256
6257         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6258         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6259         and R_X86_64_TPOFF64.
6260
6261 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6262
6263         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6264         sysdeps/unix/sysv/syscalls.list.
6265         (stime): Likewise.
6266         (utime): Likewise.
6267         * sysdeps/unix/sysv/syscalls.list: Remove file.
6268
6269 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6270
6271         [BZ #3440]
6272         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6273         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6274         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6275         (__LC_IDENTIFICATION): Make these macros useful in #if
6276         expressions, as required by C99.
6277
6278 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6279
6280         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6281         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6282         after this.
6283
6284 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6285
6286         * stdlib/longlong.h: Updated from GCC.
6287
6288 2012-05-09  Andreas Jaeger  <aj@suse.de>
6289
6290         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6291         default is first entry.
6292         (run_mode): Set type.
6293         (main): Remove informal message about syslog.
6294         (options): Fix typo.
6295
6296         [BZ #14053]
6297         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6298         to asm.
6299         (lrint): Likewise.
6300         (llrintf): Likewise.
6301         (llrint): Likewise.
6302         (rint): Likewise.
6303         (rintf): Likewise.
6304         (nearbyint): Likewise.
6305         (nearbyintf): Likewise.
6306
6307 2012-05-09  Andreas Jaeger  <aj@suse.de>
6308             Pedro Alves  <palves@redhat.com>
6309
6310         * nscd/nscd.c (run_mode): Use enum.
6311         (main): Cleanup coding style issue.
6312
6313 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6314             Andreas Jaeger  <aj@suse.de>
6315
6316         * nscd/nscd.c (go_background): Replaced with...
6317         (run_mode): ... this.
6318         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6319         (options): Add -F --foreground.
6320         (main): Implement it.
6321         (parse_opt): Parse it.
6322
6323 2012-05-09  Andreas Jaeger  <aj@suse.de>
6324
6325         [BZ #14083]
6326         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6327         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6328         -Wconversion warning.
6329         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6330         Likewise.
6331
6332 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6333
6334         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6335         == 0.
6336         (LC_ALL): Use macro-int-constant.
6337         (LC_COLLATE): Likewise.
6338         (LC_CTYPE): Likewise.
6339         (LC_MESSAGES): Likewise.
6340         (LC_MONETARY): Likewise.
6341         (LC_NUMERIC): Likewise.
6342         (LC_TIME): Likewise.
6343         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6344         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6345         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6346         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6347         Specify type.
6348         [C99-based standards] (float_t): Expect type.
6349         [C99-based standards] (double_t): Expect type.
6350         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6351         type.
6352         [C99-based standards] (HUGE_VALL): Likewise.
6353         [C99-based standards] (INFINITY): Likewise.
6354         [C99-based standards] (NAN): Likewise.
6355         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6356         [C99-based standards] (FP_NAN): Likewise.
6357         [C99-based standards] (FP_NORMAL): Likewise.
6358         [C99-based standards] (FP_SUBNORMAL): Likewise.
6359         [C99-based standards] (FP_ZERO): Likewise.
6360         [C99-based standards] (FP_FAST_FMA): Use
6361         optional-macro-int-constant.  Specify type.  Require == 1.
6362         [C99-based standards] (FP_FAST_FMAF): Likewise.
6363         [C99-based standards] (FP_FAST_FMAL): Likewise.
6364         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6365         [C99-based standards] (FP_ILOGBNAN): Likewise.
6366         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6367         Specify type.
6368         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6369         [C99-based standards] (math_errhandling): Specify type.
6370         [ISO99 || ISO11] (signgam): Do not allow.
6371         [non-C99-based standards] (copysignf): Do not allow.
6372         [non-C99-based standards] (exp2f): Likewise.
6373         [non-C99-based standards] (log2f): Likewise.
6374         [non-C99-based standards] (modff): Allow.
6375         [non-C99-based standards] (erff): Do not allow.
6376         [non-C99-based standards] (erfcf): Likewise.
6377         [non-C99-based standards] (gammaf): Likewise.
6378         [non-C99-based standards] (hypotf): Likewise.
6379         [non-C99-based standards] (j0f): Likewise.
6380         [non-C99-based standards] (j1f): Likewise.
6381         [non-C99-based standards] (jnf): Likewise.
6382         [non-C99-based standards] (lgammaf): Likewise.
6383         [non-C99-based standards] (tgammaf): Likewise.
6384         [non-C99-based standards] (y0f): Likewise.
6385         [non-C99-based standards] (y1f): Likewise.
6386         [non-C99-based standards] (ynf): Likewise.
6387         [non-C99-based standards] (isnanf): Likewise.
6388         [non-C99-based standards] (acoshf): Likewise.
6389         [non-C99-based standards] (asinhf): Likewise.
6390         [non-C99-based standards] (atanhf): Likewise.
6391         [non-C99-based standards] (cbrtf): Likewise.
6392         [non-C99-based standards] (expm1f): Likewise.
6393         [non-C99-based standards] (ilogbf): Likewise.
6394         [non-C99-based standards] (log1pf): Likewise.
6395         [non-C99-based standards] (logbf): Likewise.
6396         [non-C99-based standards] (nextafterf): Likewise.
6397         [non-C99-based standards] (remainderf): Likewise.
6398         [non-C99-based standards] (rintf): Likewise.
6399         [non-C99-based standards] (scalbf): Likewise.
6400         [non-C99-based standards] (copysignl): Likewise.
6401         [non-C99-based standards] (exp2l): Likewise.
6402         [non-C99-based standards] (log2l): Likewise.
6403         [non-C99-based standards] (modfl): Allow.
6404         [non-C99-based standards] (erfl): Do not allow.
6405         [non-C99-based standards] (erfcl): Likewise.
6406         [non-C99-based standards] (gammal): Likewise.
6407         [non-C99-based standards] (hypotl): Likewise.
6408         [non-C99-based standards] (j0l): Likewise.
6409         [non-C99-based standards] (j1l): Likewise.
6410         [non-C99-based standards] (jnl): Likewise.
6411         [non-C99-based standards] (lgammal): Likewise.
6412         [non-C99-based standards] (tgammal): Likewise.
6413         [non-C99-based standards] (y0l): Likewise.
6414         [non-C99-based standards] (y1l): Likewise.
6415         [non-C99-based standards] (ynl): Likewise.
6416         [non-C99-based standards] (isnanl): Likewise.
6417         [non-C99-based standards] (acoshl): Likewise.
6418         [non-C99-based standards] (asinhl): Likewise.
6419         [non-C99-based standards] (atanhl): Likewise.
6420         [non-C99-based standards] (cbrtl): Likewise.
6421         [non-C99-based standards] (expm1l): Likewise.
6422         [non-C99-based standards] (ilogbl): Likewise.
6423         [non-C99-based standards] (log1pl): Likewise.
6424         [non-C99-based standards] (logbl): Likewise.
6425         [non-C99-based standards] (nextafterl): Likewise.
6426         [non-C99-based standards] (remainderl): Likewise.
6427         [non-C99-based standards] (rintl): Likewise.
6428         [non-C99-based standards] (scalbl): Likewise.
6429         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6430         [non-C99-based standards] (FP_*): Do not allow.
6431         [C99-based standards] (FP_*): Change to
6432         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6433         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6434         allow.
6435         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6436         (SIG_ERR): Likewise.
6437         [X/Open-based standards] (SIG_HOLD): Likewise.
6438         (SIG_IGN): Likewise.
6439         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6440         positive value.
6441         (SIGFPE): Likewise.
6442         (SIGILL): Likewise.
6443         (SIGINT): Likewise.
6444         (SIGSEGV): Likewise.
6445         (SIGTER): Likewise.
6446         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6447         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6448         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6449         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6450         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6451         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6452         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6453         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6454         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6455         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6456         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6457         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6458         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6459         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6460         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6461         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6462         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6463         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6464         [X/Open-based standards] (SIGTRAP): Likewise.
6465         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6466         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6467         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6468         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6469         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6470         allow.
6471
6472 2012-05-08  Ian Wienand  <ianw@vmware.com>
6473
6474         [BZ #14080]
6475         * time/tzset.c (__tzset_parse_tz): Update default rules for
6476         daylight time changes in the Energy Policy Act of 2005.
6477
6478 2012-05-09  Andreas Jaeger  <aj@suse.de>
6479
6480         [BZ #13983]
6481         * elf/ldconfig.c (parse_conf): Change string to make clear that
6482         ldconfig only issued a warning if ld.so.conf does not exist.
6483
6484 2012-05-08  David S. Miller  <davem@davemloft.net>
6485
6486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6487         movxtod instead of popping the value on the stack.
6488
6489         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6490
6491 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6492
6493         * config.h.in: Add HAVE_ARM_PCS_VFP.
6494
6495 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6496
6497         [BZ #13979]
6498         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6499         checking but the checks are disabled for any reason.
6500
6501 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6502
6503         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6504         and ELF64_R_TYPE with ELFW(R_TYPE).
6505
6506 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6507
6508         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6509         (ulimit): Likewise.
6510
6511         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6512         (settimeofday): Likewise.
6513
6514 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6515
6516         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6517         a struct th_u2 inside the union, and move tu_block/tu_code into
6518         a new th_u3 union of tu_block/tu_code inside of that.  Move
6519         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6520         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6521         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6522         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6523         (th_stuff): Change to th_u1.tu_stuff.
6524         (th_data): Define.
6525         (th_msg): Change to th_u1.th_u2.tu_data.
6526
6527 2012-05-07  David S. Miller  <davem@davemloft.net>
6528
6529         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6530
6531         [BZ #14074]
6532         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6533         (SETUP_PIC_REG): Use it.
6534         (SETUP_PIC_REG_LEAF): Use it.
6535
6536 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6537
6538         [BZ #13885]
6539         [BZ #13923]
6540         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6541         USE_AS_EXPM1L.
6542         (EXPL_FINITE): Likewise.
6543         (FLDLOG): Likewise.
6544         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6545         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6546         e_expl.S.
6547         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6548         USE_AS_EXPM1L.
6549         (EXPL_FINITE): Likewise.
6550         (FLDLOG): Likewise.
6551         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6552         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6553         e_expl.S.
6554         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6555         test of -max_value argument for long double.
6556         * sysdeps/i386/fpu/libm-test-ulps: Update.
6557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6558
6559 2012-05-06  David S. Miller  <davem@davemloft.net>
6560
6561         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6562         quad soft-float symbols whose references which are compiler
6563         generated.
6564         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6565
6566 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6567
6568         [BZ #13884]
6569         [BZ #13914]
6570         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6571         USE_AS_EXP10L.
6572         (EXPL_FINITE): Likewise.
6573         (FLDLOG): Likewise.
6574         (c0): Likewise.
6575         (c1): Likewise.
6576         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6577         Adjust comments for base varying.
6578         (__expl_finite): Change alias to EXPL_FINITE.
6579         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6580         e_expl.S.
6581         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6582         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6583         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6584         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6585         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6586         USE_AS_EXP10L.
6587         (EXPL_FINITE): Likewise.
6588         (FLDLOG): Likewise.
6589         (c0): Likewise.
6590         (c1): Likewise.
6591         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6592         Adjust comments for base varying.
6593         (__expl_finite): Change alias to EXPL_FINITE.
6594         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6595         tests for bugs.
6596         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6597
6598         [BZ #14064]
6599         * math/libm-test.inc (check_float_internal): Correct ulp
6600         calculation for subnormal expected results.
6601
6602 2012-05-06  Andreas Jaeger  <aj@suse.de>
6603
6604         * Makeconfig (+math-flags): New, set to -frounding-math.
6605         (+cflags): Add +math-flags so that all of glibc gets compiled with
6606         it.
6607
6608         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6609
6610 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6611
6612         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6613         Disable one test.
6614
6615         [BZ #13787]
6616         [BZ #13922]
6617         [BZ #14036]
6618         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6619         (__ieee754_expl): Allow for and saturate large arguments.
6620         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6621         (u_threshold): Likewise.
6622         (__exp): Call __ieee754_exp before checking for overflow and
6623         underflow.
6624         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6625         (u_threshold): Likewise.
6626         (__expf): Call __ieee754_expf before checking for overflow and
6627         underflow.
6628         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6629         (u_threshold): Likewise.
6630         (__expl): Call __ieee754_expl before checking for overflow and
6631         underflow.
6632         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6633         (__ieee754_expl): Allow for and saturate large arguments.
6634         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6635         missing overflow exception on overflow.
6636         (expm1_test): Do not allow missing overflow exception on overflow.
6637
6638         * sysdeps/i386/fpu/e_expl.c: Move to ...
6639         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6640         rather than using inline asm.
6641         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6642         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6643         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6644
6645         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6646         (nice): Likewise.
6647         (poll): Likewise.
6648         (signal): Likewise.
6649         (time): Likewise.
6650         (times): Likewise.
6651
6652 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6653
6654         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6655         sysdeps/unix/common/syscalls.list.
6656         (fchmod): Likewise.
6657         (fchown): Likewise.
6658         (ftruncate): Likewise.
6659         (getrusage): Likewise.
6660         (gettimeofday): Likewise.
6661         (setpgid): Likewise.
6662         (setregid): Likewise.
6663         (setreuid): Likewise.
6664         (sigaction): Likewise.
6665         (truncate): Likewise.
6666         (vhangup): Likewise.
6667         * sysdeps/unix/common/syscalls.list: Remove file.
6668         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6669         * sysdeps/unix/sysv/linux/Implies: Likewise.
6670
6671 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6672
6673         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6674         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6675         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6676         Moved to ...
6677         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6678         Here.
6679         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6680         to ...
6681         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6682         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6683         to ...
6684         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6685         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6686         to ...
6687         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6688         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6689         to ...
6690         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6691         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6692         to ...
6693         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6694         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6695         to ...
6696         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6697         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6698         to ...
6699         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6700         Here.
6701         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6702         to ...
6703         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6704         Here.
6705         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6706         to ...
6707         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6708         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6709         Moved to ...
6710         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6711         Here.
6712         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6713         to ...
6714         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6715
6716 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6717
6718         * sysdeps/unix/common/bits/dirent.h: Remove file.
6719         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6720
6721         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6722         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6723         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6724         * sysdeps/unix/bsd/isatty.c: Likewise.
6725         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6726         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6727         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6728
6729 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6730
6731         [BZ #13563]
6732         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6733         long double comparison inaccuracies.
6734         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6735         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6736
6737 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6738
6739         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6740         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6741
6742 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6743
6744         [BZ #14049]
6745         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6746         nonzero digits before rounding a hex value.
6747         * stdlib/tst-strtod.c (tests): Add another test.
6748
6749 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6750
6751         * sysdeps/s390/fpu/libm-test-ulps: Update.
6752
6753 2012-05-03  Andreas Jaeger  <aj@suse.de>
6754
6755         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6756         does not get optimized out.
6757         (malloc_opt_barrier): New.
6758
6759 2012-05-03  Andreas Jaeger  <aj@suse.de>
6760             Roland McGrath  <roland@hack.frob.com>
6761
6762         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6763         intermediate file deletion.
6764         (generated): Add .symlist files.
6765
6766 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6767
6768         [BZ #13775]
6769         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6770         Redirect under this condition.
6771         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6772         [__USE_GNU] (__dprintf_chk): Not under this condition.
6773         [__USE_GNU] (__vdprintf_chk): Likewise.
6774         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6775         under this condition.
6776         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6777         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6778         [__USE_XOPEN2K8] (vdprintf): Likewise.
6779         [__USE_GNU] (__dprintf_chk): Not under this condition.
6780         [__USE_GNU] (__vdprintf_chk): Likewise.
6781         [__USE_GNU] (dprintf): Likewise.
6782         [__USE_GNU] (vdprintf): Likewise.
6783
6784 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6785
6786         * elf/Makefile (common-generated): Set this instead of generated for
6787         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6788         $(all-built-dso)-derived lists.
6789
6790 2012-05-03  Andreas Jaeger  <aj@suse.de>
6791
6792         * sysdeps/i386/fpu/libm-test-ulps: Update.
6793
6794         * FAQ: Removed.
6795         * FAQ.in: Likewise.
6796         * scripts/gen-FAQ.pl: Likewise.
6797         * manual/install.texi (Installation): Point to online location of
6798         FAQ.
6799         * Makefile (files-for-dist): Remove FAQ.
6800         (FAQ): Remove.
6801
6802 2012-05-02  Allan McRae  <allan@archlinux.org>
6803
6804         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6805         (LDFLAGS-reldepmod5.so): Likewise.
6806         (LDFLAGS-reldep6mod1.so): Likewise.
6807         (LDFLAGS-reldep6mod4.so): Likewise.
6808         (LDFLAGS-reldep8mod3.so): Likewise.
6809         (LDFLAGS-unload4mod1.so): Likewise.
6810         (LDFLAGS-unload4mod2.so): Likewise.
6811         (LDFLAGS-tst-initorder): Likewise.
6812         (LDFLAGS-tst-initordera2.so): Likewise.
6813         (LDFLAGS-tst-initordera3.so): Likewise.
6814         (LDFLAGS-tst-initordera4.so): Likewise.
6815         (LDFLAGS-tst-initorderb2.so): Likewise.
6816         (LDFLAGS-noload): Likewise.
6817         (LDFLAGS-next): Likewise.
6818         (LDFLAGS-order2mod1.so): Likewise.
6819         (LDFLAGS-order2mod2.so): Likewise.
6820         (LDFLAGS-tst-initorder2): Likewise.
6821         (LDFLAGS-tst-initorder2a.so): Likewise.
6822         (LDFLAGS-tst-initorder2b.so): Likewise.
6823         (LDFLAGS-tst-initorder2c.so): Likewise.
6824         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6825
6826 2012-05-02  David S. Miller  <davem@davemloft.net>
6827
6828         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6829
6830 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6831
6832         [BZ #14055]
6833         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6834
6835 2012-05-02  Andreas Jaeger  <aj@suse.de>
6836
6837         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6838         since we manipulate rounding mode.
6839         (CPPFLAGS-test-idouble.c): Likewise.
6840         (CPPFLAGS-test-ifloat.c): Likewise.
6841         (CFLAGS-test-ldouble.c): Likewise.
6842         (CFLAGS-test-double.c): Likewise.
6843         (CFLAGS-test-float.c): Likewise.
6844         (CFLAGS-test-misc.c): Likewise.
6845         (CFLAGS-test-test-fenv.c): Likewise.
6846
6847 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6848
6849         [BZ #2550]
6850         [BZ #2570]
6851         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6852         comparisons to determine direction to adjust input.
6853
6854 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6855
6856         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6857         output to the target.
6858
6859         * scripts/localplt.awk: New file.
6860         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6861         (check-localplt-CFLAGS): Variable removed.
6862         ($(all-built-dso:=.jmprel)): New static pattern rule.
6863         (generated): Add those targets.
6864         (localplt-built-dso): New variable.
6865         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6866
6867         * elf/check-localplt.c: File removed.
6868
6869         * scripts/check-execstack.awk: New file.
6870         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6871         (check-execstack-CFLAGS): Variable removed.
6872         ($(objpfx)check-execstack.h): Target removed.
6873         ($(objpfx)execstack-default): New target.
6874         (generated): Add that instead of check-execstack.h.
6875         ($(all-built-dso:=.phdr)): New static pattern rule.
6876         (generated): Add those targets.
6877         * elf/check-execstack.c: File removed.
6878
6879         * scripts/check-textrel.awk: New file.
6880         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6881         (check-textrel-CFLAGS): Variable removed.
6882         (all-built-dso): Use := to define.o
6883         ($(all-built-dso:=.dyn)): New static pattern rule.
6884         (generated): Add those targets.
6885         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6886         * config.make.in (READELF): New substituted variable.
6887         * elf/check-textrel.c: File removed.
6888
6889 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6890
6891         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6892         allow.
6893         * conform/data/ctype.h-data [C99-based standards] (isblank):
6894         Expect function.
6895         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6896         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6897         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6898         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6899         Specify type.  Require positive value.
6900         (EILSEQ): Likewise.
6901         (ERANGE): Likewise.
6902         [ISO || POSIX] (EILSEQ): Do not expect.
6903         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6904         Specify type.  Require positive value.
6905         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6906         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6907         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6908         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6909         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6910         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6911         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6912         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6913         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6914         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6915         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6916         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6917         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6918         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6919         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6920         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6921         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6922         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6923         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6924         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6925         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6926         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6927         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6928         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6929         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6930         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6931         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6932         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6933         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6934         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6935         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6936         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6937         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6938         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6939         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6940         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6941         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6942         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6943         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6944         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6945         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6946         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6947         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6948         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6949         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6950         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6951         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6952         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6953         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6954         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6955         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6956         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6957         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6958         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6959         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6960         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6961         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6962         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6963         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6964         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6965         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6966         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6967         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6968         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6969         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6970         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6971         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6972         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6973         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6974         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6975         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6976         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6977         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6978         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6979         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6980         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6981         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6982         Require >= 2.
6983         (FLT_ROUNDS): Expect as macro, not constant.
6984         (FLT_MANT_DIG): Use macro-int-constant.
6985         (DBL_MANT_DIG): Likewise.
6986         (LDBL_MANT_DIG): Likewise.
6987         (FLT_DIG): Likewise.
6988         (DBL_DIG): Likewise.
6989         (LDBL_DIG): Likewise.
6990         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6991         (DBL_MIN_EXP): Likewise.
6992         (LDBL_MIN_EXP): Likewise.
6993         (FLT_MAX_EXP): Use macro-int-constant.
6994         (DBL_MAX_EXP): Likewise.
6995         (LDBL_MAX_EXP): Likewise.
6996         (FLT_MAX_10_EXP): Likewise.
6997         (DBL_MAX_10_EXP): Likewise.
6998         (LDBL_MAX_10_EXP): Likewise.
6999         (FLT_MAX): Use macro-constant.
7000         (DBL_MAX): Likewise.
7001         (LDBL_MAX): Likewise.
7002         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7003         (DBL_EPSILON): Likewise.
7004         (LDBL_EPSILON): Likewise.
7005         (FLT_MIN): Likewise.
7006         (DBL_MIN): Likewise.
7007         (LDBL_MIN): Likewise.
7008         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7009         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7010         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7011         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7012         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7013         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7014         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7015         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7016         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7017         [ISO11] (FLT_TRUE_MIN): Likewise.
7018         [ISO11] (LDBL_TRUE_MIN): Likewise.
7019         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7020         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7021         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7022         (SCHAR_MAX): Likewise.
7023         (UCHAR_MAX): Likewise.
7024         (CHAR_MIN): Likewise.
7025         (CHAR_MAX): Likewise.
7026         (MB_LEN_MAX): Use macro-int-constant.
7027         (SHRT_MIN): Use macro-int-constant.  Specify type.
7028         (SHRT_MAX): Likewise.
7029         (USHRT_MAX): Likewise.
7030         (INT_MAX): Likewise.
7031         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7032         bound negative.
7033         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7034         bound with "U".
7035         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7036         bound with "L".
7037         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7038         bound negative.  Suffix upper bound with "L".
7039         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7040         bound with "UL".
7041         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7042         Specify type.
7043         [C99-based standards] (LLONG_MAX): Likewise.
7044         [C99-based standards] (ULLONG_MAX): Likewise.
7045         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7046         == 0.
7047         [ISO11] (max_align_t): Require type.
7048         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7049
7050         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7051         from $CFLAGS, without defining away __attribute__ calls.
7052         (checknamespace): Use $CFLAGS_namespace.
7053
7054         * conform/conformtest.pl (@keywords): Only include C99 keywords
7055         for standards based on C99 or C11.
7056
7057         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7058         Disable tests.
7059         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7060         UNIX98]: Likewise.
7061
7062         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7063         usability of symbols in #if.
7064
7065         * conform/conformtest.pl: If macro or constant types start
7066         "promoted:", expect the symbol to be of the following type
7067         promoted by the integer promotions.
7068
7069         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7070         in one place.  Also handle "macro-constant".
7071
7072         * conform/conformtest.pl: Only accept expected macro values with
7073         "==".  Parse all "macro" lines in one place.
7074         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7075
7076         * conform/conformtest.pl: Handle braced types on "constant" lines
7077         instead of handling "typed-constant".
7078         * conform/data/signal.h-data: Use "constant" instead of
7079         "typed-constant".
7080
7081         * conform/conformtest.pl: Handle "optional-" at start of lines in
7082         one place rather than duplicating several cases.  Handle each
7083         format of "macro" line with initial "optional-".
7084
7085         * conform/conformtest.pl: Only accept expected constant or
7086         optional-constant values with "==".  Parse all "constant" lines in
7087         one place.  Parse all "optional-constant" lines in one place.
7088         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7089         * conform/data/fmtmsg.h-data: Likewise.
7090         * conform/data/netinet/in.h-data: Likewise.
7091         * conform/data/tar.h-data: Likewise.
7092         * conform/data/limits.h-data: Use "==" form on "constant" and
7093         "optional-constant" lines.
7094
7095         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7096         Use -std=c99 for XOPEN2K.
7097         (@knownproblems): Remove.
7098         (newtoken): Don't check %isknown.
7099
7100         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7101         Do not expect macro.
7102         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7103         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7104         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7105         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7106         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7107         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7108         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7109         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7110         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7111         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7112         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7113         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7114         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7115         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7116         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7117         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7118         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7119         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7120         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7121         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7122         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7123         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7124         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7125         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7126         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7127         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7128         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7129         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7130         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7131         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7132         [XPG3] (acosh): Likewise.
7133         [XPG3] (asinh): Likewise.
7134         [XPG3] (atanh): Likewise.
7135         [XPG3] (cbrt): Likewise.
7136         [XPG3] (expm1): Likewise.
7137         [XPG3] (ilogb): Likewise.
7138         [XPG3] (log1p): Likewise.
7139         [XPG3] (logb): Likewise.
7140         [XPG3] (nextafter): Likewise.
7141         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7142         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7143         [XPG3] (remainder): Likewise.
7144         [XPG3] (rint): Likewise.
7145         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7146         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7147         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7148         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7149         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7150         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7151         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7152         [UNIX98 || XOPEN2K] (scalb): Expect.
7153         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7154         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7155         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7156         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7157         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7158         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7159         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7160         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7161         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7162         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7163         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7164         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7165         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7166         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7167         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7168         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7169         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7170         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7171         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7172         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7173         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7174         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7175         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7176         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7177         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7178         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7179         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7180         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7181         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7182         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7183         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7184         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7185         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7186         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7187         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7188         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7189         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7190         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7191         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7192         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7193         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7194         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7195         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7196         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7197         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7198         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7199         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7200         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7201         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7202         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7203         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7204         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7205         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7206         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7207         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7208         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7209         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7210         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7211         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7212         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7213         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7214         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7215         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7216         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7217         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7218         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7219         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7220         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7221         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7222         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7223         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7224         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7225         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7226         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7227         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7228         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7229         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7230         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7231         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7232         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7233         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7234         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7235         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7236         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7237         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7238         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7239         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7240         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7241         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7242         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7243         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7244         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7245         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7246         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7247         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7248         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7249         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7250         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7251         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7252         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7253         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7254         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7255         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7256         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7257         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7258         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7259         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7260         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7261         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7262         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7263         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7264         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7265         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7266         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7267         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7268         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7269         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7270         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7271         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7272         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7273         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7274         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7275         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7276         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7277         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7278         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7279         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7280         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7281         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7282         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7283         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7284         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7285         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7286         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7287         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7288         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7289         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7290
7291         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7292         _XOPEN_SOURCE_EXTENDED for XPG4.
7293
7294         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7295
7296         * Makeconfig (localtime): Remove variable.
7297         (inst_localtime-file): Likewise.
7298
7299 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7300
7301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7302         Update.
7303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7304         Update.
7305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7306         Update.
7307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7308         Update.
7309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7310         Update.
7311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7312         Update.
7313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7314         Update.
7315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7316         Update.
7317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7318         Update.
7319
7320 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7321
7322         [BZ #2550]
7323         [BZ #2570]
7324         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7325         comparisons to determine direction to adjust input.
7326         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7327         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7328         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7329         Likewise.
7330         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7331         Likewise.
7332         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7333         Likewise.
7334         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7335         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7336         Likewise.
7337         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7338         Likewise.
7339         * math/libm-test.inc (nexttoward_test): Add more tests.
7340
7341 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7342
7343         [BZ #14040]
7344         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7345         in version GLIBC_2.1, not GLIBC_2.0.
7346         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7347         Likewise.
7348
7349 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7350
7351         [BZ #13942]
7352         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7353         (1 - x) * (1 + x).
7354         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7355         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7356         * math/libm-test.inc (acos_test): Add more tests.
7357         (asin_test): Likewise.
7358         * sysdeps/i386/fpu/libm-test-ulps: Update.
7359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7360
7361         [BZ #14034]
7362         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7363         of square root.
7364         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7365         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7366         * math/libm-test.inc (acos_test_tonearest): New function.
7367         (acos_test_towardzero): Likewise.
7368         (acos_test_downward): Likewise.
7369         (acos_test_upward): Likewise.
7370         (asin_test_tonearest): Likewise.
7371         (asin_test_towardzero): Likewise.
7372         (asin_test_downward): Likewise.
7373         (asin_test_upward): Likewise.
7374         (main): Call the new functions.
7375         * sysdeps/i386/fpu/libm-test-ulps: Update.
7376         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7377
7378         [BZ #13884]
7379         [BZ #13924]
7380         * math/e_exp10.c: Include <float.h>.
7381         (__ieee754_exp10): Handle underflow here rather than multiplying
7382         large negative argument by M_LN10.
7383         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7384         of __ieee754_expf.
7385         * math/e_exp10l.c: Include <float.h>.
7386         (__ieee754_exp10l): Handle underflow here rather than multiplying
7387         large negative argument by M_LN10l.
7388         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7389         spurious overflow exception on underflow.
7390
7391 2012-04-29  Marek Polacek  <polacek@redhat.com>
7392
7393         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7394         (__fortify_function): New macro.
7395         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7396         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7397         __extern_always_inline.
7398         * libio/bits/stdio2.h: Likewise.
7399         * libio/bits/stdio.h: Likewise.
7400         * string/string.h: Likewise.
7401         * string/bits/string3.h: Likewise.
7402         * include/stdio.h: Likewise.
7403         * stdlib/bits/stdlib.h: Likewise.
7404         * stdlib/stdlib.h: Likewise.
7405         * rt/bits/mqueue2.h: Likewise.
7406         * rt/mqueue.h: Likewise.
7407         * posix/bits/unistd.h: Likewise.
7408         * posix/unistd.h: Likewise.
7409         * io/bits/poll2.h: Likewise.
7410         * io/bits/fcntl2.h: Likewise.
7411         * io/fcntl.h: Likewise.
7412         * io/sys/poll.h: Likewise.
7413         * misc/bits/syslog.h: Likewise.
7414         * misc/bits/syslog-ldbl.h: Likewise.
7415         * misc/sys/syslog.h: Likewise.
7416         * socket/bits/socket2.h: Likewise.
7417         * socket/sys/socket.h: Likewise.
7418         * debug/tst-chk1.c: Likewise.
7419         * wcsmbs/bits/wchar2.h: Likewise.
7420         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7421         * wcsmbs/wchar.h: Likewise.
7422
7423 2012-04-29  Andreas Jaeger  <aj@suse.de>
7424
7425         * Makerules (tests): Remove enable-check-abi protection.
7426         (check-abi-warn): Remove.
7427         (check-abi-%): Remove check-abi-warn usage.
7428
7429         * configure.in: Remove check-abi configure option.
7430         * configure: Regenerated.
7431         * config.make.in (enable-check-abi): Remove.
7432
7433 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7434
7435         [BZ #14033]
7436         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7437         double functions to double *_finite functions.
7438
7439         [BZ #13941]
7440         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7441         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7442         LDBL_MIN_EXP.
7443         * stdio-common/Makefile (tests): Add tst-sprintf3.
7444         * stdio-common/tst-sprintf3.c: New file.
7445
7446         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7447         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7448
7449 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7450
7451         * conform/conformtest.pl: Remove duplicate typed-constant
7452         handling.
7453
7454 2012-04-28  David S. Miller  <davem@davemloft.net>
7455
7456         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7457         (check-abi-%): Remove AWK script prerequisite and explicit
7458         abilist directory.
7459         (check-abi): Rewrite to just diff the symlist with the abilist.
7460         (config-tls, config-abi-config): Delete, no longer used.
7461         (update-abi-%): Remove AWK script and explicit abilist directory.
7462         (update-abi): Rewrite to simply compare and conditionally copy the
7463         symlist and the sysdep abilist file.  Remove update-abi-config
7464         checks.
7465         * abilist/ld.abilist: Remove.
7466         * abilist/libBrokenLocale.abilist: Remove.
7467         * abilist/libanl.abilist: Remove.
7468         * abilist/libcrypt.abilist: Remove.
7469         * abilist/libdl.abilist: Remove.
7470         * abilist/librt.abilist: Remove.
7471         * abilist/libthread_db.abilist: Remove.
7472         * abilist/libutil.abilist: Remove.
7473         * scripts/extract-abilist.awk: Remove.
7474         * scripts/merge-abilist.awk: Remove.
7475         * sysdeps/generic/libcidn.abilist: New file.
7476         * sysdeps/generic/libnss_compat.abilist: New file.
7477         * sysdeps/generic/libnss_db.abilist: New file.
7478         * sysdeps/generic/libnss_dns.abilist: New file.
7479         * sysdeps/generic/libnss_files.abilist: New file.
7480         * sysdeps/generic/libnss_hesiod.abilist: New file.
7481         * sysdeps/generic/libnss_nis.abilist: New file.
7482         * sysdeps/generic/libnss_nisplus.abilist: New file.
7483         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7484         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7485         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7486         file.
7487         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7488         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7489         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7490         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7491         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7492         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7493         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7494         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7495         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7496         file.
7497         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7498         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7499         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7500         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7501         file.
7502         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7503         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7504         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7505         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7506         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7507         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7508         file.
7509         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7510         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7511         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7512         file.
7513         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7514         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7515         New file.
7516         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7517         New file.
7518         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7519         New file.
7520         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7521         New file.
7522         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7523         New file.
7524         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7525         New file.
7526         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7527         New file.
7528         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7529         New file.
7530         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7531         New file.
7532         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7533         New file.
7534         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7535         New file.
7536         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7537         New file.
7538         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7539         New file.
7540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7541         file.
7542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7543         New file.
7544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7545         New file.
7546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7547         file.
7548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7549         New file.
7550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7551         New file.
7552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7553         file.
7554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7555         New file.
7556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7557         New file.
7558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7559         New file.
7560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7561         New file.
7562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7563         New file.
7564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7565         New file.
7566         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7567         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7568         file.
7569         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7570         New file.
7571         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7572         file.
7573         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7574         file.
7575         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7576         file.
7577         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7578         file.
7579         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7580         file.
7581         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7582         New file.
7583         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7584         file.
7585         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7586         file.
7587         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7588         New file.
7589         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7590         file.
7591         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7592         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7593         file.
7594         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7595         New file.
7596         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7597         file.
7598         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7599         file.
7600         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7601         file.
7602         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7603         file.
7604         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7605         file.
7606         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7607         New file.
7608         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7609         file.
7610         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7611         file.
7612         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7613         New file.
7614         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7615         file.
7616         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7617         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7618         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7619         file.
7620         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7621         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7622         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7623         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7624         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7625         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7626         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7627         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7628         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7629         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7630         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7631         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7632         file.
7633         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7634         New file.
7635         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7636         file.
7637         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7638         file.
7639         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7640         file.
7641         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7642         file.
7643         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7644         file.
7645         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7646         New file.
7647         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7648         New file.
7649         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7650         file.
7651         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7652         New file.
7653         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7654         file.
7655         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7656         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7657         file.
7658         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7659         New file.
7660         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7661         file.
7662         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7663         file.
7664         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7665         file.
7666         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7667         file.
7668         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7669         file.
7670         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7671         New file.
7672         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7673         New file.
7674         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7675         file.
7676         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7677         New file.
7678         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7679         file.
7680
7681 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7682
7683         * conform/conformtest.pl: Fix typo in handling typed-constant from
7684         allow-header.
7685
7686 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7687
7688         * README: Cut down references to pre-2.6 Linux kernels and
7689         Linuxthreads.  Update lists of configurations in libc and ports
7690         and sort alphabetically.  Say "or newer" with Linux kernel version
7691         requirements.
7692
7693         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7694
7695 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7696
7697         [BZ #887]
7698         * math/libm-test.inc (logb_test_downward): New test to expose
7699         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7700         rounding mode.
7701
7702 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7703
7704         [BZ #14027]
7705         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7706         to be done.
7707         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7708         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7709
7710 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7711
7712         * sysdeps/unix/i386/brk.S: Remove file.
7713         * sysdeps/unix/i386/dl-brk.S: Likewise.
7714         * sysdeps/unix/i386/pipe.S: Likewise.
7715         * sysdeps/unix/i386/sigreturn.S: Likewise.
7716         * sysdeps/unix/i386/syscall.S: Likewise.
7717         * sysdeps/unix/i386/vfork.S: Likewise.
7718         * sysdeps/unix/i386/wait.S: Likewise.
7719
7720         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7721         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7722
7723         * configure.in (arm*-none*): Do not allow without
7724         --enable-hacker-mode.
7725         (netbsd*): Remove case setting base_os.
7726         (386bsd*): Likewise.
7727         (freebsd*): Likewise.
7728         (bsdi*): Likewise.
7729         (osf*): Likewise.
7730         (sunos*): Likewise.
7731         (ultrix*): Likewise.
7732         (newsos*): Likewise.
7733         (dynix*): Likewise.
7734         (*bsd*): Likewise.
7735         (sysv*): Likewise.
7736         (isc*): Likewise.
7737         (esix*): Likewise.
7738         (sco*): Likewise.
7739         (minix*): Likewise.
7740         (irix4*): Likewise.
7741         (irix6*): Likewise.
7742         (solaris[2-9]*): Likewise.
7743         (none): Likewise.
7744         * configure: Regenerated.
7745
7746 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7747
7748         [BZ #11521]
7749         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7750         overflow or cancellation in calculating denominator.
7751         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7752         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7753         down expression to avoid unexpected rounding in newer GCCs.
7754         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7755
7756 2012-04-26  David S. Miller  <davem@davemloft.net>
7757
7758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7759         long-double compat symbols.
7760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7768         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7769         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7770         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7772         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7773
7774 2012-04-25  David S. Miller  <davem@davemloft.net>
7775
7776         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7777         HWCAP_* values only after the memory barriers have been defined.
7778         (atomic_full_barrier): Define.
7779         (atomic_read_barrier): Define.
7780         (atomic_write_barrier): Define.
7781
7782 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7783
7784         * shlib-versions: Add libgcc_s version information.
7785         * sysdeps/generic/libgcc_s.h: Remove.
7786         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7787         libgcc_s.h.
7788         * sysdeps/gnu/unwind-resume.c: Likewise.
7789         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7790
7791 2012-04-25  David S. Miller  <davem@davemloft.net>
7792
7793         * sysdeps/unix/sparc/brk.S: Delete.
7794         * sysdeps/unix/sparc/dl-brk.S: Delete.
7795         * sysdeps/unix/sparc/pipe.S: Delete.
7796         * sysdeps/unix/sparc/sysdep.S: Delete.
7797         * sysdeps/unix/sparc/sysdep.h: Delete.
7798         * sysdeps/unix/sparc/vfork.S: Delete.
7799         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7800         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7801         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7802         ret_ERRVAL, r0, r1, MOVE): Define.
7803         (JUMPTARGET): Remove.
7804         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7805         sysdeps/unix/sparc/sysdep.h
7806         (ENTRY, END): Remove.
7807         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7808
7809 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7810
7811         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7812         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7813         -DIS_IN_build.
7814
7815         * timezone/README: Update upstream location and email address for
7816         tzcode and tzdata.
7817         * timezone/zdump.c: Update from tzcode 2012b.
7818         * timezone/zic.c: Likewise.
7819
7820         * configure.in (libc_cv_as_needed): Remove test.
7821         * configure: Regenerated.
7822         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7823         conditional definition.
7824         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7825         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7826         * config.make.in (have-as-needed): Remove variable.
7827
7828 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7829             Paul Pluzhnikov  <ppluzhnikov@google.com>
7830
7831         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7832         strings correctly.
7833
7834 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7835
7836         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7837         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7838         * sysdeps/sh/strlen.S: Likewise.
7839
7840 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7841
7842         * sysdeps/unix/fork.S: Remove file.
7843         * sysdeps/unix/i386/fork.S: Likewise.
7844         * sysdeps/unix/sparc/fork.S: Likewise.
7845
7846         * sysdeps/unix/system.c: Remove file.
7847         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7848
7849         * sysdeps/unix/getegid.S: Remove file.
7850         * sysdeps/unix/geteuid.S: Likewise.
7851
7852 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7853
7854         * scripts/check-localplt.awk: New file.
7855         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7856         of diff.
7857         * scripts/data/localplt-generic.data: Add a comment.
7858
7859         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7860         NODE when __dir_mkfile failed.
7861         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7862         Reported by Ludovic Courtès <ludo@gnu.org>.
7863
7864 2012-04-24  Andreas Jaeger  <aj@suse.de>
7865
7866         * Makerules (common-clean): Also remove gen-as-const-headers
7867         files.
7868
7869 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7870
7871         * Makerules (native-compile): Do not change working directory for
7872         build.  Use $(OUTPUT_OPTION) in command.
7873         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7874
7875 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7876
7877         [BZ #13886]
7878         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7879         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7880         * math/libm-test.inc (floor_test): Add more tests.
7881         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7882
7883 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7884
7885         * sysdeps/unix/getdents.c: Remove file.
7886         * sysdeps/unix/sysv/getdents.c: Likewise.
7887         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7888
7889         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7890         sysdeps/unix/mman/syscalls.list.
7891         (mmap): Likewise.
7892         (mprotect): Likewise.
7893         (msync): Likewise.
7894         (munmap): Likewise.
7895         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7896         * sysdeps/unix/mman/syscalls.list: Remove.
7897         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7898
7899         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7900         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7901         * configure: Regenerated.
7902         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7903         $(libgcc_s_suffix).
7904         * config.make.in (libgcc_s_suffix): Remove variable.
7905
7906 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7907
7908         * sysdeps/unix/sysv/gethostname.c: Move to ...
7909         * sysdeps/posix/gethostname.c: ... here.
7910
7911         * sysdeps/unix/execve.S: Remove file.
7912
7913         * sysdeps/unix/_exit.S: Remove file.
7914
7915 2012-04-23  Andreas Jaeger  <aj@suse.de>
7916
7917         [BZ #13739]
7918         * manual/Makefile: Remove make dist support, there's no
7919         need for a stand-alone documentation tar ball.
7920         (TEXI2DVI): Define always, it's not in Makeconfig.
7921         (dist): Removed.
7922         (tar-it): Removed.
7923         (edition): Removed.
7924         (glibc-doc-$(edition).tar): Removed
7925         (%.Z): Removed.
7926         (%.gz): Removed.
7927         (%.uu): Removed.
7928         (ETAGS): Remove, it's in Makeconfig.
7929         (move-if-change): Remove, it's in Makeconfig.
7930
7931 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7932
7933         [BZ #13970]
7934         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7935         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7936         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7937         (strtod_l, strtof_l, strtold_l): Remove __wur.
7938         It is not necessarily an error to ignore strtol's return value.
7939         One can reliably look at the stored endptr to decide whether
7940         the number had valid syntax.
7941
7942 2012-04-21  Andreas Jaeger  <aj@suse.de>
7943
7944         [BZ #13739]
7945         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7946
7947 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7948
7949         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7950         * sysdeps/unix/sysv/Versions: Remove file.
7951
7952 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7953
7954         [BZ #13927]
7955         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7956
7957 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7958
7959         [BZ #7064]
7960         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7961         version from __vm86.
7962
7963 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7964
7965         * sysdeps/unix/common/lxstat.c: Remove file.
7966         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7967
7968         * sysdeps/unix/sysv/Makefile: Remove file.
7969
7970         * sysdeps/unix/sysv/direct.h: Remove file.
7971
7972         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7973         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7974         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7975         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7976         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7977         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7978         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7979
7980         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7981
7982         * sysdeps/unix/xmknod.c: Remove file.
7983         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7984
7985         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7986
7987         * sysdeps/unix/sysv/i386/time.S: Remove file.
7988
7989         * sysdeps/unix/fxstat.c: Remove file.
7990         * sysdeps/unix/xstat.c: Likewise.
7991         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7992
7993         * sysdeps/unix/sysv/sigaction.c: Remove file.
7994
7995         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7996         (sysdep_headers): Remove variable.
7997         [termio.h not in sysdep_headers] (generated): Likewise.
7998         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7999         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8000         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8001         * sysdeps/unix/sysv/tcflow.c: Likewise.
8002         * sysdeps/unix/sysv/tcflush.c: Likewise.
8003         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8004         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8005         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8006         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8007         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8008
8009         * sysdeps/unix/siglist.c: Remove file.
8010
8011         * sysdeps/unix/getppid.S: Remove file.
8012
8013         * sysdeps/unix/mkdir.c: Remove file.
8014         * sysdeps/unix/rmdir.c: Likewise.
8015
8016 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8017
8018         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8019         ERR_MAX value.
8020         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8021         errlist-compat value.
8022
8023 2012-04-18  David S. Miller  <davem@davemloft.net>
8024
8025         * sysdeps/generic/memcopy.h (reg_char): Delete.
8026         * debug/strcat_chk.c: Use char, not reg_char.
8027         * debug/strcpy_chk.c: Likewise.
8028         * debug/strncat_chk.c: Likewise.
8029         * debug/strncpy_chk.c: Likewise.
8030         * string/memchr.c: Likewise.
8031         * string/memrchr.c: Likewise.
8032         * string/rawmemchr.c: Likewise.
8033         * string/strcat.c: Likewise.
8034         * string/strchr.c: Likewise.
8035         * string/strchrnul.c: Likewise.
8036         * string/strcmp.c: Likewise.
8037         * string/strcpy.c: Likewise.
8038         * string/strncat.c: Likewise.
8039         * string/strncmp.c: Likewise.
8040         * string/strncpy.c: Likewise.
8041
8042 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8043
8044         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8045         __builtin_memcopy is called when src and dest ranges are known to not
8046         overlap.
8047
8048 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8049
8050         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8051         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8052         fwd_align_merge macro call.
8053         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8054         bwd_align_merge macro call.
8055         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8056
8057 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8058
8059         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8060         bwd_align_merge macros.
8061         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8062         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8063         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8064
8065 2012-04-18  David S. Miller  <davem@davemloft.net>
8066
8067         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8068
8069 2012-04-18  Andreas Jaeger  <aj@suse.de>
8070
8071         [BZ# 6794]
8072         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8073         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8074         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8075
8076         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8077         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8078         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8079
8080         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8081         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8082         Adjust for changed ldbl-128 files.
8083
8084         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8085         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8086         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8087
8088 2012-04-17  David S. Miller  <davem@davemloft.net>
8089
8090         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8091
8092 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8093
8094         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8095         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8096         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8097         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8098         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8099         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8100
8101 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8102
8103         [BZ #6794]
8104         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8105         * math/libm-test.inc: Add ilogb errno and exception tests.
8106         * math/w_ilogb.c: New file: ilogb wrapper.
8107         * math/w_ilogbf.c: New file: ilogbf wrapper.
8108         * math/w_ilogbl.c: New file: ilogbl wrapper.
8109         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8110         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8111         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8112         exception being thrown with 0.0 as argument.
8113         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8114         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8115         exception being thrown with 0.0 as argument.
8116         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8117         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8118         exception being thrown with 0.0 as argument.
8119         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8120         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8121         exception being thrown with 0.0 as argument.
8122         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8123         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8124         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8125         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8126         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8127         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8128         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8129         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8130         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8131
8132 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8133
8134         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8135         with altivec.
8136
8137 2012-04-16  Marek Polacek  <polacek@redhat.com>
8138
8139         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8140
8141 2012-04-16  Marek Polacek  <polacek@redhat.com>
8142
8143         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8144         operands of fdivp instruction.
8145
8146 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8147
8148         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8149         * elf/tst-auditmod3b.c: Likewise.
8150         * elf/tst-auditmod4b.c: Likewise.
8151         * elf/tst-auditmod5b.c: Likewise.
8152         * elf/tst-auditmod6b.c: Likewise.
8153         * elf/tst-auditmod6c.c: Likewise.
8154         * elf/tst-auditmod7b.c: Likewise.
8155         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8156         * sysdeps/x86_64/preconfigure.in: Likewise.
8157         * sysdeps/x86_64/preconfigure: Regenerated.
8158
8159 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8160
8161         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8162         __ILP32__.
8163
8164 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8165
8166         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8167         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8168
8169 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8170
8171         [BZ #13973]
8172         * locale/iso-639.def: Fix gl language name. Spotted by
8173         Yaron Shahrabani.
8174
8175 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8176
8177         [BZ #2074]
8178         * libio/libio.h (__io_write_fn): Update comment.
8179
8180 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8181
8182         [BZ #2074]
8183         * stdio.texi (Hook Functions): The user provided writer function
8184         is not allowed to return -1.
8185
8186 2012-04-11  David S. Miller  <davem@davemloft.net>
8187
8188         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8189
8190 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8191
8192         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8193         Add a leading slash to rtkaio.
8194
8195 2012-04-11  Jim Meyering  <meyering@redhat.com>
8196
8197         [BZ #11959]
8198         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8199         It is not necessarily an error to ignore fwrite's return
8200         value.  One can reliably use ferror to test for errors after
8201         the fact.
8202
8203 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8204
8205         * bits/types.h (__snseconds_t): New type.
8206         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8207
8208         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8209         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8210         (__SNSECONDS_T_TYPE): Likewise.
8211         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8212         (__SNSECONDS_T_TYPE): Likewise.
8213         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8214         (__SNSECONDS_T_TYPE): Likewise.
8215
8216 2012-04-10  Andreas Jaeger  <aj@suse.de>
8217
8218         [BZ #2636]
8219         * manual/time.texi (Processor Time): Return type of times is
8220         elapsed real time since an arbitrary point in the past.
8221         (CPU Time): Move CLK_TCK from here...
8222         (Processor Time): ...to here.  Correct description.
8223         * manual/conf.texi (Constants for Sysconf): Correct description of
8224         _SC_CLK_TCK.
8225
8226 2012-04-10  David S. Miller  <davem@davemloft.net>
8227
8228         [BZ #13967]
8229         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8230         where the is a gap between DT_REL(A) and DT_JMPREL.
8231
8232 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8233
8234         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8235         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8236         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8237
8238 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8239
8240         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8241         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8242         (dl_main): Handle --inhibit-cache.
8243         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8244         _dl_inhibit_cache.
8245         * elf/dl-load.c (_dl_map_object): Use it.
8246         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8247
8248 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8249
8250         [BZ #13872]
8251         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8252         (__ieee754_powl): Saturate large exponents rather than testing for
8253         overflow of y*log2(x).
8254         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8255         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8256         exceptions.
8257
8258         [BZ #11521]
8259         * math/s_ctan.c: Include <float.h>.
8260         (__ctan): Avoid internal overflow or cancellation in calculating
8261         denominator.
8262         * math/s_ctanf.c: Likewise.
8263         * math/s_ctanl.c: Likewise.
8264         * math/s_ctanh.c: Likewise.
8265         * math/s_ctanhf.c: Likewise.
8266         * math/s_ctanhl.c: Likewise.
8267         * math/libm-test.inc (ctan_test): Add more tests.
8268         (ctanh_test): Likewise.
8269         * sysdeps/i386/fpu/libm-test-ulps: Update.
8270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8271
8272 2012-04-09  Andreas Jaeger  <aj@suse.de>
8273
8274         [BZ #6894]
8275         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8276         is an optional BSD extension.
8277
8278         [BZ #10254]
8279         * manual/stdio.texi (Opening Streams): Document additional fopen
8280         parameters.
8281
8282 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8283
8284         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8285         %eax without telling the compiler.
8286
8287 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8288
8289         [BZ # 13963]
8290         * manual/install.texi: Use sourceware.org.
8291
8292 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8293
8294         [BZ #13873]
8295         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8296         (__ieee754_pow): Generate overflow and underflow using huge*huge
8297         and tiny*tiny rather than just returning constant infinity or zero
8298         for large exponents.
8299         * math/libm-test.inc (pow_test): Require overflow exceptions for
8300         applicable cases of large exponents.
8301
8302         [BZ #706]
8303         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8304         (__ieee754_pow): Use iterative multiplication algorithm only for
8305         integer exponents with absolute value below 1024.  Check for odd
8306         integer exponents when using algorithm for real exponents.
8307         * math/libm-test.inc (pow_test): Add more tests.
8308         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8309
8310 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8311
8312         [BZ #13705]
8313         * math/libm-test.inc (exp_test): Do not allow overflow exception
8314         on underflow test.
8315
8316 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8317
8318         [BZ #13705]
8319         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8320         instead of __kernel_standard_f.
8321
8322 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8323
8324         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8325         * sysdeps/x86_64/memset_chk.S: Likewise.
8326
8327 2012-04-08  Andreas Jaeger  <aj@suse.de>
8328
8329         [BZ #10153]
8330         * manual/startup.texi (Environment Access): Describe return value
8331         for putenv and setenv.
8332
8333         [BZ #6895]
8334         * manual/filesys.texi (Directory Entries): Add description for
8335         DT_LNK.
8336
8337         [BZ #6890]
8338         * manual/filesys.texi (Directory Entries): Clarify that it's file
8339         system not operating system in the description of DT_UNKNOWN.
8340
8341         [BZ #6578]
8342         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8343
8344 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8345
8346         [BZ #6649]
8347         * manual/llio.texi (Opening and Closing Files): Add cross
8348         reference to explain mode argument.
8349
8350 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8351
8352         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8353         * sysdeps/x86_64/memset_chk.S: Likewise.
8354
8355 2012-04-07  David S. Miller  <davem@davemloft.net>
8356
8357         * elf/elf.h (R_SPARC_WDISP10): Define.
8358         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8359         R_SPARC_SIZE32.
8360         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8361         R_SPARC_SIZE64 and R_SPARC_H34.
8362
8363 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8364
8365         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8366         conditions and remove no longer applicable assertion.
8367
8368 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8369
8370         * bits/byteswap.h: Include <features.h>.
8371         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8372         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8373
8374 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8375
8376         * bits/byteswap.h (__bswap_16): Removed.
8377         Include <bits/byteswap-16.h> to get __bswap_16.
8378         * sysdeps/i386/bits/byteswap.h: Likewise.
8379         * sysdeps/s390/bits/byteswap.h: Likewise.
8380         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8381         * bits/byteswap-16.h: New file.
8382         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8383         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8384         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8385         * string/Makefile (headers): Add bits/byteswap-16.h.
8386
8387 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8388
8389         [BZ #13895]
8390         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8391         extra indirection.
8392         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8393         * nss/tst-nss-static.c: New.
8394
8395 2012-04-06  Robert Millan  <rmh@gnu.org>
8396
8397         [BZ #6486]
8398         * manual/llio.texi (File Position Primitive): lseek
8399         refers to WHENCE when it really means OFFSET.
8400
8401 2012-04-06  Andreas Jaeger  <aj@suse.de>
8402
8403         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8404         strncmp declarations.
8405
8406         * abilist/libc.abilist: Add __poll and __ppoll.
8407
8408 2012-04-05  David S. Miller  <davem@davemloft.net>
8409
8410         * scripts/check-local-headers.sh: Accept a host triplet in the
8411         path matched by the exclude regexp.
8412
8413         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8414         definition.
8415         * sysdeps/powerpc/powerpc32/dl-machine.h
8416         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8417         * sysdeps/s390/s390-32/dl-machine.h
8418         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8419         * sysdeps/sparc/sparc32/dl-machine.h
8420         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8421         * sysdeps/sparc/sparc64/dl-machine.h
8422         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8423
8424         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8425         lazy binding.
8426         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8427         undefined symbol errors.
8428
8429         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8430         DT_NEEDED entries.
8431
8432 2012-04-05  Michael Matz  <matz@suse.de>
8433
8434         [BZ #13592]
8435         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8436
8437 2012-04-05  Andreas Jaeger  <aj@suse.de>
8438
8439         [BZ #13908]
8440         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8441         comment.
8442
8443 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8444
8445         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8446         which ROUND is no valid rounding mode.
8447
8448 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8449
8450         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8451         read again.
8452         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8453
8454 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8455
8456         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8457         an exception using FPU order intentionally.
8458
8459 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8460
8461         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8462         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8463         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8464         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8465
8466 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8467
8468         [BZ #12340]
8469         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8470         EINVAL when BUFLEN is too smal.
8471
8472 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8473
8474         [BZ #13553]
8475         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8476         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8477
8478 2012-04-03  Andreas Jaeger  <aj@suse.de>
8479
8480         [BZ #13938]
8481         * manual/setjmp.texi (System V contexts): Fix sentence.
8482
8483         [BZ #13926]
8484         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8485         New macro for this case.
8486         [!__GNUC__] (__bswap_64): New inline function for this case.
8487         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8488         * bits/byteswap.h: Likewise.
8489         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8490         ull, guard with __GLIBC_HAVE_LONG_LONG.
8491
8492         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8493         __GLIBC_HAVE_LONG_LONG.
8494
8495         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8496         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8497
8498 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8499
8500         [BZ #13691]
8501         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8502         inptr and inend, rather than using last_ch.
8503
8504 2012-04-02  David S. Miller  <davem@davemloft.net>
8505
8506         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8507         * stdio-common/printf-parse.h (read_int): Change return type to
8508         'int', return -1 on INT_MAX overflow.
8509         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8510         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8511         overflows INT_MAX.  Check for overflow of in-format-string precision
8512         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8513         SIZE_MAX not INT_MAX for integer overflow test.
8514         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8515         skip the construct in the format string but do not record anything.
8516         * stdio-common/bug22.c: Adjust to test both width/prevision
8517         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8518         explicitly for proper errno values.
8519
8520 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8521
8522         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8523         CHAR_MAX.
8524         * string/test-strcmp.c [! WIDE]: Likewise.
8525         * time/tst-mktime2.c: Likewise for INT_MAX.
8526         * string/test-string.h: #include <sys/param.h> for MIN.
8527
8528         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8529         * sysdeps/i386/init-first.c (init): Likewise.
8530         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8531         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8532         * sysdeps/sh/init-first.c (init): Likewise.
8533
8534 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8535
8536         * po/ru.po: Update from translation team.
8537         * po/vi.po: Likewise.
8538
8539 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8540
8541         * resolv/nss_dns/dns-host.c: Merge copyright years.
8542
8543 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8544
8545         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8546         Optimize memcpy with prefetch if
8547         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8548         src, dst pointers have unequal 16 byte alignments.
8549
8550 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8551
8552         [BZ #13928]
8553         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8554         from a CNAME entry and return the minimum ttl for the query.
8555         (gaih_getanswer_slice): Likewise.
8556
8557 2012-03-30  Jeff Law  <law@redhat.com>
8558
8559         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8560         due to long keys.
8561         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8562         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8563
8564         * resolv/nss_dns/dns-host.c: Update copyright year.
8565
8566 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8567
8568         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8569         requests to save a system call.  Fix check that all bytes are sent.
8570
8571         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8572         comments for sendmmsg.
8573
8574 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8575
8576         [BZ #13691]
8577         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8578         with only 1 character between 0x0041 and 0x01b0.
8579         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8580         * wcsmbs/tst-mbsnrtowcs.c: New file.
8581
8582 2012-03-29  David S. Miller  <davem@davemloft.net>
8583
8584         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8585         small copies by hand.
8586
8587 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8588
8589         [BZ #13761]
8590         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8591         _nss_compat_initgroups_dyn): Fall back to malloc/free
8592         for large group memberships.
8593
8594 2012-03-28  David S. Miller  <davem@davemloft.net>
8595
8596         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8597         that branches into memcpy.
8598         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8599         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8600         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8601         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8602         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8603         bits.
8604         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8605         implementation too.
8606         * sysdeps/sparc/mempcpy.S: New file.
8607
8608         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8609         the IFUNC routine in the libc case.
8610         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8611
8612         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8613         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8614         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8615         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8616         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8617         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8618         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8619         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8620
8621         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8622         loop to 256 bytes instead of 64 bytes and fix test signedness.
8623
8624         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8625         * sysdeps/sparc/sparc32/Makefile: rather than here...
8626         * sysdeps/sparc/sparc64/Makefile: and here.
8627
8628 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8629
8630         * malloc/mallocbug.c: Avoid warnings about unused variables.
8631
8632 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8633
8634         [BZ #13760]
8635         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8636         in the right place. Discard and retry query if response is
8637         larger than input buffer size.
8638
8639 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8640
8641         [BZ #369]
8642         [BZ #2678]
8643         [BZ #3866]
8644         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8645         x for large integer exponent.
8646         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8647         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8648         sign of result as needed afterwards.
8649         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8650         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8651         result for underflowing pow the same as for overflow.
8652         (__kernel_standard_l): Handle powl overflow and underflow here
8653         rather than calling __kernel_standard.
8654         * math/libm-test.inc (pow_test): Add more tests.
8655
8656         [BZ #3868]
8657         [BZ #13879]
8658         [BZ #13910]
8659         [BZ #13911]
8660         [BZ #13912]
8661         [BZ #13913]
8662         [BZ #13915]
8663         [BZ #13916]
8664         [BZ #13917]
8665         [BZ #13918]
8666         [BZ #13919]
8667         [BZ #13920]
8668         [BZ #13921]
8669         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8670         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8671         (__kernel_standard_l): New function.
8672         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8673         __kernel_standard.
8674         * math/w_acosl.c (__acosl): Likewise.
8675         * math/w_asinl.c (__asinl): Likewise.
8676         * math/w_atan2l.c (__atan2l): Likewise.
8677         * math/w_atanhl.c (__atanhl): Likewise.
8678         * math/w_coshl.c (__coshl): Likewise.
8679         * math/w_exp10l.c (__exp10l): Likewise.
8680         * math/w_exp2l.c (__exp2l): Likewise.
8681         * math/w_fmodl.c (__fmodl): Likewise.
8682         * math/w_hypotl.c (__hypotl): Likewise.
8683         * math/w_j0l.c (__j0l, __y0l): Likewise.
8684         * math/w_j1l.c (__j1l, __y1l): Likewise.
8685         * math/w_jnl.c (__jnl, __ynl): Likewise.
8686         * math/w_lgammal.c (__lgammal): Likewise.
8687         * math/w_log10l.c (__log10l): Likewise.
8688         * math/w_log2l.c (__log2l): Likewise.
8689         * math/w_logl.c (__logl): Likewise.
8690         * math/w_powl.c (__powl): Likewise.
8691         * math/w_remainderl.c (__remainderl): Likewise.
8692         * math/w_scalbl.c (sysv_scalbl): Likewise.
8693         * math/w_sinhl.c (__sinhl): Likewise.
8694         * math/w_sqrtl.c (__sqrtl): Likewise.
8695         * math/w_tgammal.c (__tgammal): Likewise.
8696         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8697         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8698         * math/libm-test.inc (acos_test): Add more tests.
8699         (acosh_test): Likewise.
8700         (asin_test): Likewise.
8701         (atanh_test): Likewise.
8702         (exp_test): Likewise.
8703         (exp10_test): Likewise.
8704         (exp2_test): Likewise.
8705         (expm1_test): Likewise.
8706         (lgamma_test): Likewise.
8707         (log_test): Likewise.
8708         (log10_test): Likewise.
8709         (log1p_test): Likewise.
8710         (log2_test): Likewise.
8711         (pow_test): Do not allow some spurious overflow exceptions.
8712         (sqrt_test): Add more tests.
8713         (tgamma_test): Likewise.
8714         (y0_test): Likewise.
8715         (y1_test): Likewise.
8716         (yn_test): Likewise.
8717
8718 2012-03-27  Anton Blanchard  <anton@samba.org>
8719
8720         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8721         MAP_HUGETLB.
8722         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8723         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8724         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8725
8726 2012-03-27  David S. Miller  <davem@davemloft.net>
8727
8728         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8729
8730         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8731         have-as-vis3 check.
8732
8733 2012-03-27  Andreas Jaeger  <aj@suse.de>
8734
8735         * sysdeps/x86_64/elf/configure.in: Moved to ...
8736         * sysdeps/x86_64/configure.in: ... here.
8737         * sysdeps/x86_64/elf/start.S: Moved to ...
8738         * sysdeps/x86_64/start.S: ... here.
8739         * sysdeps/x86_64/elf/configure: Delete.
8740
8741         * sysdeps/x86_64/configure.in: Merge contents from
8742         sysdeps/i386/configure.in (without i686 check).
8743
8744         * sysdeps/i386/elf/Versions: Merge into ...
8745         * sysdeps/i386/Versions: ... this.
8746         * sysdeps/i386/elf/Versions: Delete file.
8747         * sysdeps/i386/elf/start.S: Moved to ...
8748         * sysdeps/i386/start.S: ...here.
8749         * sysdeps/i386/elf/configure.in: Merge into...
8750         * sysdeps/i386/configure.in: ...here.
8751         * sysdeps/i386/elf/configure.in: Delete file.
8752         * sysdeps/i386/elf/configure: Delete file.
8753
8754         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8755         * debug/backtracesyms.c: ... here.
8756         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8757         * debug/backtracesymsfd.c: ... here.
8758         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8759         * sysdeps/generic/ifunc-sel.h: ... here.
8760
8761         * sysdeps/unix/i386/start.c: Delete file.
8762         * sysdeps/unix/sparc/start.c: Delete file.
8763         * sysdeps/unix/start.c: Delete file.
8764
8765         * sysdeps/sh/elf/configure.in: Moved to ...
8766         * sysdeps/sh/configure.in: ... here.
8767         * sysdeps/sh/elf/start.S: Moved to ...
8768         * sysdeps/sh/start.S: ... here.
8769         * sysdeps/sh/elf/configure: Delete file.
8770
8771         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8772         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8773         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8774         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8775         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8776         * sysdeps/powerpc/powerpc64/start.S: here.
8777         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8778         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8779         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8780         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8781         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8782
8783         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8784         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8785         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8786         * sysdeps/powerpc/powerpc32/start.S: ... here.
8787         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8788         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8789         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8790
8791         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8792         * sysdeps/powerpc/ifunc-sel.h: ... here.
8793         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8794         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8795
8796         * sysdeps/sparc/elf/configure.in: Moved to ...
8797         * sysdeps/sparc/configure.in: ... here.
8798         * sysdeps/sparc/elf/configure: Delete file.
8799         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8800         * sysdeps/sparc/sparc32/start.S: ... here.
8801         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8802         * sysdeps/sparc/sparc64/start.S: ... here.
8803         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8804         * sysdeps/sparc/sparc32/Makefile: ... this.
8805         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8806         * sysdeps/sparc/sparc64/Makefile: ... this.
8807
8808         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8809         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8810         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8811         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8812         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8813         * sysdeps/s390/s390-32/setjmp.S: ... here.
8814         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8815         * sysdeps/s390/s390-32/configure.in: ... here.
8816         * sysdeps/s390/s390-32/elf/configure: Delete file.
8817         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8818         * sysdeps/s390/s390-32/start.S: ... here.
8819
8820         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8821         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8822         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8823         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8824         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8825         * sysdeps/s390/s390-64/setjmp.S: ... here.
8826         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8827         * sysdeps/s390/s390-64/configure.in: ... here
8828         * sysdeps/s390/s390-64/elf/configure: Delete file.
8829         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8830         * sysdeps/s390/s390-64/start.S: ... here.
8831         * sysdeps/s390/s390-64/elf/configure: Delete.
8832
8833         * configure.in: Remove support for elf directories in sysdeps.
8834
8835         * configure: Regenerated.
8836         * sysdeps/i386/configure: Regenerated.
8837         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8838         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8839         * sysdeps/s390/s390-32/configure: Regenerated.
8840         * sysdeps/s390/s390-64/configure: Regenerated.
8841         * sysdeps/sh/configure: Regenerated.
8842         * sysdeps/sparc/configure: Regenerated.
8843         * sysdeps/x86_64/configure: Regenerated.
8844
8845 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8846
8847         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8848
8849         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8850         denormal result into account.
8851
8852 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8853
8854         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8855         Reported by Allan McRae <allan@archlinux.org>.
8856
8857 2012-03-23  Jeff Law  <law@redhat.com>
8858
8859         * nss/getnssent.c (__nss_getent): Fix typo.
8860
8861 2012-03-23  David S. Miller  <davem@davemloft.net>
8862
8863         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8864
8865 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8866
8867         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8868         to pad to uint64_t for each field.
8869         (dl_tls_index): Replace unsigned long with uint64_t.
8870
8871 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8872         Paul Pluzhnikov  <ppluzhnikov@google.com>
8873
8874         [BZ #6528]
8875         * grp/Makefile (otherlibs): Don't set it.
8876         * inet/Makefile (otherlibs): Likewise.
8877         * login/Makefile (otherlibs): Likewise.
8878         * nscd/Makefile (otherlibs): Likewise.
8879         * posix/Makefile (otherlibs): Likewise.
8880         * pwd/Makefile (otherlibs): Likewise.
8881         * rt/Makefile (otherlibs): Likewise.
8882         * sunrpc/Makefile (otherlibs): Likewise.
8883         * nss/Makefile (otherlibs): Likewise.
8884         Add libnss_files to routines and static-only-routines.
8885         ($(objpfx)getent): Remove rule.
8886         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8887         static-only-routines.
8888
8889 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8890
8891         [BZ #13892]
8892         * math/s_cexp.c: Include <float.h>.
8893         (__cexp): Handle exp result overflowing not necessarily
8894         overflowing both real and imaginary parts of result.
8895         * math/s_cexpf.c: Likewise.
8896         * math/s_cexpl.c: Likewise.
8897         * math/libm-test.inc (cexp_test): Add more tests.
8898         * sysdeps/i386/fpu/libm-test-ulps: Update.
8899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8900
8901 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8902
8903         * include/link.h (ELFW): New macro.
8904         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8905         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8906
8907 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8908
8909         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8910         with uint64_t.
8911
8912 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8913
8914         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8915         declaration.
8916         (struct La_x32_retval): Likewise.
8917
8918 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8919
8920         * sysdeps/x86_64/preconfigure.in: New file.
8921         * sysdeps/x86_64/preconfigure: New generated file.
8922
8923 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8924
8925         [BZ #13824]
8926         * math/e_exp2l.c: Include <float.h>.
8927         (__ieee754_exp2l): Handle overflow and underflow cases
8928         separately.  Only pass fractional part of argument to
8929         __ieee754_expl.
8930         * math/libm-test.inc (exp2_test): Add more tests.
8931
8932         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8933         negating x to take absolute value.
8934         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8935         Likewise.
8936         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8937         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8938         Likewise.
8939         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8940         computing low part if x was negated.
8941         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8942
8943 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8944
8945         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8946         la_x32_gnu_pltexit.
8947         (pltexit): Cast int_retval to ptrdiff_t.
8948         * elf/tst-auditmod3b.c: Likewise.
8949         * elf/tst-auditmod4b.c: Likewise.
8950         * elf/tst-auditmod5b.c: Likewise.
8951         * elf/tst-auditmod6b.c: Likewise.
8952         * elf/tst-auditmod6c.c: Likewise.
8953         * elf/tst-auditmod7b.c: Likewise.
8954
8955         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8956         and x32_gnu_pltexit.
8957
8958         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8959         __ELF_NATIVE_CLASS.
8960         (La_x32_regs): New macro.
8961         (La_x32_retval): Likewise.
8962         (la_x32_gnu_pltenter): New function prototype.
8963         (la_x32_gnu_pltexit): Likewise.
8964
8965 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8966
8967         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8968         exponent.
8969
8970         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8971
8972         * configure.in (libc_cv_cc_nofma): Check for option to disable
8973         generation of FMA instructions.
8974         * configure: Regenerate.
8975         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8976         * sysdeps/ieee754/dbl-64/Makefile: New file.
8977         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8978         Remove brandred-fma4.
8979         (CFLAGS-brandred-fma4.c): Remove.
8980         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8981         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8982         define.
8983         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8984         define.
8985
8986 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8987
8988         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8989         LLONG_MAX != LONG_MAX.
8990         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8991         (_fitoa_word): Likewise.
8992         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8993         LLONG_MAX != LONG_MAX.
8994         * stdio-common/_itowa.h: Include <_itoa.h>.
8995         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8996         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8997         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8998         only if not defined.
8999         (_ITOA_WORD_TYPE): Likewise.
9000         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9001         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9002
9003 2012-03-21  David S. Miller  <davem@davemloft.net>
9004
9005         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9006
9007 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9008
9009         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9010         of x86_64 when setting libc_cv_slibdir, libdir and
9011         libc_cv_localedir.
9012         * sysdeps/unix/sysv/linux/configure: Regenerated.
9013
9014 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9015
9016         * manual/lang.texi (Old Varargs): Remove section.
9017         (How Variadic): Update menu.
9018         (va_start): Do not mention varargs.h.
9019
9020 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9021             Joseph Myers  <joseph@codesourcery.com>
9022
9023         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9024         link test.
9025         * configure: Regenerated.
9026
9027 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9028
9029         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9030         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9031         conformtest.pl
9032
9033 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9034
9035         * NOTES: Remove.
9036         * Makefile (files-for-dist): Remove NOTES.
9037         (NOTES): Remove rule.
9038         * README: Don't refer to NOTES.
9039         * manual/creature.texi: Don't include macros.texi.
9040         * manual/intro.texi (creature.texi): Remove comment referring to
9041         NOTES.
9042
9043         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9044         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9045         * configure: Regenerated.
9046         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9047         LIBC_TRY_CC_OPTION.
9048         (libc_cv_as_i686): Likewise.
9049         (libc_cv_cc_avx): Likewise.
9050         (libc_cv_cc_sse2avx): Likewise.
9051         (libc_cv_cc_fma4): Likewise.
9052         (libc_cv_cc_novzeroupper): Likewise.
9053         * sysdeps/i386/configure: Regenerated.
9054
9055         [BZ #13883]
9056         * sysdeps/i386/fpu/s_cexp.S: Remove.
9057         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9058         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9059         * math/libm-test.inc (cexp_test): Add more tests.
9060         * sysdeps/i386/fpu/libm-test-ulps: Update.
9061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9062
9063 2012-03-21  Allan McRae  <allan@archlinux.org>
9064
9065         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9066
9067 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9068
9069         [BZ #13871]
9070         * math/w_exp2.c: Do not include <float.h>.
9071         (o_threshold, u_threshold): Remove.
9072         (__exp2): Calculate result before checking finiteness and calling
9073         __kernel_standard.
9074         * math/w_exp2f.c: Likewise.
9075         * math/w_exp2l.c: Likewise.
9076         * math/libm-test.inc (exp2_test): Require overflow exception for
9077         1e6 input.
9078
9079         [BZ #3866]
9080         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9081         range of signed 64-bit integers before using fistpll.  Remove
9082         checks for whether integers fit in mantissa bits.
9083         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9084         the range of signed 32-bit integers before using fistpl.  Remove
9085         checks for whether integers fit in mantissa bits.
9086         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9087         (__ieee754_powl): Test for y outside the range of signed 64-bit
9088         integers before using fistpll.  Reduce 64-bit values to 63-bit
9089         ones as needed.
9090         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9091         divide-by-zero is raised for zero to large negative powers.
9092         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9093         (__ieee754_powl): Test for y outside the range of signed 64-bit
9094         integers before using fistpll.  Reduce 64-bit values to 63-bit
9095         ones as needed.
9096         * math/libm-test.inc (pow_test): Add more tests.
9097
9098 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9099
9100         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9101         <stdio-common/_itoa.h>.
9102         * debug/segfault.c: Likewise.
9103         * elf/dl-cache.c: Likewise.
9104         * elf/dl-minimal.c: Likewise.
9105         * elf/dl-misc.c: Likewise.
9106         * elf/dl-sysdep.c: Likewise.
9107         * elf/dl-version.c: Likewise.
9108         * elf/rtld.c: Likewise.
9109         * hurd/hurdsock.c: Likewise.
9110         * hurd/lookup-retry.c: Likewise.
9111         * malloc/malloc.c: Likewise.
9112         * malloc/mtrace.c: Likewise.
9113         * nscd/nscd_getgr_r.c: Likewise.
9114         * nscd/nscd_getpw_r.c: Likewise.
9115         * nscd/nscd_getserv_r.c: Likewise.
9116         * posix/getopt_init.c: Likewise.
9117         * posix/wordexp.c: Likewise.
9118         * stdio-common/_itoa.c: Likewise.
9119         * stdio-common/printf_fphex.c: Likewise.
9120         * stdio-common/vfprintf.c: Likewise.
9121         * string/_strerror.c: Likewise.
9122         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9123         * sysdeps/i386/i686/hp-timing.h: Likewise.
9124         * sysdeps/mach/_strerror.c: Likewise.
9125         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9126         * sysdeps/mach/hurd/sethostid.c: Likewise.
9127         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9128         * sysdeps/mach/xpg-strerror.c: Likewise.
9129         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9130         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9131         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9132         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9133         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9134         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9135         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9136         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9137         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9138         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9139         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9140         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9141         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9142         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9143         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9144         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9145         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9146         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9147         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9148         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9149         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9150
9151         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9152
9153         * stdio-common/_itoa.h: Moved to ...
9154         * sysdeps/generic/_itoa.h: Here.
9155
9156         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9157
9158         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9159         instead of "_itoa.h" and "_itowa.h".
9160         * stdio-common/vfprintf.: Likewise.
9161
9162 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9163
9164         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9165         <bits/wordsize.h>.
9166         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9167         (__signbit): Likwise.
9168         (llrintf): Likwise.
9169         (llrint): Likwise.
9170
9171 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9172
9173         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9174         __WORDSIZE != 64.
9175
9176 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9177
9178         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9179         OVERFLOW_EXCEPTION_OK.
9180         * math/libm-test.inc ("Philosophy"): Update comment about
9181         exception testing.
9182         (OVERFLOW_EXCEPTION): Define.
9183         (OVERFLOW_EXCEPTION_OK): Likewise.
9184         (INVALID_EXCEPTION_OK): Renumber.
9185         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9186         (IGNORE_ZERO_INF_SIGN): Likewise.
9187         (test_exceptions): Handle FE_OVERFLOW.
9188         (exp10_test): Expect overflow exceptions.
9189         (exp2_test): Likewise.
9190         (expm1_test): Likewise.
9191         (nextafter_test): Likewise.
9192         (pow_test): Likewise.
9193         (scalbn_test): Likewise.
9194         (scalbln_test): Likewise.
9195
9196 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9197
9198         * sysdeps/x86_64/bits/atomic.h
9199         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9200         64bit integer.
9201         (atomic_exchange_acq): Likewise.
9202         (__arch_exchange_and_add_body): Likewise.
9203         (__arch_add_body): Likewise.
9204         (atomic_add_negative): Likewise.
9205         (atomic_add_zero): Likewise.
9206
9207 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9208
9209         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9210         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9211
9212 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9213
9214         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9215         Check __x86_64__ instead of __WORDSIZE.
9216
9217 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9218
9219         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9220
9221 2012-03-19  David S. Miller  <davem@davemloft.net>
9222
9223         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9224
9225         * sysdeps/sparc/fpu/fenv_private.h: New file.
9226         * sysdeps/sparc/fpu/math_private.h: Use it.
9227         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9228         Remove.
9229         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9230         (libc_feholdexcept_setroundl): Remove.
9231         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9232         Remove.
9233         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9234         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9235
9236 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9237
9238         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9239         int64_t instead of long int.
9240         (INSERT_WORDS64): Likwise.
9241
9242 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9243
9244         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9245         _Unwind_GetCFA return to _Unwind_Ptr first.
9246
9247 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9248
9249         [BZ #13629]
9250         * math/s_clog.c: Include <float.h>.
9251         (__clog): Scale large or subnormal inputs.
9252         * math/s_clogf.c: Likewise.
9253         * math/s_clogl.c: Likewise.
9254         * math/s_clog10.c: Include <float.h>.
9255         (M_LOG10_2): Define.
9256         (__clog10): Scale large or subnormal inputs.
9257         * math/s_clog10f.c: Likewise.
9258         * math/s_clog10l.c: Likewise.
9259         * math/libm-test.inc (clog_test): Add more tests.
9260         (clog10_test): Likewise.
9261         * sysdeps/i386/fpu/libm-test-ulps: Update.
9262         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9263
9264         [BZ #11451]
9265         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9266         x and y.
9267         * math/libm-test.inc (atan2_test): Add another test.
9268
9269         * Makerules (common-objdir-compile): Remove.
9270         * sysdeps/unix/Makefile (config-generated): Do not add
9271         $(unix-generated) to variable.
9272         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9273         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9274         Remove rule.
9275         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9276         Likewise.
9277         [generic bits/local_lim.h] (before-compile): Do not append to
9278         variable.
9279         [generic bits/local_lim.h] (common-generated): Likewise.
9280         [generic sys/param.h] (before-compile): Do not append to variable.
9281         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9282         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9283         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9284         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9285         include.
9286         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9287         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9288         [generic sys/param.h] ($(addprefix
9289         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9290         [generic sys/param.h] (common-generated): Do not append to
9291         variable.
9292         [generic sys/param.h] (sysdep_headers): Likewise.
9293         [generic bits/errno.h] (before-compile): Do not append to
9294         variable.
9295         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9296         rule.
9297         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9298         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9299         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9300         [generic bits/errno.h] (common-generated): Do not append to
9301         variable.
9302         [generic bits/ioctls.h] (before-compile): Do not append to
9303         variable.
9304         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9305         rule.
9306         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9307         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9308         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9309         rule.
9310         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9311         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9312         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9313         [generic bits/ioctls.h] (common-generated): Do not append to
9314         variable.
9315         [generic sys/syscall.h] (syscall.h): Remove variable.
9316         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9317         rule.
9318         [generic sys/syscall.h] (before-compile): Do not append to
9319         variable.
9320         [generic sys/syscall.h] (common-generated): Likewise.
9321         * sysdeps/unix/errnos-tmpl.c: Remove file.
9322         * sysdeps/unix/errnos.awk: Likewise.
9323         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9324         * sysdeps/unix/ioctls.awk: Likewise.
9325         * sysdeps/unix/mk-local_lim.c: Likewise.
9326         * sysdeps/unix/snarf-ioctls: Likewise.
9327
9328 2012-03-19  Richard Henderson  <rth@twiddle.net>
9329
9330         * sysdeps/i386/fpu/fenv_private.h: New file.
9331         * sysdeps/i386/fpu/math_private.h: Use it.
9332         (math_opt_barrier, math_force_eval): Remove.
9333         (libc_feholdexcept_setround_53bit): Remove.
9334         (libc_feupdateenv_53bit): Remove.
9335         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9336         (math_opt_barrier, math_force_eval): Remove.
9337         (libc_feholdexcept): Remove.
9338         (libc_feholdexcept_setround): Remove.
9339         (libc_fetestexcept, libc_fesetenv): Remove.
9340         (libc_feupdateenv_test): Remove.
9341         (libc_feupdateenv, libc_feholdsetround): Remove.
9342         (libc_feresetround): Remove.
9343
9344         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9345         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9346
9347         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9348         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9349         (libc_feupdateenv_testl): New.
9350         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9351         (libc_feupdateenv_testf): New.
9352         (libc_feupdateenv): Use libc_feupdateenv_test.
9353         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9354         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9355
9356         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9357         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9358         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9359         (libc_feresetround_noex): New.
9360         (libc_feresetround_noexf): New.
9361         (libc_feresetround_noexl): New.
9362         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9363         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9364         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9365         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9366         SET_RESTORE_ROUND.
9367         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9368         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9369         (__cos): Likewise.
9370         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9371         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9372         SET_RESTORE_ROUND_NOEX.
9373         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9374         SET_RESTORE_ROUND_NOEXF.
9375         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9376         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9377         (libc_feholdsetroundf): New.
9378         (libc_feresetround, libc_feresetroundf): New.
9379
9380         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9381         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9382         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9383
9384         * sysdeps/generic/math_private.h: Include <fenv.h>.
9385         (default_libc_feholdexcept): New.
9386         (default_libc_feholdexcept_setround): New.
9387         (default_libc_fesetenv, default_libc_feupdateenv): New.
9388         (libc_feholdexcept): Only define if undefined.
9389         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9390         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9391         (libc_feholdexcept_setroundl): Likewise.
9392         (libc_feholdexcept_setround_53bit): Likewise.
9393         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9394         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9395         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9396         (libc_feupdateenv_53bit): Likewise.
9397         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9398         (libc_feholdexcept): Convert from macro to inline function.
9399         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9400         (libc_fesetenv, libc_feupdateenv): Likewise.
9401
9402         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9403         not previously defined.
9404         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9405         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9406         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9407         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9408         * sysdeps/ieee754/flt-32/math_private.h: New file.
9409         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9410         math_private.h below SET_FLOAT_WORD.
9411         (__isnan, __isinf_ns, __finite): Remove.
9412         (__isnanf, __isinf_nsf, __finitef): Remove.
9413
9414 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9415
9416         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9417
9418 2012-03-17  David S. Miller  <davem@davemloft.net>
9419
9420         [BZ #6471]
9421         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9422         for 2.16.
9423
9424 2012-03-16  David S. Miller  <davem@davemloft.net>
9425
9426         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9427         warnings.
9428
9429         [BZ #6471]
9430         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9431         properly.
9432         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9433         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9434         sysdep_routines when subdir is sysvipc.
9435         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9436         __getshmlba helper.
9437
9438         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9439
9440 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9441
9442         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9443         [__LP64__].
9444
9445 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9446
9447         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9448         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9449         (__lround): Renamed to ...
9450         (__llround): This.  Replace long int with long long int.
9451         Define lround functions as aliases of llround functions.
9452         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9453
9454 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9455
9456         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9457         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9458         adresses to uintptr_t.  Replace "long int" and "unsigned long
9459         int" with "greg_t" on va_arg.
9460
9461 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9462
9463         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9464         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9465
9466         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9467         Move e_machine check before EI_CLASS check.  Handle x32
9468         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9469         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9470         SKIP_EM_IA_64 and include
9471         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9472
9473         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9474         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9475         (add_system_dir): New macro.
9476
9477         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9478         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9479
9480 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9481
9482         [BZ #2551]
9483         [BZ #2552]
9484         [BZ #2553]
9485         [BZ #2554]
9486         [BZ #2562]
9487         [BZ #2563]
9488         [BZ #2565]
9489         [BZ #2566]
9490         [BZ #2576]
9491         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9492         (y0): Likewise.
9493         * math/w_j0f.c (j0f): Likewise.
9494         (y0f): Likewise.
9495         * math/w_j0l.c (__j0l): Likewise.
9496         (__y0l): Likewise.
9497         * math/w_j1.c (j1): Likewise.
9498         (y1): Likewise.
9499         * math/w_j1f.c (j1f): Likewise.
9500         (y1f): Likewise.
9501         * math/w_j1l.c (__j1l): Likewise.
9502         (__y1l): Likewise.
9503         * math/w_jn.c (jn): Likewise.
9504         (yn): Likewise.
9505         * math/w_jnf.c (jnf): Likewise.
9506         (ynf): Likewise.
9507         * math/w_jnl.c (__jnl): Likewise.
9508         (__ynl): Likewise.
9509         * math/libm-test.inc (j0_test): Add more tests.
9510         (j1_test): Likewise.
9511         (jn_test): Likewise.  Add trailing semicolon to existing test.
9512         (y0_test): Likewise.
9513         (y1_test): Likewise.
9514         * sysdeps/i386/fpu/libm-test-ulps: Update.
9515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9516
9517         [BZ #13851]
9518         [BZ #13854]
9519         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9520         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9521         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9522         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9523         (__tanl): Set errno for infinite argument.
9524         * sysdeps/i386/fpu/mptan.c: Remove.
9525         * sysdeps/i386/fpu/s_tan.S: Likewise.
9526         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9527         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9528         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9529         * math/libm-test.inc (tan_test): Add more tests and enable more
9530         tests for double and long double.
9531         * sysdeps/i386/fpu/libm-test-ulps: Update.
9532         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9533
9534 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9535
9536         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9537         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9538
9539 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9540
9541         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9542         * configure.in: Use it for both main tree and add-ons.
9543         * configure: Regenerated.
9544
9545 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9546
9547         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9548
9549 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9550
9551         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9552         in comment.
9553
9554         [BZ #13851]
9555         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9556         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9557         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9558         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9559         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9560         infinite argument.
9561         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9562         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9563         != 0 for prec == 2.
9564         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9565         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9566         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9567         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9568         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9569         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9570         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9571         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9572         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9573         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9574         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9575         * math/libm-test.inc (cos_test): Add more tests and enable more
9576         tests for long double.
9577         (sin_test): Likewise.
9578         (sincos_test): Likewise.
9579         * sysdeps/i386/fpu/libm-test-ulps: Update.
9580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9581
9582 2012-03-16  David S. Miller  <davem@davemloft.net>
9583
9584         * sysdeps/sparc/fpu/math_private.h: New file.
9585
9586 2012-03-15  David S. Miller  <davem@davemloft.net>
9587
9588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9589         file.
9590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9592         file.
9593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9594         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9595         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9596         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9597         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9598         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9599         sysdep routines.
9600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9601
9602         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9603         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9604
9605         * sysdeps/sparc/sparc-ifunc.h: New file.
9606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9607         sparc-ifunc.h
9608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9610         Likewise.
9611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9612         Likewise.
9613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9617         Likewise.
9618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9623         Likewise.
9624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9625         Likewise.
9626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9630         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9631         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9632         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9633         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9634         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9635         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9636         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9637         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9638         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9639         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9640         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9641         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9642         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9643         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9644         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9645         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9646         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9647         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9648         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9649         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9650
9651 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9652
9653         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9654         scaling.
9655         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9656
9657 2012-03-15  Andreas Jaeger  <aj@suse.de>
9658
9659         [BZ #13852]
9660         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9661         ieee754/flt-32 implementation for sin, cos and sincos.
9662         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9663         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9664         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9665         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9666         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9667         ieee754/flt-32 implementation for tan.
9668
9669         * math/libm-test.inc (cos_test): Enable some large input tests for
9670         float as well
9671         (sin_test): Likewise.
9672         (sincos_test): Likewise.
9673         (tan_test): Add tests for large input.
9674
9675         * sysdeps/i386/fpu/libm-test-ulps: Update.
9676
9677 2012-03-15  Andreas Jaeger  <aj@suse.de>
9678
9679         [BZ #13658]
9680         * math/libm-test.inc (cos_test): Add more test cases.
9681         (sin_test): Likewise.
9682         (sincos_test): Likewise.
9683
9684 2012-03-15  Andreas Jaeger  <aj@suse.de>
9685
9686         [BZ #13837]
9687         * math/libm-test.inc (cos_test): Add a test case for large input
9688         value.
9689         (sin_test): Likewise.
9690         (sincos_test): Likewise.
9691
9692 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9693         Joseph Myers  <joseph@codesourcery.com>
9694
9695         [BZ #13658]
9696         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9697         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9698         * sysdeps/i386/fpu/branred.c: Likewise.
9699         * sysdeps/i386/fpu/dosincos.c: Likewise.
9700         * sysdeps/i386/fpu/mpa.c: Likewise.
9701         * sysdeps/i386/fpu/s_cos.S: Likewise.
9702         * sysdeps/i386/fpu/s_sin.S: Likewise.
9703         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9704         * sysdeps/i386/fpu/sincos32.c: Likewise.
9705
9706         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9707         Define.
9708         (libc_feupdateenv_53bit): Define.
9709         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9710         Define.
9711         (libc_feupdateenv_53bit): Define.
9712
9713         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9714         53 bit (without extend i386 double precision).
9715
9716         * math/libm-test.inc (sincos_test): Add tests for large input.
9717         (sin): Likewise.
9718         (cos): Likewise.
9719
9720         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9721
9722 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9723
9724         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9725
9726 2012-03-15  David S. Miller  <davem@davemloft.net>
9727
9728         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9729         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9730         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9731         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9736         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9737         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9738         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9739         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9740         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9741         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9742         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9744         file.
9745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9747         file.
9748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9750         file.
9751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9753         file.
9754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9755         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9756         fmin/fmax sysdep routines.
9757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9758
9759 2012-03-14  David S. Miller  <davem@davemloft.net>
9760
9761         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9762         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9763         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9764         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9765         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9766         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9767         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9768         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9769         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9770         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9771         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9772         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9773         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9774         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9775         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9776         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9777         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9778         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9779         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9780         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9781         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9782         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9783         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9784         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9785         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9786         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9787         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9788         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9789         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9790         routines.
9791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9792         file.
9793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9795         file.
9796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9798         file.
9799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9801         file.
9802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9804         file.
9805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9807         file.
9808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9809         file.
9810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9811         file.
9812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9813         file.
9814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9815         New file.
9816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9817         file.
9818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9819         file.
9820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9822         file.
9823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9825         file.
9826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9828         file.
9829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9831         VIS3 routines.
9832
9833         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9834         New file.
9835
9836         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9837
9838         * sysdeps/sparc/configure.in: New file.
9839         * sysdeps/sparc/configure: Generate.
9840         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9841         * configure: Regenerate.
9842         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9843         * config.make.in (have-as-vis3): New.
9844         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9845         available use -Av9d instead of -Av9a.
9846         * sysdeps/sparc/sparc64/Makefile: Likewise.
9847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9849         New file.
9850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9851         file.
9852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9853         New file.
9854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9855         file.
9856         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9857         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9858         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9859         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9860         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9861
9862         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9863         fzeros/fnegs to load 0x80000000 into a float register instead of
9864         using the stack.
9865         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9866
9867 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9868
9869         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9870         bits/syscall.h.
9871         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9872         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9873         ($(inst_includedir)/bits/syscall.h): Remove rule.
9874         ($(objpfx)bits/syscall.d): Include instead of
9875         $(objpfx)syscall-list.d.
9876         (generated): Change syscall-list.h and syscall-list.d to
9877         bits/syscall.h and bits/syscall.d.
9878
9879 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9880
9881         [BZ #13846]
9882         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9883
9884 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9885
9886         [BZ #13841]
9887         * math/s_csqrt.c: Include <float.h>.
9888         (__csqrt): Scale large or subnormal inputs.
9889         * math/s_csqrtf.c: Likewise.
9890         * math/s_csqrtl.c: Likewise.
9891         * math/libm-test.inc (csqrt_test): Add more tests.
9892         * sysdeps/i386/fpu/libm-test-ulps: Update.
9893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9894
9895         [BZ #13840]
9896         * math/libm-test.inc (hypot_test): Add more tests.
9897
9898 2012-03-13  David S. Miller  <davem@davemloft.net>
9899
9900         [BZ #13840]
9901         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9902         double-precision for the calculation instead of scaling.
9903
9904 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9905
9906         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9907         manipulate bits before adding and subtracting TWO52[sx].
9908         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9909         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9910         Likewise.
9911         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9912
9913 2012-03-13  David S. Miller  <davem@davemloft.net>
9914
9915         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9916         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9917         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9918         rtld-global-offsets.h
9919         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9920
9921         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9922         large parameters.
9923
9924         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9925
9926         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9927         'err' in the ifdef scope in which it is actually used.
9928
9929         * nss/nss_db/db-init.c: Include string.h
9930
9931 2012-03-12  David S. Miller  <davem@davemloft.net>
9932
9933         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9934         masking out of the most significant byte of random value used.
9935         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9936         Fix coding style in previous change.
9937
9938         * sysdeps/unix/sysv/linux/kernel-features.h
9939         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9940         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9941         expression.
9942         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9943         later.
9944
9945 2012-03-11  David S. Miller  <davem@davemloft.net>
9946
9947         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9948         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9949         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9950         for 'resultvar' otherwise things get truncated on 64-bit.
9951
9952         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9953         Fix masking out of the most significant byte of random value used.
9954
9955         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9956
9957 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9958
9959         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9960
9961 2012-03-09  David S. Miller  <davem@davemloft.net>
9962
9963         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9964         variables with appropriate CPP guards.
9965         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9966         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9967         on resulting framesize and the management of the outregs buffer for pltexit.
9968         Preserve floating point return values across _dl_call_pltexit call.
9969         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9970         framesize and the management of the outregs buffer for pltexit.
9971         Preserve floating point return values across _dl_call_pltexit
9972         call.
9973         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9974         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9975         (print_exit): Fix format string for return register value.
9976
9977 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9978
9979         * sunrpc/Makefile (others): Add rpcgen.
9980         ($(objpfx)rpcgen): Remove special build rule and dependency on
9981         libc.
9982         * sunrpc/rpcgen.c: New file.
9983
9984 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9985
9986         [BZ #13673]
9987         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9988         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9989         * sysdeps/i386/crti.S: Likewise.
9990         * sysdeps/i386/crtn.S: Likewise.
9991         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9992         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9993         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9994         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9995         * sysdeps/sh/crti.S: Likewise.
9996         * sysdeps/sh/crtn.S: Likewise.
9997         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9998
9999         [BZ #13673]
10000         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10001         with URL.
10002         * locale/programs/locfile-kw.gperf: Likewise.
10003         * locale/programs/charmap-kw.h: Regenerated.
10004         * locale/programs/locfile-kw.h: Likewise.
10005
10006         [BZ #13673]
10007         * intl/plural.y: Replace FSF snail mail address with URL.
10008         * intl/plural.c: Regenerated.
10009
10010 2012-03-09  Richard Henderson  <rth@twiddle.net>
10011
10012         * include/math_private.h: Remove file.
10013         * math/math_private.h: Move file ...
10014         * sysdeps/generic/math_private.h: ... here.
10015
10016         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10017         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10018         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10019
10020         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10021         and <math_private.h>.
10022         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10023         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10024         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10025         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10026         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10027         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10028         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10029         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10030         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10031         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10032         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10033         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10034         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10035         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10036         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10037         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10038         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10039         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10040         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10041         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10042         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10043         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10044         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10045         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10046         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10047         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10048         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10049         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10050         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10051         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10052         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10053         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10054         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10055         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10056         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10057         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10058         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10059         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10060         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10061         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10062         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10063         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10064         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10065         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10066         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10067         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10068         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10069         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10070         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10071         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10072         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10073         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10074         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10075         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10076         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10077         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10078         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10079         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10080         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10081         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10082         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10083         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10084         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10085         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10086         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10087         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10088         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10089         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10090         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10091         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10092         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10093         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10094         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10095         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10096         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10097         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10098         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10099         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10100         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10101         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10102         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10103         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10104         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10105         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10106         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10107         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10108         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10109         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10110         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10111         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10112         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10113         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10114         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10115         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10116         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10117         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10118         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10119         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10120         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10121         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10122         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10123         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10124         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10125         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10126         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10127         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10128         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10129         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10130         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10131         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10132         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10133         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10134         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10135         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10136         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10137         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10138         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10139         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10140         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10141         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10142         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10143         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10144         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10145         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10146         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10147         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10148         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10149         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10150         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10151         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10152         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10153         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10154         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10155         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10156         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10157         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10158         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10159         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10160         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10161         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10162         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10163         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10164         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10165         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10166         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10167         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10168         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10169         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10170         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10171         * sysdeps/ieee754/k_standard.c: Likewise.
10172         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10173         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10174         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10175         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10176         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10177         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10178         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10179         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10180         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10181         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10182         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10183         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10184         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10185         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10186         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10187         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10188         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10189         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10190         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10191         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10192         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10193         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10194         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10195         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10196         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10197         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10198         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10199         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10200         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10201         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10202         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10203         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10204         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10205         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10206         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10207         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10208         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10209         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10210         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10211         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10212         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10213         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10214         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10215         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10216         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10217         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10218         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10219         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10220         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10221         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10222         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10223         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10224         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10225         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10226         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10227         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10228         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10229         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10230         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10231         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10232         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10233         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10234         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10235         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10236         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10237         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10238         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10239         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10240         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10241         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10242         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10243         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10244         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10245         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10246         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10247         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10248         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10249         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10250         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10251         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10252         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10253         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10254         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10255         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10256         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10257         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10258         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10259         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10260         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10261         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10262         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10263         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10264         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10265         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10266         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10267         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10268         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10269         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10270         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10271         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10272         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10273         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10274         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10275         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10276         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10277         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10278         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10279         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10280         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10281         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10282         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10283         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10284         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10285         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10286         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10287         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10288         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10289         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10290         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10291         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10292         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10293         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10294         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10295         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10296         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10297         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10298         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10299         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10300         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10301         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10302         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10303         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10304         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10305         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10306         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10307         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10308         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10309         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10310         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10311         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10312         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10313         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10314         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10315         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10316         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10317         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10318         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10319         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10320         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10321         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10322         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10323         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10324         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10325         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10326         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10327         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10328         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10329         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10330         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10331         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10332         * sysdeps/ieee754/s_lib_version.c: Likewise.
10333         * sysdeps/ieee754/s_matherr.c: Likewise.
10334         * sysdeps/ieee754/s_signgam.c: Likewise.
10335         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10336         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10337         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10338         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10339         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10340         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10341         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10342         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10343         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10344         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10345         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10346         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10347         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10348         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10349         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10350         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10351         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10352         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10353         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10354         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10355         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10356
10357 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10358
10359         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10360         * sunrpc/rpc_main.c: Likewise.
10361         * sunrpc/rpc_svcout.c: Likewise.
10362
10363 2012-03-09  David S. Miller  <davem@davemloft.net>
10364
10365         * include/math_private.h: New file.
10366
10367 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10368
10369         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10370         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10371         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10372         from <bits/socket_type.h>.
10373         (enum __socket_type): Don't define here.
10374         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10375         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10376         bits/socket_type.h.
10377
10378         [BZ #13566]
10379         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10380         checking __USE_GNU.
10381
10382         * Makerules ($(inst_includedir)/%.h): New rule.
10383         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10384         (install-others): Remove variable setting.
10385         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10386
10387 2012-03-08  Richard Henderson  <rth@twiddle.net>
10388
10389         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10390         from macro to inline function; merge with the
10391         !__LIBC_INTERNAL_MATH_INLINES version.
10392         (__ieee754_sqrtf): Likewise.
10393
10394         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10395         to inline function.
10396         (__rintf, __floor, __floorf): Likewise.
10397
10398         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10399         macro to inline function.
10400         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10401
10402         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10403         not <math/math_private.h>.
10404
10405 2012-03-08  David S. Miller  <davem@davemloft.net>
10406
10407         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10408         copyright year.
10409         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10410
10411 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10412
10413         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10414         normalization.
10415         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10416         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10417
10418 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10419
10420         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10421         be defined individually, they must be defined as a block.  Define
10422         S for printing a string instead of hidint the different by using a
10423         macro for adding the 'l'.
10424         * stdio-common/tst-fphex-wide.c: Adjust.
10425
10426 2012-03-07  Marek Polacek  <polacek@redhat.com>
10427
10428         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10429
10430 2012-03-08  Marek Polacek  <polacek@redhat.com>
10431
10432         [BZ #13806]
10433         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10434         * stdio-common/tst-fphex.c: Define a few macros to make the
10435         test reusable.  Use them.
10436         * stdio-common/tst-fphex-wide.c: New file.
10437
10438 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10439
10440         [BZ #6911]
10441         * manual/macros.texi (gnusystems): New macro.
10442         (nongnusystems): Likewise.
10443         (gnulinuxhurdsystems): Likewise.
10444         (gnuhurdsystems): Likewise..
10445         (gnulinuxsystems): Likewise.
10446         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10447         variants of the GNU system, not "GNU system".
10448         * manual/conf.texi: Likewise.
10449         * manual/errno.texi: Likewise.  Update example of errno macro
10450         expansion.
10451         * manual/filesys.texi: Likewise.
10452         (getumask): Document as specific to GNU/Hurd.
10453         * manual/install.texi: Likewise.  Reword some references to
10454         GNU/Linux.
10455         * manual/intro.texi: Likewise.
10456         * manual/io.texi: Likewise.
10457         (File Name Portability): Detail which constraints are inapplicable
10458         to all GNU systems and which are only inapplicable to GNU/Hurd.
10459         * manual/job.texi: Likewise.
10460         * manual/llio.texi: Likewise.
10461         (O_NOCTTY): Document as present on GNU/Linux.
10462         * manual/maint.texi: Likewise.
10463         * manual/memory.texi: Likewise.
10464         * manual/pattern.texi: Likewise.
10465         * manual/pipe.texi: Likewise.
10466         * manual/process.texi: Likewise.
10467         * manual/resource.texi: Likewise.
10468         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10469         child on GNU/Hurd.
10470         * manual/setjmp.texi: Likewise.
10471         * manual/signal.texi: Likewise.
10472         * manual/startup.texi: Likewise.
10473         * manual/stdio.texi: Likewise.
10474         * manual/terminal.texi: Likewise.
10475         (ONLCR): Document as POSIX.
10476         (OXTABS): Document availability on GNU/Linux as XTABS.
10477         (ONOEOT): Document availability separately from other bits.
10478         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10479         * manual/time.texi: Likewise.
10480         * manual/users.texi: Likewise.
10481         * INSTALL: Regenerated.
10482         * sysdeps/gnu/errlist.c: Regenerated.
10483
10484         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10485         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10486         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10487         puts.
10488         * configure: Regenerated.
10489
10490 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10491
10492         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10493         default includes instead of AC_HEADER_CHECK.
10494         * sysdeps/i386/configure: Regenerated.
10495
10496         [BZ #10716]
10497         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10498         * math/s_cacoshf.c (__cacoshf): Likewise.
10499         * math/s_cacoshl.c (__cacoshl): Likewise.
10500         * math/s_casinh.c (__casinh): Set signs of result from argument.
10501         * math/s_casinhf.c (__casinhf): Likewise.
10502         * math/s_casinhl.c (__casinhl): Likewise.
10503         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10504         (casinh_test): Add more tests.
10505         * sysdeps/i386/fpu/libm-test-ulps: Update.
10506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10507
10508 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10509
10510         * po/zh_TW.po: Update from translation team.
10511
10512         * login/Makefile (distribute): Remove variable.
10513         * catgets/Makefile: Likewise.
10514         * mach/Makefile: Likewise.
10515         * malloc/Makefile: Likewise.
10516         * misc/Makefile: Likewise.
10517         * iconv/Makefile: Likewise.
10518         * nscd/Makefile: Likewise.
10519         * hurd/Makefile: Likewise.
10520         * manual/Makefile: Likewise.
10521         * locale/Makefile: Likewise.
10522         * intl/Makefile: Likewise.
10523         * conform/Makefile: Likewise.
10524         * nss/Makefile: Likewise.
10525         * time/Makefile: Likewise.
10526         * soft-fp/Makefile: Likewise.
10527         * dirent/Makefile: Likewise.
10528         * gmon/Makefile: Likewise.
10529         * po/Makefile: Likewise.
10530         * rt/Makefile: Likewise.
10531         * socket/Makefile: Likewise.
10532         * math/Makefile: Likewise.
10533         * signal/Makefile: Likewise.
10534         * debug/Makefile: Likewise.
10535         * elf/Makefile: Likewise.
10536         * timezone/Makefile: Likewise.
10537         * stdlib/Makefile: Likewise.
10538         * iconvdata/Makefile: Likewise.
10539         * sunrpc/Makefile: Likewise.
10540         * io/Makefile: Likewise.
10541         * argp/Makefile: Likewise.
10542         * inet/Makefile: Likewise.
10543         * hesiod/Makefile: Likewise.
10544         * grp/Makefile: Likewise.
10545         * csu/Makefile: Likewise.
10546         * wctype/Makefile: Likewise.
10547         * crypt/Makefile: Likewise.
10548         * libio/Makefile: Likewise.
10549         * string/Makefile: Likewise.
10550         * nis/Makefile: Likewise.
10551         * resolv/Makefile: Likewise.
10552         * stdio-common/Makefile: Likewise.
10553         * wcsmbs/Makefile: Likewise.
10554         * dlfcn/Makefile: Likewise.
10555         * posix/Makefile: Likewise.
10556
10557         [BZ #6959]
10558         * timezone/Makefile: Don't install timezone files, just the programs
10559         and scripts.
10560
10561 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10562
10563         * nss/databases.def: Add missing gshadow entry.
10564
10565         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10566
10567 2012-03-06  Marek Polacek  <polacek@redhat.com>
10568
10569         [BZ #13726]
10570         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10571         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10572         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10573         * stdio-common/tst-long-dbl-fphex.c: New file.
10574
10575 2012-03-06  David S. Miller  <davem@davemloft.net>
10576
10577         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10578         (set_obp_int): New function.
10579         (get_obp_int): New function.
10580         (__get_clockfreq_via_dev_openprom): Likewise.
10581         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10582         Avoid unused variable warnings on 'val' and use builtin_expect.
10583         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10584         __builtin_expect.
10585         (INLINE_CLONE_SYSCALL): Likewise.
10586
10587 2012-03-05  David S. Miller  <davem@davemloft.net>
10588
10589         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10590
10591 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10592
10593         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10594
10595         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10596         only for |x| >= 40.
10597         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10598
10599 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10600
10601         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10602         Replace gettimeofday with __vdso_gettimeofday.
10603
10604         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10605         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10606         __vdso_clock_gettime and __vdso_getcpu.
10607
10608         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10609         time with __vdso_time.
10610
10611 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10612
10613         * manual/lang.texi (size_t): Note types to which size_t may be
10614         equivalent with the GNU C Library, but do not describe when
10615         differences between them are significant.
10616
10617 2012-03-05  Andreas Jaeger  <aj@suse.de>
10618
10619         * sysdeps/i386/fpu/libm-test-ulps: Update.
10620
10621 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10622
10623         [BZ #3976]
10624         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10625         (__ieee754_pow): Save and restore rounding mode and use
10626         round-to-nearest for main computations.
10627         * math/libm-test.inc (pow_test_tonearest): New function.
10628         (pow_test_towardzero): Likewise.
10629         (pow_test_downward): Likewise.
10630         (pow_test_upward): Likewise.
10631         (main): Call the new functions.
10632         * sysdeps/i386/fpu/libm-test-ulps: Update.
10633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10634
10635         [BZ #3976]
10636         * math/libm-test.inc (cosh_test_tonearest): New function.
10637         (cosh_test_towardzero): Likewise.
10638         (cosh_test_downward): Likewise.
10639         (cosh_test_upward): Likewise.
10640         (sinh_test_tonearest): Likewise.
10641         (sinh_test_towardzero): Likewise.
10642         (sinh_test_downward): Likewise.
10643         (sinh_test_upward): Likewise.
10644         (main): Call the new functions.
10645         * sysdeps/i386/fpu/libm-test-ulps: Update.
10646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10647
10648 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10649
10650         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10651         default stack guard is set in last bytes.
10652         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10653
10654 2012-03-05  Kees Cook  <keescook@chromium.org>
10655
10656         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10657
10658         [BZ #13656]
10659         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10660         possibly allocate from heap instead of stack.
10661         * stdio-common/bug-vfprintf-nargs.c: New file.
10662         * stdio-common/Makefile (tests): Add nargs overflow test.
10663
10664 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10665
10666         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10667
10668 2012-03-03  Marek Polacek  <polacek@redhat.com>
10669
10670         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10671         * math/math_private.h: Likewise.
10672         * stdlib/tst-strtod.c: Likewise.
10673         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10674         * sysdeps/x86_64/bits/atomic.h: Likewise.
10675
10676 2012-03-02  David S. Miller  <davem@davemloft.net>
10677
10678         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10680         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10681         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10682         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10683         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10684         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10685         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10686
10687 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10688
10689         [BZ #13792]
10690         * manual/examples/README: New file, says the example source files
10691         can be used under GPL>=2.
10692         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10693         line containing just "*/".
10694         * manual/examples/add.c: Add copyright header (GPL>=2).
10695         * manual/examples/argp-ex1.c: Likewise.
10696         * manual/examples/argp-ex2.c: Likewise.
10697         * manual/examples/argp-ex3.c: Likewise.
10698         * manual/examples/argp-ex4.c: Likewise.
10699         * manual/examples/atexit.c: Likewise.
10700         * manual/examples/db.c: Likewise.
10701         * manual/examples/dir.c: Likewise.
10702         * manual/examples/dir2.c: Likewise.
10703         * manual/examples/execinfo.c: Likewise.
10704         * manual/examples/filecli.c: Likewise.
10705         * manual/examples/filesrv.c: Likewise.
10706         * manual/examples/fmtmsgexpl.c: Likewise.
10707         * manual/examples/genpass.c: Likewise.
10708         * manual/examples/inetcli.c: Likewise.
10709         * manual/examples/inetsrv.c: Likewise.
10710         * manual/examples/isockad.c: Likewise.
10711         * manual/examples/longopt.c: Likewise.
10712         * manual/examples/memopen.c: Likewise.
10713         * manual/examples/memstrm.c: Likewise.
10714         * manual/examples/mkfsock.c: Likewise.
10715         * manual/examples/mkisock.c: Likewise.
10716         * manual/examples/mygetpass.c: Likewise.
10717         * manual/examples/pipe.c: Likewise.
10718         * manual/examples/popen.c: Likewise.
10719         * manual/examples/rprintf.c: Likewise.
10720         * manual/examples/search.c: Likewise.
10721         * manual/examples/select.c: Likewise.
10722         * manual/examples/setjmp.c: Likewise.
10723         * manual/examples/sigh1.c: Likewise.
10724         * manual/examples/sigusr.c: Likewise.
10725         * manual/examples/stpcpy.c: Likewise.
10726         * manual/examples/strdupa.c: Likewise.
10727         * manual/examples/strftim.c: Likewise.
10728         * manual/examples/strncat.c: Likewise.
10729         * manual/examples/subopt.c: Likewise.
10730         * manual/examples/swapcontext.c: Likewise.
10731         * manual/examples/termios.c: Likewise.
10732         * manual/examples/testopt.c: Likewise.
10733         * manual/examples/testpass.c: Likewise.
10734         * manual/examples/timeval_subtract.c: Likewise.
10735
10736         [BZ #13792]
10737         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10738         function to ...
10739         * manual/timeval_subtract.c.texi: ... here, new file.
10740
10741 2012-03-02  David S. Miller  <davem@davemloft.net>
10742
10743         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10744
10745 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10746
10747         [BZ #3976]
10748         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10749         (__sin): Save and restore rounding mode and use round-to-nearest
10750         for all computations.
10751         (__cos): Save and restore rounding mode and use round-to-nearest
10752         for all computations.
10753         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10754         <fenv.h>.
10755         (tan): Save and restore rounding mode and use round-to-nearest for
10756         all computations.
10757         * math/libm-test.inc (cos_test_tonearest): New function.
10758         (cos_test_towardzero): Likewise.
10759         (cos_test_downward): Likewise.
10760         (cos_test_upward): Likewise.
10761         (sin_test_tonearest): Likewise.
10762         (sin_test_towardzero): Likewise.
10763         (sin_test_downward): Likewise.
10764         (sin_test_upward): Likewise.
10765         (tan_test_tonearest): Likewise.
10766         (tan_test_towardzero): Likewise.
10767         (tan_test_downward): Likewise.
10768         (tan_test_upward): Likewise.
10769         (main): Call the new functions.
10770         * sysdeps/i386/fpu/libm-test-ulps: Update.
10771         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10772
10773         [BZ #10135]
10774         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10775         small n, then large n, before computing and testing k+n.
10776         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10777         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10778         Likewise.
10779         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10780         Likewise.
10781         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10782         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10783         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10784         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10785         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10786         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10787         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10788         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10789         * math/libm-test.inc (scalbn_test): Add more tests.
10790         (scalbln_test): Likewise.
10791
10792         * manual/filesys.texi (mode_t): Describe constraints on size and
10793         signedness, not exact equivalence to a particular type.
10794         (ino_t): Likewise.
10795         (ino64_t): Likewise.
10796         (dev_t): Likewise.
10797         (nlink_t): Likewise.
10798         (blkcnt_t): Likewise.
10799         (blkcnt64_t): Likewise.
10800         * manual/llio.texi (off_t): Likewise.
10801
10802         [BZ #3976]
10803         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10804         (__ieee754_exp): Save and restore rounding mode and use
10805         round-to-nearest for all computations.
10806         * math/libm-test.inc (exp_test_tonearest): New function.
10807         (exp_test_towardzero): Likewise.
10808         (exp_test_downward): Likewise.
10809         (exp_test_upward): Likewise.
10810         (main): Call the new functions.
10811         * sysdeps/i386/fpu/libm-test-ulps: Update.
10812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10813
10814 2012-03-01  Chris Demetriou  <cgd@google.com>
10815
10816         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10817         have predictable order.
10818
10819 2012-03-01  David S. Miller  <davem@davemloft.net>
10820
10821         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10822
10823         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10824         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10825         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10826         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10827
10828         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10829         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10830         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10831         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10832         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10833         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10834         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10835         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10836         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10837
10838         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10839
10840         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10841         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10842         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10843
10844         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10845         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10846         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10847         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10848         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10849         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10850         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10851         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10852         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10853         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10854         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10855         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10856         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10857         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10858         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10859         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10860         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10861         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10862         * sysdeps/sparc/elf/configure: Regenerated.
10863
10864 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10865
10866         * configure.in (AS, LD): Require binutils 2.20 or later.
10867         * configure: Regenerated.
10868         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10869         as required minimum version.
10870         * INSTALL: Regenerated.
10871
10872         [BZ #2541]
10873         [BZ #4108]
10874         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10875         before squaring exponent.
10876         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10877         bottom long double and 27 bits of top long double before squaring
10878         exponent.
10879         * math/libm-test.inc (erfc_test): Add more tests.
10880         * sysdeps/i386/fpu/libm-test-ulps: Update.
10881         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10883
10884 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10885
10886         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10887         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10888         containing bit-fields.
10889         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10890         * soft-fp/single.h (_FP_UNION_S): Likewise.
10891         * soft-fp/double.h (_FP_UNION_D): Likewise.
10892
10893 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10894
10895         [BZ #13786]
10896         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10897         not include ../strcmp.S.
10898         [USE_AS_STRNCASECMP_L]: Likewise.
10899         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10900         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10901         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10902         (__strncasecmp_l_ia32): Define as alias to
10903         __strncasecmp_l_nonascii.
10904
10905         [BZ #5794]
10906         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10907         * sysdeps/i386/fpu/libm-test-ulps: Update.
10908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10909
10910         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10912
10913 2012-02-29  Jeff Law  <law@redhat.com>
10914
10915         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10916         out of bounds read.
10917
10918 2012-02-29  Marek Polacek  <polacek@redhat.com>
10919
10920         [BZ #13706]
10921         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10922         * elf/Makefile: Add rules to run tst-unused-dep.out.
10923
10924 2012-02-28  David S. Miller  <davem@davemloft.net>
10925
10926         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10927         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10928         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10929         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10930         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10931         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10932
10933 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10934
10935         * math/libm-test.inc (llround_test): Move one test from
10936         lround_test.  Use TEST_f_L in moved test.
10937         (lround_test): Move misplaced test to llround_test.  Add testcase
10938         from bug 2561.
10939
10940 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10941
10942         * sysdeps/x86_64/fpu/e_expf.S: New file.
10943         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10944
10945 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10946
10947         [BZ #13637]
10948         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10949         of remain_len that may cause incomplete multi-byte character and
10950         false match.
10951         * posix/bug-regex33.c: New file.
10952         * posix/Makefile (tests): Add bug-regex33.
10953
10954 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10955
10956         * manual/macros.texi: New file.
10957         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10958         * manual/libc.texinfo: Include macros.texi.
10959         * manual/creatute.texi: Likewise.
10960         * manual/install.texi: Likewise.
10961         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10962         @glibcadj{} in references to the GNU C Library.
10963         * manual/charset.texi: Likewise.
10964         * manual/conf.texi: Likewise.
10965         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10966         when not using those macros.
10967         * manual/creature.texi: Likewise.
10968         * manual/crypt.texi: Likewise.
10969         * manual/errno.texi: Likewise.
10970         * manual/filesys.texi: Likewise.
10971         * manual/header.texi: Likewise.
10972         * manual/install.texi: Likewise.
10973         * manual/intro.texi: Likewise.
10974         * manual/io.texi: Likewise.
10975         * manual/job.texi: Likewise.
10976         * manual/lang.texi: Likewise.
10977         * manual/libc.texiinfo: Likewise.
10978         * manual/llio.texi: Likewise.
10979         * manual/locale.texi: Likewise.
10980         * manual/maint.texi: Likewise.
10981         * manual/math.texi: Likewise.
10982         * manual/memory.texi: Likewise.
10983         * manual/message.texi: Likewise.
10984         * manual/nss.texi: Likewise.
10985         * manual/pattern.texi: Likewise.
10986         * manual/process.texi: Likewise.
10987         * manual/resource.texi: Likewise.
10988         * manual/search.texi: Likewise.
10989         * manual/setjmp.texi: Likewise.
10990         * manual/signal.texi: Likewise.
10991         * manual/socket.texi: Likewise.
10992         * manual/startup.texi: Likewise.
10993         * manual/stdio.texi: Likewise.
10994         * manual/string.texi: Likewise.
10995         * manual/sysinfo.texi: Likewise.
10996         * manual/syslog.texi: Likewise.
10997         * manual/terminal.texi: Likewise.
10998         * manual/time.texi: Likewise.
10999         * manual/users.texi: Likewise.
11000         * INSTALL: Regenerated.
11001         * NOTES: Regenerated.
11002         * sysdeps/gnu/errlist.c: Regenerated.
11003
11004 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11005
11006         * include/dirent.h: Include <dirstream.h> before
11007         <dirent/dirent.h>.
11008
11009 2012-02-28  David S. Miller  <davem@davemloft.net>
11010
11011         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11012         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11013         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11014         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11015
11016 2012-02-27  David S. Miller  <davem@davemloft.net>
11017
11018         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11019         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11020         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11021         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11022
11023         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11024         frame pointer instead of stack pointer relative arg slot.
11025         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11026         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11027         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11028
11029 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11030
11031         [BZ #3992]
11032         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11033
11034 2012-02-27  David S. Miller  <davem@davemloft.net>
11035
11036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11039         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11040         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11041         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11042         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11043         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11044
11045 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11046
11047         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11048         later.  Allow versions 5-9.
11049         * configure: Regenerated.
11050         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11051         required minimum version and 4.6 as recommended version.  Do not
11052         mention bugs in GCC 2.7 and 2.8.
11053         * INSTALL: Regenerated.
11054
11055 2012-02-27  David S. Miller  <davem@davemloft.net>
11056
11057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11058         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11059         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11060         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11061         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11062         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11063         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11064         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11065
11066         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11067         manipulate bits before adding and subtracting TWO112[sx].
11068         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11069
11070 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11071
11072         [BZ #13775]
11073         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11074         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11075         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11076         being in POSIX, because they are in 1003.1-2008.
11077
11078         * rt/tst-aio.c: Include <fcntl.h>.
11079         * rt/tst-aio7.c: Likewise.
11080         * rt/tst-aio64.c: Likewise.
11081
11082         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11083
11084 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11085
11086         * manual/install.texi (--with-headers): Describe headers as
11087         interface headers, not private headers.
11088         (Specific advice for GNU/Linux systems): Describe use of headers
11089         from "make headers_install", not private headers from older
11090         kernels.
11091         * INSTALL: Regenerated.
11092         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11093         Change to 2.6.19.
11094         * sysdeps/unix/sysv/linux/configure: Regenerated.
11095
11096         * manual/llio.texi (fclean): Remove documentation.
11097
11098         * manual/Makefile (libc-texi-generated): New variable.  Include
11099         version.texi.
11100         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11101         $(libc-texi-generated), not duplicated list of files.
11102         (version.texi, stamp-version): New rules.
11103         (realclean): Remove $(libc-texi-generated), not individual files
11104         from that list.  Do not remove dir-add.texinfo.
11105         * manual/libc.texinfo: Comment out uses of edition numbers and
11106         references to printed manual.  Remove last-updated dates.
11107         (EDITION): Comment out.
11108         (ISBN): Likewise.
11109         (VERSION, UPDATED): Remove.
11110         (version.texi): Include.
11111
11112 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11113
11114         * sysdeps/posix/spawni.c: Include <signal.h>.
11115         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11116         * sysdeps/pthread/aio_fsync.c: Likewise.
11117
11118 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11119
11120         * conform/Makefile (tests): Run only when not cross-compiling and
11121         when fast-check is not defined.
11122
11123         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11124         * conform/data/limits.h-data: Fixes for POSIX2008.
11125         * conform/run-conformtest.sh: Run all tests.
11126         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11127         headers.
11128         * include/bits/dlfcn.h: Likewise.
11129         * include/langinfo.h: Likewise.
11130         * include/monetary.h: Likewise.
11131         * include/sys/poll.h: Likewise.
11132
11133         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11134         for __USE_GNU.
11135         * posix/spawn.h: Define __need_sigset_t.
11136         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11137         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11138         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11139         to get sigevent_t only.
11140         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11141         only for __USE_GNU.
11142         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11143         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11144         process_vm_writev only for __USE_GNU.
11145         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11146
11147         * conform/Makefile: For now ignore errors from run-conformtest.
11148         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11149         POSIX to avoid namespace pollution.  Don't prepend headers.
11150         * conform/data/aio.h-data: Fixes for POSIX testing.
11151         * conform/data/fcntl.h-data: Likewise.
11152         * conform/data/glob.h-data: Likewise.
11153         * conform/data/grp.h-data: Likewise.
11154         * conform/data/pthread.h-data: Likewise.
11155         * conform/data/pwd.h-data: Likewise.
11156         * conform/data/signal.h-data: Likewise.
11157         * conform/data/spawn.h-data: Likewise.
11158         * conform/data/stdio.h-data: Likewise.
11159         * conform/data/stdlib.h-data: Likewise.
11160         * conform/data/stropts.h-data: Likewise.
11161         * conform/data/sys/mman.h-data: Likewise.
11162         * conform/data/sys/stat.h-data: Likewise.
11163         * conform/data/sys/types.h-data: Likewise.
11164         * conform/data/sys/wait.h-data: Likewise.
11165         * conform/data/time.h-data: Likewise.
11166         * conform/data/unistd.h-data: Likewise.
11167         * conform/data/utime.h-data: Likewise.
11168
11169         * io/sys/stat.h: fchmod was always in POSIX.
11170         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11171         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11172         * rt/aio.h: Define __need_timespec before including <time.h>.
11173         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11174         struct.  Add forward declaration of pthread_attr_t and use it in
11175         sigevent.
11176         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11177         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11178         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11179         always remove CLK_TCK definition.
11180
11181 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11182
11183         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11184
11185 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11186
11187         * conform/run-conformtest.sh: New file.
11188         * conform/Makefile: Run run-conformtest for tests.
11189         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11190         support.
11191
11192         * conform/data/uchar.h-data: New file.
11193         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11194         * conform/data/arpa/inet.h-data: Likewise.
11195         * conform/data/assert.h-data: Likewise.
11196         * conform/data/complex.h-data: Likewise.
11197         * conform/data/cpio.h-data: Likewise.
11198         * conform/data/ctype.h-data: Likewise.
11199         * conform/data/dirent.h-data: Likewise.
11200         * conform/data/dlfcn.h-data: Likewise.
11201         * conform/data/errno.h-data: Likewise.
11202         * conform/data/fcntl.h-data: Likewise.
11203         * conform/data/float.h-data: Likewise.
11204         * conform/data/fmtmsg.h-data: Likewise.
11205         * conform/data/fnmatch.h-data: Likewise.
11206         * conform/data/ftw.h-data: Likewise.
11207         * conform/data/glob.h-data: Likewise.
11208         * conform/data/grp.h-data: Likewise.
11209         * conform/data/iconv.h-data: Likewise.
11210         * conform/data/inttypes.h-data: Likewise.
11211         * conform/data/langinfo.h-data: Likewise.
11212         * conform/data/libgen.h-data: Likewise.
11213         * conform/data/limits.h-data: Likewise.
11214         * conform/data/locale.h-data: Likewise.
11215         * conform/data/math.h-data: Likewise.
11216         * conform/data/monetary.h-data: Likewise.
11217         * conform/data/mqueue.h-data: Likewise.
11218         * conform/data/ndbm.h-data: Likewise.
11219         * conform/data/net/if.h-data: Likewise.
11220         * conform/data/netdb.h-data: Likewise.
11221         * conform/data/netinet/in.h-data: Likewise.
11222         * conform/data/nl_types.h-data: Likewise.
11223         * conform/data/poll.h-data: Likewise.
11224         * conform/data/pthread.h-data: Likewise.
11225         * conform/data/pwd.h-data: Likewise.
11226         * conform/data/regex.h-data: Likewise.
11227         * conform/data/sched.h-data: Likewise.
11228         * conform/data/search.h-data: Likewise.
11229         * conform/data/semaphore.h-data: Likewise.
11230         * conform/data/setjmp.h-data: Likewise.
11231         * conform/data/signal.h-data: Likewise.
11232         * conform/data/spawn.h-data: Likewise.
11233         * conform/data/stdarg.h-data: Likewise.
11234         * conform/data/stdio.h-data: Likewise.
11235         * conform/data/stdlib.h-data: Likewise.
11236         * conform/data/string.h-data: Likewise.
11237         * conform/data/strings.h-data: Likewise.
11238         * conform/data/stropts.h-data: Likewise.
11239         * conform/data/sys/ipc.h-data: Likewise.
11240         * conform/data/sys/mman.h-data: Likewise.
11241         * conform/data/sys/msg.h-data: Likewise.
11242         * conform/data/sys/resource.h-data: Likewise.
11243         * conform/data/sys/select.h-data: Likewise.
11244         * conform/data/sys/sem.h-data: Likewise.
11245         * conform/data/sys/shm.h-data: Likewise.
11246         * conform/data/sys/socket.h-data: Likewise.
11247         * conform/data/sys/stat.h-data: Likewise.
11248         * conform/data/sys/statvfs.h-data: Likewise.
11249         * conform/data/sys/time.h-data: Likewise.
11250         * conform/data/sys/timeb.h-data: Likewise.
11251         * conform/data/sys/times.h-data: Likewise.
11252         * conform/data/sys/types.h-data: Likewise.
11253         * conform/data/sys/uio.h-data: Likewise.
11254         * conform/data/sys/un.h-data: Likewise.
11255         * conform/data/sys/utsname.h-data: Likewise.
11256         * conform/data/sys/wait.h-data: Likewise.
11257         * conform/data/syslog.h-data: Likewise.
11258         * conform/data/tar.h-data: Likewise.
11259         * conform/data/termios.h-data: Likewise.
11260         * conform/data/utime.h-data: Likewise.
11261         * conform/data/utmpx.h-data: Likewise.
11262         * conform/data/varargs.h-data: Likewise.
11263         * conform/data/wchar.h-data: Likewise.
11264         * conform/data/wctype.h-data: Likewise.
11265         * conform/data/wordexp.h-data: Likewise.
11266
11267         * include/stropts.h: New file.
11268         * include/uchar.h: New file.
11269         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11270         * include/assert.h: Likewise.
11271         * include/ctype.h: Likewise.
11272         * include/dirent.h: Likewise.
11273         * include/dlfcn.h: Likewise.
11274         * include/fcntl.h: Likewise.
11275         * include/fnmatch.h: Likewise.
11276         * include/glob.h: Likewise.
11277         * include/grp.h: Likewise.
11278         * include/libio.h: Likewise.
11279         * include/locale.h: Likewise.
11280         * include/math.h: Likewise.
11281         * include/net/if.h: Likewise.
11282         * include/netdb.h: Likewise.
11283         * include/netinet/in.h: Likewise.
11284         * include/pthread.h: Likewise.
11285         * include/pwd.h: Likewise.
11286         * include/regex.h: Likewise.
11287         * include/sched.h: Likewise.
11288         * include/search.h: Likewise.
11289         * include/setjmp.h: Likewise.
11290         * include/signal.h: Likewise.
11291         * include/stdio.h: Likewise.
11292         * include/stdlib.h: Likewise.
11293         * include/string.h: Likewise.
11294         * include/sys/cdefs.h: Likewise.
11295         * include/sys/mman.h: Likewise.
11296         * include/sys/msg.h: Likewise.
11297         * include/sys/resource.h: Likewise.
11298         * include/sys/select.h: Likewise.
11299         * include/sys/socket.h: Likewise.
11300         * include/sys/stat.h: Likewise.
11301         * include/sys/statvfs.h: Likewise.
11302         * include/sys/time.h: Likewise.
11303         * include/sys/times.h: Likewise.
11304         * include/sys/uio.h: Likewise.
11305         * include/sys/utsname.h: Likewise.
11306         * include/sys/wait.h: Likewise.
11307         * include/termios.h: Likewise.
11308         * include/time.h: Likewise.
11309         * include/ulimit.h: Likewise.
11310         * include/unistd.h: Likewise.
11311         * include/utime.h: Likewise.
11312         * include/wchar.h: Likewise.
11313         * include/wctype.h: Likewise.
11314         * include/wordexp.h: Likewise.
11315
11316         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11317
11318         * time/time.h: TIME_UTC must be a macro.
11319         Make timespec_get available for ISO C11 only as well.
11320
11321 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11322
11323         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11324         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11325
11326 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11327
11328         * configure.in: Use -o not -a in test for unsupported multi-arch.
11329
11330 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11331
11332         * manual/texinfo.tex: Update to version 2012-01-19.16.
11333
11334 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11335
11336         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11337
11338 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11339
11340         [BZ #13738]
11341         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11342         * manual/fdl-1.3.texi: New file.
11343         * manual/fdl-1.1.texi: File removed.
11344
11345         [BZ #13738]
11346         * manual/libc.texinfo (FDL_VERSION): New @set.
11347         Use it for mention of FDL in cover text.
11348         (Documentation License): Use it in @include file name.
11349
11350 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11351             Roland McGrath  <roland@hack.frob.com>
11352
11353         [BZ #5461]
11354         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11355         not LONG_LONG_MAX and LONG_LONG_MIN.
11356         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11357         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11358         name.
11359         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11360
11361 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11362
11363         [BZ #2547]
11364         [BZ #11365]
11365         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11366         manipulate bits before adding and subtracting TWO23[sx].
11367         * math/libm-test.inc (nearbyint_test): Add more tests.
11368
11369 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11370
11371         [BZ #2548]
11372         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11373         bits before adding and subtracting TWO23[sx].
11374         * math/libm-test.inc (rint_test): Add more tests.
11375         (rint_test_tonearest): Likewise.
11376         (rint_test_towardzero): Likewise.
11377         (rint_test_downward): Likewise.
11378         (rint_test_upward: Likewise.
11379
11380 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11381
11382         [BZ #10110]
11383         * include/stdc-predef.h: New file.  Extracted from features.h.
11384         * include/features.h: Include stdc-predef.h.
11385         * Makefile (headers): Add stdc-predef.h.
11386         * CONFORMANCE (Compiler limitations): Update.
11387
11388 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11389
11390         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11391
11392 2012-02-21  David S. Miller  <davem@davemloft.net>
11393
11394         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11395         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11396
11397 2012-02-20  David S. Miller  <davem@davemloft.net>
11398
11399         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11400         using a normal save/restore sequence, rather than allocating a
11401         dummy stack frame just to store a frame pointer and restore.
11402         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11403
11404 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11405
11406         * manual/install.texi: Fix stray word in line-wrapped comment.
11407
11408 2012-02-20  David S. Miller  <davem@davemloft.net>
11409
11410         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11411         both binutils and gcc support GOTDATA.
11412
11413         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11414         "rd %pc" in the PIC register setup sequences.
11415
11416         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11417         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11418         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11419         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11420         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11421         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11422         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11423         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11424         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11425         (SYSCALL_ERROR_HANDLER): Likewise.
11426         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11427         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11428         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11429         (SYSCALL_ERROR_HANDLER): Likewise.
11430
11431         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11432         (HAVE_GCC_GOTDATA): New.
11433         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11434         relocation support in both binutils and gcc.
11435         * sysdeps/sparc/elf/configure: Regenerate.
11436
11437         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11438         * sysdeps/sparc/sparc32/elf/configure: Delete.
11439         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11440         * sysdeps/sparc/sparc64/elf/configure: Delete.
11441         * sysdeps/sparc/elf/configure.in: New file.
11442         * sysdeps/sparc/elf/configure: Generate.
11443
11444         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11445         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11446         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11447         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11448         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11449
11450 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11451
11452         * manual/install.texi: Do not mention specific glibc version
11453         numbers.
11454         * manual/libc.texinfo (VERSION, UPDATED): Update.
11455         (@copying): Use @copyright{} and range of years.
11456
11457 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11458
11459         [BZ #13695]
11460         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11461         [crti.S not in sysdirs] (generated): Do not append.
11462         [crti.S not in sysdirs] (omit-deps): Likewise.
11463         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11464         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11465         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11466         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11467         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11468         Likewise.
11469         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11470         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11471         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11472         * csu/defs.awk: Remove file.
11473         * sysdeps/generic/initfini.c: Likewise.
11474         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11475         variable.
11476         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11477         Likewise.
11478
11479 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11480
11481         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11482         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11483         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11484         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11485         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11486         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11487         <bits/epoll.h>.
11488         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11489         (__EPOLL_PACKED): Define to empty if not defined by
11490         <bits/epoll.h>.
11491         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11492         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11493         bits/epoll.h.
11494
11495 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11496
11497         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11498         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11499         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11500         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11501         <bits/timerfd.h>.
11502         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11503         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11504         bits/timerfd.h.
11505
11506 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11507
11508         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11509         in C locale.
11510         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11511         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11512         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11514
11515 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11516
11517         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11518         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11519
11520 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11521
11522         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11523         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11524         defined.
11525         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11526         Likewise.
11527         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11528         entry for 2.16.
11529
11530 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11531
11532         * math/w_acos.c: Use non-signaling floating-point comparisons.
11533         * math/w_acosf.c: Likewise.
11534         * math/w_acosh.c: Likewise.
11535         * math/w_acoshf.c: Likewise.
11536         * math/w_acoshl.c: Likewise.
11537         * math/w_acosl.c: Likewise.
11538         * math/w_asin.c: Likewise.
11539         * math/w_asinf.c: Likewise.
11540         * math/w_asinl.c: Likewise.
11541         * math/w_atanh.c: Likewise.
11542         * math/w_atanhf.c: Likewise.
11543         * math/w_atanhl.c: Likewise.
11544         * math/w_exp2.c: Likewise.
11545         * math/w_exp2f.c: Likewise.
11546         * math/w_exp2l.c: Likewise.
11547         * math/w_j0.c: Likewise.
11548         * math/w_j0f.c: Likewise.
11549         * math/w_j0l.c: Likewise.
11550         * math/w_j1.c: Likewise.
11551         * math/w_j1f.c: Likewise.
11552         * math/w_j1l.c: Likewise.
11553         * math/w_jn.c: Likewise.
11554         * math/w_jnf.c: Likewise.
11555         * math/w_log.c: Likewise.
11556         * math/w_log10.c: Likewise.
11557         * math/w_log10f.c: Likewise.
11558         * math/w_log10l.c: Likewise.
11559         * math/w_log2.c: Likewise.
11560         * math/w_log2f.c: Likewise.
11561         * math/w_log2l.c: Likewise.
11562         * math/w_logf.c: Likewise.
11563         * math/w_logl.c: Likewise.
11564         * math/w_sqrt.c: Likewise.
11565         * math/w_sqrtf.c: Likewise.
11566         * math/w_sqrtl.c: Likewise.
11567         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11568         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11569         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11570         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11571         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11572
11573 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11574
11575         [BZ #9739]
11576         * manual/string.texi (strnlen): Use correct parameter name in
11577         equivalent expression.
11578
11579 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11580
11581         [BZ #11174]
11582         * manual/users.texi (seteuid): Consistently use neweuid for
11583         argument name.
11584
11585 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11586
11587         [BZ #13704]
11588         * manual/nss.texi (Services in the NSS configuration): Correct
11589         list of services in example configuration file.
11590
11591 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11592
11593         [BZ #11322]
11594         * manual/arith.texi: Remove statements about negative zero
11595         behaving identically to zero.
11596
11597 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11598
11599         [BZ #5993]
11600         * manual/install.texi: Do not document upgrading from libc5.
11601
11602 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11603
11604         [BZ #4596]
11605         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11606
11607 2012-02-18  David S. Miller  <davem@davemloft.net>
11608
11609         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11610         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11611         %o7 across the call.
11612         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11613         instead.
11614         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11615         SETUP_PIC_REG_LEAF.
11616         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11617         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11618         * sysdeps/sparc/crtn.S: Likewise.
11619
11620 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11621
11622         * aout/Makefile: Remove.
11623
11624 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11625
11626         [BZ #13058]
11627         * manual/examples/argp-ex1.c (main): Format definition in GNU
11628         style.
11629         * manual/examples/argp-ex2.c (main): Likewise.
11630         * manual/examples/argp-ex3.c (main): Likewise.
11631         * manual/examples/argp-ex4.c (main): Likewise.
11632         * manual/examples/longopt.c (main): Use new-style prototype
11633         definition.
11634         * manual/examples/strncat.c (main): Specify return type and use
11635         (void) for arguments.
11636         * manual/examples/subopt.c (main): Use char **argv argument.
11637
11638 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11639
11640         [BZ #5077]
11641         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11642         rounding modes.
11643
11644 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11645
11646         [BZ #6907]
11647         * manual/string.texi (strchr): Change when strchrnul is
11648         recommended.
11649
11650 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11651
11652         [BZ #174]
11653         * manual/locale.texi (setlocale): Document LOCPATH.
11654
11655 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11656
11657         [BZ #10210]
11658         * manual/process.texi (execle): Move @dots{} before last argument.
11659
11660 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11661
11662         [BZ #12047]
11663         * manual/charset.texi (Generic Charset Conversion): Fix typo
11664         (LC_TYPE -> LC_CTYPE).
11665
11666 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11667
11668         [BZ #5805]
11669         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11670         (scalbnf): Likewise.
11671         (scalbnl): Likewise.
11672         (scalbln): Likewise.
11673         (scalblnf): Likewise.
11674         (scalblnl): Likewise.
11675         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11676         (vwarnx): Likewise.
11677         (verr): Likewise.
11678         (verrx): Likewise.
11679         * manual/filesys.texi (telldir): Use braces around return type.
11680         * manual/llio.texi (mmap): Add space after comma.
11681         (mmap64): Likewise.
11682         * manual/math.texi (jn): Use @var{} on parameter names.
11683         (jnf): Likewise.
11684         (jnl): Likewise.
11685         (yn): Likewise.
11686         (ynf): Likewise.
11687         (ynl): Likewise.
11688         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11689         line.
11690         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11691         "...".
11692         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11693         (sched_get_priority_max): Likewise.
11694         * manual/signal.texi (sigvec): Add space after comma.
11695         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11696         names.
11697         (if_indextoname): Likewise.
11698         (if_freenameindex): Likewise.
11699         (sendto): Use ',' instead of '.' in prototype.
11700         * manual/startup.texi (syscall): Use @dots{} instead of literal
11701         "...".
11702         * manual/stdio.texi (__fpending): Separate initial words of
11703         paragraph from @deftypefun line.
11704         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11705         "...".
11706         (vsyslog): Use @var{} on parameter names.
11707         * manual/terminal.texi (stty): Use @var{} on parameter names.
11708         * manual/users.texi (getutmp): Use @var{} on parameter names.
11709         (getutmpx): Likewise.
11710
11711 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11712
11713         [BZ #6884]
11714         * manual/stdio.texi (fopen): Fix typos in description of
11715         ",ccs=STRING".
11716
11717 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11718
11719         [BZ #4026]
11720         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11721         get clock_id definition.
11722
11723 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11724
11725         [BZ #4822]
11726         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11727         (madvise): Cast every argument to void on its own.
11728
11729 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11730
11731         [BZ #9902]
11732         * manual/startup.texi (Exit Status): Fix typo.
11733
11734 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11735
11736         [BZ #10140]
11737         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11738         * manual/examples/argp-ex2.c: Likewise.
11739         * manual/examples/argp-ex3.c: Likewise.
11740
11741 2012-02-16  Richard Henderson  <rth@redhat.com>
11742
11743         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11744         * sysdeps/s390/s390-32/initfini.c: Remove.
11745         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11746         * sysdeps/s390/s390-64/initfini.c: Remove.
11747
11748 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11749
11750         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11751         compiler output for sysdeps/generic/initfini.c.
11752         * sysdeps/sh/elf/initfini.c: Remove file.
11753
11754 2012-02-16  David S. Miller  <davem@davemloft.net>
11755
11756         [BZ #11494]
11757         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11758
11759         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11760         * sysdeps/sparc/crti.S: New file.
11761         * sysdeps/sparc/crtn.S: New file.
11762         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11763         * sysdeps/sparc/sparc64/Makefile: Likewise.
11764
11765 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11766
11767         [BZ #3335]
11768         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11769
11770 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11771
11772         [BZ #4822]
11773         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11774
11775         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11776         (write, read, close): Likewise.
11777         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11778
11779 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11780
11781         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11782         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11783         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11784         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11785         <bits/signalfd.h>.
11786         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11787         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11788         bits/signalfd.h.
11789
11790 2012-02-14  Marek Polacek  <polacek@redhat.com>
11791
11792         * sysdeps/x86_64/crti.S: New file.
11793         * sysdeps/x86_64/crtn.S: New file.
11794         * sysdeps/x86_64/elf/initfini.c: Remove file.
11795
11796 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11797
11798         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11799         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11800         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11801         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11802         <bits/inotify.h>.
11803         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11804         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11805         bits/inotify.h.
11806
11807 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11808
11809         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11810         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11811         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11812         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11813         <bits/eventfd.h>.
11814         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11815         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11816         bits/eventfd.h.
11817
11818 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11819
11820         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11821         __feraiseexcept instead of feraiseexcept.
11822
11823         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11824         nanosleep invocations.
11825         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11826         strings, and add error checking for a nanosleep invocations.
11827
11828 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11829
11830         Replace FSF snail mail address with URLs, as per GNU coding standards.
11831         Most of the snail mail addresses were wrong anyway, and omitting
11832         them makes the source code easier to maintain.  Almost all of the
11833         changes are to license notices and to locale LC_IDENTIFICATION
11834         addresses, except for this one:
11835         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11836         not its snail mail address.
11837
11838 2012-02-09  Richard Henderson  <rth@twiddle.net>
11839
11840         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11841         of kernel-features.h.
11842
11843         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11844
11845 2012-02-08  Marek Polacek  <polacek@redhat.com>
11846
11847         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11848         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11849         * sysdeps/gnu/_G_config.h: Likewise.
11850         * sysdeps/generic/_G_config.h: Likewise.
11851
11852 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11853
11854         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11855         tests.
11856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11857
11858         * sysdeps/powerpc/powerpc32/crti.S: New file.
11859         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11860         * sysdeps/powerpc/powerpc64/crti.S: New file.
11861         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11862
11863         * Makeconfig (have-initfini): Don't set.
11864         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11865         * configure.in (nopic_initfini): Don't substitute.
11866         * config.h.in (HAVE_INITFINI): Don't #undef.
11867         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11868         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11869
11870 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11871
11872         Support crti.S and crtn.S provided directly by architectures.
11873         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11874         [crti.S in sysdirs] (omit-deps): Likewise.
11875         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11876         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11877         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11878         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11879         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11880         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11881         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11882         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11883         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11884         compiler output for sysdeps/generic/initfini.c.
11885         * sysdeps/i386/elf/Makefile: Remove file.
11886         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11887
11888 2012-02-07  Marek Polacek  <polacek@redhat.com>
11889
11890         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11891         * sysdeps/gnu/_G_config.h: Likewise.
11892         * sysdeps/mach/hurd/_G_config.h: Likewise.
11893
11894 2012-02-07  Marek Polacek  <polacek@redhat.com>
11895
11896         * math/Makefile (tests): Add tst-CMPLX2.
11897         * math/tst-CMPLX2.c: New file.
11898
11899 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11900
11901         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11902
11903         * math/libm-test.inc (jn_test): Add missing L suffix.
11904
11905 2012-02-06  Marek Polacek  <polacek@redhat.com>
11906
11907         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11908         * sysdeps/i386/fpu/e_powf.S: Likewise.
11909         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11910         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11911         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11912         * sysdeps/i386/fpu/e_pow.S: Likewise.
11913         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11914         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11915         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11916         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11917         * sysdeps/i386/fpu/e_log2.S: Likewise.
11918         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11919         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11920         * sysdeps/i386/fpu/e_powl.S: Likewise.
11921         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11922         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11923         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11924         * sysdeps/i386/fpu/e_logl.S: Likewise.
11925         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11926         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11927         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11928         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11929         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11930         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11931         * sysdeps/i386/fpu/e_log.S: Likewise.
11932         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11933         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11934         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11935         * sysdeps/i386/fpu/e_logf.S: Likewise.
11936         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11937         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11938         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11939         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11940         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11941         * sysdeps/i386/fpu/e_log10.S: Likewise.
11942         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11943         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11944         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11945         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11946         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11947         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11948         * sysdeps/i386/asm-syntax.h: Likewise.
11949         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11950         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11951         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11952         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11953         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11954         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11955         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11956         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11957         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11958         * sysdeps/powerpc/sysdep.h: Likewise.
11959         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11960         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11961
11962 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11963
11964         [BZ #411]
11965         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11966
11967 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11968
11969         * sysdeps/i386/sysdep.h: Include <features.h>.
11970         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11971         version.
11972
11973 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11974
11975         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11976         Define.
11977         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11978         LOAD_PIC_REG_STR.
11979
11980 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11981
11982         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11983         (SETUP_PIC_REG): Use GET_PC_THUNK.
11984         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11985         macro.
11986
11987 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11988
11989         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11990         for non-PIC compilation.
11991         (SETUP_PIC_REG): Add .p2align directive.
11992         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11993         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11994         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11995         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11996         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11997         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11998         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11999         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12000         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12001         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12002         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12003         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12004         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12005         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12006         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12007         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12008         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12009         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12010         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12011         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12012         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12013         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12014         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12015         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12016         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12017         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12018         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12019         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12020         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12021         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12022         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12023         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12024         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12025         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12026         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12027         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12028         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12029         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12030         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12031         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12032         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12033
12034 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12035
12036         * math/tst-CMPLX.c: Include <stdio.h>.
12037
12038 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12039
12040         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12041         float.
12042         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12043         * sysdeps/sparc/bits/mathdef.h: Likewise.
12044
12045 2012-01-31  Marek Polacek  <polacek@redhat.com>
12046
12047         * libio/libio.h: Don't define _PARAMS.
12048         * locale/programs/config.h: Don't define PARAMS.
12049         * stdlib/strtol_l.c: Likewise.
12050         (__strtol_l): Remove PARAMS from the prototype.
12051
12052 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12053
12054         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12055         names.  Just use the correct names.  Remove unnecessary wrapper
12056         functions.
12057         * malloc/arena.c: Likewise.
12058         * malloc/hooks.c: Likewise.
12059
12060         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12061         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12062         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12063
12064 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12065
12066         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12067         into tail calls.
12068         (update_get_addr): New function.
12069         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12070         GET_ADDR_MODULE parameter.
12071
12072 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12073
12074         * crypt/cert.c: Remove __STDC__ conditionals.
12075         * crypt/crypt-entry.c: Likewise.
12076         * crypt/crypt_util.c: Likewise.
12077         * libio/filedoalloc.c: Likewise.
12078         * libio/fileops.c: Likewise.
12079         * libio/genops.c: Likewise.
12080         * libio/iofclose.c: Likewise.
12081         * libio/iofdopen.c: Likewise.
12082         * libio/iofopen.c: Likewise.
12083         * libio/iofopen64.c: Likewise.
12084         * libio/iogetdelim.c: Likewise.
12085         * libio/iopopen.c: Likewise.
12086         * libio/obprintf.c: Likewise.
12087         * libio/oldfileops.c: Likewise.
12088         * libio/oldiofclose.c: Likewise.
12089         * libio/oldiofdopen.c: Likewise.
12090         * libio/oldiofopen.c: Likewise.
12091         * libio/oldiopopen.c: Likewise.
12092         * libio/wfiledoalloc.c: Likewise.
12093         * libio/wgenops.c: Likewise.
12094         * locale/programs/xmalloc.c: Likewise.
12095         * misc/syslog.c: Likewise.
12096         * stdio-common/xbug.c: Likewise.
12097         * string/memchr.c: Likewise.
12098         * string/memcmp.c: Likewise.
12099         * string/memrchr.c: Likewise.
12100         * string/rawmemchr.c: Likewise.
12101         * sysdeps/posix/getcwd.c: Likewise.
12102         * time/strftime_l.c: Likewise.
12103
12104 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12105
12106         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12107         * config.make.in (config-cflags-sse2avx): Define.
12108         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12109         Fix typo.
12110
12111 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12112
12113         * scripts/config.guess: Update from upstream config git repository.
12114         * scripts/config.sub: Likewise.
12115
12116 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12117
12118         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12119         (EM_NUM): Update.
12120         (R_TILEPRO_*, R_TILEGX_*): New macros.
12121
12122         * scripts/firstversions.awk: Fix bug in version range handling.
12123
12124         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12125
12126         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12127
12128         * include/sys/epoll.h: New file.
12129         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12130         libc_hidden_def.
12131
12132 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12133
12134         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12135         Avoid unnecessary __WORDSIZE == 64 test.
12136         (fmaxf): Use VEX format if possible.
12137         (fmax): Likewise.
12138         (fminf): Likewise.
12139         (fmin): Likewise.
12140
12141         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12142         * math/math_private.h: Remove libc_fegetround* and
12143         libc_fesetround*.
12144         * sysdeps/i386/configure.in: Check for -msse2avx.
12145         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12146         also if SSE2AVX is defined.
12147         Remove libc_fegetround* and libc_fesetround*.
12148         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12149         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12150         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12151         of HAS_YMM_USABLE.
12152         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12153         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12154         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12155         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12156         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12157
12158         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12159
12160 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12161
12162         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12163         size is not set.
12164         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12165
12166 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12167
12168         [BZ #13618]
12169         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12170         relocation.
12171         * Makeconfig (libm): Define.
12172         * elf/Makefile: Add rules to build and run tst-relsort1.
12173         * elf/tst-relsort1.c: New file.
12174         * elf/tst-relsort1mod1.c: New file.
12175         * elf/tst-relsort1mod2.c: New file.
12176
12177 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12178
12179         * math/s_ldexp.c: Remove __STDC__ conditionals.
12180         * math/s_ldexpf.c: Likewise.
12181         * math/s_ldexpl.c: Likewise.
12182         * math/s_nextafter.c: Likewise.
12183         * math/s_nexttowardf.c: Likewise.
12184         * math/s_significand.c: Likewise.
12185         * math/s_significandf.c: Likewise.
12186         * math/s_significandl.c: Likewise.
12187         * math/w_jnl.c: Likewise.
12188         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12189         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12190         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12191         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12192         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12193         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12194         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12195         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12196         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12197         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12198         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12199         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12200         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12201         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12202         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12203         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12204         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12205         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12206         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12207         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12208         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12209         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12210         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12211         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12212         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12213         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12214         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12215         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12216         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12217         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12218         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12219         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12220         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12221         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12222         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12223         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12224         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12225         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12226         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12227         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12228         * sysdeps/ieee754/k_standard.c: Likewise.
12229         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12230         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12231         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12232         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12233         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12234         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12236         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12237         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12238         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12241         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12242         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12243         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12244         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12245         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12246         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12247         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12248         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12249         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12250         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12251         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12252         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12253         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12255         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12256         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12257         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12258         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12259         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12260         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12261         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12262         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12263         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12265         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12266         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12269         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12270         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12271         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12272         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12273         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12274         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12275         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12276         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12277         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12278         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12281         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12282         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12283         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12284         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12285         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12286         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12287         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12288         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12289         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12290         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12291         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12292         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12293         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12294         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12295         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12296         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12297         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12298         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12299         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12300         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12301         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12302         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12303         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12304         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12305         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12306         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12307         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12308         * sysdeps/ieee754/s_matherr.c: Likewise.
12309         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12310         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12311         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12312         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12313
12314 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12315
12316         * crypt/md5.h: Remove __STDC__ conditionals.
12317         * libio/libioP.h: Likewise.
12318         * locale/programs/config.h: Likewise.
12319         * sysdeps/generic/sysdep.h: Likewise.
12320         * sysdeps/i386/asm-syntax.h: Likewise.
12321         * sysdeps/s390/asm-syntax.h: Likewise.
12322         * sysdeps/unix/sysdep.h: Likewise.
12323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12325
12326 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12327
12328         * libio/libio.h: Remove __STDC__ conditionals.
12329         * malloc/obstack.h: Likewise.
12330         * math/complex.h: Likewise.
12331         * math/math.h: Likewise.
12332         * sysdeps/generic/_G_config.h: Likewise.
12333         * sysdeps/gnu/_G_config.h: Likewise.
12334         * sysdeps/mach/hurd/_G_config.h: Likewise.
12335         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12336         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12337         * sysdeps/sparc/bits/mathdef.h: Likewise.
12338
12339 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12340
12341         [BZ #13583]
12342         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12343         Clean up HAS_* macros.
12344         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12345         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12346         possible.
12347         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12348         HAS_AVX.
12349         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12350         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12351         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12352         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12353         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12354
12355 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12356
12357         * elf/tst-unique3.cc (gets): Remove declaration.
12358         * elf/tst-unique3lib.cc (gets): Likewise.
12359         * elf/tst-unique3lib2.cc (gets): Likewise.
12360         * elf/tst-unique4.cc (gets): Likewise.
12361
12362 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12363
12364         * include/stdio.h: Add C++ protection.  Add gets declarations and
12365         definitions.
12366         * debug/tst-chk1.c: Don't declare gets here.
12367         * stdio-common/tst-gets.c: Likewise.
12368
12369 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12370
12371         * posix/glob: Remove directory.
12372
12373 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12374
12375         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12376
12377 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12378
12379         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12380         of the non-standard EPFNOSUPPORT.
12381
12382 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12383
12384         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12385         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12386         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12387
12388 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12389
12390         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12391
12392 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12393
12394         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12395         transient errors.
12396         * nscd/grpcache.c (cache_addgr): Likewise.
12397         * nscd/hstcache.c (cache_addhst): Likewise.
12398         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12399         * nscd/pwdcache.c (cache_addpw): Likewise.
12400         * nscd/servicescache.c (cache_addserv): Likewise.
12401
12402 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12403
12404         * malloc/malloc.c: Various cleanups.
12405         * malloc/hooks.c: Likewise.
12406
12407         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12408         * stdlib/bug-fmtmsg1.c: New file.
12409
12410         * stdlib/fmtmsg.c (init): Add missing unlock.
12411         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12412
12413 2012-01-12  Marek Polacek  <polacek@redhat.com>
12414
12415         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12416         and _GNU_SOURCE.
12417
12418 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12419
12420         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12421         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12422         macro to ensure uniqueness of label name.
12423         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12424         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12425
12426 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12427
12428         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12429
12430         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12431         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12432         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12433         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12434
12435 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12436
12437         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12438
12439         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12440         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12441         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12442
12443         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12444
12445         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12446         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12447         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12448         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12449
12450         * math/bits/math-finite.h: Add ldexp support.
12451
12452 2012-01-10  Marek Polacek  <polacek@redhat.com>
12453
12454         * locale/programs/localedef.h (show_archive_content): Add noreturn
12455         attribute.
12456
12457 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12458
12459         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12460
12461 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12462
12463         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12464
12465         * io/Makefile (headers): Add bits/poll2.h.
12466
12467 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12468
12469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12470         typo #include statement.
12471
12472 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12473
12474         * include/sys/cdefs.h: Define __attribute_alloc_size.
12475         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12476         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12477         * elf/pldd.c: Likewise.
12478         * iconv/iconv_charmap.c: Likewise.
12479         * iconv/iconvconfig.c: Likewise.
12480         * iconv/strtab.c: Likewise.
12481         * locale/programs/locale.c: Likewise.
12482         * locale/programs/localedef.h: Likewise.
12483         * locale/programs/simple-hash.c: Likewise.
12484         * nscd/nscd.h: Likewise.
12485         * nss/makedb.c: Likewise.
12486         * sysdeps/generic/ldconfig.h: Likewise.
12487         * locale/programs/localedef.c: Remove xmalloc prototype.
12488         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12489
12490 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12491
12492         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12493         appropriate.
12494
12495 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12496
12497         * math/Makefile (tests): Add tst-CMPLX.
12498         * math/tst-CMPLX.c: New file.
12499
12500         * math/complex.h (CMPLXL): Fix typo.
12501
12502         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12503         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12504         GLIBC_2.16.
12505         * debug/tst-chk1.c: Add poll and ppoll tests.
12506         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12507         * include/sys/poll.h: Add hidden proto for ppoll.
12508         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12509         * sysdeps/mach/hurd/ppoll.c: Likewise.
12510         * io/ppoll.c: Likewise.
12511         * debug/poll_chk.c: New file.
12512         * debug/ppoll_chk.c: New file.
12513         * include/bits/poll2.h: New file.
12514         * io/bits/poll2.h: New file.
12515
12516         [BZ #1350]
12517         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12518
12519         * configure.in: static is always set to yes.  Remove.
12520         * config.make.in: Don't set build-static.
12521         * Makeconfig: Remove use of build-static.
12522         * dlfcn/Makefile: Likewise.
12523         * elf/Makefile: Likewise.
12524         * math/Makefile: Likewise.
12525         * misc/Makefile: Likewise.
12526         * nptl/Makefile: Likewise.
12527         * sysdeps/mach/hurd/Makefile: Likewise.
12528
12529         * configure.in: PWD_P is not used anymore.
12530         * config.make.in: Remove PWD_P entry.
12531
12532         * configure.in: Remove last remnants of RANLIB.
12533         No need to check for signed size_t anymore.
12534         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12535         and IA-64.
12536         Remove __builtin_expect test because we require at least gcc 3.4.
12537         * aclocal.m4: Likewise.
12538
12539         * wcsmbs/mbrtoc16.c: Implement using towc function.
12540         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12541         * wcsmbs/wcsmbsload.c: Likewise.
12542         * iconv/gconv_simple.c: Likewise.
12543         * iconv/gconv_int.h: Likewise.
12544         * iconv/gconv_builtin.h: Likewise.
12545         * iconv/iconv_prog.c: Remove CHAR16 handling.
12546
12547         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12548
12549         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12550
12551         * configure.in: Remove --with-elf and --enable-bounded options.
12552         Dont set base_machine for ia64.  More non-ELF conditions removed.
12553         Remove testing and setting of leading underscore information.
12554         * config.make.in (build-bounded): Set to no.
12555         * config.h.in: Remove NO_UNDERSCORES entry.
12556         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12557         them.
12558         * csu/start.c: Remove !NO_UNDERSCORE code.
12559         * locale/localeinfo.h: Likewise.
12560         * sysdeps/generic/machine-gmon.h: Likewise.
12561         * sysdeps/generic/sysdep.h: Likewise.
12562         * sysdeps/i386/sysdep.h: Likewise.
12563         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12564         * sysdeps/mach/sysdep.h: Likewise.
12565         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12566         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12567         * sysdeps/sh/sysdep.h: Likewise.
12568         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12569         * sysdeps/unix/i386/sysdep.S: Likewise.
12570         * sysdeps/unix/sparc/start.c: Likewise.
12571         * sysdeps/unix/sparc/sysdep.S: Likewise.
12572         * sysdeps/unix/sparc/sysdep.h: Likewise.
12573         * sysdeps/unix/start.c: Likewise.
12574         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12575         * sysdeps/x86_64/sysdep.h: Likewise.
12576
12577 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12578
12579         [BZ #13553]
12580         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12581         for non-gcc.
12582         * argp/argp-fmtstream.h: Use const instead __const.
12583         * argp/argp.h: Likewise.
12584         * assert/assert.h: Likewise.
12585         * bits/fenv.h: Likewise.
12586         * bits/sched.h: Likewise.
12587         * bits/sigset.h: Likewise.
12588         * bits/sigthread.h: Likewise.
12589         * catgets/nl_types.h: Likewise.
12590         * conform/data/pthread.h-data: Likewise.
12591         * crypt/crypt-private.h: Likewise.
12592         * crypt/crypt.h: Likewise.
12593         * crypt/crypt_util.c: Likewise.
12594         * ctype/ctype.h: Likewise.
12595         * debug/execinfo.h: Likewise.
12596         * debug/mbsnrtowcs_chk.c: Likewise.
12597         * debug/mbsrtowcs_chk.c: Likewise.
12598         * debug/wcsnrtombs_chk.c: Likewise.
12599         * debug/wcsrtombs_chk.c: Likewise.
12600         * debug/wcstombs_chk.c: Likewise.
12601         * dirent/dirent.h: Likewise.
12602         * dlfcn/dlfcn.h: Likewise.
12603         * elf/neededtest4.c: Likewise.
12604         * grp/grp.h: Likewise.
12605         * gshadow/gshadow.h: Likewise.
12606         * iconv/gconv.h: Likewise.
12607         * iconv/gconv_int.h: Likewise.
12608         * iconv/gconv_simple.c: Likewise.
12609         * iconv/iconv.h: Likewise.
12610         * iconv/loop.c: Likewise.
12611         * iconv/skeleton.c: Likewise.
12612         * include/aio.h: Likewise.
12613         * include/aliases.h: Likewise.
12614         * include/argz.h: Likewise.
12615         * include/arpa/inet.h: Likewise.
12616         * include/assert.h: Likewise.
12617         * include/dirent.h: Likewise.
12618         * include/dlfcn.h: Likewise.
12619         * include/execinfo.h: Likewise.
12620         * include/fcntl.h: Likewise.
12621         * include/fenv.h: Likewise.
12622         * include/glob.h: Likewise.
12623         * include/grp.h: Likewise.
12624         * include/libintl.h: Likewise.
12625         * include/mntent.h: Likewise.
12626         * include/netdb.h: Likewise.
12627         * include/pwd.h: Likewise.
12628         * include/rpc/netdb.h: Likewise.
12629         * include/sched.h: Likewise.
12630         * include/search.h: Likewise.
12631         * include/shadow.h: Likewise.
12632         * include/signal.h: Likewise.
12633         * include/stdio.h: Likewise.
12634         * include/stdlib.h: Likewise.
12635         * include/string.h: Likewise.
12636         * include/sys/socket.h: Likewise.
12637         * include/sys/stat.h: Likewise.
12638         * include/sys/statfs.h: Likewise.
12639         * include/sys/statvfs.h: Likewise.
12640         * include/sys/syslog.h: Likewise.
12641         * include/sys/time.h: Likewise.
12642         * include/sys/uio.h: Likewise.
12643         * include/time.h: Likewise.
12644         * include/unistd.h: Likewise.
12645         * include/utmp.h: Likewise.
12646         * include/wchar.h: Likewise.
12647         * include/wctype.h: Likewise.
12648         * inet/aliases.h: Likewise.
12649         * inet/arpa/inet.h: Likewise.
12650         * inet/netinet/ether.h: Likewise.
12651         * inet/netinet/in.h: Likewise.
12652         * intl/libintl.h: Likewise.
12653         * io/bits/fcntl2.h: Likewise.
12654         * io/fcntl.h: Likewise.
12655         * io/ftw.h: Likewise.
12656         * io/sys/poll.h: Likewise.
12657         * io/sys/stat.h: Likewise.
12658         * io/sys/statfs.h: Likewise.
12659         * io/sys/statvfs.h: Likewise.
12660         * io/utime.h: Likewise.
12661         * libio/bits/stdio.h: Likewise.
12662         * libio/bits/stdio2.h: Likewise.
12663         * libio/libio.h: Likewise.
12664         * libio/libioP.h: Likewise.
12665         * libio/stdio.h: Likewise.
12666         * locale/lc-ctype.c: Likewise.
12667         * locale/locale.h: Likewise.
12668         * login/utmp.h: Likewise.
12669         * malloc/arena.c: Likewise.
12670         * malloc/malloc.c: Likewise.
12671         * malloc/malloc.h: Likewise.
12672         * malloc/mcheck.c: Likewise.
12673         * malloc/mtrace.c: Likewise.
12674         * math/bits/mathcalls.h: Likewise.
12675         * math/fenv.h: Likewise.
12676         * math/math_private.h: Likewise.
12677         * misc/bits/error.h: Likewise.
12678         * misc/bits/syslog.h: Likewise.
12679         * misc/err.h: Likewise.
12680         * misc/error.h: Likewise.
12681         * misc/fstab.h: Likewise.
12682         * misc/mntent.h: Likewise.
12683         * misc/regexp.h: Likewise.
12684         * misc/search.h: Likewise.
12685         * misc/sgtty.h: Likewise.
12686         * misc/sys/mman.h: Likewise.
12687         * misc/sys/syslog.h: Likewise.
12688         * misc/sys/uio.h: Likewise.
12689         * misc/sys/xattr.h: Likewise.
12690         * misc/ttyent.h: Likewise.
12691         * nis/rpcsvc/ypclnt.h: Likewise.
12692         * nss/nss.h: Likewise.
12693         * posix/bits/unistd.h: Likewise.
12694         * posix/fnmatch.h: Likewise.
12695         * posix/glob.h: Likewise.
12696         * posix/sched.h: Likewise.
12697         * posix/spawn.h: Likewise.
12698         * posix/sys/wait.h: Likewise.
12699         * posix/unistd.h: Likewise.
12700         * posix/wordexp.h: Likewise.
12701         * pwd/pwd.h: Likewise.
12702         * resolv/netdb.h: Likewise.
12703         * resource/sys/resource.h: Likewise.
12704         * rt/aio.h: Likewise.
12705         * rt/bits/mqueue2.h: Likewise.
12706         * rt/mqueue.h: Likewise.
12707         * shadow/shadow.h: Likewise.
12708         * signal/signal.h: Likewise.
12709         * socket/send.c: Likewise.
12710         * socket/sendto.c: Likewise.
12711         * socket/sys/socket.h: Likewise.
12712         * stdio-common/printf.h: Likewise.
12713         * stdlib/bits/stdlib.h: Likewise.
12714         * stdlib/fmtmsg.h: Likewise.
12715         * stdlib/monetary.h: Likewise.
12716         * stdlib/stdlib.h: Likewise.
12717         * stdlib/ucontext.h: Likewise.
12718         * streams/stropts.h: Likewise.
12719         * string/argz.h: Likewise.
12720         * string/bits/string2.h: Likewise.
12721         * string/string.h: Likewise.
12722         * string/strings.h: Likewise.
12723         * sunrpc/rpc/auth.h: Likewise.
12724         * sunrpc/rpc/auth_des.h: Likewise.
12725         * sunrpc/rpc/clnt.h: Likewise.
12726         * sunrpc/rpc/netdb.h: Likewise.
12727         * sunrpc/rpc/pmap_clnt.h: Likewise.
12728         * sunrpc/rpc/xdr.h: Likewise.
12729         * sysdeps/generic/inttypes.h: Likewise.
12730         * sysdeps/generic/net/if.h: Likewise.
12731         * sysdeps/generic/sys/swap.h: Likewise.
12732         * sysdeps/gnu/net/if.h: Likewise.
12733         * sysdeps/gnu/utmpx.h: Likewise.
12734         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12735         * sysdeps/i386/i486/bits/string.h: Likewise.
12736         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12737         * sysdeps/s390/bits/string.h: Likewise.
12738         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12739         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12740         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12741         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12742         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12743         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12744         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12745         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12746         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12747         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12748         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12749         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12750         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12751         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12752         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12753         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12754         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12755         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12756         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12757         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12758         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12759         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12760         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12761         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12762         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12763         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12764         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12765         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12766         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12767         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12768         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12769         * sysvipc/sys/ipc.h: Likewise.
12770         * sysvipc/sys/msg.h: Likewise.
12771         * sysvipc/sys/sem.h: Likewise.
12772         * sysvipc/sys/shm.h: Likewise.
12773         * termios/termios.h: Likewise.
12774         * time/sys/time.h: Likewise.
12775         * time/time.h: Likewise.
12776         * wcsmbs/bits/wchar2.h: Likewise.
12777         * wcsmbs/uchar.h: Likewise.
12778         * wcsmbs/wchar.h: Likewise.
12779         * wctype/wctype.h: Likewise.
12780
12781         [BZ #13551]
12782         * Makeconfig: Remove all but ELF support including AIX support.
12783         * Makerules: Likewise.
12784         * config.h.in: Likewise.
12785         * config.make.in: Likewise.
12786         * configure: Likewise.
12787         * configure.in: Likewise.
12788         * csu/Makefile: Likewise.
12789         * csu/version.c: Likewise.
12790         * debug/Makefile: Likewise.
12791         * dlfcn/Makefile: Likewise.
12792         * elf/Makefile: Likewise.
12793         * extra-lib.mk: Likewise.
12794         * iconv/Makefile: Likewise.
12795         * include/libc-symbols.h: Likewise.
12796         * include/shlib-compat.h: Likewise.
12797         * resolv/Makefile: Likewise.
12798         * resolv/res_libc.c: Likewise.
12799         * rt/Makefile: Likewise.
12800         * sysdeps/i386/asm-syntax.h: Likewise.
12801         * sysdeps/i386/sysdep.h: Likewise.
12802         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12803         * sysdeps/mach/sysdep.h: Likewise.
12804         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12805         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12806         * sysdeps/s390/asm-syntax.h: Likewise.
12807         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12808         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12809         * sysdeps/sh/sysdep.h: Likewise.
12810         * sysdeps/unix/sparc/sysdep.h: Likewise.
12811         * sysdeps/wordsize-32/divdi3.c: Likewise.
12812         * sysdeps/x86_64/sysdep.h: Likewise.
12813
12814         * argp/Versions: Remove _argp_unlock_xxx.
12815
12816         [BZ #13559]
12817         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12818         * abilist/libBrokenLocale.abilist: Likewise.
12819         * abilist/libanl.abilist: Likewise.
12820         * abilist/libc.abilist: Likewise.
12821         * abilist/libcrypt.abilist: Likewise.
12822         * abilist/libdl.abilist: Likewise.
12823         * abilist/libm.abilist: Likewise.
12824         * abilist/libnsl.abilist: Likewise.
12825         * abilist/libpthread.abilist: Likewise.
12826         * abilist/libresolv.abilist: Likewise.
12827         * abilist/librt.abilist: Likewise.
12828         * abilist/libthread_db.abilist: Likewise.
12829         * abilist/libutil.abilist: Likewise.
12830         * abilist/libnss_db.abilist: New file.
12831
12832         * scripts/abilist.awk: Add support for indirect functions.
12833
12834         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12835
12836         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12837
12838         * shlib-versions: Remove entries for ports architectures.
12839
12840         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12841         files in ports.
12842         * elf/stackguard-macros.h: Remove support for IA-64.
12843         * elf/tst-auditmod1.c: Likewise.
12844         * sysdeps/generic/ldsodefs.h: Likewise.
12845
12846         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12847         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12848         configure files.
12849
12850         [BZ #13552]
12851         * configure.in: Remove --enable-omitfp support.
12852         * FAQ.in: Adjust.
12853         * config.make.in: Likewise.
12854         * Makeconfig: Likewise.
12855         * manual/install.texi: Likewise.
12856
12857         In case anyone cares, the IA-64 architecture could move to ports.
12858         * sysdeps/ia64/*: Removed.
12859         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12860         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12861
12862         [BZ #13555]
12863         * configure.in: Remove entries for unsupported architectures.
12864
12865         [BZ #13533]
12866         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12867         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12868         routines.
12869         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12870         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12871         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12872         fall back to using wcrtomb.
12873         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12874         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12875         renaming.
12876         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12877         * wcsmbs/tst-c16c32-1.c: New file.
12878
12879         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12880         local variable.
12881
12882         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12883
12884         * elf/tst-unique3.cc: Add explicit declaration of gets.
12885         * elf/tst-unique3lib.cc: Likewise.
12886         * elf/tst-unique3lib2.cc: Likewise.
12887         * elf/tst-unique4.cc: Likewise.
12888
12889         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12890
12891 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12892
12893         [BZ #13566]
12894         * assert/assert.h (static_assert): Don't define for C++.
12895         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12896         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12897
12898 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12899
12900         * iconv/loop.c (single loop): Fix assertion in storing of
12901         remaining bytes.
12902
12903         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12904
12905 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12906
12907         * posix/getconf.c: Update copyright year.
12908         * nss/getent.c: Likewise.
12909         * nss/makedb.c: Likewise.
12910         * iconv/iconvconfig.c: Likewise.
12911         * iconv/iconv_prog.c: Likewise.
12912         * elf/ldconfig.c: Likewise.
12913         * elf/pldd.c: Likewise.
12914         * elf/sotruss.ksh: Likewise.
12915         * catgets/gencat.c: Likewise.
12916         * csu/version.c: Likewise.
12917         * elf/ldd.bash.in: Likewise.
12918         * elf/sprof.c (print_version): Likewise.
12919         * locale/programs/locale.c: Likewise.
12920         * locale/programs/localedef.c: Likewise.
12921         * login/programs/pt_chown.c: Likewise.
12922         * nscd/nscd.c (print_version): Likewise.
12923         * debug/xtrace.sh: Likewise.
12924         * malloc/memusage.sh: Likewise.
12925         * malloc/mtrace.pl: Likewise.
12926         * debug/catchsegv.sh: Likewise.
12927
12928 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12929
12930         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12931         pure attribute.
12932
12933 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12934
12935         [BZ #13533]
12936         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12937         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12938         transformations.
12939         * iconv/gconv_int.h: Likewise.
12940         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12941         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12942         from libc for GLIBC_2.16.
12943         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12944         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12945         * wcsmbs/uchar.h: Really define mbstate_t.
12946         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12947         * wcsmbs/c16rtomb.c: New file.
12948         * wcsmbs/mbrtoc16.c: New file.
12949         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12950         for C/POSIX locale.
12951         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12952         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12953
12954         * wcsmbs/wchar.h: Add missing __restrict.
12955
12956 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12957
12958         [BZ #13532]
12959         * time/Makefile (routines): Add timespec_get.
12960         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12961         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12962         timespec for ISO C11.
12963         * time/timespec_get.c: New file.
12964         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12965         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12966
12967         [BZ #13531]
12968         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12969         * stdlib/stdlib.h: Declare aligned_alloc.
12970         * Versions.def: Add GLIBC_2.16 for libc.
12971         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12972
12973         [BZ 13527]
12974         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12975         ISO C11.
12976
12977         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12978         code.
12979
12980         [BZ #13528]
12981         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12982
12983         [BZ #13529]
12984         * assert/assert.h (static_assert): Define.
12985
12986         * version.h: Update for 2.16 development version.
12987
12988         [BZ #13526]
12989         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12990         _ISOC11_SOURCE.
12991
12992         * version.h (RELEASE): Bump for 2.15 release.
12993         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12994
12995         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12996         Patch by Marek Polacek <mpolacek@redhat.com>.
12997
12998         * bits/byteswap.h: Protect long long constants with __extension__.
12999         * sysdeps/i386/bits/byteswap.h: Likewise.
13000         * sysdeps/ia64/bits/byteswap.h: Likewise.
13001         * sysdeps/s390/bits/byteswap.h: Likewise.
13002         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13003
13004 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13005
13006         [BZ #13540]
13007         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13008         destination buffer.
13009         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13010
13011 2011-12-23  Marek Polacek  <polacek@redhat.com>
13012
13013         * elf/dl-addr.c (determine_info): Add inline keyword.
13014         * elf/tst-auditmod4b.c (check_avx): Likewise.
13015         * elf/tst-auditmod6b.c (check_avx): Likewise.
13016         * elf/tst-auditmod6c.c (check_avx): Likewise.
13017         * elf/tst-auditmod7b.c (check_avx): Likewise.
13018
13019 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13020
13021         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13022         !__SSE_MATH__.
13023
13024 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13025
13026         [BZ #13540]
13027         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13028         processing for last bytes.
13029
13030 2011-08-06  Bruno Haible  <bruno@clisp.org>
13031
13032         [BZ #13061]
13033         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13034         U+0385, not to U+1FEE.
13035
13036         [BZ #13062]
13037         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13038         entry for U+00A5 U+0301.
13039
13040 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13041
13042         [BZ #13166]
13043         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13044         buffer for the output is too small.
13045
13046         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13047         optimization.
13048
13049         [BZ #13185]
13050         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13051         SSE flags if possible.
13052
13053 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13054
13055         [BZ #13540]
13056         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13057         processing for last bytes.
13058
13059 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13060
13061         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13062         (syscall-list-default-options, syscall-list-default-condition)
13063         (syscall-list-includes): Define.
13064         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13065         list of ABIs and options and #if conditions for each ABI.  Do not
13066         handle common syscalls between ABIs specially.
13067         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13068         Remove.
13069         (syscall-list-variants, syscall-list-32bit-options)
13070         (syscall-list-32bit-condition, syscall-list-64bit-options)
13071         (syscall-list-64bit-condition): Define.
13072         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13073         (syscall-list-variants, syscall-list-32bit-options)
13074         (syscall-list-32bit-condition, syscall-list-64bit-options)
13075         (syscall-list-64bit-condition): Define.
13076         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13077         Remove.
13078         (syscall-list-variants, syscall-list-32bit-options)
13079         (syscall-list-32bit-condition, syscall-list-64bit-options)
13080         (syscall-list-64bit-condition): Define.
13081         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13082         Remove.
13083         (syscall-list-variants, syscall-list-32bit-options)
13084         (syscall-list-32bit-condition, syscall-list-64bit-options)
13085         (syscall-list-64bit-condition): Define.
13086
13087 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13088
13089         * locale/iso-639.def: Add brx entry.
13090
13091         [BZ #13328]
13092         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13093         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13094
13095         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13096         __feraiseexcept_renamed.
13097
13098 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13099
13100         [BZ #13538]
13101         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13102         EPOLLET with unsigned values.
13103         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13104         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13105
13106         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13107         to large cancellation.
13108         * math/s_cacoshf.c: Likewise.
13109         * math/s_cacoshl.c: Likewise.
13110
13111 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13112
13113         [BZ #13305]
13114         [BZ #12786]
13115         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13116         * math/s_cacoshf.c: Likewise.
13117         * math/s_cacoshl.c: Likewise.
13118
13119 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13120
13121         [BZ #13439]
13122         * iconv/gconv.h: Define __GCONV_SWAP.
13123         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13124         * iconvdata/utf-16.c: Likewise.
13125         * iconvdata/utf-32.c: Likewise.
13126
13127 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13128
13129         [BZ #13524]
13130         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13131         numerator after shifting it by one limb.
13132
13133 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13134
13135         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13136         under [__USE_EXTERN_INLINES].
13137
13138 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13139
13140         [BZ #13446]
13141         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13142
13143 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13144
13145         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13146         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13147         optimized code.
13148         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13149         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13150         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13151         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13152         for strncasecmp/strncasecmp_l compilation.
13153         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13154         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13155
13156 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13157
13158         [BZ #13484]
13159         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13160         of __asm__.
13161
13162 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13163
13164         [BZ #13506]
13165         * time/tzfile.c (__tzfile_read): Check values from file header.
13166
13167 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13168
13169         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13170         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13171         * powerpc/powerpc32/dl-start.S: Likewise.
13172         * powerpc/powerpc32/elf/start.S: Likewise.
13173         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13174         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13175         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13176         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13177         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13178         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13179         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13180         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13181         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13182         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13183         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13184         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13185         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13186         * powerpc/powerpc32/memset.S: Likewise.
13187         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13188         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13189         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13190         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13191         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13192         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13193         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13194         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13195         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13196         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13197         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13198         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13199         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13200
13201 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13202
13203         * math/libm-test.inc: Added more nearbyint tests.
13204         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13205         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13206         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13207         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13208
13209 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13210
13211         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13212         FD_CLOEXEC.
13213
13214 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13215
13216         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13217         Add wcscpy-ssse3 wcscpy-c.
13218         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13219         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13220         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13221         * sysdeps/x86_64/wcschr.S: New file.
13222         * sysdeps/x86_64/wcsrchr.S: New file.
13223         * string/test-strcmp.c: Remove checking of wcscmp function for
13224         wrong alignments.
13225         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13226         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13227         wcsrchr-sse2 wcsrchr-c.
13228         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13229         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13230         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13231         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13232         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13233         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13234         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13235         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13236         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13237         * wcsmbc/wcschr.c (WCSCHR): New macro.
13238
13239 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13240
13241         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13242         * wcsmbs/test-wcsrchr.c: New file.
13243         * string/test-strrchr.c: Add wcsrchr support.
13244         (WIDE): New macro.
13245         * wcsmbs/test-wcscpy.c: New file.
13246         * string/test-strcpy.c: Add wcscpy support.
13247         (WIDE): New macro.
13248
13249 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13250
13251         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13252         the inner loop.
13253
13254 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13255
13256         [BZ #13472]
13257         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13258
13259 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13260
13261         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13262         Minor optimizations.
13263
13264         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13265         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13266         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13267
13268 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13269
13270         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13271         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13272         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13273         for gcc to avoid warnings.
13274         * inet/Makefile (tests): Add tst-checks.
13275         * inet/tst-checks.c: New file.
13276
13277         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13278         warning.
13279
13280         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13281         __wmemcmp_sse2.
13282
13283         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13284         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13285
13286         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13287
13288 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13289
13290         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13291         problem.
13292
13293         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13294
13295 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13296
13297         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13298         conditional on GCC version.
13299         (__arch_compare_and_exchange_val_8_acq)
13300         (__arch_compare_and_exchange_val_16_acq)
13301         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13302         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13303         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13304
13305 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13306
13307         * sysdeps/sh/backtrace.c: New file.
13308
13309 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13310
13311         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13312         parenthesis.
13313
13314 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13315
13316         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13317         falling back to utime.
13318
13319 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13320
13321         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13322         expectations for float.
13323
13324 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13325
13326         * locale/weight.h (findidx): Add parameter len.
13327         * locale/weightwc.h (findidx): Likewise.
13328         * posix/fnmatch_loop.c (FCT): Adjust caller.
13329         * posix/regcomp.c (build_equiv_class): Likewise.
13330         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13331         * posix/regexec.c (check_node_accept_bytes): Likewise.
13332         * string/strcoll_l.c (STRCOLL): Likewise.
13333         * string/strxfrm_l.c (STRXFRM): Likewise.
13334
13335 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13336
13337         * Makefile.in: Remove CVSOPT handling.
13338         * configure.in: Remove use of AC_REVISION.
13339         * iconvdata/Makefile (distribute): No need to filter out CVS.
13340         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13341         handling.
13342
13343 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13344
13345         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13346         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13347         [USE_AS_STRNCASECMP_L]: Likewise.
13348         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13349         NO_TLS_DIRECT_SEG_REFS.
13350         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13351         Fix argument offsets for non-PIC.
13352         [USE_AS_STRNCASECMP_L]: Likewise.
13353         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13354         NO_TLS_DIRECT_SEG_REFS.
13355
13356 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13357
13358         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13359         O_CLOEXEC.
13360         * locale/loadlocale.c (_nl_load_locale): Likewise.
13361
13362 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13363
13364         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13365         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13366         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13367         (SYSCALL_GETTIME): Set errno on error.
13368
13369         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13370         count references to noai6ai_cached.
13371
13372 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13373
13374         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13375
13376         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13377         FD_CLOEXEC for /proc/self/maps.
13378
13379         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13380         FD_CLOEXEC for /proc/meminfo.
13381
13382         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13383         gai.conf.
13384
13385         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13386         FD_CLOEXEC for given file.
13387
13388         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13389
13390         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13391         FD_CLOEXEC for /etc/hosts.
13392         (_gethtent): Likewise.
13393
13394         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13395
13396         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13397         cancellation and set FD_CLOEXEC for /etc/netgroup.
13398
13399         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13400         reading /etc/publickey.
13401
13402         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13403         allow cancellation when reading /etc/group.
13404
13405         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13406         cancellation.
13407         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13408
13409         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13410         when using data file.
13411
13412         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13413
13414         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13415         (write_nis_obj): Use "c" and "e" in fopen.
13416
13417         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13418
13419         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13420
13421         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13422
13423         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13424
13425         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13426         locale.alias.
13427
13428         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13429
13430         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13431
13432         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13433
13434         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13435         file parsing and set FD_CLOEXEC.
13436
13437 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13438
13439         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13440
13441 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13442
13443         * malloc/arena.c (arena_get2): Don't call reused_arena when
13444         _int_new_arena failed.
13445
13446 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13447
13448         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13449         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13450         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13451         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13452         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13453         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13454         to compile strcasecmp and strncasecmp.
13455         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13456         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13457
13458         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13459
13460 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13461
13462         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13463         locale-defines.sym to gen-as-const-headers.
13464         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13465         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13466         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13467         to compile strcasecmp and strncasecmp.
13468         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13469         strcasecmp_l and strncasecmp_l.
13470         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13471         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13472         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13473         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13474         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13475         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13476         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13477         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13478         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13479         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13480         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13481
13482 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13483
13484         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13485         result of SYSDEP_GETTIME_CPU to retval.
13486         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13487         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13488
13489         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13490         variable.
13491
13492         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13493         mantissa words.
13494         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13495
13496         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13497         from unused variable.
13498
13499         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13500         DWARF definitions.
13501         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13502         for assembling.
13503
13504         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13505         over namespaces.
13506
13507         * sunrpc/rpc_prot.c (rejected): Fix case value.
13508
13509         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13510         unsigned long long int to avoid warnings in shift.
13511
13512         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13513         of use of trans.
13514         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13515         variable tmp.
13516
13517         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13518         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13519         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13520
13521         * nis/nis_table.c (nis_list): Use variable of correct type for
13522         result of __follow_path call.
13523
13524 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13525
13526         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13527         of math functions ceil, trunc, floor, round, and sqrt, when
13528         avaliable on the platform.
13529         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13530         name clash.
13531         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13532         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13533         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13534
13535 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13536
13537         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13538         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13539
13540 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13541
13542         * include/unistd.h: Fix __readlink return type.
13543         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13544
13545 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13546
13547         * stdlib/ucontext.h: Undo last change for makecontext.
13548
13549 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13550
13551         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13552
13553         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13554         * setjmp/setjmp.h: Mark functions as non-leaf.
13555         * setjmp/bits/setjmp2.h: Likewise.
13556         * stdlib/ucontext.h: Likewise.
13557
13558 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13559
13560         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13561         (reused_arena): Don't check arena limit.
13562         (arena_get2): Atomically check arena limit.
13563
13564 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13565
13566         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13567         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13568
13569         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13570         instructions.
13571
13572 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13573
13574         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13575         handler when locking.
13576
13577         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13578         Fix size of allocated buffer.
13579
13580 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13581
13582         [BZ #10103]
13583         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13584         declarations for long double functions.
13585         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13586
13587         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13588
13589 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13590
13591         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13592         installed.
13593
13594         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13595         is disabled.
13596
13597 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13598
13599         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13600
13601 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13602
13603         * include/alloca.h (stackinfo_alloca_round): Define.
13604         (extend_alloca): Use it.
13605         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13606         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13607         here.
13608
13609         * scripts/check-local-headers.sh: Ignore libaudit.h.
13610
13611         * nscd/Makefile (extra-objs): Make recursively expanded.
13612
13613 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13614
13615         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13616         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13617
13618         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13619         * posix/tst-rfc3484-2.c: Likewise.
13620         * posix/tst-rfc3484-3.c: Likewise.
13621
13622         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13623         process_vm_writev.
13624         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13625         process_vm_writev.
13626         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13627         process_vm_writev from libc using GLIBC_2.15 version.
13628
13629         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13630
13631 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13632
13633         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13634         stack usage.
13635
13636 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13637
13638         [BZ #13367]
13639         * nss/getent.c (initgroups_keys): Show error message in case no group
13640         names are given.
13641
13642         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13643         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13644         __bump_nl_timestamp.
13645         * nscd/connections (nscd_init): When host database is served open
13646         netlink socket and request notification about configuration changes.
13647         (main_loop_poll): Track netlink file descriptor and bump timestamp
13648         in case data becomes available.
13649         (main_loop_epoll): Likewise.
13650         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13651         (database_pers_head): Add extra_data fileds.
13652         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13653         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13654         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13655         Adjust caller.
13656         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13657         in6ai data, call __free_in6ai.
13658         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13659         Add -DHAVE_NETLINK.
13660         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13661         interface information.  Reuse previous data if netlink timestamp
13662         is not changed.
13663         (__bump_nl_timestamp): New function.
13664         (__free_in6ai): New function.
13665
13666 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13667
13668         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13669         close_not_cancel_no_status here.
13670         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13671
13672 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13673
13674         [BZ #13276]
13675         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13676         return value.
13677
13678         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13679         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13680         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13681
13682 2011-07-03  Andreas Jaeger  <aj@suse.de>
13683
13684         [BZ #10709]
13685         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13686         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13687         * math/libm-test.inc (sin_test): Add test case.
13688
13689 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13690
13691         [BZ #13337]
13692         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13693         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13694
13695         * elf/chroot_canon.c (chroot_canon): Cleanups.
13696
13697         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13698
13699         [BZ #13335]
13700         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13701         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13702
13703         * string/test-strchr.c: Make usable for strchrnul testing.
13704         * string/test-strchrnul.c: New file.
13705         * string/Makefile (strop-tests): Add strchrnul.
13706
13707         * po/it.po: Update from translation team.
13708         * po/es.po: Likewise.
13709
13710 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13711
13712         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13713         the three constants needed as parameters.  Drop the others.
13714         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13715         __m128i_strloadu_tolower.
13716         Create and initialize variable zero and use it in all the places
13717         where _mm_setzero_si128 was used.
13718
13719         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13720         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13721         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13722         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13723         anymore.
13724         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13725         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13726         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13727         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13728         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13729         __mpranred, __mptan.
13730         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13731         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13732         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13733         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13734         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13735         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13736         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13737         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13738         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13739
13740 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13741
13742         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13743         redefine if SHARED.
13744         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13745
13746         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13747         wide char related routines to wcsmbs subdir.
13748
13749 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13750
13751         [BZ #13344]
13752         * misc/sys/cdefs.h (__THROWNL): Define.
13753         * posix/unistd.h: Use __THREADNL instead of __THREAD
13754         for memory synchronization functions.
13755
13756 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13757
13758         [BZ #13349]
13759         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13760         doesn't exist.
13761         * manual/stdio.texi (Obstack Streams): Node removed.
13762
13763 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13764
13765         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13766         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13767         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13768
13769         * math/math_private.h (math_force_eval): Allow non-addressable
13770         arguments.
13771         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13772
13773 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13774
13775         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13776         file is not needed.
13777
13778         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13779         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13780         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13781         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13782         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13783         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13784         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13785         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13786         Add AVX variants.
13787         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13788         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13789         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13790         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13791         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13792         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13793         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13794         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13795         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13796         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13797         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13798         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13799         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13800         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13801         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13802         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13803         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13804         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13805         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13806
13807         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13808         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13809
13810         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13811         place.  Use VEX encoding when compiling for AVX.
13812
13813 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13814
13815         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13816         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13817
13818         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13819
13820 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13821
13822         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13823         useless if() expression.
13824         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13825         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13826         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13827         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13828         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13829         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13830         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13831         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13832         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13833         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13834         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13835         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13836         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13837         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13838         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13839         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13840         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13841         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13842         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13843
13844         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13845
13846 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13847
13848         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13849         condition.
13850         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13851
13852 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13853
13854         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13855         .text section.  Avoid duplicate constants.
13856         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13857         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13858         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13859         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13860         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13861         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13862         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13863         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13864         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13865         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13866         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13867         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13868         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13869         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13870         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13871         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13872         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13873         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13874         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13875         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13876         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13877         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13878         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13879         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13880         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13881         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13882         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13883         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13884         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13885         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13886         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13887         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13888         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13889         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13890         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13891         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13892         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13893         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13894         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13895         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13896         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13897         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13898         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13899         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13900         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13901
13902 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13903
13904         * sysdeps/x86_64/dla.h: Move to ...
13905         * sysdeps/x86_64/fpu/dla.h: ...here.
13906         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13907         situations.  Use __builtin_fma only for gcc 4.6 and up.
13908
13909         * config.make.in: Add have-mfma4 entry.
13910         * configure.in: Substitute libc_cv_cc_fma4.
13911         * math/Makefile (dbl-only-routines): Add sincostab.
13912         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13913         Use __sincostab not sincos.
13914         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13915         name is a macro.
13916         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13917         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13918         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13919         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13920         using __copysign.
13921         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13922         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13923         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13924         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13925         and __inv.
13926         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13927         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13928         __copysign.
13929         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13930         define aliases when function name is a macro.
13931         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13932         sysdeps/ieee754/dbl-64/sincos.tbl.
13933         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13934         fma4-enabled routines.
13935         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13936         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13937         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13938         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13939         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13940         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13941         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13942         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13943         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13944         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13945         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13946         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13947         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13948         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13949         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13950         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13951         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13952         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13953         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13954         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13955         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13956         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13957         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13958         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13959         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13960         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13961         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13962         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13963         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13964         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13965
13966         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13967         rename.
13968         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13969         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13970         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13971         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13972         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13973         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13974         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13975         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13976
13977 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13978
13979         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13980
13981 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13982
13983         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13984
13985         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13986         prediction.
13987         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13988
13989         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13990         Remove unused variable magic_bits.
13991         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13992
13993         * string/strnlen.c: Define and use STRNLEN macro.
13994         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13995         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13996         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13997         * wcsmbs/wcslen.c: Define and use WCSLEN.
13998         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13999         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14000         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14001         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14002         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14003         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14004         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14005
14006 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14007
14008         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14009         strnlen-sse2-no-bsf.
14010         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14011         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14012         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14013         Add strnlen support.
14014         (USE_AS_STRNLEN): New macro.
14015         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14016         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14017         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14018         * sysdeps/x86_64/wcslen.S: New file.
14019
14020 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14021
14022         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14023         XMM-moves are used for copying on small sizes.
14024
14025 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14026
14027         * wcsmbs/Makefile (strop-tests): Add wcschr.
14028         * wcsmbs/test-wcschr.c: New file.
14029         * string/test-strchr.c: Update.
14030         Add wcschr support.
14031         (WIDE): New macro.
14032
14033 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14034
14035         * wcsmbs/Makefile (strop-tests): Add wcslen.
14036         * wcsmbs/test-wcslen.c: New file.
14037         * string/test-strlen.c: Update.
14038         Add wcslen support.
14039         (WIDE): New macro.
14040
14041 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14042
14043         * po/it.po: Update from translation team.
14044
14045 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14046
14047         * sysdeps/x86_64/wcscmp.S: Update.
14048         Fix wrong comparison semantics.
14049         wcscmp shall use signed comparison not unsigned.
14050         Don't use substraction to avoid overflow bug.
14051         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14052         * wcsmbc/wcscmp.c: Likewise.
14053         * string/test-strcmp.c: Likewise.
14054         Add new tests to check cases with negative values.
14055
14056 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14057
14058         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14059         * sysdeps/x86_64/dla.h: ...here.  New file.
14060         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14061         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14062         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14063         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14064         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14065         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14066         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14067         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14068         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14069
14070 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14071
14072         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14073         __ynl_finite aliases.
14074
14075 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14076
14077         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14078
14079         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14080         define DLA_FMA.
14081         [DLA_FMA] (EMULV): Use DLA_FMA.
14082         [DLA_FMA] (MUL12): Use EMULV.
14083         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14084         that are not needed.
14085         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14086         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14087         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14088         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14089         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14090         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14091         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14092
14093 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14094
14095         * math/s_nan.c: Undef __nan.
14096         * math/s_nanf.c: Undef __nanf.
14097         * math/s_nanl.c: Undef __nanl.
14098         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14099         "math_private.h".
14100
14101 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14102
14103         * math/s_catan.c: Add branch predictions.
14104         * math/s_catanf.c: Likewise.
14105         * math/s_catanh.c: Likewise.
14106         * math/s_catanhf.c: Likewise.
14107         * math/s_catanhl.c: Likewise.
14108         * math/s_catanl.c: Likewise.
14109         * math/s_cexp.c: Likewise.
14110         * math/s_cexpf.c: Likewise.
14111         * math/s_cexpl.c: Likewise.
14112         * math/s_clog.c: Likewise.
14113         * math/s_clog10.c: Likewise.
14114         * math/s_clog10f.c: Likewise.
14115         * math/s_clog10l.c: Likewise.
14116         * math/s_clogf.c: Likewise.
14117         * math/s_clogl.c: Likewise.
14118         * math/s_csqrt.c: Likewise.
14119         * math/s_csqrtf.c: Likewise.
14120         * math/s_csqrtl.c: Likewise.
14121         * math/s_ctanf.c: Likewise.
14122         * math/s_ctanh.c: Likewise.
14123         * math/s_ctanhf.c: Likewise.
14124         * math/s_ctanhl.c: Likewise.
14125         * math/s_ctanl.c: Likewise.
14126
14127         * math/math_private.h: Define __nan, __nanf, __nanl.
14128         * math/s_cacosh.c: Include <math_private.h>.
14129         * math/s_cacoshl.c: Likewise.
14130         * math/s_casinh.c: Likewise.
14131         * math/s_casinhf.c: Likewise.
14132         * math/s_casinhl.c: Likewise.
14133         * math/s_ccos.c: Rely entire on ccosh.
14134         * math/s_ccosf.c: Rely entire on ccoshf.
14135         * math/s_ccosl.c: Rely entirely on ccoshl.
14136         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14137         Remove tests for FE_INVALID.
14138         * math/s_ccoshf.c: Likewise.
14139         * math/s_ccoshl.c: Likewise.
14140         * math/s_csin.c: Likewise.
14141         * math/s_csinf.c: Likewise.
14142         * math/s_csinh.c Likewise.
14143         * math/s_csinhf.c: Likewise.
14144         * math/s_csinhl.c: Likewise.
14145         * math/s_csinl.c: Likewise.
14146         * math/s_ctan.c: Likewise.
14147         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14148         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14149         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14150
14151 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14152
14153         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14154         compilation problems.
14155
14156         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14157         __builtin_expect.
14158
14159 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14160
14161         * sysdeps/i386/configure.in: Test for -mfma4 option.
14162         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14163         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14164         COMMON_CPUID_INDEX_80000001.
14165         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14166         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14167         use it if FMA3 is not supported.
14168         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14169
14170         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14171         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14172
14173 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14174
14175         [BZ #12892]
14176         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14177         it would create a cycle with a link time dependency.
14178
14179 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14180
14181         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14182         instruction.
14183         * string/Makefile (strop-tests): Add rawmemchr.
14184         * string/test-rawmemchr.c: New file.
14185
14186         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14187         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14188         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14189         when compiling str{,n}casecmp and when AVX is available.  Hook up
14190         new optimized code in initializers.
14191
14192 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14193
14194         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14195         __feraiseexcept instead of feraiseexcept.
14196
14197 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14198
14199         * math/math_private.h: Define defaults for libc_fetestexcept and
14200         libc_feupdateenv.
14201         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14202         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14203         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14204         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14205         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14206         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14207         libc_fetestexcept and libc_feupdateenv.
14208
14209         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14210         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14211         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14212         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14213         libc_feholdexcept_setround.
14214
14215         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14216         Add s_nearbyint-c and s_nearbyintf-c.
14217         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14218         nearbyintf inlines.
14219         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14220         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14221         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14222         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14223
14224         * math/math_private.h: Define defaults for libc_fegetround,
14225         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14226         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14227         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14228         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14229         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14230         standard functions.
14231         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14232         Remove comments and hacks for old compiler versions.
14233         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14234         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14235         libc_feholdexceptl.
14236
14237 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14238
14239         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14240         (__feraiseexcept_renamed): Add __NTH.
14241         (feraiseexcept): Add __NTH.  Rename local variables to fix
14242         namespace violations.
14243
14244 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14245
14246         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14247
14248         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14249
14250         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14251         recently added interfaces.
14252         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14253
14254         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14255         about macro parameter expansion.
14256
14257         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14258         __NO_MATH_INLINES is defined.  Cleanups.
14259
14260         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14261         and __floorf is target has SSE4.1.
14262         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14263         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14264         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14265         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14266
14267         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14268         name.
14269         (floorf): Likewise.
14270
14271         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14272
14273 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14274
14275         * misc/sys/cdefs.h: Fix last change.
14276
14277         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14278         database lookup.
14279
14280 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14281
14282         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14283
14284         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14285         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14286         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14287         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14288         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14289         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14290         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14291         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14292         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14293         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14294         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14295         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14296         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14297         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14298         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14299         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14300         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14301         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14302         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14303         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14304         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14305         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14306
14307         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14308         ceil, ceilf, floor, floorf.
14309
14310         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14311         Perform IRELATIVE relocations last.
14312
14313         * elf/do-rel.h: Add another parameter nrelative, replacing the
14314         local variable with the same name.  Change name of the function
14315         to end in Rel or Rela (uppercase).
14316         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14317         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14318         elf_dynamic_do_##reloc function.
14319
14320 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14321
14322         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14323         is sufficient, at least on modern CPUs.
14324
14325         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14326
14327         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14328         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14329
14330         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14331         __expl_finite.
14332         * math/bits/math-finite.h: Add entries for exp.
14333         * math/e_expl.c: Add __*_finite alias.
14334         * sysdeps/i386/fpu/e_exp.S: Likewise.
14335         * sysdeps/i386/fpu/e_expf.S: Likewise.
14336         * sysdeps/i386/fpu/e_expl.c: Likewise.
14337         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14338         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14339         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14340         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14341         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14342         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14343         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14344
14345         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14346         is sufficient, at least on modern CPUs.
14347
14348         * ctype/ctype-info.c (__ctype_init): Define.
14349         * include/ctype.h (__ctype_init): Declare.
14350         (__ctype_b_loc): The variable is always initialized.
14351         (__ctype_toupper_loc): Likewise.
14352         (__ctype_tolower_loc): Likewise.
14353         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14354         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14355
14356 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14357
14358         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14359
14360         * configure.in: Also look in $cxxmachine/include for C++ system
14361         headers.
14362
14363 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14364
14365         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14366         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14367         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14368         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14369         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14370         (USE_AS_WMEMCMP): New macro.
14371         Fixing indents.
14372         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14373         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14374         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14375         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14376         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14377         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14378         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14379         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14380         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14381         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14382         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14383         (USE_AS_WMEMCMP): New macro.
14384         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14385         * sysdeps/string/test-memcmp.c: Update.
14386         Fix simple_wmemcmp.
14387         Add new tests.
14388         * wcsmbs/wmemcmp.c: Update.
14389         (WMEMCMP): New macro.
14390         Fix overflow bug.
14391
14392 2011-10-12  Andreas Jaeger  <aj@suse.de>
14393
14394         [BZ #13268]
14395         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14396
14397 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14398
14399         * libio/iofwide.c (do_length): Avoid warning.
14400
14401         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14402
14403 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14404
14405         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14406
14407         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14408         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14409         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14410         * sysdeps/i386/i686/fpu/e_log.S: New file.
14411         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14412         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14413
14414         * ctype/ctype.h: Add support for inlined isXXX functions when
14415         compiling C++ code.
14416
14417 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14418
14419         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14420
14421         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14422
14423 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14424
14425         [BZ #13291]
14426         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14427
14428 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14429
14430         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14431         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14432         feraiseexcept.
14433
14434         * sysdeps/x86_64/memrchr.S: Check for zero size.
14435
14436         * string/stratcliff.c: Add memrchr tests.
14437
14438 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14439
14440         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14441         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14442         rawmemchr-sse2 rawmemchr-sse2-bsf.
14443         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14444         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14445         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14446         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14447         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14448         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14449         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14450         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14451         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14452         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14453         * string/memrchr.c (MEMRCHR): New macro.
14454
14455 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14456
14457         Add integration with gcc's -ffinite-math-only and optimize wrapper
14458         functions in libm.
14459         * Versions.def: Define GLIBC_2.15 version for libm.
14460         * math/Makefile (headers): Add bits/math-finite.h.
14461         * math/bits/math-finite.h: New file.
14462         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14463         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14464         * math/e_acoshl.c: Add __*_finite alias.
14465         * math/e_acosl.c: Likewise.
14466         * math/e_asinl.c: Likewise.
14467         * math/e_atan2l.c: Likewise.
14468         * math/e_atanhl.c: Likewise.
14469         * math/e_coshl.c: Likewise.
14470         * math/e_exp10.c: Likewise.
14471         * math/e_exp10f.c: Likewise.
14472         * math/e_exp10l.c: Likewise.
14473         * math/e_exp2l.c: Likewise.
14474         * math/e_fmodl.c: Likewise.
14475         * math/e_gammal_r.c: Likewise.
14476         * math/e_hypotl.c: Likewise.
14477         * math/e_j0l.c: Likewise.
14478         * math/e_j1l.c: Likewise.
14479         * math/e_jnl.c: Likewise.
14480         * math/e_lgammal_r.c: Likewise.
14481         * math/e_log10l.c: Likewise.
14482         * math/e_log2l.c: Likewise.
14483         * math/e_logl.c: Likewise.
14484         * math/e_powl.c: Likewise.
14485         * math/e_sinhl.c: Likewise.
14486         * math/e_sqrtl.c: Likewise.
14487         * math/e_scalb.c: Completely rewritten and optimized.
14488         * math/e_scalbf.c: Likewise.
14489         * math/e_scalbl.c: Likewise.
14490         * math/w_acos.c: Likewise.
14491         * math/w_acosf.c: Likewise.
14492         * math/w_acosl.c: Likewise.
14493         * math/w_acosh.c: Likewise.
14494         * math/w_acoshf.c: Likewise.
14495         * math/w_acoshl.c: Likewise.
14496         * math/w_asin.c: Likewise.
14497         * math/w_asinf.c: Likewise.
14498         * math/w_asinl.c: Likewise.
14499         * math/w_atan2.c: Likewise.
14500         * math/w_atan2f.c: Likewise.
14501         * math/w_atan2l.c: Likewise.
14502         * math/w_atanh.c: Likewise.
14503         * math/w_atanhf.c: Likewise.
14504         * math/w_atanhl.c: Likewise.
14505         * math/w_exp10.c: Likewise.
14506         * math/w_exp10f.c: Likewise.
14507         * math/w_exp10l.c: Likewise.
14508         * math/w_fmod.c: Likewise.
14509         * math/w_fmodf.c: Likewise.
14510         * math/w_fmodl.c: Likewise.
14511         * math/w_j0.c: Likewise.
14512         * math/w_j0f.c: Likewise.
14513         * math/w_j0l.c: Likewise.
14514         * math/w_j1.c: Likewise.
14515         * math/w_j1f.c: Likewise.
14516         * math/w_j1l.c: Likewise.
14517         * math/w_jn.c: Likewise.
14518         * math/w_jnf.c: Likewise.
14519         * math/w_log.c: Likewise.
14520         * math/w_logf.c: Likewise.
14521         * math/w_logl.c: Likewise.
14522         * math/w_log10.c: Likewise.
14523         * math/w_log10f.c: Likewise.
14524         * math/w_log10l.c: Likewise.
14525         * math/w_log2.c: Likewise.
14526         * math/w_log2f.c: Likewise.
14527         * math/w_log2l.c: Likewise.
14528         * math/w_pow.c: Likewise.
14529         * math/w_powf.c: Likewise.
14530         * math/w_powl.c: Likewise.
14531         * math/w_remainder.c: Likewise.
14532         * math/w_remainderf.c: Likewise.
14533         * math/w_remainderl.c: Likewise.
14534         * math/w_scalb.c: Likewise.
14535         * math/w_scalbf.c: Likewise.
14536         * math/w_scalbl.c: Likewise.
14537         * math/w_sqrt.c: Likewise.
14538         * math/w_sqrtf.c: Likewise.
14539         * math/w_sqrtl.c: Likewise.
14540         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14541         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14542         used.
14543         * math/math_private.h: Declare __kernel_standard_f.
14544         * math/w_cosh.c: Remove cruft and optimize a bit.
14545         * math/w_coshf.c: Likewise.
14546         * math/w_coshl.c: Likewise.
14547         * math/w_exp2.c: Likewise.
14548         * math/w_exp2f.c: Likewise.
14549         * math/w_exp2l.c: Likewise.
14550         * math/w_hypot.c: Likewise.
14551         * math/w_hypotf.c: Likewise.
14552         * math/w_hypotl.c: Likewise.
14553         * math/w_lgamma.c: Likewise.
14554         * math/w_lgamma_r.c: Likewise.
14555         * math/w_lgammaf.c: Likewise.
14556         * math/w_lgammaf_r.c: Likewise.
14557         * math/w_lgammal.c: Likewise.
14558         * math/w_lgammal_r.c: Likewise.
14559         * math/w_sinh.c: Likewise.
14560         * math/w_sinhf.c: Likewise.
14561         * math/w_sinhl.c: Likewise.
14562         * math/w_tgamma.c: Likewise.
14563         * math/w_tgammaf.c: Likewise.
14564         * math/w_tgammal.c: Likewise.
14565         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14566         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14567         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14568         Minor optimizations.  Pretty printing.  Remove cruft.
14569         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14570         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14571         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14572         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14573         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14574         * sysdeps/i386/fpu/e_asin.S: Likewise.
14575         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14576         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14577         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14578         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14579         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14580         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14581         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14582         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14583         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14584         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14585         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14586         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14587         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14588         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14589         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14590         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14591         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14592         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14593         * sysdeps/i386/fpu/e_log.S: Likewise.
14594         * sysdeps/i386/fpu/e_log10.S: Likewise.
14595         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14596         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14597         * sysdeps/i386/fpu/e_log2.S: Likewise.
14598         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14599         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14600         * sysdeps/i386/fpu/e_logf.S: Likewise.
14601         * sysdeps/i386/fpu/e_logl.S: Likewise.
14602         * sysdeps/i386/fpu/e_pow.S: Likewise.
14603         * sysdeps/i386/fpu/e_powf.S: Likewise.
14604         * sysdeps/i386/fpu/e_powl.S: Likewise.
14605         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14606         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14607         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14608         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14609         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14610         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14611         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14612         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14613         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14614         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14615         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14616         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14617         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14618         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14619         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14620         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14621         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14622         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14623         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14624         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14625         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14626         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14627         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14628         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14629         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14630         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14631         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14632         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14633         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14634         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14635         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14636         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14637         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14638         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14639         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14640         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14641         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14642         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14643         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14644         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14645         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14646         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14647         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14648         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14649         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14650         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14651         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14652         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14653         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14654         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14655         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14656         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14657         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14658         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14659         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14660         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14661         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14662         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14663         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14664         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14665         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14666         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14667         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14668         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14669         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14670         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14671         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14672         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14673         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14674         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14675         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14676         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14677         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14678         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14679         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14680         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14681         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14682         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14683         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14684         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14685         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14686         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14687         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14688         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14689         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14690         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14691         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14692         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14693         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14694         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14695         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14696         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14697         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14698         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14699         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14700         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14701         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14702         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14703         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14704         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14705         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14706         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14707         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14708         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14709         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14710         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14711         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14712         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14713         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14714         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14715         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14716         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14717         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14718         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14719         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14720         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14721         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14722         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14723         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14724         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14725         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14726         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14727         (__isnanf): Likewise.
14728         (__isinf_ns): Likewise.
14729         (__isinf_nsf): Likewise.
14730         (__finite): Likewise.
14731         (__finitef): Likewise.
14732         (__ieee754_sqrt): Define as macro.
14733         (__ieee754_sqrtf): Define as macro.
14734         (__ieee754_sqrtl): Define as macro.
14735         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14736         inlined copy.
14737         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14738         __FINITE_MATH_ONLY__ consistent.
14739         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14740
14741 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14742
14743         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14744         of rawmemchr.
14745
14746         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14747
14748 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14749
14750         * po/ja.po: Update from translation team.
14751
14752 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14753
14754         * locale/programs/locarchive.c (prepare_address_space): New function.
14755         (create_archive, enlarge_archive, open_archive): Use it.
14756
14757         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14758         inside [SHARED], where it is used.
14759
14760         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14761
14762         * nss/getent.c (netgroup_keys): Remove unused variable.
14763         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14764
14765 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14766
14767         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14768         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14769         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14770         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14771         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14772         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14773         * math/Makefile (libm-calls): Add s_isinf_ns.
14774         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14775         * math/multc3.c: Likewise.
14776         * math/s_casin.c: Likewise.
14777         * math/s_casinf.c: Likewise.
14778         * math/s_casinl.c: Likewise.
14779         * math/s_ccos.c: Likewise.
14780         * math/s_ccosf.c: Likewise.
14781         * math/s_ccosl.c: Likewise.
14782         * math/s_ctan.c: Likewise.
14783         * math/s_ctanf.c: Likewise.
14784         * math/s_ctanh.c: Likewise.
14785         * math/s_ctanhf.c: Likewise.
14786         * math/s_ctanhl.c: Likewise.
14787         * math/s_ctanl.c: Likewise.
14788         * math/w_fmod.c: Likewise.
14789         * math/w_fmodf.c: Likewise.
14790         * math/w_fmodl.c: Likewise.
14791         * math/w_remainder.c: Likewise.
14792         * math/w_remainderf.c: Likewise.
14793         * math/w_remainderl.c: Likewise.
14794         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14795         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14796         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14797         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14798         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14799         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14800         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14801         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14802
14803         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14804         of the number.
14805         * stdio-common/printf_fphex.c: Likewise.
14806         * stdio-common/printf_size.c: Likewise.
14807
14808         * math/e_exp10.c: Include math_private.h using <...> not "...".
14809         * math/e_exp10f.c: Likewise.
14810         * math/e_exp10l.c: Likewise.
14811         * math/e_exp2l.c: Likewise.
14812         * math/e_j0l.c: Likewise.
14813         * math/e_j1l.c: Likewise.
14814         * math/e_jnl.c: Likewise.
14815         * math/e_lgammal_r.c: Likewise.
14816         * math/e_rem_pio2l.c: Likewise.
14817         * math/e_scalb.c: Likewise.
14818         * math/e_scalbf.c: Likewise.
14819         * math/e_scalbl.c: Likewise.
14820         * math/k_cosl.c: Likewise.
14821         * math/k_sinl.c: Likewise.
14822         * math/k_tanl.c: Likewise.
14823         * math/s_cacoshf.c: Likewise.
14824         * math/s_catan.c: Likewise.
14825         * math/s_catanf.c: Likewise.
14826         * math/s_catanh.c: Likewise.
14827         * math/s_catanhf.c: Likewise.
14828         * math/s_catanhl.c: Likewise.
14829         * math/s_catanl.c: Likewise.
14830         * math/s_ccosh.c: Likewise.
14831         * math/s_ccoshf.c: Likewise.
14832         * math/s_ccoshl.c: Likewise.
14833         * math/s_cexp.c: Likewise.
14834         * math/s_cexpf.c: Likewise.
14835         * math/s_cexpl.c: Likewise.
14836         * math/s_clog.c: Likewise.
14837         * math/s_clog10.c: Likewise.
14838         * math/s_clog10f.c: Likewise.
14839         * math/s_clog10l.c: Likewise.
14840         * math/s_clogf.c: Likewise.
14841         * math/s_clogl.c: Likewise.
14842         * math/s_csin.c: Likewise.
14843         * math/s_csinf.c: Likewise.
14844         * math/s_csinh.c: Likewise.
14845         * math/s_csinhf.c: Likewise.
14846         * math/s_csinhl.c: Likewise.
14847         * math/s_csinl.c: Likewise.
14848         * math/s_csqrt.c: Likewise.
14849         * math/s_csqrtf.c: Likewise.
14850         * math/s_csqrtl.c: Likewise.
14851         * math/s_ctan.c: Likewise.
14852         * math/s_ctanf.c: Likewise.
14853         * math/s_ctanh.c: Likewise.
14854         * math/s_ctanhf.c: Likewise.
14855         * math/s_ctanhl.c: Likewise.
14856         * math/s_ctanl.c: Likewise.
14857         * math/s_ldexp.c: Likewise.
14858         * math/s_ldexpf.c: Likewise.
14859         * math/s_ldexpl.c: Likewise.
14860         * math/s_significand.c: Likewise.
14861         * math/s_significandf.c: Likewise.
14862         * math/s_significandl.c: Likewise.
14863         * math/w_acos.c: Likewise.
14864         * math/w_acosf.c: Likewise.
14865         * math/w_acosh.c: Likewise.
14866         * math/w_acoshf.c: Likewise.
14867         * math/w_acoshl.c: Likewise.
14868         * math/w_acosl.c: Likewise.
14869         * math/w_asin.c: Likewise.
14870         * math/w_asinf.c: Likewise.
14871         * math/w_asinl.c: Likewise.
14872         * math/w_atan2.c: Likewise.
14873         * math/w_atan2f.c: Likewise.
14874         * math/w_atan2l.c: Likewise.
14875         * math/w_atanh.c: Likewise.
14876         * math/w_atanhf.c: Likewise.
14877         * math/w_atanhl.c: Likewise.
14878         * math/w_cosh.c: Likewise.
14879         * math/w_coshf.c: Likewise.
14880         * math/w_coshl.c: Likewise.
14881         * math/w_dremf.c: Likewise.
14882         * math/w_exp10.c: Likewise.
14883         * math/w_exp10f.c: Likewise.
14884         * math/w_exp10l.c: Likewise.
14885         * math/w_exp2.c: Likewise.
14886         * math/w_exp2f.c: Likewise.
14887         * math/w_fmod.c: Likewise.
14888         * math/w_fmodf.c: Likewise.
14889         * math/w_fmodl.c: Likewise.
14890         * math/w_hypot.c: Likewise.
14891         * math/w_hypotf.c: Likewise.
14892         * math/w_hypotl.c: Likewise.
14893         * math/w_j0.c: Likewise.
14894         * math/w_j0f.c: Likewise.
14895         * math/w_j0l.c: Likewise.
14896         * math/w_j1.c: Likewise.
14897         * math/w_j1f.c: Likewise.
14898         * math/w_j1l.c: Likewise.
14899         * math/w_jn.c: Likewise.
14900         * math/w_jnf.c: Likewise.
14901         * math/w_jnl.c: Likewise.
14902         * math/w_lgamma.c: Likewise.
14903         * math/w_lgamma_r.c: Likewise.
14904         * math/w_lgammaf.c: Likewise.
14905         * math/w_lgammaf_r.c: Likewise.
14906         * math/w_lgammal.c: Likewise.
14907         * math/w_lgammal_r.c: Likewise.
14908         * math/w_log.c: Likewise.
14909         * math/w_log10.c: Likewise.
14910         * math/w_log10f.c: Likewise.
14911         * math/w_log10l.c: Likewise.
14912         * math/w_log2.c: Likewise.
14913         * math/w_log2f.c: Likewise.
14914         * math/w_log2l.c: Likewise.
14915         * math/w_logf.c: Likewise.
14916         * math/w_logl.c: Likewise.
14917         * math/w_pow.c: Likewise.
14918         * math/w_powf.c: Likewise.
14919         * math/w_powl.c: Likewise.
14920         * math/w_remainder.c: Likewise.
14921         * math/w_remainderf.c: Likewise.
14922         * math/w_remainderl.c: Likewise.
14923         * math/w_scalb.c: Likewise.
14924         * math/w_scalbf.c: Likewise.
14925         * math/w_scalbl.c: Likewise.
14926         * math/w_sinh.c: Likewise.
14927         * math/w_sinhf.c: Likewise.
14928         * math/w_sinhl.c: Likewise.
14929         * math/w_sqrt.c: Likewise.
14930         * math/w_sqrtf.c: Likewise.
14931         * math/w_sqrtl.c: Likewise.
14932         * math/w_tgamma.c: Likewise.
14933         * math/w_tgammaf.c: Likewise.
14934         * math/w_tgammal.c: Likewise.
14935
14936         * po/ja.po: Update from translation team.
14937
14938 2011-09-29  Andreas Jaeger  <aj@suse.de>
14939
14940         [BZ #13179]
14941         * sunrpc/netname.c (netname2host): Fix logic.
14942
14943         [BZ #6779]
14944         [BZ #6783]
14945         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14946         correctly.
14947         * math/w_remainder.c (__remainder): Likewise.
14948         * math/w_remainderf.c (__remainderf): Likewise.
14949         * math/libm-test.inc (remainder_test): Add test cases.
14950
14951 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14952
14953         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14954         sdiv_qrnnd.
14955
14956 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14957
14958         * string/test-memcmp.c: Avoid unncessary #defines.
14959         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14960
14961 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14962
14963         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14964         Use new sse2 version for core i3 - i7 as it's faster
14965         than sse42 version.
14966         (bit_Prefer_PMINUB_for_stringop): New.
14967         * sysdeps/x86_64/rawmemchr.S: Update.
14968         Replace with faster SSE2 version.
14969         * sysdeps/x86_64/memrchr.S: New file.
14970         * sysdeps/x86_64/memchr.S: Update.
14971         Replace with faster SSE2 version.
14972
14973 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14974
14975         * elf/dl-load.c (lose): Add cast to avoid warning.
14976
14977 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14978
14979         * po/ca.po: Update from translation team.
14980
14981         * inet/getnetgrent_r.c: Hook up nscd.
14982         * nscd/Makefile (routines): Add nscd_netgroup.
14983         (nscd-modules): Add netgroupcache.
14984         (CFLAGS-netgroupcache.c): Define.
14985         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14986         (cache_search): Add const to second parameter.
14987         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14988         INNETGR.
14989         (dbs): Add netgrdb entry.
14990         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14991         (verify_persistent_db): Handle netgrdb.
14992         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14993         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14994         GETFDNETGR.
14995         (netgroup_response_header): Define.
14996         (innetgroup_response_header): Define.
14997         (datahead): Add netgroup_response_header and innetgroup_response_header
14998         elements.
14999         * nscd/nscd.conf: Add entries for netgroup cache.
15000         * nscd/nscd.h (dbtype): Add netgrdb.
15001         (_PATH_NSCD_NETGROUP_DB): Define.
15002         (netgroup_iov_disabled): Declare.
15003         (xmalloc, xcalloc, xrealloc): Move declarations here.
15004         (cache_search): Adjust prototype.
15005         Add netgroup-related prototypes.
15006         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15007         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15008         (__nscd_innetgr): Declare.
15009         * nscd/selinux.c (perms): Use access_vector_t as element type and
15010         add netgroup-related initializers.
15011         * nscd/netgroupcache.c: New file.
15012         * nscd/nscd_netgroup.c: New file.
15013         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15014         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15015         For four parameters use innetgr.
15016         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15017         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15018         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15019         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15020
15021         * nscd/connections.c (register_traced_file): Don't register file
15022         for disabled databases.
15023
15024 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15025
15026         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15027
15028         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15029         from tree and freeing node.
15030
15031 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15032
15033         * nss/nsswitch.c (__nss_database_lookup): Handle
15034         nss_parse_service_list out of memory case.
15035
15036 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15037
15038         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15039         out of memory case.
15040
15041 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15042
15043         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15044         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15045         pass it down.
15046         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15047         elf_machine_rela, elf_machine_lazy_rel.
15048         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15049         (ELF_DYNAMIC_DO_REL): Likewise.
15050         (ELF_DYNAMIC_DO_RELA): Likewise.
15051         (ELF_DYNAMIC_RELOCATE): Likewise.
15052         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15053         to ELF_DYNAMIC_DO_REL.
15054         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15055         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15056         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15057         elf_machine_rela.
15058         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15059         skip_ifunc, don't call ifunc function if non-zero.
15060         (elf_machine_rela): Likewise.
15061         (elf_machine_lazy_rel): Likewise.
15062         (elf_machine_lazy_rela): Likewise.
15063         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15064         (elf_machine_lazy_rel): Likewise.
15065         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15066         Likewise.
15067         (elf_machine_lazy_rel): Likewise.
15068         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15069         Likewise.
15070         (elf_machine_lazy_rel): Likewise.
15071         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15072         (elf_machine_lazy_rel): Likewise.
15073         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15074         (elf_machine_lazy_rel): Likewise.
15075         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15076         (elf_machine_lazy_rel): Likewise.
15077         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15078         (elf_machine_lazy_rel): Likewise.
15079         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15080         (elf_machine_lazy_rel): Likewise.
15081         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15082         (elf_machine_lazy_rel): Likewise.
15083
15084 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15085
15086         * nss/nss_files/files-init.c (_nss_files_init): Use static
15087         initialization for all the *_traced_file variables.
15088
15089 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15090
15091         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15092
15093 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15094
15095         [BZ #13226]
15096         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15097
15098 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15099
15100         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15101         Reread the line before reparsing it.
15102
15103 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15104
15105         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15106
15107 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15108             Maxim Kuvyrkov  <maxim@codesourcery.com>
15109             Joseph Myers  <joseph@codesourcery.com>
15110
15111         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15112         if needed for __stack_chk_guard.
15113
15114 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15115
15116         * sysdeps/posix/spawni.c (script_execute): Always define it.
15117         It will be optimized away if unused.
15118         (maybe_script_execute): New function.
15119         (__spawni): Call it.
15120
15121         * Makerules: Don't include tls.make.
15122         (config-tls): Always set to thread.
15123         * tls.make.c: File removed.
15124
15125 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15126
15127         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15128         * config.make.in (CPPFLAGS-config): New substituted variable.
15129
15130 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15131
15132         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15133
15134         [BZ #13192]
15135         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15136         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15137
15138 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15139
15140         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15141         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15142         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15143         (CALL_FAIL): Likewise.
15144         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15145         (CALL_FAIL): Macro removed.
15146         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15147
15148 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15149
15150         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15151         for __FINITE_MATH_ONLY__ == 1.
15152
15153 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15154
15155         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15156         __ieee754_sqrt instead of sqrt.
15157         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15158         __ieee754_sqrtf instead of sqrtf.
15159         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15160         __floorf instead of floorf.
15161         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15162         __floorf, __truncf instead of floorf, truncf.
15163
15164 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15165
15166         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15167
15168         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15169         __extern_always_inline.
15170         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15171         32-bit.
15172
15173 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15174
15175         * elf/rtld.c (dl_main): Also relocate in dependency order when
15176         doing symbol dependency testing.
15177
15178 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15179
15180         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15181         Always define `refsym'.
15182
15183 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15184
15185         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15186         (__FD_ELT): Renamed from __FDELT.
15187         * misc/bits/select2.h (__FD_ELT): Likewise.
15188         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15189         __FD_MASK instead of __FDELT, __FDMASK.
15190         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15191         Likewise.
15192         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15193         Likewise.
15194
15195         * elf/Makefile (gen-ldd): Fix pattern.
15196
15197         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15198         (init_tls): Likewise.
15199
15200 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15201
15202         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15203
15204 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15205
15206         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15207         `struct cmsghdr *' instead of `void *'.
15208         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15209         Likewise.
15210
15211 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15212
15213         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15214         if non-absolute.
15215         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15216         ldd_rewrite_script.
15217
15218 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15219
15220         * configure.in: Remove --with-tls option.
15221         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15222         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15223         out in case it is missing.
15224         * sysdeps/ia64/elf/configure.in: Likewise.
15225         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15226         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15227         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15228         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15229         * sysdeps/sh/elf/configure.in: Likewise.
15230         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15231         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15232         * sysdeps/x86_64/elf/configure.in: Likewise.
15233         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15234         * sysdeps/mach/hurd/tls.h: Likewise.
15235
15236         [BZ #13067]
15237         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15238
15239         [BZ #13090]
15240         * configure.in: Fix use of AC_INIT.
15241
15242         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15243
15244 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15245
15246         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15247         __set_errno.
15248         * malloc/hooks.c: Likewise.
15249
15250         [BZ #11929]
15251         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15252         variables statically.
15253         (narenas): Initialize.
15254         (list_lock): Initialize.
15255         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15256         initializtion of main_arena and list_lock.  Small cleanups.
15257         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15258         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15259         Add initializers to main_arena and mp_.
15260         (malloc_state): Remove pagesize member.  Change all users to use
15261         GLRO(dl_pagesize).
15262
15263         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15264         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15265         is always initialized.
15266
15267         * malloc/malloc.c: Removed unused configurations and dead code.
15268         * malloc/arena.c: Likewise.
15269         * malloc/hooks.c: Likewise.
15270         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15271
15272         * include/tls.h: Removed.  USE___THREAD must always be defined.
15273         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15274         * elf/dl-libc.c: Likewise.
15275         * elf/dl-tsd.c: Likewise.
15276         * include/errno.h: Likewise.
15277         * include/netdb.h: Likewise.
15278         * include/resolv.h: Likewise.
15279         * inet/herrno-loc.c: Likewise.
15280         * inet/herrno.c: Likewise.
15281         * malloc/arena.c: Likewise.
15282         * malloc/hooks.c: Likewise.
15283         * malloc/malloc.c: Likewise.
15284         * resolv/res-state.c: Likewise.
15285         * resolv/res_libc.c: Likewise.
15286         * sysdeps/i386/dl-machine.h: Likewise.
15287         * sysdeps/ia64/dl-machine.h: Likewise.
15288         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15289         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15290         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15291         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15292         * sysdeps/sh/dl-machine.h: Likewise.
15293         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15294         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15295         * sysdeps/unix/i386/sysdep.S: Likewise.
15296         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15297         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15298         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15299         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15300         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15301         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15302         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15303         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15304         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15305         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15306         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15307         * sysdeps/x86_64/dl-machine.h: Likewise.
15308         * tls.make.c: Likewise.
15309
15310         * configure.in: Remove --with-__thread option.  Make tests for
15311         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15312         tls_model attribute fail if no support is available.  Remove
15313         USE_IN_LIBIO.
15314         * Makeconfig: Adjust for dropped configure option.  All features are
15315         now mandatory.
15316         * Makerules: Likewise.
15317         * Versions.def: Likewise.
15318         * argp/argp-fmtstream.c: Likewise.
15319         * argp/argp-fmtstream.h: Likewise.
15320         * argp/argp-help.c: Likewise.
15321         * assert/assert.c: Likewise.
15322         * config.h.in: Likewise.
15323         * config.make.in: Likewise.
15324         * configure: Likewise.
15325         * configure.in: Likewise.
15326         * csu/Versions: Likewise.
15327         * csu/init.c: Likewise.
15328         * elf/tst-audit2.c: Likewise.
15329         * elf/tst-tls10.c: Likewise.
15330         * elf/tst-tls10.h: Likewise.
15331         * elf/tst-tls11.c: Likewise.
15332         * elf/tst-tls12.c: Likewise.
15333         * elf/tst-tls14.c: Likewise.
15334         * elf/tst-tlsmod11.c: Likewise.
15335         * elf/tst-tlsmod12.c: Likewise.
15336         * elf/tst-tlsmod13.c: Likewise.
15337         * elf/tst-tlsmod13a.c: Likewise.
15338         * elf/tst-tlsmod14a.c: Likewise.
15339         * elf/tst-tlsmod15b.c: Likewise.
15340         * elf/tst-tlsmod16a.c: Likewise.
15341         * elf/tst-tlsmod16b.c: Likewise.
15342         * elf/tst-tlsmod7.c: Likewise.
15343         * elf/tst-tlsmod8.c: Likewise.
15344         * elf/tst-tlsmod9.c: Likewise.
15345         * gmon/gmon.c: Likewise.
15346         * grp/fgetgrent_r.c: Likewise.
15347         * grp/putgrent.c: Likewise.
15348         * hurd/fopenport.c: Likewise.
15349         * include/libc-symbols.h: Likewise.
15350         * include/tls.h: Likewise.
15351         * intl/gettextP.h: Likewise.
15352         * intl/loadinfo.h: Likewise.
15353         * locale/global-locale.c: Likewise.
15354         * locale/localeinfo.h: Likewise.
15355         * mach/devstream.c: Likewise.
15356         * malloc/arena.c: Likewise.
15357         * malloc/set-freeres.c: Likewise.
15358         * misc/err.c: Likewise.
15359         * misc/getttyent.c: Likewise.
15360         * misc/mntent_r.c: Likewise.
15361         * posix/getopt.c: Likewise.
15362         * posix/wordexp.c: Likewise.
15363         * pwd/fgetpwent_r.c: Likewise.
15364         * resolv/Versions: Likewise.
15365         * resolv/res_hconf.c: Likewise.
15366         * shadow/fgetspent_r.c: Likewise.
15367         * shadow/putspent.c: Likewise.
15368         * stdio-common/printf_fphex.c: Likewise.
15369         * stdio-common/tmpfile.c: Likewise.
15370         * stdlib/abort.c: Likewise.
15371         * stdlib/fmtmsg.c: Likewise.
15372         * sunrpc/auth_unix.c: Likewise.
15373         * sunrpc/clnt_perr.c: Likewise.
15374         * sunrpc/clnt_tcp.c: Likewise.
15375         * sunrpc/clnt_udp.c: Likewise.
15376         * sunrpc/clnt_unix.c: Likewise.
15377         * sunrpc/openchild.c: Likewise.
15378         * sunrpc/svc_simple.c: Likewise.
15379         * sunrpc/svc_tcp.c: Likewise.
15380         * sunrpc/svc_udp.c: Likewise.
15381         * sunrpc/svc_unix.c: Likewise.
15382         * sunrpc/xdr.c: Likewise.
15383         * sunrpc/xdr_array.c: Likewise.
15384         * sunrpc/xdr_rec.c: Likewise.
15385         * sunrpc/xdr_ref.c: Likewise.
15386         * sunrpc/xdr_stdio.c: Likewise.
15387
15388 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15389
15390         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15391
15392 2011-07-03  Andreas Jaeger  <aj@suse.de>
15393
15394         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15395         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15396         regenerate with gen-libm-tests.pl.
15397
15398 2010-05-12  Petr Baudis  <pasky@suse.cz>
15399
15400         [BZ #11589]
15401         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15402         around j0() zero points by switching to j1().
15403         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15404         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15405         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15406         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15407
15408 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15409
15410         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15411         instead of 0.
15412         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15413         instead of 0.                              .
15414         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15415         Patch in part by Pavel Roskin <proski@gnu.org>.
15416
15417         [BZ #13138]
15418         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15419         realloc.
15420         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15421         Free memory block if necessary.
15422
15423         [BZ #12847]
15424         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15425         be NULL.  Don't lock in this case.
15426
15427 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15428
15429         * elf/elf.h (ELFOSABI_GNU): New macro.
15430         (ELFOSABI_LINUX): Define to that.
15431
15432 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15433
15434         * string/strncat.c (strncat): Undef the symbol in case it has been
15435         defined in bits/string.h.
15436
15437 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15438
15439         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15440
15441         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15442         link map.
15443
15444 2011-08-17  Andreas Jaeger  <aj@suse.de>
15445
15446         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15447
15448 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15449             Ian Lance Taylor  <iant@google.com>
15450
15451         * math/libm-test.inc (lround_test): New testcase.
15452         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15453
15454 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15455
15456         * Makefile: Remove support for automatic cvs check-ins.
15457         * Makerules: Likewise.
15458         * config.make.in: Likewise.
15459         * configure.in: Likewise.
15460         * intl/Makefile: Likewise.
15461         * locale/Makefile: Likewise.
15462         * po/Makefile: Likewise.
15463         * posix/Makefile: Likewise.
15464         * sysdeps/gnu/Makefile: Likewise.
15465         * sysdeps/mach/hurd/Makefile: Likewise.
15466         * sysdeps/sparc/sparc32/Makefile: Likewise.
15467
15468         [BZ #13118]
15469         * posix/Makefile (bug-regex32-ENV): Define.
15470         Patch by John Stanley <jpsinthemix@verizon.net>.
15471
15472         * misc/Makefile (headers): Add bits/select2.h.
15473         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15474         * misc/bits/select2.h: New file.
15475         * include/bits/select2.h: New file.
15476         * debug/Makefile (routines): Add fdelt_chk.
15477         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15478         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15479         FD_ISSET.
15480         * debug/fdelt_chk.c: New file.
15481
15482         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15483         * wcsmbs/test-wmemcmp.c: Likewise.
15484         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15485         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15486
15487 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15488
15489         * string/Makefile (strop-tests): Add memcmp.
15490         * string/test-wmemcmp.c: New file.
15491         * string/test-memcmp.c: Add wmemcmp support.
15492
15493 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15494
15495         [BZ #13153]
15496         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15497         2011-07-19 change.
15498
15499         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15500         garbage value in a __mach_port_mod_refs call in the cases of the
15501         task-self and thread-self ports.
15502
15503 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15504
15505         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15506
15507 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15508
15509         * elf/dl-load.c (lose): Check for non-null L.
15510
15511 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15512
15513         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15514
15515         * elf/dl-libc.c (dlerror_run): Pass back error code from
15516         dl_catch_error.
15517
15518         [BZ #13123]
15519         * elf/dl-load.c (lose): Free l_origin if it is valid.
15520
15521         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15522         names.
15523         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15524         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15525         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15526         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15527         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15528         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15529
15530 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15531
15532         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15533         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15534         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15535         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15536         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15537         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15538         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15539         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15540         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15541         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15542
15543 2011-08-15  Alan Modra  <amodra@gmail.com>
15544
15545         [BZ #13092]
15546         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15547         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15548         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15549         ppc_mcount to static-only-routines.
15550         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15551         __mcount_internal.
15552         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15553         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15554
15555 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15556
15557         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15558         for finite and infinity parameters.
15559
15560 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15561
15562         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15563         and add nop instructions for throughput optimization.
15564         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15565
15566 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15567
15568         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15569         aligned copy for power7 with vector-scalar instructions.
15570         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15571
15572 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15573
15574         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15575         AVX check.
15576
15577 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15578
15579         [BZ #13144]
15580         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15581         last change.
15582
15583 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15584
15585         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15586         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15587         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15588         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15589         clock_gettime.
15590
15591 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15592
15593         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15594         Forgot to demangle the pointer.
15595
15596         * sysdeps/i386/sysdep.h: Define atom_text_section.
15597         * sysdeps/x86_64/sysdep.h: Likewise.
15598         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15599         section with atom_text_section.
15600         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15601         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15602         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15603         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15604         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15605
15606         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15607         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15608         already be defined.  Change to take two parameters and don't assign
15609         result to variable.  Adjust all users.
15610         Define INTERNAL_GETTIME if not already defined.
15611         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15612         call.
15613         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15614         HAVE_CLOCK_GETTIME_VSYSCALL.
15615         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15616
15617         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15618         gettimeofday vsyscall, just use time.
15619
15620 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15621
15622         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15623         <errno.h>.
15624
15625 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15626
15627         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15628         syscall on x86-64.
15629         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15630         syscall.
15631         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15632         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15633         syscall if possible.
15634
15635 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15636
15637         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15638         e_ident.  Don't pass to find_mapsXX.
15639         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15640
15641 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15642
15643         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15644         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15645         * sysdeps/x86_64/multiarch/strchr.S: Update.
15646         Check bit_slow_BSF bit.
15647         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15648         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15649         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15650
15651 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15652
15653         [BZ #13134]
15654         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15655         before glibc 2.15.
15656         (tryshell): Define.
15657         (__spawni): Change last parameter to be flag.  Test
15658         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15659         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15660         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15661         * posix/spawni.c: Likewise.
15662         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15663         * posix/spawnp.c: Likewise.  Change normal version to use
15664         SPAWN_XFLAGS_USE_PATH.
15665         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15666         SPAWN_XFLAGS_TRY_SHELL.
15667
15668         [BZ #13150]
15669         * posix/glob.h: Remove gcc 1.x support.
15670
15671         [BZ #13068]
15672         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15673
15674 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15675
15676         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15677         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15678         strrchr-sse2-bsf
15679         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15680         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15681         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15682         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15683         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15684         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15685
15686 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15687
15688         * sysdeps/x86_64/wcscmp.S: New file.
15689
15690         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15691         wcscmp-c wcscmp-sse2
15692         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15693         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15694         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15695         * wcsmbs/wcscmp.c: Allow renaming.
15696
15697 2011-09-05  David S. Miller  <davem@davemloft.net>
15698
15699         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15700         stack slot, rather than the struct return pointer slot.
15701         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15702         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15703         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15704         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15705
15706 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15707
15708         * po/ja.po: Update from translation team.
15709
15710         [BZ #13144]
15711         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15712         kernel in 64-bit binaries.
15713
15714 2011-09-01  David S. Miller  <davem@davemloft.net>
15715
15716         * elf/elf.h (HWCAP_SPARC_*): Move to..
15717         * sysdeps/sparc/sysdep.h: this new file and add new values.
15718         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15719         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15720         _DL_HWCAP_COUNT to 24.
15721         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15722         entries.
15723         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15724         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15725         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15726         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15727         instead of magic constants.
15728         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15729
15730 2011-08-31  David S. Miller  <davem@davemloft.net>
15731
15732         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15733         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15734         Reimplement to do errno handling inline.
15735         (SYSCALL_ERROR_HANDLER): New macro.
15736         (__SYSCALL_STRING): Do not do errno handling in asm.
15737         (__CLONE_SYSCALL_STRING): Delete.
15738         (__INTERNAL_SYSCALL_STRING): Delete.
15739         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15740         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15741         (PSEUDO): Reimplement to do errno handling inline.
15742         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15743         (SYSCALL_ERROR_HANDLER): New macro.
15744         (__SYSCALL_STRING): Do not do errno handling in asm.
15745         (__CLONE_SYSCALL_STRING): Delete.
15746         (__INTERNAL_SYSCALL_STRING): Delete.
15747         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15748         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15749         i386.
15750         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15751         (inline_syscall*): Add 'err' argument.
15752         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15753         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15754         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15755         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15756
15757         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15758         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15759
15760 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15761
15762         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15763
15764 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15765
15766         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15767         directive.
15768
15769 2011-08-24  David S. Miller  <davem@davemloft.net>
15770
15771         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15772
15773 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15774
15775         * elf/Makefile: Add rules to build and run unload8 test.
15776         * elf/unload8.c: New file.
15777         * elf/unload8mod1.c: New file.
15778         * elf/unload8mod1x.c: New file.
15779         * elf/unload8mod2.c: New file.
15780         * elf/unload8mod3.c: New file.
15781
15782         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15783         it wasn't used.
15784
15785 2011-08-23  David S. Miller  <davem@davemloft.net>
15786
15787         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15788         subtract stack bias.
15789         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15790         %sp not %fp in calculations.
15791         (_JMPBUF_UNWINDS_ADJ): Likewise.
15792
15793         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15794         (aio_suspend): Call it to force an exception region around the
15795         AIO_MISC_WAIT() invocation.
15796
15797 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15798
15799         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15800         backslash.
15801
15802 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15803
15804         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15805         protection macro.
15806         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15807         and <dl-machine.h>.
15808         (Elf64_FuncDesc): Remove.
15809
15810 2011-08-22  David S. Miller  <davem@davemloft.net>
15811
15812         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15813         sigaltstack check, add missing cfi directives.
15814         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15815         missing cfi directives, and sigaltstack handling.
15816
15817 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15818
15819         [BZ #11724]
15820         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15821         object is seen twice.
15822         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15823
15824         * elf/Makefile (distribute): Add tst-initorder2.c.
15825         (tests): Add tst-initorder2.
15826         (modules-names): Add tst-initorder2a tst-initorder2b
15827         tst-initorder2c tst-initorder2d.  Add rules to build them.
15828         ($(objpfx)tst-initorder2.out): New rule.
15829         * elf/tst-initorder2.c: New file.
15830         * elf/tst-initorder2.exp: New file.
15831
15832 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15833
15834         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15835
15836         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15837         dependencies back to end of function.
15838
15839         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15840         $(elfobjdir)/ld.so.
15841
15842 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15843
15844         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15845         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15846         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15847         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15848         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15849         of __vdso_gettimeofday.
15850         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15851         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15852         attribute_hidden.
15853         (_libc_vdso_platform_setup): Remove initialization of
15854         __vdso_gettimeofday and __vdso_time.
15855
15856 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15857
15858         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15859         and fgetc_unlocked.
15860         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15861         getc_unlocked.
15862
15863         * elf/dl-open.c (add_to_global): Report additions to the global scope
15864         for LD_DEBUG=scopes.
15865         (dl_open_worker): Also print scope of newly loaded dependencies.
15866         (_dl_show_scope): Indicate if there is no scope.
15867
15868         [BZ #13114]
15869         * stdio-common/Makefile (tests): Add bug24.
15870         * stdio-common/bug24.c: New file.
15871
15872 2011-08-19  Andreas Jaeger  <aj@suse.de>
15873
15874         [BZ #13114]
15875         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15876         non-existant file when using close-on-exec mode.
15877
15878 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15879
15880         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15881         the very first instruction.
15882
15883         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15884         the CFI state in the end.
15885         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15886         inclusion of dl-trampoline.h.
15887         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15888
15889 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15890
15891         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15892         expectations for long double.
15893
15894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15895         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15896
15897 2011-08-14  David S. Miller  <davem@davemloft.net>
15898
15899         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15900         artificual limit depends upon the system page size.
15901
15902 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15903
15904         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15905         * resolv/Makefile: Define CFLAGS-libresolv.
15906
15907 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15908
15909         * nss/makedb.c (compute_tables): Make variables used in nested
15910         function static.
15911
15912 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15913
15914         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15915         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15916         if buffer was too small.
15917
15918         * elf/pldd.c (main): Attach to all threads in the process.
15919         Rewrite /proc handling to use *at functions.
15920
15921 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15922
15923         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15924         specifies first scope to show.
15925         (dl_open_worker): Update callers.  Move printing scope of new
15926         object to before the relocation.
15927         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15928         * sysdeps/generic/ldsodefs.h: Update declaration.
15929
15930         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15931         string for the scope number.
15932
15933 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15934
15935         * nscd/servicescache.c (cache_addserv): Make sure written is always
15936         initialized.
15937
15938 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15939
15940         * sysdeps/i386/i486/bits/atomic.h
15941         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15942         statement expression, so as to suppress "set but not used" warning.
15943         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15944
15945         * string/strncat.c (STRNCAT): Use prototype definition.
15946
15947         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15948         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15949         -Iprograms here.
15950         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15951         (localedef-modules): Add localedef.
15952         (locale-modules): Add locale.
15953
15954         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15955         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15956         to avoid a warning.
15957
15958 2011-08-14  David S. Miller  <davem@davemloft.net>
15959
15960         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15961         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15962
15963 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15964
15965         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15966         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15967         * elf/rtld.c (dl_main): Set l_name of vDSO.
15968         Call _dl_show_scope when DL_DEBUG_SCOPES.
15969         (process_dl_debug): Recognize scopes flag and also set it for all.
15970         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15971         Declare _dl_show_scope.
15972
15973         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15974         (do_dlopen): Pass caller_dlopen to dl_open.
15975         (__libc_dlopen_mode): Initialize caller_dlopen.
15976
15977         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15978         of libc.  Make tolower call locale-independent.  Optimize a bit by
15979         using isdigit instead of isalnum.
15980         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15981
15982 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15983
15984         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15985         was a dependency or dynamically loaded.
15986
15987 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15988
15989         * intl/l10nflist.c: Allow architecture-specific pop function.
15990         * sysdeps/x86_64/l10nflist.c: New file.
15991
15992         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15993         classification.
15994
15995 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15996
15997         * include/dirent.h: Add libc_hidden_proto for scandirat and
15998         scandirat64.  Don't declare __scandirat64.
15999         * dirent/scandirat.c: Add libc_hidden_def.
16000         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16001         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16002
16003 2011-08-10  David S. Miller  <davem@davemloft.net>
16004
16005         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16006         enum.
16007         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16008         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16009         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16010
16011 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16012
16013         * Versions.def [libc]: Add GLIBC_2.15.
16014         * dirent/Makefile (routines): Add scandirat and scandirat64.
16015         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16016         GLIBC_2.15.
16017         * dirent/dirent.h: Declare scandirat and scandirat64.
16018         * dirent/scandirat.c: New file.
16019         * dirent/scandirat64.c: New file.
16020         * sysdeps/wordsize-64/scandirat.c: New file.
16021         * sysdeps/wordsize-64/scandirat64.c: New file.
16022         * dirent/opendir.c: Define opendirat.
16023         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16024         using scandirat.
16025         * dirent/scandir64.c: Adjust for scandir.c change.
16026         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16027         __scandirat64, and __scandir_cancel_handler.
16028         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16029         additional parameter and use openat instead of open (outside of ld.so).
16030         Add new __opendir as wrapper around __opendirat.
16031         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16032         here without requiring old scandirat implementation.
16033
16034 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16035
16036         * dirent/scandir.c (cancel_handler): Renamed to
16037         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16038         defined.  Adjust users.
16039         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16040         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16041
16042 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16043
16044         * string/test-string.h (IMPL): Use __STRING to expand name and then
16045         stringify it.
16046
16047         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16048         of cleanups.
16049
16050 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16051
16052         * string/Makefile: Update.
16053         (strop-tests): Append strncat.
16054         * string/test-wcscmp.c: New file.
16055         New comprehensive test for wcscmp.
16056         * string/test-strcmp.c: Update.
16057         (WIDE): New define.
16058
16059 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16060
16061         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16062         line.
16063
16064 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16065
16066         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16067         encoding to ACE if AI_IDN.
16068
16069 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16070
16071         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16072         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16073
16074 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16075
16076         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16077         Fix overflow bug in strncat.
16078         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16079
16080         * string/test-strncat.c: Update.
16081         Add new tests for checking overflow bugs.
16082
16083 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16084
16085         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16086         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16087         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16088         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16089         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16090         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16091         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16092         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16093         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16094
16095         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16096         (USE_AS_STRCAT): Define.
16097         Add strcat and strncat support.
16098         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16099
16100 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16101
16102         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16103         __n bigger than INT_MAX+1.
16104         (__strncmp_g): Likewise.
16105
16106 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16107
16108         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16109         * libio/stido.h: Likewise.
16110
16111         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16112         (AF_NFC): Define.
16113         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16114         (AF_NFC): Define.
16115
16116         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16117         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16118         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16119         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16120         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16121
16122         [BZ #13021]
16123         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16124         installed.
16125
16126         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16127         typo.
16128         (_dl_x86_64_save_sse): Likewise.
16129
16130 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16131
16132         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16133         OSXSAVE.
16134         (_dl_x86_64_save_sse): Likewise.
16135
16136         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16137
16138         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16139
16140 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16141
16142         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16143         change.
16144         (_dl_x86_64_save_sse): Use correct AVX check.
16145
16146 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16147
16148         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16149         bug in strncpy/strncat.
16150         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16151
16152 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16153
16154         * string/tester.c (test_strcat): Add tests for different alignments
16155         of source and destination.
16156         (test_strncat): Likewise.
16157
16158 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16159
16160         [BZ #12852]
16161         * posix/glob.c (glob): Check passed in values before using them in
16162         expressions to avoid some overflows.
16163         (glob_in_dir): Likewise.
16164
16165         [BZ #13007]
16166         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16167         check for AVX enablement so that we don't crash with old kernels and
16168         new hardware.
16169         * elf/tst-audit4.c: Add same checks here.
16170         * elf/tst-audit6.c: Likewise.
16171
16172         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16173
16174 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16175
16176         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16177
16178 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16179
16180         * po/cs.po: Update from translation team.
16181         * po/bg.po: Likewise.
16182
16183 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16184
16185         * misc/sys/cdefs.h: Add support for const attribute.
16186         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16187         to gnu_dev_{major,minor,makedev} functions.
16188
16189 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16190
16191         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16192
16193 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16194
16195         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16196         strlen results.
16197
16198 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16199
16200         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16201         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16202         register in order to avoid conflicts with the soft frame pointer
16203         being held in r11 when necessary.
16204         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16205         (INTERNAL_VSYSCALL_NCS): Likewise.
16206
16207 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16208
16209         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16210         * elf/dl-fini.c (_dl_fini): Adjust caller.
16211         * elf/dl-close.c (_dl_close_worker): Likewise.
16212         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16213
16214 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16215
16216         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16217         "aux_cache->nlibs < 0".
16218
16219         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16220         in the reload-count case.
16221
16222 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16223
16224         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16225         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16226         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16227         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16228         * sysdeps/x86_64/multiarch/strcat.S: New file.
16229         * sysdeps/x86_64/multiarch/strncat.S: New file.
16230         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16231         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16232         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16233         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16234         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16235         (USE_AS_STRCAT): Define.
16236         Add strcat and strncat support.
16237         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16238         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16239         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16240         * string/strncat.c: Update.
16241         (USE_AS_STRNCAT): Define.
16242         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16243         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16244         and i7.
16245         * sysdeps/x86_64/multiarch/init-arch.h
16246         (bit_Prefer_PMINUB_for_stringop): New.
16247         (index_Prefer_PMINUB_for_stringop): Likewise.
16248         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16249         bit_Prefer_PMINUB_for_stringop.
16250
16251 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16252
16253         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16254         buffer64.
16255         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16256         of casting of buffer.
16257         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16258         buffer32 and buffer64.
16259         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16260         writes instead of casting of buffer.
16261         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16262         buffer32.
16263         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16264         casting of buffer.
16265
16266 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16267
16268         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16269
16270 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16271
16272         * nscd/nscd.c (termination_handler): Don't do anything for a database
16273         if it has not yet been initialized.
16274
16275 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16276
16277         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16278
16279 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16280
16281         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16282
16283 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16284
16285         * po/nl.po: Update from translation team.
16286         * po/sv.po: Likewise.
16287
16288 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16289
16290         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16291         now disallowed by GCC.
16292
16293         * configure.in (use-default-link): Default to yes if a test -shared
16294         link meets our qualifications.
16295         * configure: Regenerated.
16296
16297         * config.make.in (output-format): New variable.
16298         * configure.in: Check for ld --print-output-format support.
16299         * configure: Regenerated.
16300         * Makerules ($(common-objpfx)format.lds)
16301         [$(output-format) != unknown]: Just use $(output-format),
16302         instead of the linker-script munging.
16303
16304 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16305
16306         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16307         of $(common-objpfx)shlib.lds.
16308         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16309
16310         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16311         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16312
16313         * configure.in (-z relro check): Adjust test code to add a large
16314         writable data section after it.
16315         * configure: Regenerated.
16316
16317 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16318
16319         * configure.in (-z relro check): Fix test code to make the variable
16320         truly const.
16321         * configure: Regenerated.
16322
16323 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16324
16325         * nscd/nscd.h (struct traced_file): Define.
16326         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16327         elements.  Add traced_files.
16328         (inotify_fd): Declare.
16329         (register_traced_file): Declare.
16330         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16331         (inotify_fd): Export.
16332         (resolv_conf_descr): Remove.
16333         (nscd_init): Move inotify descriptor creation to main.
16334         Don't register files for notification here.
16335         (register_traced_file): New function.
16336         (invalidate_cache): Don't use reset_res to determine whether to call
16337         res_init, go through the list of registered files.
16338         (main_loop_poll): The inotify descriptors are now stored in the
16339         structures for the traced files.
16340         (main_loop_epoll): Likewise
16341         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16342         to __nss_disable_nscd.
16343         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16344         for a database anymore.  Check the records for all the registered
16345         files instead.
16346         * nss/Makefile (libnss_files-routines): Add files-init.
16347         (libnss_db-routines): Add db-init.
16348         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16349         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16350         * nss/nss_db/db-init.c: New file.
16351         * nss/nss_files/files-init.c: New file.
16352         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16353         __nss_lookup_function.
16354         (__nss_lookup_function): Call nss_load_library.
16355         (nss_load_all_libraries): New function.
16356         (__nss_disable_nscd): Take parameter with callback function for files
16357         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16358         used for the cached services.
16359         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16360         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16361         options for features to all the files in nscd.
16362
16363         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16364
16365 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16366
16367         * csu/elf-init.c (__libc_csu_init): Comment typo.
16368
16369 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16370
16371         * po/pl.po: Update from translation team.
16372         * po/ja.po: Likewise.
16373         * po/ru.po: Likewise.
16374         * po/ko.po: Likewise.
16375         * po/fr.po: Likewise.
16376
16377 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16378
16379         * configure.in (.ctors/.dtors header and trailer check):
16380         Use an empirical test on a built program.
16381         * configure: Regenerated.
16382
16383         * configure.in (-z relro check): Use an empirical test on a built DSO.
16384         Detect, but do not require, on ia64.
16385         * configure: Regenerated.
16386
16387         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16388         Update tests that use readelf to use $READELF instead.
16389         * configure: Regenerated.
16390
16391 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16392
16393         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16394         if the result is not used.
16395
16396 2011-07-05  Andreas Jaeger  <aj@suse.de>
16397
16398         [BZ#9696]
16399         * stdlib/tst-strtod.c: Add testcase.
16400
16401 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16402
16403         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16404         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16405         The latter has a higher limit.  Take additional parameter to pass to
16406         the new function.
16407         (__pathconf): Pass file to __statfs_link_max.
16408         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16409         __statfs_link_max.
16410         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16411         __statfs_link_max.
16412
16413         [BZ #12868]
16414         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16415         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16416         Handle Lustre.
16417         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16418         (__statfs_filesize_max): Likewise.
16419         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16420
16421 2011-07-05  Andreas Jaeger  <aj@suse.de>
16422
16423         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16424
16425 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16426
16427         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16428         `status' variable.
16429         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16430         Likewise.
16431
16432 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16433
16434         * Makefile (strop-tests): Add strncat.
16435         * string/test-strncat.c: New file.
16436
16437 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16438
16439         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16440
16441 2011-06-21  Andreas Jaeger  <aj@suse.de>
16442
16443         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16444         Copy rule from iconvdata/Makefile.
16445
16446 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16447
16448         [BZ #12922]
16449         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16450         but no long options are defined, just return 'W'.
16451
16452 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16453
16454         [BZ #9696]
16455         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16456
16457 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16458
16459         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16460         netgroups to read.
16461         (innetgr): Likewise.
16462
16463 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16464
16465         * config.make.in (install_root): Default to $(DESTDIR).
16466
16467 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16468
16469         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16470
16471 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16472
16473         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16474
16475         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16476         containing directory rather than embedding absolute directory names.
16477
16478         * scripts/check-local-headers.sh: Rewritten using awk.
16479         Match by word, not by line.  Print error messages for matches.
16480         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16481
16482         * Makerules [shlib-lds-flags empty]:
16483         ($(common-objpfx)libc_pic.opts): New target.
16484         ($(common-objpfx)libc_pic.os.clean): New target.
16485         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16486
16487         * config.make.in (OBJCOPY): New variable.
16488         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16489         * configure: Regenerated.
16490
16491         * config.make.in (use-default-link): New variable.
16492         * configure.in (use_default_link): Grok --with-default-link to set it.
16493         * configure: Regenerated.
16494         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16495         (shlib-lds, shlib-lds-flags): Define to empty.
16496
16497         * Makerules (shlib-lds): New variable.
16498         (shlib-lds-flags): New variable.
16499         (build-shlib, build-moduile, build-module-asneeded): Use it.
16500         ($(common-objpfx)libc.so): Use $(shlib-lds).
16501         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16502         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16503
16504         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16505         DT_FLAGS/DT_FLAGS_1 with zero flags.
16506
16507         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16508         linker script munging.
16509
16510 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16511
16512         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16513         as 128-bit value.
16514         * crypt/sha512.c (sha512_process_block): Perform total addition using
16515         128-bit if possible.
16516         (__sha512_finish_ctx): Likewise.
16517         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16518         as 64-bit value.
16519         * crypt/sha256.c (SWAP64): Define.
16520         (sha256_process_block): Perform total addition using 64-bit if
16521         possible.
16522         (__sha256_finish_ctx): Likewise.
16523
16524 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16525
16526         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16527         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16528         * nscd/hstcache.c (cache_addhst): Likewise.
16529         * nscd/grpcache.c (cache_addgr): Likewise.
16530         * nscd/aicache.c (addhstaiX): Likewise
16531         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16532
16533 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16534
16535         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16536         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16537         * nscd/hstcache.c (cache_addhst): Likewise.
16538         * nscd/grpcache.c (cache_addgr): Likewise.
16539         * nscd/aicache.c (addhstaiX): Likewise
16540
16541 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16542
16543         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16544         domain only when needed.
16545
16546 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16547
16548         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16549         is always restored.
16550
16551 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16552
16553         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16554         are re-adding the entry.
16555         * nscd/servicescache.c (cache_addserv): Likewise.
16556
16557 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16558
16559         * sysdeps/generic/dl-irel.h: fix protection against multiple
16560         inclusions.
16561         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16562
16563 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16564
16565         [BZ #12935]
16566         * malloc/memusage.sh: Fix quoting in message.
16567         * debug/xtrace.sh: Likewise.
16568
16569         * configure.in: Remove support for --experimental-malloc option, make
16570         it the default.
16571         * config.make.in: Likewise.
16572         * malloc/Makefile: Likewise.
16573
16574 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16575
16576         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16577         two-byte characters.
16578
16579 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16580
16581         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16582         AC_CACHE_CHECK invocation.
16583         * configure: Regenerated.
16584
16585         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16586
16587 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16588
16589         [BZ #12350]
16590         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16591         bit from old_res_options.
16592
16593         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16594
16595         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16596         value type for setfct.
16597
16598 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16599
16600         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16601         __gettimeofday instead of gettimeofday.
16602
16603 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16604
16605         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16606
16607 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16608
16609         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16610
16611         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16612         info.
16613
16614 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16615
16616         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16617         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16618         strcpy-sse2-unaligned strncpy-sse2-unaligned
16619         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16620         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16621         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16622         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16623         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16624         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16625         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16626         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16627         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16628         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16629         (STRCPY): Support SSE2 and SSSE3 versions.
16630
16631 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16632
16633         [BZ #12874]
16634         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16635         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16636         kernels which artificially limit size of requests.
16637
16638 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16639
16640         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16641         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16642         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16643         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16644         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16645         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16646         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16647         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16648         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16649         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16650         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16651         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16652         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16653         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16654         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16655         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16656         Enable unaligned load optimization for Intel Core i3, i5 and i7
16657         processors.
16658         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16659         Define.
16660         (index_Fast_Unaligned_Load): Define.
16661         (HAS_FAST_UNALIGNED_LOAD): Define.
16662
16663 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16664
16665         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16666
16667 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16668
16669         [BZ #12907]
16670         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16671         until it is clear that the information is realy needed.
16672         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16673
16674 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16675
16676         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16677
16678 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16679
16680         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16681         /sys/devices/system/cpu/online if it is usable.
16682
16683         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16684         reading the information from the /proc filesystem to once a second.
16685
16686 2011-06-21  Andreas Jaeger  <aj@suse.de>
16687
16688         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16689         NULL after inclusion of kernel headers.
16690
16691 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16692
16693         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16694         calls to internal_setent.
16695
16696         [BZ #12885]
16697         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16698         addresses using gethostbyname4_r ignore IPv4 addresses.
16699
16700         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16701         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16702
16703         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16704
16705 2011-06-20  David S. Miller  <davem@davemloft.net>
16706
16707         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16708         inclusions.
16709         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16710
16711         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16712         (elf_irel): Use it.
16713         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16714         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16715         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16716         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16717         * sysdeps/x86_64/dl-irel.h: Likewise.
16718
16719         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16720         * elf/dl-sym.c: Likewise.
16721
16722 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16723
16724         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16725         need to dereference resplen2.
16726
16727 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16728
16729         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16730
16731 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16732
16733         * Makeconfig: Define vardbdir and inst_vardbdir.
16734         * nss/Makefile: Add rules to install db-Makefile.
16735
16736         * nss/nss_db/db-XXX.c: Cleanup.
16737
16738         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16739         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16740         GLIBC_PRIVATE.
16741         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16742         * nss/makedb.c: Implement -g option to specify that value strings
16743         are generated and should not be added to table iterated over for
16744         get*ent calls.
16745         * nss/nss_db/db-initgroups.c: New file.
16746
16747         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16748         interface.
16749
16750         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16751         (internal_getgrouplist): Adjust to name change.
16752         Update use_initgroups_entry if this is not the first call.
16753         * nss/databases.def: Add initgroups entry.
16754
16755         * nss/makedb.c (compute_tables): Check result of multiple hash table
16756         sizes to minimize maximum chain length.
16757
16758 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16759
16760         * Versions.def: Add entry for libnss_db.
16761         * shlib-versions: Likewise.
16762         * nss/Makefile: Add rules to build libnss_db.
16763         * nss/Versions: Add libnss_db information.  Organize libnss_files
16764         entries better.
16765         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16766         makedb progra.  Some minor improvements to generate smaller files.
16767         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16768         here from...
16769         * nss/makedb.c: ...here.
16770         Improve database format to be smaller and require less memory at
16771         runtime.
16772         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16773         db anymore.
16774         * nss/nss_db/db-netgrp.c: Likewise.
16775         * nss/nss_db/db-open.c: Likewise.
16776         * nss/nss_files/flies-XXX.x: Adjust comments.
16777         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16778         * nss/nss_files/files-grp.c: Likewise.
16779         * nss/nss_files/files-hosts.c: Likewise.
16780         * nss/nss_files/files-network.c: Likewise.
16781         * nss/nss_files/files-proto.c: Likewise.
16782         * nss/nss_files/files-pwd.c: Likewise.
16783         * nss/nss_files/files-rpc.c: Likewise.
16784         * nss/nss_files/files-service.c: Likewise.
16785         * nss/nss_files/files-sgrp.c: Likewise.
16786         * nss/nss_files/files-spwd.c: Likewise.
16787         * nss/nss_db/db-alias.c: Removed.
16788         * nss/nss_db/dummy-db.h: Removed.
16789
16790 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16791
16792         * nss/makedb.c: Rewritten to not use database library.
16793         * nss/Makefile: Update to build new makedb program.
16794
16795 2011-06-14  Andreas Jaeger  <aj@suse.de>
16796
16797         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16798         memset declaration.
16799
16800 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16801
16802         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16803         tmpbuf.
16804
16805 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16806
16807         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16808         * elf/Makefile ($(objpfx)ld.so): Likewise.
16809
16810         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16811         Don't list ld.so twice in dependencies.
16812
16813         * posix/bug-regex31.c: Include <stdlib.h>.
16814
16815         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16816
16817         * nis/nss_compat/compat-spwd.c
16818         (getspent_next_nss_netgr): Remove unused variable.
16819         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16820
16821         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16822         nonmembers" output to use the right array.
16823
16824         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16825
16826         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16827
16828         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16829         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16830         * catgets/gencat.c (read_input_file): Likewise.
16831         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16832
16833         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16834         variable definition inside #if's controlling its use.
16835
16836         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16837
16838         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16839
16840         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16841
16842         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16843         unreachable code.
16844
16845         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16846
16847         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16848         * configure: Regenerated.
16849
16850         * Makerules: Revert last change.
16851         * elf/Makefile: Likewise.
16852
16853 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16854
16855         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16856         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16857         (reloc-link): Likewise.
16858
16859 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16860
16861         * elf/Makefile: Add rules to build pldd.
16862         * elf/pldd.c: New file.
16863         * elf/pldd-xx.c: New file.
16864
16865 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16866
16867         * version.h: Update for 2.15 development version.
16868
16869 2011-06-07  David S. Miller  <davem@davemloft.net>
16870
16871         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16872         ifuncs.
16873         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16874         elf_machine_lazy_rel): Likewise.
16875         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16876         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16877         elf_machine_lazy_rel): Likewise.
16878         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16879         dl_hwcap via passed in argument.
16880         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16881         Likewise.
16882
16883 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16884
16885         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16886
16887 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16888
16889         [BZ #12849]
16890         * manual/fdl-1.1.texi: New file, verbatim from:
16891         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16892         * manual/lgpl-2.1.texi: New file, verbatim from:
16893         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16894         * manual/Makefile (licenses): New variable, list those new file names.
16895         (texis): Use it.
16896         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16897
16898         * manual/fdl.texi: File removed.
16899         * manual/lesser.texi: File removed.
16900         * manual/libc.texinfo (Copying, Documentation License):
16901         Use new @include file names, put @appendix directive before @include.
16902
16903 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16904
16905         [BZ #12841]
16906         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16907         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16908         (mq_open): Add __NTH.
16909
16910 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16911
16912         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16913         Assume Intel Core i3/i5/i7 processor if AVX is available.
16914
16915 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16916
16917         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16918         typo.
16919
16920 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16921
16922         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16923         memory.  Use alloca_account.  Fix memory leak when retrying.
16924
16925 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16926
16927         * version.h (RELEASE): Bump for 2.14 release.
16928         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16929
16930         * config.make.in (RANLIB): Remove entry.
16931
16932 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16933
16934         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16935         (libc.pot): Work around missing support for .ksh extension in xgettext.
16936
16937         [BZ #12684]
16938         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16939         if both request failed.
16940         (send_dg): In case of server errors clear resplen or *resplen2.
16941
16942         [BZ #12454]
16943         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16944         when there are multiple maps.
16945         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16946         (_dl_fini): Remove test here.
16947
16948         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16949
16950 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16951
16952         [BZ #12350]
16953         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16954         bit from old_res_options.
16955         (gaih_inet): Likewise.
16956
16957         [BZ #11099]
16958         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16959         as signed.
16960
16961         * resolv/res_init.c (res_setoptions): Make the code more compact.
16962
16963         [BZ #11558]
16964         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16965         set RES_USEVC.
16966
16967         [BZ #11634]
16968         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16969
16970         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16971
16972         [BZ #11781]
16973         * malloc/malloc.h: Declare malloc hook variables as volatile.
16974
16975         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16976         in last patch.
16977
16978         [BZ #11799]
16979         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16980         raise in the comment.
16981         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16982         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16983         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16984
16985 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16986
16987         [BZ #12811]
16988         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16989         grow the buffers more if it already has to be sufficient.
16990         (build_wcs_upper_buffer): Likewise.
16991         * posix/regexec.c (check_matching): Likewise.
16992         (clean_state_log_if_needed): Likewise.
16993         (extend_buffers): Don't enlarge buffers beyond size of the input
16994         buffer.
16995         Patches mostly by Emil Wojak <emil@wojak.eu>.
16996         * posix/bug-regex32.c: New file.
16997         * posix/Makefile (tests): Add bug-regex32.
16998
16999         * locale/findlocale.c (_nl_find_locale): Return right away if
17000         _nl_explode_name failed.
17001         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17002
17003         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17004
17005         * debug/xtrace.sh: Unify messages.
17006         * malloc/memusage.sh: Likewise.
17007
17008         [BZ #12813]
17009         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17010         time symbol from vDSO.  Substitute with vsyscall if not available.
17011         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17012         __vdso_time.
17013
17014         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17015         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17016         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17017         Add sendmmsg and internal_sendmmsg.
17018         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17019         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17020         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17021
17022         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17023         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17024         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17025
17026 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17027
17028         [BZ #12813]
17029         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17030         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17031         available.
17032         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17033         __vdso_getcpu.
17034
17035         [BZ #12814]
17036         * iconvdata/Makefile (tests): Add bug-iconv9.
17037         * iconvdata/bug-iconv9.c: New file.
17038
17039 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17040
17041         [BZ #12814]
17042         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17043
17044 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17045
17046         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17047         (struct user_regs_struct): Change intcs field back to cs.
17048
17049 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17050
17051         * po/ja.po: Update from translation team.
17052
17053 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17054
17055         [BZ #12795]
17056         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17057         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17058
17059 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17060
17061         * stdlib/longlong.h: Update from GCC.
17062
17063 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17064
17065         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17066         parameter name.
17067         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17068         Add parameter name.
17069         (__sysconf): Pass it down.
17070
17071 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17072
17073         [BZ #12671]
17074         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17075         some situations.
17076         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17077         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17078         add in in __libc_use_alloca calls.  Adjust callers.
17079         (glob): Use malloc in some situations.
17080
17081         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17082         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17083         pltexit.
17084
17085 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17086
17087         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17088         and CLOCK_BOOTTIME_ALARM.
17089
17090         [BZ #12782]
17091         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17092         is returned.
17093
17094         * string/_strerror.c (__strerror_r): Print negative errors as signed
17095         numbers.
17096
17097         [BZ #12777]
17098         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17099         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17100         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17101
17102         * configure.in: Fix typo in redirection and correct removal of test
17103         files in two cases.
17104
17105         [BZ #12788]
17106         * locale/setlocale.c (new_composite_name): Fix test to check for
17107         identical name of all categories.
17108
17109         [BZ #12792]
17110         * libio/filedoalloc.c (local_isatty): New function.
17111         (_IO_file_doallocate): Use local_isatty.
17112         * stdio-common/perror.c (perror): In case a new stream is used
17113         forward the stream error.
17114         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17115         error flag.
17116
17117 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17118
17119         [BZ #11869]
17120         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17121         alloca.
17122         * include/alloca.h (extend_alloca_account): Define.
17123
17124         [BZ #11857]
17125         * posix/regex.h: Fix comments with documentation of user-accessible
17126         fields after compilation and describe correct free'ing of pattern
17127         after re_compile_pattern.
17128         Patch by Reuben Thomas <rrt@sc3d.org>.
17129
17130 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17131
17132         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17133         and -mno-altivec to prevent the compiler from using Altivec and/or
17134         VSX instructions when the corresponding registers are not available.
17135
17136 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17137
17138         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17139
17140 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17141
17142         * libio/freopen.c (freopen): Use __dup2, not dup2.
17143         * libio/freopen64.c (freopen64): Likewise.
17144
17145 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17146
17147         [BZ #12775]
17148         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17149         * math/Makefile (tests): Add test-powl.
17150         (CFLAGS-test-powl.c): Define.
17151         * math/test-powl.c: New file.
17152
17153 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17154
17155         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17156
17157 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17158
17159         [BZ #11837]
17160         * iconvdata/gb18030.c: Update to GB18020-2005.
17161
17162 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17163
17164         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17165         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17166         Patch by Aharon Robbins <arnold@skeeve.com>.
17167
17168         [BZ #11892]
17169         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17170         on the stack.
17171
17172         [BZ #11895]
17173         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17174         through underflows.
17175
17176         [BZ #12766]
17177         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17178         point to strings before performing equality test for error_one_per_line
17179         mode.
17180
17181         [BZ #11697]
17182         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17183
17184         [BZ #11820]
17185         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17186         (struct user_fpregs_struct): Avoid __uint*_t types.
17187
17188         [BZ #6420]
17189         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17190         symbol info.  Use it instead of calling _dl_addr locally.
17191         (lock_and_info): New function.
17192         (tr_freehook): Call lock_and_info and pass symbol info as additional
17193         parameter to tr_where.
17194         (tr_mallochook): Likewise.
17195         (tr_reallochook): Likewise.
17196         (tr_memalignhook): Likewise.
17197
17198         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17199         used and couldn't be at all thread-safe.
17200
17201 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17202
17203         * libio/freopen.c (freopen): Don't close old file descriptor
17204         before the new one is opened.  Instead dup the new file descriptor
17205         to the old one after the new stream is created.
17206         * libio/freopen64.c (freopen64): Likewise.
17207         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17208         * libio/fileops.c (_IO_new_file_close_it): Handle new
17209         _IO_FLAGS2_NOCLOSE flag.
17210         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17211         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17212         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17213         _IO_FLAGS2_NOCLOSE flag.
17214         * include/unistd.h: Add hidden_proto for dup3.
17215         Define __have_dup3.
17216         * io/dup3.c: Define hidden symbol.
17217         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17218
17219         [BZ #7101]
17220         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17221         when an incomplete long option is used.
17222         * posix/tst-getopt_long1.c: New file.
17223         * posix/Makefile (tests): Add tst-getopt_long1.
17224
17225         [BZ #10138]
17226         * scripts/config.guess: Update from autoconf-2.68.
17227         * scripts/config.sub: Likewise.
17228
17229         [BZ #10157]
17230         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17231         tests into ...
17232         (has_cpuclock): ...this.  New function.
17233         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17234         macro here based on has_cpuclock code.
17235
17236         [BZ #10149]
17237         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17238         First byte (not low byte) is now always NUL.
17239         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17240
17241         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17242         Use non-cancelable interfaces.
17243
17244         [BZ #9809]
17245         * locale/iso-639.def: Add entry for Sorani.
17246
17247         [BZ #11901]
17248         * include/stdlib.h: Move include protection to the right place.
17249         Define abort_msg_s.  Declare __abort_msg with it.
17250         * stdlib/abort.c (__abort_msg): Adjust type.
17251         * assert/assert.c (__assert_fail_base): New function.  Majority
17252         of code from __assert_fail.  Allocate memory for __abort_msg with
17253         mmap.
17254         (__assert_fail): Now call __assert_fail_base.
17255         * assert/assert-perr.c: Remove bulk of implementation.  Use
17256         __assert_fail_base.
17257         * include/assert.hL Declare __assert_fail_base.
17258         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17259         mmap.
17260         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17261
17262 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17263
17264         [BZ #11952]
17265         [BZ #12453]
17266         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17267         until all modules are registered in the DTV.
17268         * elf/Makefile: Add rules to build and run tst-tls19.
17269         * elf/tst-tls19.c: New file.
17270         * elf/tst-tls19mod1.c: New file.
17271         * elf/tst-tls19mod2.c: New file.
17272         * elf/tst-tls19mod3.c: New file.
17273         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17274
17275         [BZ #12083]
17276         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17277         correctly.
17278
17279         [BZ #12601]
17280         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17281         two-byte sequence errors.
17282         * iconvdata/Makefile (tests): Add bug-iconv8.
17283         * iconvdata/bug-iconv8.c: New file.
17284
17285         [BZ #12626]
17286         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17287         buf2 definition.
17288
17289         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17290
17291         [BZ #12432]
17292         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17293         (dummy_getcfa): New function.
17294         (init): Get _Unwind_GetCFA address, use dummy if not found.
17295         (backtrace_helper): In recursion check, also check whether CFA changes.
17296         (__backtrace): Completely initialize arg.
17297
17298         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17299         storing incomplete byte sequence in state object.  Avoid testing for
17300         guaranteed too small input if we know there is enough data available.
17301
17302 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17303
17304         * Makeconfig (+link-pie): Indent.
17305         * Rules (binaries-pie): Define if $(have-fpie) and
17306         $(build-shared).
17307         (binaries-shared): Also filter out $(binaries-pie).
17308         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17309         * nscd/Makefile (others-pie): Add nscd.
17310         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17311         ($(objpfx)nscd): Remove command override.
17312         * login/Makefile (others-pie): Add pt_chown.
17313         ($(objpfx)pt_chown): Remove command override.
17314         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17315         remove command overrides.
17316
17317 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17318
17319         * libio/tst_putwc.c: Fix error messages.
17320
17321         [BZ #12724]
17322         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17323         currently writing and seek to current position when not.
17324         * libio/Makefile (tests): Add bug-fclose1.
17325         * libio/bug-fclose1.c: New file.
17326
17327 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17328
17329         [BZ #12511]
17330         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17331         don't set DF_1_NODELETE here.
17332         (do_lookup_x): When entering new entry test for copy relocation
17333         and if necessary set DF_1_NODELETE flag.
17334         * elf/tst-unique4.cc: New file.
17335         * elf/tst-unique4.h: New file.
17336         * elf/tst-unique4lib.cc: New file.
17337         * elf/Makefile: Add rules to build and run tst-unique4.
17338         Patch by Piotr Bury <pbury@goahead.com>.
17339
17340 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17341
17342         [BZ #12052]
17343         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17344
17345         [BZ #12625]
17346         * misc/mntent_r.c (addmntent): Flush the stream after the output
17347
17348         [BZ #12393]
17349         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17350         (is_trusted_path_normalize): Skip initial colon.  Append slash
17351         to empty buffer.  Duplicate is_trusted_path code but allow
17352         constructed patch to be prefix.
17353         (is_dst): Allow $ORIGIN followed by /.
17354         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17355         Correct testing of result of is_trusted_path_normalize
17356         (decompose_rpath): Fix warning.
17357
17358 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17359
17360         [BZ #11257]
17361         * grp/initgroups.c (internal_getgrouplist): When we found the service
17362         list through the initgroups entry in nsswitch.conf do not always
17363         continue on a successful lookup.  Don't always use the
17364         __nss_group_database value if it is set.
17365         * nss/nsswitch.conf (initgroups): Change action for successful db
17366         lookup to continue for compatibility.
17367
17368 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17369
17370         [BZ #11532]
17371         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17372         and CP774 modules.
17373         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17374         and CP774 modules.
17375         * iconvdata/tst-tables.sh: Likewise.
17376         * iconvdata/cp770.c: New file.
17377         * iconvdata/cp771.c: New file.
17378         * iconvdata/cp772.c: New file.
17379         * iconvdata/cp773.c: New file.
17380         * iconvdata/cp774.c: New file.
17381         * iconvdata/testdata/CP770: New file.
17382         * iconvdata/testdata/CP770..UTF8: New file.
17383         * iconvdata/testdata/CP771: New file.
17384         * iconvdata/testdata/CP771..UTF8: New file.
17385         * iconvdata/testdata/CP772: New file.
17386         * iconvdata/testdata/CP772..UTF8: New file.
17387         * iconvdata/testdata/CP773: New file.
17388         * iconvdata/testdata/CP773..UTF8: New file.
17389         * iconvdata/testdata/CP774: New file.
17390         * iconvdata/testdata/CP774..UTF8: New file.
17391
17392         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17393         END CHARMAP line.
17394         * iconvdata/gen-8bit-gap.sh: Likewise.
17395         * iconvdata/gen-8bit.sh: Likewise.
17396
17397         * locale/iso-639.def: Add ary entry.
17398
17399         [BZ #11258]
17400         * locale/C-translit.h.in: Add U20A1 transliteration.
17401
17402         [BZ #12178]
17403         * locale/iso-639.def: Add wae entry.
17404         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17405
17406         [BZ #12545]
17407         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17408         for n.
17409
17410         [BZ #12711]
17411         * locale/C-translit.h.in: Add entry for U20B9.
17412         Patch by pravin.d.s@gmail.com.
17413
17414 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17415
17416         [BZ #12713]
17417         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17418         ENAMETOOLONG use generic getcwd.
17419         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17420         in rtld.  Use *stat64.
17421         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17422         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17423         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17424         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17425         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17426         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17427         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17428         __fstatat64 macros.
17429         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17430         * dirent/rewinddir.c: Add libc_hidden_def.
17431         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17432         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17433
17434         * include/dirent.h (__alloc_dir): Add flags parameter.
17435         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17436         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17437         __alloc_dir.
17438         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17439         from fdopendir if O_CLOEXEC is already set.
17440
17441 2011-03-15  Alan Modra  <amodra@gmail.com>
17442
17443         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17444         l_tls_firstbyte_offset non-zero.  Save padding offset in
17445         l_tls_firstbyte_offset for later use.
17446         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17447         freeing static tls block.
17448
17449 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17450
17451         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17452         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17453         being defined by the kernel headers.
17454
17455 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17456
17457         [BZ #12734]
17458         * resolv/resolv.h: Define RES_NOTLDQUERY.
17459         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17460         no-tld-query and set RES_NOTLDQUERY.
17461         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17462         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17463         modern BIND to search name as TLD unless forbidden.
17464
17465 2011-05-07  Petr Baudis  <pasky@suse.cz>
17466             Ulrich Drepper  <drepper@gmail.com>
17467
17468         [BZ #12393]
17469         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17470         (is_trusted_path): ...to here.
17471         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17472         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17473         using is_trusted_path_normalize() in setuid scripts.
17474
17475 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17476
17477         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17478         __BEGIN/__END_DECLS.
17479
17480 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17481
17482         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17483         NSS_STATUS_NOTFOUND if no record was found.
17484
17485 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17486
17487         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17488         (headers-not-in-tirpc): Remove rpc/netdb.h
17489         * resolv/netdb.h: Revert last change.
17490
17491 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17492
17493         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17494         circular dependency between libgcc.a and libc.a.
17495
17496 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17497
17498         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17499         * nis/Makefile: Don't install rpcsvc/*.
17500         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17501         instead of <rpc/types.h>.
17502         (MAXHOSTNAMELEN): Define.
17503
17504 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17505
17506         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17507
17508 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17509
17510         [BZ #12714]
17511         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17512         gethostbyname4_r when IPv6 results are possible.
17513
17514 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17515
17516         [BZ #12723]
17517         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17518         _PC_PIPE_BUF handling.
17519
17520 2011-04-30  Bruno Haible  <bruno@clisp.org>
17521
17522         [BZ #12717]
17523         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17524         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17525         to 'int'.
17526         * inet/getnameinfo.c (getnameinfo): Likewise.
17527
17528 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17529
17530         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17531         to groups setting in database lookup.
17532         * nss/nsswitch.conf: Add initgroups entry.
17533
17534 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17535
17536         [BZ #12685]
17537         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17538         mode string.
17539         Patch by Eric Blake <eblake@redhat.com>.
17540
17541 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17542
17543         * sunrpc/Makefile (need-export-routines): Add svc_run.
17544         (routines): Remove svc_run.
17545         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17546         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17547         * sunrpc/svc_run.c (svc_run): Likewise.
17548         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17549
17550 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17551
17552         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17553         problem in reallocation in last patch.
17554
17555 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17556
17557         * sunrpc/Makefile: Move inclusion of Rules.
17558
17559 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17560
17561         * nss/nss_files/files-initgroups.c: New file.
17562         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17563         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17564         _nss_files_initgroups_dyn.
17565
17566 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17567
17568         * elf/elf.h (R_ARM_IRELATIVE): Define.
17569
17570 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17571
17572         * po/ru.po: Update from translation team.
17573
17574 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17575
17576         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17577         dependencies.
17578
17579 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17580
17581         [BZ #12653]
17582         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17583         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17584         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17585         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17586         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17587
17588 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17589
17590         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17591         differing bytes.
17592         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17593         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17594         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17595
17596 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17597
17598         [BZ #12420]
17599         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17600         storing it.
17601         * stdlib/bug-getcontext.c: New file.
17602         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17603
17604 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17605
17606         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17607         instructions into .machine "z9-109".
17608         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17609         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17610
17611 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17612
17613         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17614         between environment variables and auxiliary vector.
17615
17616 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17617
17618         * Makefile: Add rules to build linkobj/libc.so.
17619         * include/libc-symbols.h: Define libc_hidden_nolink.
17620         * include/rpc/auth.h: Mark functions which are to be hidden.
17621         * include/rpc/auth_des.h: Likewise.
17622         * include/rpc/auth_unix.h: Likewise.
17623         * include/rpc/clnt.h: Likewise.
17624         * include/rpc/des_crypt.h: Likewise.
17625         * include/rpc/key_prot.h: Likewise.
17626         * include/rpc/pmap_clnt.h: Likewise.
17627         * include/rpc/pmap_prot.h: Likewise.
17628         * include/rpc/pmap_rmt.h: Likewise.
17629         * include/rpc/rpc_msg.h: Likewise.
17630         * include/rpc/svc.h: Likewise.
17631         * include/rpc/svc_auth.h: Likewise.
17632         * include/rpc/xdr.h: Likewise.
17633         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17634         * nss/Makefile: Likewise.
17635         * sunrpc/Makefile: Don't install headers.  Build library with normal
17636         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17637         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17638         for the compat linking library.  Remove use of INTDEF/INTUSE.
17639         * sunrpc/auth_none.c: Likewise.
17640         * sunrpc/auth_unix.c: Likewise.
17641         * sunrpc/authdes_prot.c: Likewise.
17642         * sunrpc/authuxprot.c: Likewise.
17643         * sunrpc/clnt_gen.c: Likewise.
17644         * sunrpc/clnt_perr.c: Likewise.
17645         * sunrpc/clnt_raw.c: Likewise.
17646         * sunrpc/clnt_simp.c: Likewise.
17647         * sunrpc/clnt_tcp.c: Likewise.
17648         * sunrpc/clnt_udp.c: Likewise.
17649         * sunrpc/clnt_unix.c: Likewise.
17650         * sunrpc/des_crypt.c: Likewise.
17651         * sunrpc/des_soft.c: Likewise.
17652         * sunrpc/get_myaddr.c: Likewise.
17653         * sunrpc/key_call.c: Likewise.
17654         * sunrpc/key_prot.c: Likewise.
17655         * sunrpc/netname.c: Likewise.
17656         * sunrpc/pm_getmaps.c: Likewise.
17657         * sunrpc/pm_getport.c: Likewise.
17658         * sunrpc/pmap_clnt.c: Likewise.
17659         * sunrpc/pmap_prot.c: Likewise.
17660         * sunrpc/pmap_prot2.c: Likewise.
17661         * sunrpc/pmap_rmt.c: Likewise.
17662         * sunrpc/publickey.c: Likewise.
17663         * sunrpc/rpc_cmsg.c: Likewise.
17664         * sunrpc/rpc_common.c: Likewise.
17665         * sunrpc/rpc_dtable.c: Likewise.
17666         * sunrpc/rpc_prot.c: Likewise.
17667         * sunrpc/rpc_thread.c: Likewise.
17668         * sunrpc/rtime.c: Likewise.
17669         * sunrpc/svc.c: Likewise.
17670         * sunrpc/svc_auth.c: Likewise.
17671         * sunrpc/svc_authux.c: Likewise.
17672         * sunrpc/svc_raw.c: Likewise.
17673         * sunrpc/svc_run.c: Likewise.
17674         * sunrpc/svc_simple.c: Likewise.
17675         * sunrpc/svc_tcp.c: Likewise.
17676         * sunrpc/svc_udp.c: Likewise.
17677         * sunrpc/svc_unix.c: Likewise.
17678         * sunrpc/svcauth_des.c: Likewise.
17679         * sunrpc/xcrypt.c: Likewise.
17680         * sunrpc/xdr.c: Likewise.
17681         * sunrpc/xdr_array.c: Likewise.
17682         * sunrpc/xdr_float.c: Likewise.
17683         * sunrpc/xdr_intXX_t.c: Likewise.
17684         * sunrpc/xdr_mem.c: Likewise.
17685         * sunrpc/xdr_rec.c: Likewise.
17686         * sunrpc/xdr_ref.c: Likewise.
17687         * sunrpc/xdr_sizeof.c: Likewise.
17688         * sunrpc/xdr_stdio.c: Likewise.
17689
17690 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17691
17692         [BZ #12650]
17693         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17694         * sysdeps/ia64/dl-tls.h: Likewise.
17695         * sysdeps/powerpc/dl-tls.h: Likewise.
17696         * sysdeps/s390/dl-tls.h: Likewise.
17697         * sysdeps/sh/dl-tls.h: Likewise.
17698         * sysdeps/sparc/dl-tls.h: Likewise.
17699         * sysdeps/x86_64/dl-tls.h: Likewise.
17700         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17701
17702 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17703
17704         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17705         rpath element also skip the following colon.
17706         (expand_dynamic_string_token): Add is_path parameter and pass
17707         down to DL_DST_REQUIRED and _dl_dst_substitute.
17708         (decompose_rpath): Call expand_dynamic_string_token with
17709         non-zero is_path.  Ignore empty rpaths.
17710         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17711         with zero is_path.
17712
17713 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17714
17715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17716         Make cancelable.
17717
17718 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17719
17720         [BZ #12655]
17721         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17722         Patch by Filipe David Manana <fdmanana@apache.org>.
17723
17724 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17725
17726         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17727         Maintain aligned stack.
17728         (CHECK_RSP): Remove unused macro.
17729
17730 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17731
17732         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17733         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17734
17735 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17736
17737         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17738
17739         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17740
17741 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17742
17743         [BZ #12518]
17744         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17745         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17746         * sysdeps/x86_64/memmove.c: New file.
17747         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17748         (memcpy): Renamed to ...
17749         (__new_memcpy): This.
17750         (memcpy): Provide GLIBC_2_14 memcpy.
17751         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17752         (memcpy): Provide GLIBC_2_2_5 memcpy.
17753
17754 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17755
17756         [BZ #12631]
17757         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17758
17759 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17760
17761         * misc/syncfs.c: New file.
17762         * misc/Makefile (routines): Add syncfs.
17763         * posix/unistd.h: Declare syncfs.
17764         * sysdeps/unix/syscalls.list: Add syncfs.
17765
17766 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17767
17768         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17769         open_by_handle_at.
17770         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17771         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17772         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17773         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17774         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17775         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17776         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17777
17778 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17779
17780         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17781         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17782         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17783         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17784         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17785         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17786         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17787
17788         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17789         sync_file_range.c with -fexceptions.
17790         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17791         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17792         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17793         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17794         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17795         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17796         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17797         sync_file_range as cancellation point
17798         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17799         now a wrapper around __call_sync_file_range with cancellation handling.
17800         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17801         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17802         function name to __call_sync_file_range.
17803         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17804         Add call_sync_file_range.
17805
17806 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17807
17808         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17809         bits/timex.h.
17810
17811 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17812
17813         * iconv/iconv.h: Fix typo in comment.
17814         * io/fcntl.h: Likewise.
17815         * libio/stdio.h: Likewise.
17816         * posix/spawn.h: Likewise.
17817         * posix/unistd.h: Likewise.
17818         * stdlib/stdlib.h: Likewise.
17819         * time/time.h: Likewise.
17820         * wcsmbs/wchar.h: Likewise.
17821
17822         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17823         open_by_handle): Add.
17824         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17825         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17826         Augment a few comments.
17827         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17828         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17829         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17830         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17831         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17832         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17833         open_by_handle.
17834
17835         * io/fcntl.h (AT_EMPTY_PATH): Define.
17836
17837 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17838
17839         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17840         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17841         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17842         to...
17843         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17844         * Versions.def: Add GLIBC_2.14.
17845         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17846         Export.
17847
17848 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17849
17850         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17851         round counter.
17852         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17853
17854 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17855
17856         [BZ #12597]
17857         * string/test-strncmp.c (do_page_test): New function.
17858         (check2): Likewise.
17859         (test_main): Call check2.
17860         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17861
17862 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17863
17864         [BZ #12587]
17865         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17866         Handle cache information in CPU leaf 4.
17867         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17868
17869 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17870
17871         [BZ #12583]
17872         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17873         character representation.
17874         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17875
17876 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17877
17878         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17879         END(__isnan) to END(__isnanf) to match function entry point/label
17880         EALIGN(__isnanf,...).
17881
17882 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17883
17884         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17885
17886 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17887
17888         [BZ #12510]
17889         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17890         copy from the symbol referenced in the relocation to initialize the
17891         used variable.
17892         Patch by Piotr Bury <pbury@goahead.com>.
17893         * elf/Makefile: Add rules to build and tst-unique3.
17894         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17895         * elf/tst-unique3.cc: New file.
17896         * elf/tst-unique3.h: New file.
17897         * elf/tst-unique3lib.cc: New file.
17898         * elf/tst-unique3lib2.cc: New file.
17899
17900         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17901
17902 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17903
17904         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17905         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17906         to _start.
17907
17908 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17909
17910         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17911         to-be-loaded object along a path to loader is ld.so.
17912
17913 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17914             Ulrich Drepper  <drepper@gmail.com>
17915
17916         * sysdeps/x86_64/memset.S: After aligning destination, code
17917         branches to different locations depending on the value of
17918         misalignment, when multiarch is enabled. Fix this.
17919
17920 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17921
17922         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17923         Set _x86_64_preferred_memory_instruction for AMD processsors.
17924         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17925         Set bit_Prefer_SSE_for_memop for AMD processors.
17926
17927 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17928
17929         * libio/fmemopen.c (fmemopen): Optimize a bit.
17930
17931 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17932
17933         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17934
17935 2011-03-03  Roland McGrath  <roland@redhat.com>
17936
17937         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17938
17939 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17940
17941         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17942         __bzero_ultra1 instead of __memset_ultra1.
17943
17944 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17945             Ulrich Drepper  <drepper@gmail.com>
17946
17947         [BZ #12509]
17948         * include/link.h (struct link_map): Add l_orig_initfini.
17949         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17950         returning unsuccessfully.
17951         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17952         close of a file loaded at startup, restore the original l_initfini
17953         list.
17954         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17955         list, store the pointer.
17956         * elf/Makefile ($(objpfx)noload-mem): New rule.
17957         (noload-ENV): Define.
17958         (tests): Add $(objpfx)noload-mem.
17959         * elf/noload.c: Include <memcheck.h>.
17960         (main): Call mtrace.  Close all opened handles.
17961
17962 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17963
17964         [BZ #12454]
17965         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17966         dependencies are missing.
17967
17968 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17969
17970         Fix __if_freereq crash: Unlike the generic version which uses free,
17971         Hurd needs munmap.
17972         * sysdeps/mach/hurd/ifreq.h: New file.
17973
17974 2011-01-27  Petr Baudis  <pasky@suse.cz>
17975             Ulrich Drepper  <drepper@gmail.com>
17976
17977         [BZ 12445]#
17978         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17979         to extend_alloca().
17980         * stdio-common/bug23.c: New file.
17981         * stdio-common/Makefile (tests): Add bug23.
17982
17983 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17984             Ulrich Drepper  <drepper@gmail.com>
17985
17986         [BZ #12489]
17987         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17988         before performing relro protection.  At old place add assertion
17989         to make sure nothing changed.
17990
17991 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17992             Glauber de Oliveira Costa  <glommer@gmail.com>
17993
17994         * elf/elf.h: Add new ARM TLS relocs.
17995
17996 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17997
17998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17999         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18000         cast from r3.
18001         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18002         'tests' variable.
18003         * sysdeps/wordsize-64/tst-writev.c: New file.
18004
18005 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18006
18007         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18008         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18009         insns in _dl_start to prevent a TOC reference before relocs are
18010         resolved.
18011
18012 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18013
18014         [BZ #12469]
18015         * Makeconfig: Remove RANLIB definition.
18016         * Makerules: Don't use RANLIB.
18017         * aclocal.m4: Remove ranlib test.
18018         * configure.in: No need to check for ranlib.
18019         * elf/rtld-Rules: Don't use RANLIB.
18020
18021 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18022
18023         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18024         protection macro.
18025         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18026         inclusion protection macro.
18027
18028         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18029         SIGRTMIN and SIGRTMAX and print information in that case only when
18030         SIGRTMIN is defined.
18031
18032 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18033
18034         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18035         arginfo fn returning -1.
18036
18037         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18038         and thousands string is zero terminated.
18039
18040 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18041
18042         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18043         sysdeps/unix/sysv/linux/bits/socket.h.
18044
18045 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18046
18047         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18048         (__CPU_COUNT): Remove old macros.
18049         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18050         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18051         (__CPU_ALLOC, __CPU_FREE): Add macros.
18052         (__sched_cpualloc, __sched_cpufree): Add declarations.
18053
18054 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18055
18056         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18057         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18058         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18059         (readdhstai): Return value of addhstaiX call.
18060         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18061         (addgrbyX): Return value returned by cache_addgr.
18062         (readdgrbyname): Return value returned by addgrbyX.
18063         (readdgrbygid): Likewise.
18064         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18065         (addpwbyX): Return value returned by cache_addpw.
18066         (readdpwbyname): Return value returned by addhstbyX.
18067         (readdpwbyuid): Likewise.
18068         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18069         (addservbyX): Return value returned by cache_addserv.
18070         (readdservbyname): Return value returned by addservbyX:
18071         (readdservbyport): Likewise.
18072         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18073         (addhstbyX): Return value returned by cache_addhst.
18074         (readdhstbyname): Return value returned by addhstbyX.
18075         (readdhstbyaddr): Likewise.
18076         (readdhstbynamev6): Likewise.
18077         (readdhstbyaddrv6): Likewise.
18078         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18079         (readdinitgroups): Return value returned by addinitgroupsX.
18080         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18081         (prune_cache): Keep track of timeout value of re-added entries.
18082         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18083         * nscd/nscd.h: Adjust prototypes of readd* functions.
18084
18085 2011-02-04  Roland McGrath  <roland@redhat.com>
18086
18087         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18088         (nis_stats): Likewise.
18089         * nis/nis_modify.c (nis_modify): Likewise.
18090         * nis/nis_remove.c (nis_remove): Likewise.
18091         * nis/nis_add.c (nis_add): Likewise.
18092
18093         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18094
18095         * posix/fnmatch_loop.c: Add some consts.
18096
18097         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18098
18099 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18100
18101         [BZ #12460]
18102         * config.make.in (config-cflags-novzeroupper): Define.
18103         * configure.in: Substitute libc_cv_cc_novzeroupper.
18104         * elf/Makefile (AVX-CFLAGS): Define.
18105         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18106         (CFLAGS-tst-auditmod4a.c): Likewise.
18107         (CFLAGS-tst-auditmod4b.c): Likewise.
18108         (CFLAGS-tst-auditmod6b.c): Likewise.
18109         (CFLAGS-tst-auditmod6c.c): Likewise.
18110         (CFLAGS-tst-auditmod7b.c): Likewise.
18111         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18112
18113 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18114
18115         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18116         function to the callback.
18117         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18118
18119 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18120
18121         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18122         of errno.
18123
18124 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18125
18126         [BZ #11724]
18127         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18128         of constructors.
18129         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18130         of destructors.
18131         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18132
18133         [BZ #11724]
18134         * elf/Makefile: Add rules to build and run new test.
18135         * elf/tst-initorder.c: New file.
18136         * elf/tst-initorder.exp: New file.
18137         * elf/tst-initordera1.c: New file.
18138         * elf/tst-initordera2.c: New file.
18139         * elf/tst-initordera3.c: New file.
18140         * elf/tst-initordera4.c: New file.
18141         * elf/tst-initorderb1.c: New file.
18142         * elf/tst-initorderb2.c: New file.
18143         * elf/tst-order-a1.c: New file.
18144         * elf/tst-order-a2.c: New file.
18145         * elf/tst-order-a3.c: New file.
18146         * elf/tst-order-a4.c: New file.
18147         * elf/tst-order-b1.c: New file.
18148         * elf/tst-order-b2.c: New file.
18149         * elf/tst-order-main.c: New file.
18150         New test case by George Gensure <werkt0@gmail.com>.
18151
18152 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18153
18154         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18155         decoding ACE if AI_CANONIDN.
18156
18157 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18158
18159         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18160
18161 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18162
18163         * version.h (RELEASE): Bump for 2.13 release.
18164         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18165
18166         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18167
18168         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18169         MADV_NOHUGEPAGE.
18170         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18171         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18172         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18173         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18174         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18175         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18176
18177         * posix/getconf.c: Update copyright year.
18178         * catgets/gencat.c: Likewise.
18179         * csu/version.c: Likewise.
18180         * debug/catchsegv.sh: Likewise.
18181         * debug/xtrace.sh: Likewise.
18182         * elf/ldconfig.c: Likewise.
18183         * elf/ldd.bash.in: Likewise.
18184         * elf/sprof.c (print_version): Likewise.
18185         * iconv/iconv_prog.c: Likewise.
18186         * iconv/iconvconfig.c: Likewise.
18187         * locale/programs/locale.c: Likewise.
18188         * locale/programs/localedef.c: Likewise.
18189         * malloc/memusage.sh: Likewise.
18190         * malloc/mtrace.pl: Likewise.
18191         * nscd/nscd.c (print_version): Likewise.
18192         * nss/getent.c: Likewise.
18193
18194         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18195         PF_CAIF, and PF_ALG.
18196         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18197
18198 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18199
18200         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18201         (modules-names): Use them.
18202         (ifunc-test-modules, ifunc-pie-tests): Define.
18203         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18204         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18205         (test-extras): Likewise.
18206         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18207         $(compile-command.c).
18208         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18209         (all-built-dso): Define.
18210         (check-textrel.out, check-execstack.out): Depend on it.
18211
18212         * configure.in: Don't override --enable-multi-arch.
18213
18214 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18215
18216         [BZ #6812]
18217         * nscd/hstcache.c (tryagain): Define.
18218         (cache_addhst): Return tryagain not notfound for temporary errors.
18219         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18220         failed.
18221
18222 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18223
18224         [BZ #10563]
18225         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18226         to make the syscall.
18227         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18228
18229         [BZ #12378]
18230         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18231         and fall back to matching as normal character if the string ends before
18232         the matching ']' is found.  This is what POSIX requires.
18233         * posix/testfnm.c: Adjust test result.
18234         * posix/globtest.sh: Adjust test result.  Add new test.
18235         * posix/tst-fnmatch.input: Likewise.
18236         * posix/tst-fnmatch2.c: Add new test.
18237
18238 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18239
18240         * elf/Makefile (check-execstack): Revert last change.  Depend on
18241         check-execstack.h.
18242         (check-execstack.h): New target.
18243         (generated): Add check-execstack.h.
18244         * elf/check-execstack.c: Include "check-execstack.h".
18245         (main): Revert last change.
18246         (handle_file): Return zero if GNU_STACK is absent and
18247         DEFAULT_STACK_PERMS doesn't include PF_X.
18248
18249 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18250
18251         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18252         in child fails because the descriptor is already closed.
18253         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18254         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18255         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18256
18257         [BZ #12397]
18258         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18259         syscall.
18260
18261         [BZ #10484]
18262         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18263         temporary buffer used to handle multi lookups locally.
18264         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18265
18266 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18267
18268         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18269         loader is ld.so.
18270
18271 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18272
18273         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18274         alignment for SSE2.
18275
18276 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18277
18278         [BZ #12394]
18279         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18280         characters.  When rounding increased number of integer digits recompute
18281         number of groups.
18282         * stdio-common/tst-grouping.c: New file.
18283         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18284
18285 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18286
18287         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18288         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18289
18290         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18291         void.
18292         * bits/select.h: Likewise.
18293
18294 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18295
18296         * po/ja.po: Update from translation team.
18297
18298 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18299
18300         [BZ #11155]
18301         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18302         implementation just like for lxstat, fxstatat, et al.
18303
18304 2010-12-27  Jim Meyering  <meyering@redhat.com>
18305
18306         [BZ #12348]
18307         * posix/regexec.c (build_trtable): Return failure indication upon
18308         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18309
18310 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18311
18312         [BZ #12201]
18313         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18314         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18315         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18316         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18317
18318         [BZ #12207]
18319         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18320
18321         [BZ #12204]
18322         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18323         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18324
18325 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18326
18327         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18328         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18329         script has SORT_BY_INIT_PRIORITY.
18330         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18331         NO_CTORS_DTORS_SECTIONS is defined.
18332         * elf/soinit.c: Likewise.
18333         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18334         NO_CTORS_DTORS_SECTIONS is defined.
18335         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18336         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18337         * sysdeps/sh/init-first.c: Likewise.
18338         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18339
18340 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18341
18342         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18343         always use the slow path.
18344
18345 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18346
18347         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18348         similar rule which adds the sysdep directories to the header search in
18349         order to pick up the correct platform stackinfo.h.
18350         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18351         perform test if it is, otherwise return successfully without testing.
18352         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18353         DEFAULT_STACK_PERMS define in stackinfo.h.
18354         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18355         defined in stackinfo.h.
18356         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18357         DEFAULT_STACK_PERMS defined in stackinfo.h.
18358         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18359         * sysdeps/ia64/stackinfo.h: Likewise.
18360         * sysdeps/s390/stackinfo.h: Likewise.
18361         * sysdeps/sh/stackinfo.h: Likewise.
18362         * sysdeps/sparc/stackinfo.h: Likewise.
18363         * sysdeps/x86_64/stackinfo.h: Likewise.
18364         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18365         PF_X for powerpc64.  Retain PF_X for powerpc32.
18366
18367 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18368
18369         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18370         accurately.
18371         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18372         GETDENTS_64BIT_ALIGNED.
18373
18374 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18375
18376         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18377
18378 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18379
18380         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18381         _GNU_SOURCE.
18382
18383         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18384         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18385         Remove __restrict.
18386         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18387         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18388
18389 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18390
18391         [BZ #11655]
18392         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18393         are initialized.
18394
18395 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18396
18397         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18398
18399 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18400
18401         * po/it.po: Update from translation team.
18402
18403 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18404
18405         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18406         unused codes.
18407
18408 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18409
18410         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18411
18412 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18413
18414         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18415         specially.
18416         (gaih_getanswer_slice): Likewise.
18417
18418 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18419
18420         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18421
18422 2010-05-31  Petr Baudis  <pasky@suse.cz>
18423
18424         [BZ #11149]
18425         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18426         silently even in the chroot mode.
18427
18428 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18429
18430         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18431         last patch a bit.  Pretty printing
18432
18433 2010-05-31  Petr Baudis <pasky@suse.cz>
18434
18435         [BZ #10085]
18436         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18437         initialization of skip_initgroups_dyn.
18438
18439 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18440
18441         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18442         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18443
18444 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18445
18446         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18447
18448 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18449
18450         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18451         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18452         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18453         ($(objpfx)tst-fnmatch-mem): New rule.
18454         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18455         * posix/tst-fnmatch.c (main): Call mtrace.
18456
18457 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18458
18459         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18460         Support Intel processor model 6 and model 0x2c.
18461
18462 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18463
18464         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18465           signed comparison.
18466
18467 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18468
18469         [BZ #12205]
18470         * string/test-strncasecmp.c (check_result): New function.
18471         (do_one_test): Use it.
18472         (check1): New function.
18473         (test_main): Use it.
18474         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18475         Support strcasecmp and strncasecmp.
18476
18477 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18478
18479         [BZ #12194]
18480         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18481         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18482
18483 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18484
18485         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18486         IFUNC support.
18487         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18488         memset-x86-64.
18489         * sysdeps/x86_64/multiarch/bzero.S: New file.
18490         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18491         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18492         * sysdeps/x86_64/multiarch/memset.S: New file.
18493         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18494         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18495         Set bit_Prefer_SSE_for_memop for Intel processors.
18496         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18497         Define.
18498         (index_Prefer_SSE_for_memop): Define.
18499         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18500
18501 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18502
18503         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18504         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18505
18506 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18507
18508         [BZ #12191]
18509         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18510         (__x86_64_raw_data_cache_size_half): Likewise.
18511         (__x86_64_raw_shared_cache_size): Likewise.
18512         (__x86_64_raw_shared_cache_size_half): Likewise.
18513
18514         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18515         (__x86_64_raw_data_cache_size_half): Likewise.
18516         (__x86_64_raw_shared_cache_size): Likewise.
18517         (__x86_64_raw_shared_cache_size_half): Likewise.
18518         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18519         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18520         and __x86_64_raw_shared_cache_size_half.  Round
18521         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18522         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18523         to multiple of 256 bytes.
18524
18525 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18526
18527         [BZ #12167]
18528         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18529         of inacessible symlinks.  Verify result of symlink before returning it.
18530         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18531         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18532
18533 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18534
18535         * math/math.h (isinf): Fix typo in comment.
18536
18537 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18538
18539         * po/da.po: Update from translation team.
18540
18541 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18542
18543         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18544         is added to the list.
18545
18546 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18547             Ulrich Drepper  <drepper@gmail.com>
18548
18549         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18550         the global list here.  Move code to...
18551         (_dl_add_to_namespace_list): ...here.  New function.
18552         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18553         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18554         * elf/dl-load.c (lose): Don't remove the element from the list.
18555         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18556         (_dl_map_object): Likewise.
18557
18558 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18559
18560         [BZ #12159]
18561         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18562         into all bytes of SSE register.
18563         Patch by Richard Li <richardpku@gmail.com>.
18564
18565 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18566
18567         [BZ #12140]
18568         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18569         perturbing.
18570
18571 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18572
18573         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18574         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18575         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18576         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18578         submachine.
18579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18580
18581 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18582
18583         * include/dlfcn.h (__RTLD_SECURE): Define.
18584         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18585         mode & __RTLD_SECURE instead.
18586         (open_path): Rename preloaded parameter to secure.
18587         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18588         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18589         * elf/dl-deps.c (openaux): Likewise.
18590         * elf/rtld.c (struct map_args): Remove is_preloaded.
18591         (map_doit): Don't use it.
18592         (dl_main): Likewise.
18593         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18594         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18595
18596 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18597
18598         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18599         (sysd-rules-targets): Remove duplicates.
18600         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18601         rtld-%.$o dependency.
18602
18603 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18604
18605         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18606         _dl_map_object do it.
18607
18608 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18609
18610         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18611         fast fma builtins, define the macros in the C99 standard.
18612         (FP_FAST_FMAF): Likewise.
18613         (FP_FAST_FMAL): Likewise.
18614         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18615
18616         * bits/mathdef.h: Update copyright year.
18617         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18618
18619 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18620
18621         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18622         builtins, define the macros in the C99 standard.
18623         (FP_FAST_FMAF): Likewise.
18624         (FP_FAST_FMAL): Likewise.
18625         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18626         multiply/add.
18627         (FP_FAST_FMAF): Likewise.
18628
18629 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18630
18631         [BZ #3268]
18632         * math/libm-test.inc (fma_test): Some new testcases.
18633         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18634         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18635         y and infinite z.  Do multiplication by C already in long double.
18636         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18637         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18638         y and infinite z.  Do bitwise or of inexact bit into u.d.
18639         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18640         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18641         * sysdeps/i386/fpu/s_fma.S: Removed.
18642         * sysdeps/i386/fpu/s_fmal.S: Removed.
18643
18644 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18645
18646         [BZ #3268]
18647         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18648         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18649         computation is not scheduled after fetestexcept.  Fix value
18650         of minimum denormal long double.
18651
18652 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18653
18654         [BZ #3268]
18655         * math/libm-test.inc (fma_test): Add some more tests.
18656         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18657         correctly.
18658
18659 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18660
18661         * scripts/data/localplt-s390-linux-gnu.data: New file.
18662         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18663
18664 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18665
18666         [BZ #3268]
18667         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18668         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18669         instead of dbl-64.
18670         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18671         inlines.
18672         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18673         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18674         if one of x and y is very large and the other is subnormal.
18675         * sysdeps/s390/fpu/s_fmaf.c: New file.
18676         * sysdeps/s390/fpu/s_fma.c: New file.
18677         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18678         * sysdeps/powerpc/fpu/s_fma.S: New file.
18679         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18680         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18681         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18682
18683 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18684
18685         [BZ #3268]
18686         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18687         fma tests.
18688         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18689         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18690         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18691         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18692         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18693         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18694         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18695
18696 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18697
18698         [BZ #12078]
18699         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18700         * posix/bug-regex31.input: Add test case.
18701
18702 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18703
18704         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18705         * posix/bug-regex31.input: New file.
18706
18707         [BZ #12078]
18708         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18709         (parse_sub_exp): Fix last change, use postorder.
18710
18711         * posix/bug-regex31.c: New file.
18712         * posix/Makefile: Add rules to build and run bug-regex31.
18713
18714         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18715
18716         [BZ #12078]
18717         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18718
18719         [BZ #12108]
18720         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18721         to have entries in sys_siglist.
18722
18723         [BZ #12093]
18724         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18725         be NULL.
18726
18727 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18728
18729         [BZ #3268]
18730         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18731         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18732         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18733         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18734         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18735         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18736         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18737         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18738         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18739         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18740         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18741         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18742         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18743         * math/ftestexcept.c (fetestexcept): Likewise.
18744         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18745         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18746         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18747         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18748         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18749         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18750         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18751
18752 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18753
18754         [BZ #12107]
18755         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18756         newline.
18757
18758 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18759
18760         * string/bug-strstr1.c: New file.
18761         * string/Makefile: Add rules to build and run bug-strstr1.
18762
18763 2010-10-05  Eric Blake  <eblake@redhat.com>
18764
18765         [BZ #12092]
18766         * string/str-two-way.h (two_way_long_needle): Always clear memory
18767         when skipping input due to the shift table.
18768
18769 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18770
18771         [BZ #12005]
18772         * malloc/mcheck.c: Handle large requests.
18773
18774         [BZ #12077]
18775         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18776         for strncmp and strncasecmp.
18777         * string/stratcliff.c: Add tests for strcmp and strncmp.
18778         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18779
18780 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18781
18782         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18783         __set_fpscr.
18784
18785 2010-09-30  Andreas Jaeger  <aj@suse.de>
18786
18787         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18788         (CGROUP_SUPER_MAGIC): Define.
18789         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18790         Handle btrfs and cgroup file systems.
18791         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18792         Likewise.
18793
18794 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18795
18796         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18797         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18798
18799 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18800
18801         [BZ #12067]
18802         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18803         trying to locate the ELF header.
18804
18805 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18806
18807         [BZ #11611]
18808         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18809         Mask out sign-bit copies when constructing f_fsid.
18810
18811 2010-09-24  Petr Baudis <pasky@suse.cz>
18812
18813         * debug/stack_chk_fail_local.c: Add missing licence exception.
18814         * debug/warning-nop.c: Likewise.
18815
18816 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18817
18818         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18819         implementing getdents64 using getdents syscall, set d_type if
18820         __ASSUME_GETDENTS32_D_TYPE.
18821
18822 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18823
18824         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18825         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18826
18827 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18828
18829         [BZ #12037]
18830         * posix/unistd.h: Undo change of feature selection for ftruncate from
18831         2010-01-11.
18832
18833 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18834
18835         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18836         detection.
18837
18838 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18839
18840         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18841         fanotify_mark.
18842         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18843
18844 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18845
18846         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18847         variables after CHECK_SP call.
18848         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18849
18850 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18851             Ulrich Drepper  <drepper@redhat.com>
18852
18853         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18854         re-relocationg ld.so.
18855         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18856         _dl_init_paths call.
18857         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18858         here anymore.
18859
18860 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18861
18862         * resolv/res_init.c (__res_vinit): Count the default server we added.
18863
18864 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18865             Ulrich Drepper  <drepper@redhat.com>
18866
18867         [BZ #11968]
18868         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18869         (____longjmp_chk): Use %ebx for saving value across system call.
18870         Add unwind info.
18871
18872 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18873
18874         * manual/Makefile: Don't mix pattern rules with normal rules.
18875
18876 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18877
18878         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18879         operation.
18880         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18881         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18882         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18883         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18884         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18885         Likewise.
18886
18887 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18888
18889         [BZ #11979]
18890         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18891         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18892
18893 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18894
18895         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18896         * sysdeps/x86_64/addmul_1.S: Likewise.
18897         * sysdeps/x86_64/lshift.S: Likewise.
18898         * sysdeps/x86_64/mul_1.S: Likewise.
18899         * sysdeps/x86_64/rshift.S: Likewise.
18900         * sysdeps/x86_64/sub_n.S: Likewise.
18901         * sysdeps/x86_64/submul_1.S: Likewise.
18902
18903 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18904
18905         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18906         Define __sched_param instead of SCHED_* and sched_param when
18907         <bits/sched.h> is included with __need_schedparam defined.
18908         * bits/sched.h [__need_schedparam]
18909         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18910         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18911         (__defined_schedparam): Define to 1.
18912         (__sched_param): New structure, identical to sched_param.
18913         (__need_schedparam): Undefine.
18914
18915 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18916
18917         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18918         (epoll_create1): Declare.
18919
18920         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18921
18922 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18923
18924         [BZ #7066]
18925         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18926         shifting retval into place.
18927
18928 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18929
18930         * nis/rpcsvc/nis.h: Update copyright notice.
18931         * nis/rpcsvc/nis.x: Likewise.
18932         * nis/rpcsvc/nis_callback.h: Likewise.
18933         * nis/rpcsvc/nis_callback.x: Likewise.
18934         * nis/rpcsvc/nis_object.x: Likewise.
18935         * nis/rpcsvc/nis_tags.h: Likewise.
18936         * nis/rpcsvc/yp.h: Likewise.
18937         * nis/rpcsvc/yp.x: Likewise.
18938         * nis/rpcsvc/ypupd.h: Likewise.
18939         * nis/yp_xdr.c: Likewise.
18940         * nis/ypupdate_xdr.c: Likewise.
18941
18942         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18943         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18944         (pmap_getport): Use __libc_rpc_getport.
18945         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18946         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18947         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18948
18949 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18950
18951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18952         fanotify_mark.
18953
18954 2010-08-27  Roland McGrath  <roland@redhat.com>
18955
18956         * sysdeps/i386/i686/multiarch/Makefile
18957         (CFLAGS-varshift.c): New variable.
18958
18959 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18960
18961         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18962         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18963
18964         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18965
18966         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18967
18968 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18969
18970         * sysdeps/x86_64/strlen.S: Unroll the loop.
18971         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18972         strlen-sse2 strlen-sse2-bsf.
18973         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18974         __strlen_no_bsf if bit_Slow_BSF is set.
18975         (__strlen_sse42): Removed.
18976         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18977         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18978
18979 2010-08-25  Roland McGrath  <roland@redhat.com>
18980
18981         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18982         * sysdeps/x86_64/multiarch/varshift.c: New file.
18983         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18984         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18985         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18986         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18987
18988 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18989
18990         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18991         strlen-sse2 strlen-sse2-bsf.
18992         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18993         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18994         (__strlen_sse2): Removed.
18995         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18996         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18997         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18998         bit_Slow_BSF for Atom.
18999         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19000         (index_Slow_BSF): Define.
19001         (HAS_SLOW_BSF): Define.
19002
19003 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19004
19005         [BZ #10851]
19006         * resolv/res_init.c (__res_vinit): When no server address at all
19007         is given default to loopback.
19008
19009 2010-08-24  Roland McGrath  <roland@redhat.com>
19010
19011         * configure.in: Remove config-name.h generation.
19012         * configure: Regenerated.
19013         * config-name.in: File removed.
19014         * scripts/config-uname.sh: New file.
19015         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19016         ($(objdir)config-name.h): New target.
19017
19018         * sunrpc/rpc_parse.h: Avoid nested comment.
19019
19020 2010-08-24  Richard Henderson  <rth@redhat.com>
19021             Ulrich Drepper  <drepper@redhat.com>
19022             H.J. Lu  <hongjiu.lu@intel.com>
19023
19024         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19025         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19026         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19027         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19028         _mm_alignr_epi8 with _mm_loadu_si128.
19029         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19030         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19031         (__m128i_shift_right): Removed.
19032         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19033         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19034         * sysdeps/x86_64/multiarch/varshift.h: New file.
19035         * sysdeps/x86_64/multiarch/varshift.S: New file.
19036
19037 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19038
19039         * configure.in: Move assembler checks to before sysdep dir checking.
19040
19041 2010-08-20  Petr Baudis  <pasky@suse.cz>
19042
19043         * LICENSES: Sync the sunrpc license.
19044
19045 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19046
19047         * sunrpc/auth_des.c: Update copyright notice once again.
19048         * sunrpc/auth_none.c: Likewise.
19049         * sunrpc/auth_unix.c: Likewise.
19050         * sunrpc/authdes_prot.c: Likewise.
19051         * sunrpc/authuxprot.c: Likewise.
19052         * sunrpc/bindrsvprt.c: Likewise.
19053         * sunrpc/clnt_gen.c: Likewise.
19054         * sunrpc/clnt_perr.c: Likewise.
19055         * sunrpc/clnt_raw.c: Likewise.
19056         * sunrpc/clnt_simp.c: Likewise.
19057         * sunrpc/clnt_tcp.c: Likewise.
19058         * sunrpc/clnt_udp.c: Likewise.
19059         * sunrpc/clnt_unix.c: Likewise.
19060         * sunrpc/des_crypt.c: Likewise.
19061         * sunrpc/des_soft.c: Likewise.
19062         * sunrpc/get_myaddr.c: Likewise.
19063         * sunrpc/getrpcport.c: Likewise.
19064         * sunrpc/key_call.c: Likewise.
19065         * sunrpc/key_prot.c: Likewise.
19066         * sunrpc/openchild.c: Likewise.
19067         * sunrpc/pm_getmaps.c: Likewise.
19068         * sunrpc/pm_getport.c: Likewise.
19069         * sunrpc/pmap_clnt.c: Likewise.
19070         * sunrpc/pmap_prot.c: Likewise.
19071         * sunrpc/pmap_prot2.c: Likewise.
19072         * sunrpc/pmap_rmt.c: Likewise.
19073         * sunrpc/rpc/auth.h: Likewise.
19074         * sunrpc/rpc/auth_unix.h: Likewise.
19075         * sunrpc/rpc/clnt.h: Likewise.
19076         * sunrpc/rpc/des_crypt.h: Likewise.
19077         * sunrpc/rpc/key_prot.h: Likewise.
19078         * sunrpc/rpc/netdb.h: Likewise.
19079         * sunrpc/rpc/pmap_clnt.h: Likewise.
19080         * sunrpc/rpc/pmap_prot.h: Likewise.
19081         * sunrpc/rpc/pmap_rmt.h: Likewise.
19082         * sunrpc/rpc/rpc.h: Likewise.
19083         * sunrpc/rpc/rpc_des.h: Likewise.
19084         * sunrpc/rpc/rpc_msg.h: Likewise.
19085         * sunrpc/rpc/svc.h: Likewise.
19086         * sunrpc/rpc/svc_auth.h: Likewise.
19087         * sunrpc/rpc/types.h: Likewise.
19088         * sunrpc/rpc/xdr.h: Likewise.
19089         * sunrpc/rpc_clntout.c: Likewise.
19090         * sunrpc/rpc_cmsg.c: Likewise.
19091         * sunrpc/rpc_common.c: Likewise.
19092         * sunrpc/rpc_cout.c: Likewise.
19093         * sunrpc/rpc_dtable.c: Likewise.
19094         * sunrpc/rpc_hout.c: Likewise.
19095         * sunrpc/rpc_main.c: Likewise.
19096         * sunrpc/rpc_parse.c: Likewise.
19097         * sunrpc/rpc_parse.h: Likewise.
19098         * sunrpc/rpc_prot.c: Likewise.
19099         * sunrpc/rpc_sample.c: Likewise.
19100         * sunrpc/rpc_scan.c: Likewise.
19101         * sunrpc/rpc_scan.h: Likewise.
19102         * sunrpc/rpc_svcout.c: Likewise.
19103         * sunrpc/rpc_tblout.c: Likewise.
19104         * sunrpc/rpc_util.c: Likewise.
19105         * sunrpc/rpc_util.h: Likewise.
19106         * sunrpc/rpcinfo.c: Likewise.
19107         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19108         * sunrpc/rpcsvc/key_prot.x: Likewise.
19109         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19110         * sunrpc/rpcsvc/mount.x: Likewise.
19111         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19112         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19113         * sunrpc/rpcsvc/rex.x: Likewise.
19114         * sunrpc/rpcsvc/rstat.x: Likewise.
19115         * sunrpc/rpcsvc/rusers.x: Likewise.
19116         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19117         * sunrpc/rpcsvc/spray.x: Likewise.
19118         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19119         * sunrpc/rtime.c: Likewise.
19120         * sunrpc/svc.c: Likewise.
19121         * sunrpc/svc_auth.c: Likewise.
19122         * sunrpc/svc_authux.c: Likewise.
19123         * sunrpc/svc_raw.c: Likewise.
19124         * sunrpc/svc_run.c: Likewise.
19125         * sunrpc/svc_simple.c: Likewise.
19126         * sunrpc/svc_tcp.c: Likewise.
19127         * sunrpc/svc_udp.c: Likewise.
19128         * sunrpc/svc_unix.c: Likewise.
19129         * sunrpc/svcauth_des.c: Likewise.
19130         * sunrpc/xcrypt.c: Likewise.
19131         * sunrpc/xdr.c: Likewise.
19132         * sunrpc/xdr_array.c: Likewise.
19133         * sunrpc/xdr_float.c: Likewise.
19134         * sunrpc/xdr_mem.c: Likewise.
19135         * sunrpc/xdr_rec.c: Likewise.
19136         * sunrpc/xdr_ref.c: Likewise.
19137         * sunrpc/xdr_sizeof.c: Likewise.
19138         * sunrpc/xdr_stdio.c: Likewise.
19139
19140         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19141         handling.
19142
19143 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19144
19145         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19146
19147 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19148
19149         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19150         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19151         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19152         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19153         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19154         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19155         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19156         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19157         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19158         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19159         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19160         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19161         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19162         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19163
19164 2010-07-26  Anton Blanchard  <anton@samba.org>
19165
19166         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19167         * malloc/arena.c (heap_trim): Likewise.
19168
19169 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19170
19171         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19172         here.  Not...
19173         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19174         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19175
19176 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19177
19178         * sysdeps/i386/elf/Makefile: New file.
19179
19180 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19181
19182         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19183         from fanotify_init.
19184         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19185         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19186
19187 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19188
19189         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19190         of strncasecmp_l.
19191         * sysdeps/multiarch/strcmp.S: Likewise.
19192
19193 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19194
19195         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19196         strncase_l-nonascii.
19197         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19198         Add strncase_l-ssse3.
19199         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19200         * sysdeps/x86_64/strcmp.S: Likewise.
19201         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19202         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19203         * sysdeps/x86_64/strncase.S: New file.
19204         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19205         * sysdeps/x86_64/strncase_l.S: New file.
19206         * string/Makefile (strop-tests): Add strncasecmp.
19207         * string/test-strncasecmp.c: New file.
19208
19209         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19210         warning.
19211
19212         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19213         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19214
19215 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19216
19217         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19218
19219 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19220
19221         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19222         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19223         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19224
19225 2010-05-01  Alan Modra  <amodra@gmail.com>
19226
19227         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19228         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19229         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19230         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19231         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19232         tidying.  Don't tail-call __sigjmp_save for static lib.
19233         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19234         save location.
19235         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19236         (CALL_MCOUNT): Add eh info, and nop after bl.
19237         (TAIL_CALL_SYSCALL_ERROR): New macro.
19238         (PSEUDO_RET): Use it.
19239         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19240         Correct save location of integer regs and cr.
19241         (_dl_profile_resolve): Correct cr save location.  Delete nops
19242         after bl when SHARED.  Reduce cfi size a little by better
19243         placement of cfi directives.
19244         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19245         make a stack frame.  Instead use parm save area as a temp.
19246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19247         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19249         Don't make a stack frame for parent, use parm save area.
19250         Increase child stack frame to 112 bytes.  Don't save unused reg,
19251         and adjust reg usage.  Set up cfi on error recovery and
19252         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19254         (__makecontext): Add dummy nop after jump to exit.
19255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19256         Use correct parm save area and cr save, reduce stack frame.
19257         Correct cfi for possible PSEUDO_RET frame setup.
19258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19259         Branch to local label emitted by PSEUDO_RET rather than
19260         __syscall_error.
19261
19262 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19263
19264         [BZ #11904]
19265         * locale/programs/locale.c (print_assignment): New function.
19266         (show_locale_vars): Use it.
19267
19268 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19269
19270         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19271         field.
19272         (struct statfs64): Likewise.
19273         (_STATFS_F_FLAGS): Define.
19274         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19275         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19276         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19277         (ST_VALID): Define locally.
19278         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19279         __statvfs_getflags, use the provided value.
19280         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19281         __ASSUME_STATFS_F_FLAGS.
19282
19283         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19284
19285         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19286         Add sys/fanotify.h.
19287         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19288         fanotify_mask for GLIBC_2.13.
19289         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19290         fanotify_init and fanotify_mark.
19291         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19292         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19293
19294         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19295         Add prlimit.
19296         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19297         prlimit64 for GLIBC_2.13.
19298         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19299         prlimit64.
19300         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19301         syscall.
19302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19303         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19304         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19305         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19306         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19307         add prlimit alias.
19308         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19309
19310         [BZ #11903]
19311         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19312         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19313
19314         * nss/Makefile: Add rules to build and run tst-nss-test1.
19315         * shlib-versions: Add entry for libnss_test1.
19316         * nss/nss_test1.c: New file.
19317         * nss/tst-nss-test1.c: New file.
19318
19319         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19320         (__nss_configure_lookup): Set appropriate entry in
19321         __nss_configure_lookup to true.
19322         * nss/nsswitch.h: Define enum with indeces of databases in
19323         databases and __nss_database_custom arrays.  Declare
19324         __nss_database_custom.
19325         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19326         to avoid using nscd when custom rules are installed.
19327         * nss/getXXbyYY_r.c: Likewise.
19328         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19329
19330         * nss/nss_files/files-parse.c: Whitespace fixes.
19331
19332 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19333
19334         [BZ #11883]
19335         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19336         * posix/fnmatch_loop.c: Likewise.
19337
19338 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19339
19340         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19341         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19342         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19343         * Versions.def [GLIBC_2.13]: Add.
19344
19345 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19346
19347         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19348         Also fail if tpwd after pwuid call is NULL.
19349
19350 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19351
19352         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19353         when converting to ms.
19354
19355 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19356
19357         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19358         EOPNOTSUPP errors with ENOTTY.
19359         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19360         EOPNOTSUPP errors with ENOTTY.
19361
19362 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19363
19364         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19365         Add strcasecmp_l-ssse3.
19366         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19367         strcasecmp.
19368         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19369         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19370         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19371
19372 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19373
19374         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19375
19376         * string/Makefile (strop-tests): Add strcasecmp.
19377         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19378         strcasecmp_l-nonascii.
19379         (gen-as-const-headers): Add locale-defines.sym.
19380         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19381         * sysdeps/x86_64/strcasecmp.S: New file.
19382         * sysdeps/x86_64/strcasecmp_l.S: New file.
19383         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19384         * sysdeps/x86_64/locale-defines.sym: New file.
19385         * string/test-strcasecmp.c: New file.
19386
19387         * string/test-strcasestr.c: Test both ends of the range of characters.
19388         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19389
19390 2010-07-29  Roland McGrath  <roland@redhat.com>
19391
19392         [BZ #11856]
19393         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19394
19395 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19396
19397         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19398         for ld.so.
19399
19400 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19401
19402         * manual/memory.texi (Malloc Tunable Parameters): Document
19403         M_PERTURB.
19404
19405 2010-07-26  Roland McGrath  <roland@redhat.com>
19406
19407         [BZ #11840]
19408         * configure.in (-fgnu89-inline check): Set and substitute
19409         gnu89_inline, not libc_cv_gnu89_inline.
19410         * configure: Regenerated.
19411         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19412
19413 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19414
19415         * string/test-strnlen.c: New file.
19416         * string/Makefile (strop-tests): Add strnlen.
19417         * string/tester.c (test_strnlen): Add a few more test cases.
19418         * string/tst-strlen.c: Better error reporting.
19419
19420         * sysdeps/x86_64/strnlen.S: New file.
19421
19422 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19423
19424         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19425         lower-latency instructions.
19426
19427 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19428
19429         * string/test-strcasestr.c: New file.
19430         * string/test-strstr.c: New file.
19431         * string/Makefile (strop-tests): Add strstr and strcasestr.
19432         * string/str-two-way.h: Don't undefine MAX.
19433         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19434
19435 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19436
19437         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19438         strcasestr-nonascii.
19439         (CFLAGS-strcasestr-nonascii.c): Define.
19440         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19441         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19442         Remove unused attribute.
19443
19444 2010-07-20  Roland McGrath  <roland@redhat.com>
19445
19446         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19447         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19448         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19449         like LD_HWCAP_MASK can disable hwcaps.
19450
19451 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19452
19453         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19454
19455 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19456
19457         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19458         call in strcasestr.
19459         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19460         __strcasestr_sse42_nonascii.
19461         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19462         strcasestr-nonascii.c.
19463         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19464
19465 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19466
19467         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19468         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19469         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19470         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19471
19472 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19473
19474         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19475         fcntl.
19476
19477 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19478
19479         [BZ #11577]
19480         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19481         dl_signal_cerror.
19482
19483 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19484
19485         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19486         _PC_PIPE_BUF using F_GETPIPE_SZ.
19487
19488 2010-07-05  Roland McGrath  <roland@redhat.com>
19489
19490         * manual/arith.texi (Rounding Functions): Fix rint description
19491         implicit in round description.
19492
19493 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19494
19495         * elf/Makefile: Fix linking for a few tests to make recent linker
19496         happy.
19497
19498 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19499
19500         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19501         $(common-objpfx)libc_nonshared.a.
19502
19503 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19504
19505         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19506         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19507         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19508         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19509         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19510         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19511         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19512         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19527         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19528         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19529         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19530         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19531         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19532         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19533         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19534         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19535         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19536         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19537         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19538         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19553
19554 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19555
19556         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19557         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19558         * string/memmove.c (memmove): Renamed to ...
19559         (MEMMOVE): ...this.  Default to memmove.
19560         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19561         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19562         (END_CHK): Define.
19563         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19564         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19565         mempcpy-ssse3-back memmove-ssse3-back.
19566         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19567         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19568         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19569         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19570         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19571         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19572         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19573         * sysdeps/x86_64/multiarch/memmove.c: New file.
19574         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19575         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19576         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19577         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19578         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19579         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19580         Define.
19581         (index_Fast_Copy_Backward): Define.
19582         (HAS_ARCH_FEATURE): Define.
19583         (HAS_FAST_REP_STRING): Define.
19584         (HAS_FAST_COPY_BACKWARD): Define.
19585
19586 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19587
19588         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19589         Restore proper fallback handling.
19590
19591 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19592
19593         [BZ #11701]
19594         * posix/group_member.c (__group_member): Correct checking loop.
19595
19596         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19597         OOM in getpwuid_r correctly.  Return error number when the caller
19598         should return, otherwise -1.
19599         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19600         call returning > 0 value.
19601         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19602
19603 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19604
19605         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19606         libc_nonshared.a from targets in modules-names.
19607
19608 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19609
19610         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19611         requires it.
19612
19613 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19614
19615         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19616         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19617         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19618         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19619
19620 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19621
19622         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19623
19624 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19625
19626         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19627         and F_GETPIPE_SZ.
19628         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19629         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19630         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19631         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19632         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19633         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19634
19635 2010-06-14  Roland McGrath  <roland@redhat.com>
19636
19637         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19638
19639 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19640
19641         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19642         __REDIRECT followed by __THROW.
19643         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19644         * posix/getopt.h (getopt): Likewise.
19645
19646 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19647
19648         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19649         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19650         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19651         in AT_FLAGS.
19652         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19653         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19654
19655 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19656
19657         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19658
19659 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19660
19661         [BZ #11640]
19662         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19663         Properly check family and model.
19664
19665 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19666
19667         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19668
19669 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19670
19671         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19672
19673 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19674
19675         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19676         symbol reference.
19677
19678 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19679
19680         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19681         symbol reference.
19682
19683 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19684
19685         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19686         and internal_recvmmsg.
19687         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19688         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19689         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19690         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19691
19692         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19693         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19694         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19695
19696 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19697
19698         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19699
19700 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19701
19702         POWER7 optimizations.
19703         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19704         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19705
19706 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19707
19708         * version.h: Update for 2.13 development version.
19709
19710 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19711
19712         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19713         exceptions.  Return 0.
19714
19715 2010-05-07  Roland McGrath  <roland@redhat.com>
19716
19717         * elf/ldconfig.c (main): Add a const.
19718
19719 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19720
19721         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19722         (args_options): Add no-idn option.
19723         (ahosts_keys_int): Add idn_flags to ai_flags.
19724         (parse_option): Handle 'i' option to clear idn_flags.
19725
19726         * malloc/malloc.c (_int_free): Possible race in the most recently
19727         added check.  Only act on the data if no current modification
19728         happened.
19729
19730 See ChangeLog.17 for earlier changes.