Avoid unused static function warning in nsswitch.c.
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2
3         * nss/nsswitch.c (nss_new_service): Conditionalize definition on
4         [!DO_STATIC_NSS || SHARED], matching its only caller.
5
6 2012-09-28  David S. Miller  <davem@davemloft.net>
7
8         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9
10         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
11         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
12         file.
13         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14         sysdep_routines.
15         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
16         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
17         when HWCAP_SPARC_CRYPTO is present.
18
19 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
20
21         * io/tst-mknodat.c: Create a FIFO instead of a socket.
22
23 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
24
25         [BZ #6530]
26         * stdio-common/vfprintf.c (process_string_arg): Revert
27         2000-07-22 change.
28
29 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
30
31         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
32         for testcase.
33         * stdio-common/tst-sprintf.c: Include <locale.h>
34         (main): Test sprintf's handling of incomplete multibyte
35         characters.
36
37 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
38
39         * elf/dl-runtime.c (VERSYMIDX): Removed.
40         * elf/dl-version.c (VERSYMIDX): Likewise.
41         * elf/do-rel.h (VERSYMIDX): Likewise.
42         (VALIDX): Likewise.
43         * elf/dynamic-link.h (VERSYMIDX): Likewise.
44         * elf/rtld.c (VALIDX): Likewise.
45         (ADDRIDX): Likewise.
46         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
47         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
48         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
49         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
50         (VALIDX): Likewise.
51         (ADDRIDX): Likewise.
52
53 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
54
55         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
56
57 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
58
59         [BZ #11438]
60         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
61         to global scope.
62         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
63         addresses are in the same scope as 192.0.2/24.
64         * posix/gai.conf: Document new scope table defaults.
65
66 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67
68         [BZ #5298]
69         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
70         for ftell.  Compute offsets from write pointers instead.
71         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
72
73 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
74
75         [BZ #14543]
76         * libio/Makefile (tests): New test case tst-fseek.
77         * libio/tst-fseek.c: New test case to verify that fseek/ftell
78         combination works in wide mode.
79         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
80         state when the external buffer state changes.
81
82 2012-09-27  David S. Miller  <davem@davemloft.net>
83
84         [BZ #14376]
85         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
86         pass reloc->r_addend in as the 'high' argument to
87         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
88
89         * sysdeps/sparc/fpu/libm-test-ulps: Update.
90
91 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
92
93         * rt/tst-aio2.c: Include <pthread.h>.
94         * rt/tst-aio3.c: Likewise.
95
96 2012-09-27  Steve Ellcey  <sellcey@mips.com>
97
98         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
99
100 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
101
102         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
103         contents on [SHARED].
104
105 2012-09-26  Marek Polacek  <polacek@redhat.com>
106
107         [BZ #14530]
108         [BZ #13741]
109         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
110         for C++ and GCC <4.3 as well as for non GCC compilers.
111
112 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
113
114         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
115
116 2012-09-25  Roland McGrath  <roland@hack.frob.com>
117
118         * Makefile.in (all, install): Declare with .PHONY.
119         Reported by Michael Hope <michael.hope@linaro.org>.
120
121 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
122
123         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
124         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
125         system header.
126         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
127         Likewise.
128         (sydep_routines): Add the new and the internal functions.
129         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
130         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
132         (GLIBC_2.17): Add the new function.
133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
134         (GLIBC_2.17): Likewise.
135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
136         (GLIBC_2.17): Likewise.
137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
138         (GLIBC_2.17): Likewise.
139         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
140
141 2012-09-25  Alan Modra  <amodra@gmail.com>
142
143         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
144         Add release barrier before setting once_control to say
145         initialisation is done.  Add hints on lwarx.  Use macro in
146         place of isync.
147         (clear_once_control): Add release barrier.
148
149 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
150
151         [BZ #13629]
152         * math/s_clog.c (__clog): Handle more values close to |z| = 1
153         specially.
154         * math/s_clog10.c (__clog10): Likewise.
155         * math/s_clog10f.c (__clog10f): Likewise.
156         * math/s_clog10l.c (__clog10l): Likewise.
157         * math/s_clogf.c (__clogf): Likewise.
158         * math/s_clogl.c (__clogl): Likewise.
159         * math/Makefile (libm-calls): Add x2y2m1.
160         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
161         (__x2y2m1): Likewise.
162         (__x2y2m1l): Likewise.
163         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
164         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
165         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
166         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
167         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
168         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
169         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
170         * sysdeps/i386/fpu/libm-test-ulps: Update.
171         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
172
173         [BZ #14621]
174         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
175         int as type of variable DEPTH.
176         (glob): Use size_t instead of int as type of variables NEWCOUNT
177         and OLD_PATHC.
178
179 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
180
181         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
182         Add s_sincosf-sse2.
183         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
184         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
185         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
186         macros for using routine as __sincosf_ia32.
187         Use macro for function declaration and weak_alias.
188         * sysdeps/i386/fpu/libm-test-ulps: Update.
189
190         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
191         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
192
193         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
194         subnormal argument.
195         * math/s_cexpf.c (__cexpf): Likewise.
196         * math/s_csinf.c (__csinf): Likewise.
197         * math/s_csinhf.c (__csinhf): Likewise.
198         * math/s_ctanf.c (__ctanf): Likewise.
199         * math/s_ctanhf.c (__ctanhf): Likewise.
200         * math/s_ccosh.c (__ccoshf): Likewise.
201         * math/s_cexp.c (__cexpl): Likewise.
202         * math/s_csin.c (__csin): Likewise.
203         * math/s_csinh.c (__csinh): Likewise.
204         * math/s_ctan.c (__ctan): Likewise.
205         * math/s_ctanh.c (ctanh): Likewise.
206         * math/s_ccoshl.c (__ccoshl): Likewise.
207         * math/s_cexpl.c (__cexpl): Likewise.
208         * math/s_csinl.c (__csinl): Likewise.
209         * math/s_csinhl.c (__csinhl): Likewise.
210         * math/s_ctanl.c (__ctanl): Likewise.
211         * math/s_ctanhl.c (__ctanhl): Likewise.
212
213 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
214
215         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
216         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
217         (_IO_off_t): Define to __off_t, not _G_off_t.
218         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
219         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
220         (_IO_wint_t): Define to wint_t, not _G_wint_t.
221         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
222         type of __dummy and __dummy2 fields.
223         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
224         (_G_ssize_t): Likewise.
225         (_G_off_t): Likewise.
226         (_G_pid_t): Likewise.
227         (_G_uid_t): Likewise.
228         (_G_wchar_t): Likewise.
229         (_G_wint_t): Likewise.
230         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
231         (_G_ssize_t): Likewise.
232         (_G_off_t): Likewise.
233         (_G_pid_t): Likewise.
234         (_G_uid_t): Likewise.
235         (_G_wchar_t): Likewise.
236         (_G_wint_t): Likewise.
237         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
238         (_G_ssize_t): Likewise.
239         (_G_off_t): Likewise.
240         (_G_pid_t): Likewise.
241         (_G_uid_t): Likewise.
242         (_G_wchar_t): Likewise.
243         (_G_wint_t): Likewise.
244
245 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
246
247         * malloc/arena.c: Include malloc-sysdep.h.
248         (shrink_heap): Use check_may_shrink_heap to decide if madvise
249         is sufficient to shrink the heap or an unmap is needed.
250         * sysdeps/generic/malloc-sysdep.h: New file.  Define
251         new function check_may_shrink_heap.
252         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
253         new function check_may_shrink_heap.
254
255 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
256
257         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
258         comments.
259
260 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
261
262         * catgets/test-gencat.sh: Add "set -e".
263         * elf/tst-pathopt.sh: Likewise.
264         * grp/tst_fgetgrent.sh: Likewise.
265         * iconvdata/run-iconv-test.sh: Likewise.
266         * intl/tst-gettext.sh: Likewise.
267         * intl/tst-gettext2.sh: Likewise.
268         * intl/tst-gettext4.sh: Likewise.
269         * intl/tst-gettext6.sh: Likewise.
270         * intl/tst-translit.sh: Likewise.
271         * io/ftwtest-sh: Likewise.
272         * libio/test-freopen.sh: Likewise.
273         * malloc/tst-mtrace.sh: Likewise.
274         * posix/globtest.sh: Likewise.
275         * posix/tst-getconf.sh: Likewise.
276         * posix/wordexp-tst.sh: Likewise.
277         * stdio-common/tst-printf.sh: Likewise.
278         * stdio-common/tst-unbputc.sh: Likewise.
279         * stdlib/tst-fmtmsg.sh: Likewise.
280         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
281         * catgets/Makefile: Do not specify -e option when running
282         testsuite shell scripts.
283         * elf/Makefile: Likewise.
284         * grp/Makefile: Likewise.
285         * iconvdata/Makefile: Likewise.
286         * intl/Makefile: Likewise.
287         * io/Makefile: Likewise.
288         * libio/Makefile: Likewise.
289         * malloc/Makefile: Likewise.
290         * posix/Makefile: Likewise.
291         * stdio-common/Makefile: Likewise.
292         * stdlib/Makefile: Likewise.
293         * sysdeps/x86_64/Makefile: Likewise.
294
295         * io/ftwtest-sh: Add copyright header.
296         * posix/globtest.sh: Likewise.
297         * posix/tst-getconf.sh: Likewise.
298         * posix/wordexp-tst.sh: Likewise.
299         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
300
301 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
302
303         [BZ #13679]
304         * Makeconfig (+link): Defined as $(+link-static) if
305         $(build-shared) isn't yes.
306         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
307         isn't yes.
308         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
309
310         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
311
312         [BZ #14562]
313         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
314         new chunk size with MALLOC_ALIGN_MASK.
315
316 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
317
318         [BZ #5044]
319         * stdio-common/printf_fphex.c: Include <stdbool.h> and
320         <rounding-mode.h>.
321         (__printf_fphex): Determine rounding using get_rounding_mode and
322         round_away.
323         * stdio-common/tst-printf-round.c (struct hex_test): New
324         structure.
325         (hex_tests): New variable.
326         (test_hex_in_one_mode): New function.
327         (do_test): Also run tests for hex float output.
328
329 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
330
331         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
332         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
333         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
334         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
335         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
336         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
337         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
338         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
339
340 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
341
342         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
343         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
344         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
345         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
346
347 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
348
349         [BZ #14579]
350         * elf/rtld.c (dl_main): Limit the check for self loading to normal
351         mode only.
352         * elf/tst-rtld-load-self.sh: New test.
353         * elf/Makefile: Run it.
354
355 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
356
357         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
358         (tst-writev-ENV): Remove.
359         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
360
361 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
362
363         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
364
365 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
366
367         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
368         unconditional.
369         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
370         Likewise.
371         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
372         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
373         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
374         Likewise.
375
376 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
377
378         [BZ #14587]
379         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
380         * config.make.in (have-cpp-asm-debuginfo): Removed.
381         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
382         * configure: Regenerated.
383
384 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
385
386         [BZ #5044]
387         * stdio-common/printf_fp.c: Include <stdbool.h> and
388         <rounding-mode.h>.
389         (___printf_fp): Determine rounding using get_rounding_mode and
390         round_away.
391         * stdio-common/tst-printf-round.c: New file.
392         * stdio-common/Makefile (tests): Add tst-printf-round.
393         (link-libm): New variable.
394         ($(objpfx)tst-printf-round): Depend in $(link-libm).
395
396 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
397
398         [BZ #14576]
399         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
400         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
401         Likewise.
402         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
403         Likewise.
404
405 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
406
407         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
408         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
409         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
410         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
411
412 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
413
414         [BZ #14518]
415         * include/rounding-mode.h: New file.
416         * sysdeps/generic/get-rounding-mode.h: Likewise.
417         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
418         * stdlib/strtod_l.c: Include <rounding-mode.h>.
419         (MAX_VALUE): New macro.
420         (MIN_VALUE): Likewise.
421         (overflow_value): New function.
422         (underflow_value): Likewise.
423         (round_and_return): Use overflow_value and underflow_value to
424         determine return values in overflow and underflow cases.  Use
425         round_away to determine rounding depending on rounding mode.
426         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
427         determine return values in overflow and underflow cases.
428         * stdlib/tst-strtod-round.c: Include <fenv.h>.
429         (struct test_results): New structure.
430         (struct test): Use struct test_results to store expected results
431         for all rounding modes.
432         (TEST): Include expected results for all rounding modes.
433         (test_in_one_mode): New function.
434         (do_test): Use test_in_one_mode to compute and check results.
435         Check results for all rounding modes.
436         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
437         $(link-libm).
438
439 2012-12-09  Allan McRae  <allan@archlinux.org>
440
441         * sysdeps/i386/fpu/libm-test-ulps: Update
442
443 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
444
445         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
446         (_G_int32_t): Likewise.
447         (_G_uint16_t): Likewise.
448         (_G_uint32_t): Likewise.
449         (_G_HAVE_BOOL): Likewise.
450         (_G_HAVE_ATEXIT): Likewise.
451         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
452         (_G_HAVE_IO_FILE_OPEN): Likewise.
453         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
454         (_G_int32_t): Likewise.
455         (_G_uint16_t): Likewise.
456         (_G_uint32_t): Likewise.
457         (_G_HAVE_BOOL): Likewise.
458         (_G_HAVE_ATEXIT): Likewise.
459         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
460         (_G_HAVE_IO_FILE_OPEN): Likewise.
461         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
462         (_G_int32_t): Likewise.
463         (_G_uint16_t): Likewise.
464         (_G_uint32_t): Likewise.
465         (_G_HAVE_BOOL): Likewise.
466         (_G_HAVE_ATEXIT): Likewise.
467         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
468         (_G_HAVE_IO_FILE_OPEN): Likewise.
469
470 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
471
472         * csu/libc-tls.c: Update copyright years.
473
474 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
475
476         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
477         [!_G_USING_THUNKS]: Remove conditional code.
478         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
479         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
480
481         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
482         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
483         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
484         (_G_VTABLE_LABEL_PREFIX): Likewise.
485         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
486         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
487         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
488         (_G_VTABLE_LABEL_PREFIX): Likewise.
489         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
490         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
491         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
492         (_G_VTABLE_LABEL_PREFIX): Likewise.
493         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
494
495 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
496
497         * libio/Makefile: Include ../Makeconfig before tests.
498         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
499         only if $(build-shared) is yes.
500
501         * iconv/gconv_db.c: Update copyright years.
502
503 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
504
505         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
506         unwind info if defined PIC. Fix special cases description.
507         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
508
509         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
510         DP_HI_MASK entry.
511         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
512
513 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
514
515         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
516
517         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
518         is NULL.
519
520         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
521         (LDLIBS-tst-chk4): This.
522         (LDFLAGS-tst-chk5): Renamed to ...
523         (LDLIBS-tst-chk5): This.
524         (LDFLAGS-tst-chk6): Renamed to ...
525         (LDLIBS-tst-chk6): This.
526         (LDFLAGS-tst-lfschk4): Renamed to ...
527         (LDLIBS-tst-lfschk4): This.
528         (LDFLAGS-tst-lfschk5): Renamed to ...
529         (LDLIBS-tst-lfschk5): This.
530         (LDFLAGS-tst-lfschk6): Renamed to ...
531         (LDLIBS-tst-lfschk6): This.
532
533         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
534         on $(common-objpfx)soversions.mk.
535
536 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
537
538         [BZ #10014]
539         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
540         example host name.
541
542 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
543
544         * malloc/arena.c (arena_get_retry): New function that gets
545         another arena for the caller to try its request on.
546         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
547         current arena cannot fulfill the request.
548         (__libc_memalign): Likewise.
549         (__libc_memalign): Likewise.
550         (__libc_pvalloc): Likewise.
551         (__libc_calloc): Likewise.
552
553 2012-09-05  John Tobey  <john.tobey@gmail.com>
554
555         [BZ #13542]
556         * manual/arith.texi (Operations on Complex): Fix description
557         of carg branch cut.
558
559 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
560
561         [BZ #10014]
562         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
563         host name.
564
565         [BZ #10038]
566         * manual/memory.texi (Memory): Make order of menu items match
567         order of sections.
568
569 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
570
571         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
572         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
573         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
574
575 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
576
577         * csu/libc-tls.c (static_dtv): Renamed to ...
578         (_dl_static_dtv): This.  Make it global.
579         (_dl_initial_dtv): Removed.
580         (__libc_setup_tls): Updated.
581         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
582         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
583         DL_INITIAL_DTV.
584
585 2012-09-06  Petr Machata  <pmachata@redhat.com>
586
587         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
588         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
589         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
590         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
591
592 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
593
594         [BZ #14545]
595         * csu/libc-tls.c (_dl_initial_dtv): New variable.
596         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
597         freeing dtv[-1].
598
599 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
600
601         [BZ #14544]
602         * Makeconfig (link-static-before-libc): Replace $(+prector)
603         with $(+prectorT).
604         (link-static-after-libc): Replace $(+postctor) with
605         $(+postctorT).
606         (link-bounded): Replace $(+prector)/$(+postctor) with
607         $(+prectorT)/$(+postctorT).
608         (+prectorT): New macro.
609         (+postctorT): Likewise.
610
611 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
612
613         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
614         (round_str): Handle values above the maximum for IBM long double
615         as inexact.
616         * stdlib/tst-strtod-round.c (tests): Regenerated.
617
618 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
619
620         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
621         assembler flag.
622         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
623         zarch_nohighgprs around the zarch optimized routines.
624         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
625         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
626         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
627         for zarch.
628
629 2012-09-05  David S. Miller  <davem@davemloft.net>
630
631         * sysdeps/sparc/fpu/libm-test-ulps: Update.
632
633         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
634         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
635         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
636         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
637         entries.
638
639 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
640
641         * malloc/arena.c: Fold copyright years.
642         * malloc/mcheck.c, malloc/memusage.c: Likewise.
643
644 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
645
646         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
647
648 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
649
650         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
651
652 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
653
654         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
655         change internal state upon failure.
656
657 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
658
659         * malloc/mcheck.c (mcheck_check_all): Fix typo.
660         * malloc/memusage.c (mmap): Likewise.
661         (mmap64, mremap): Likewise.  Adjust name in comment.
662
663 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
664
665         * libio/fileops.c: Fix typos in comments.
666         * libio/oldfileops.c: Likewise.
667         * libio/wfileops.c: Likewise.
668
669 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
670
671         [BZ #1349]
672         * malloc/Makefile (tests): Add tst-malloc-usable test case.
673         (tst-malloc-usable-ENV): Set environment for test case.
674         * malloc/hooks.c (malloc_check_get_size): New function to get
675         requested size.
676         * malloc/malloc.c (musable): Use malloc_check_get_size.
677         * malloc/tst-malloc-usable.c: New test case.
678
679 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
680
681         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
682
683 2012-09-05  Allan McRae  <allan@archlinux.org>
684
685         [BZ #13966]
686         * configure.in (CXX_SYSINCLUDES): Use compiler output to
687         determine header location.
688         * configure: Regenerated.
689
690 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
691
692         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
693         float format.
694         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
695         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
696         format.
697         (test): Regenerate.
698
699 2012-09-04  David S. Miller  <davem@davemloft.net>
700
701         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
702         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
703         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
704
705 2012-09-04  Florian Weimer  <fweimer@redhat.com>
706
707         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
708         failures.
709
710         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
711
712 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
713
714         [BZ #9914]
715         * libio/iogetdelim.c: Include <limits.h>.
716         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
717         + len + 1 would overflow.
718
719 2012-09-03  Andreas Jaeger  <aj@suse.de>
720
721         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
722         * sysdeps/i386/fpu/libm-test-ulps: Update.
723
724 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
725
726         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
727         Add s_sinf-sse2, s_conf-sse2.
728
729         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
730         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
731         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
732         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
733
734         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
735         for using routine as __sinf_ia32.
736         Use macro for function declaration and weak_alias.
737         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
738         for using routine as __cosf_ia32.
739         Use macro for function declaration and weak_alias.
740
741         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
742         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
743
744         * sysdeps/x86_64/fpu/s_sinf.S: New file.
745         * sysdeps/x86_64/fpu/s_cosf.S: New file.
746         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
747
748         * math/libm-test.inc (cos_test): Add more test cases.
749         (sin_test): Likewise.
750         (sincos_test): Likewise.
751
752 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
753
754         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
755         (IFUNC_RESOLVE): Make pointers to the specialized implementations
756         hidden.
757         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
758
759 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
760
761         [BZ #14538]
762         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
763         first element of the GOT.
764         (elf_machine_load_address): Return the difference between
765         the runtime address of _DYNAMIC and elf_machine_dynamic ().
766
767 2012-09-01  Allan McRae  <allan@archlinux.org>
768
769         [BZ #13412]
770         * configure.in (AWK): Require gawk version 3.0 or later.
771         * configure: Regenerated.
772
773 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
774
775         * sysdeps/unix/sysv/linux/kernel-features.h
776         (__ASSUME_POSIX_CPU_TIMERS): Remove.
777         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
778         [__NR_clock_getres]: Make code unconditional.
779         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
780         (clock_getcpuclockid): Remove code left unreachable by removal of
781         conditionals.
782         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
783         code unconditional.
784         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
785         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
786         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
787         Make code unconditional.
788         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
789         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
790         * sysdeps/unix/sysv/linux/clock_settime.c
791         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
792         conditional code.
793         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
794         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
795
796 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
797
798         [BZ #14476]
799         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
800         scripts/test-installation.pl.
801
802         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
803         and $ld_so_version if it is set.
804
805 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
806
807         [BZ #14516]
808         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
809         failure if reading from procfs failed.
810         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
811
812 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
813
814         * sysdeps/unix/sysv/linux/kernel-features.h
815         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
816         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
817         Remove conditional code.
818         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
819         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
820         Remove conditional code.
821         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
822         * sysdeps/unix/sysv/linux/i386/fxstat.c
823         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
824         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
825         * sysdeps/unix/sysv/linux/i386/fxstatat.c
826         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
827         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
828         * sysdeps/unix/sysv/linux/i386/lxstat.c
829         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
830         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
831         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
832         Remove conditional code.
833         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
834         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
835         Remove conditional code.
836         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
837         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
838         <kernel-features.h>.
839         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
840         Remove.
841         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
842         Remove conditional code.
843         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
844         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
845         Remove conditional.
846
847 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
848
849         [BZ #5400]
850         * NEWS: Add fixed bug number.
851
852 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
853
854         [BZ #14519]
855         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
856         underflowing exponent in case of negative sign.
857         * stdlib/tst-strtod-round-data: Add more tests.
858         * stdlib/tst-strtod-round.c (tests): Regenerated.
859
860         [BZ #3479]
861         * stdlib/strtod_l.c (NDIG): Remove.
862         (HEXNDIG): Likewise.
863         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
864         smallest representable value.
865         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
866         lie within an exact representation of 1/2 ulp of the result.
867         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
868         unconditionally.
869         (TENS_P9_IDX): Define unconditionally.
870         (TENS_P9_SIZE): Likewise.
871         (TENS_P10_IDX): Likewise.
872         (TENS_P10_SIZE): Likewise.
873         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
874         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
875         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
876         entries for 10^2^13 and 10^2^14.
877         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
878         (TENS_P13_IDX): Define.
879         (TENS_P13_SIZE): Likewise.
880         (TENS_P14_IDX): Likewise.
881         (TENS_P14_SIZE): Likewise.
882         (_fpioconst_pow10): Change array size to
883         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
884         unconditional.
885         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
886         1024]: Add entries for 10^2^13 and 10^2^14.
887         [LAST_POW10 > _LAST_POW10]: Remove #error.
888         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
889         (_fpioconst_pow10): Change array size to
890         FPIOCONST_POW10_ARRAY_SIZE.
891         * stdlib/gen-fpioconst.c: New file.
892         * stdlib/gen-tst-strtod-round.c: Likewise.
893         * stdlib/tst-strtod-round-data: Likewise.
894         * stdlib/tst-strtod-round.c: Likewise.
895         * stdlib/Makefile (tests): Add tst-strtod-round.
896
897         [BZ #14459]
898         * stdlib/strtod_l.c: Include <stdint.h>.
899         (NDEBUG): Do not define.
900         (round_and_return): Change EXPONENT parameter to type intmax_t.
901         Rearrange calculations to avoid internal overflow possibilities.
902         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
903         Rearrange calculations to avoid internal overflow possibilities.
904         Assert that number fits inside MPNSIZE limbs.
905         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
906         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
907         calculations and add assertions to avoid internal overflow
908         possibilities.  Add casts to avoid signed/unsigned operations.
909         * stdlib/tst-strtod-overflow.c: New file.
910         * stdlib/Makefile (tests): Add tst-strtod-overflow.
911
912 2012-08-25  Marek Polacek  <polacek@redhat.com>
913
914         * time/time.h: Fix some typos in comments.
915
916 2012-08-23  Roland McGrath  <roland@hack.frob.com>
917
918         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
919         * posix/tst-rfc3484-2.c: Likewise.
920         * posix/tst-rfc3484-3.c: Likewise.
921
922 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
923
924         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
925         (EF_ARM_ABI_FLOAT_HARD): Likewise.
926
927 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
928
929         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
930         #include of fxstatat64.c.
931
932 2012-08-22  Roland McGrath  <roland@hack.frob.com>
933
934         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
935         * shadow/getspent_r.c: Likewise.
936         * shadow/getspnam.c: Likewise.
937         * shadow/getspnam_r.c: Likewise.
938         * gshadow/getsgent.c: Likewise.
939         * gshadow/getsgent_r.c: Likewise.
940         * gshadow/getsgnam.c: Likewise.
941         * gshadow/getsgnam_r.c: Likewise.
942         * inet/getnetbyad.c: Likewise.
943         * inet/getnetbyad_r.c: Likewise.
944         * inet/getnetbynm.c: Likewise.
945         * inet/getnetbynm_r.c: Likewise.
946         * inet/getnetent.c: Likewise.
947         * inet/getnetent_r.c: Likewise.
948         * inet/getproto.c: Likewise.
949         * inet/getproto_r.c: Likewise.
950         * inet/getprtent.c: Likewise.
951         * inet/getprtent_r.c: Likewise.
952         * inet/getprtname.c: Likewise.
953         * inet/getprtname_r.c: Likewise.
954         * inet/getrpcbyname.c: Likewise.
955         * inet/getrpcbyname_r.c: Likewise.
956         * inet/getrpcbynumber.c: Likewise.
957         * inet/getrpcbynumber_r.c: Likewise.
958         * inet/getrpcent.c: Likewise.
959         * inet/getrpcent_r.c: Likewise.
960         * inet/getaliasent.c: Likewise.
961         * inet/getaliasent_r.c: Likewise.
962         * inet/getaliasname.c: Likewise.
963         * inet/getaliasname_r.c: Likewise.
964         * nscd/getgrgid_r.c: Likewise.
965         * nscd/getgrnam_r.c: Likewise.
966         * nscd/gethstbyad_r.c: Likewise.
967         * nscd/gethstbynm3_r.c: Likewise.
968         * nscd/getpwnam_r.c: Likewise.
969         * nscd/getpwuid_r.c: Likewise.
970         * nscd/getsrvbynm_r.c: Likewise.
971         * nscd/getsrvbypt_r.c: Likewise.
972         * nscd/gai.c: Likewise.
973
974         * configure.in (build_nscd): New substituted variable, set
975         by --disable-build-nscd and defaults to $use_nscd.
976         * configure: Regenerated.
977         * config.make.in (build-nscd): New substituted variable.
978         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
979         Change conditional to require [$(build-nscd) = yes] as well.
980         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
981
982         [BZ# 13696]
983         * configure.in (use_nscd): New substituted variable, set by
984         --disable-nscd.  If enabled, define USE_NSCD.
985         * configure: Regenerated.
986         * config.h.in: Add USE_NSCD.
987         * config.make.in (use-nscd): New substituted variable.
988         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
989         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
990         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
991         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
992         (CFLAGS-getgrnam_r.c): Likewise.
993         (CFLAGS-initgroups.c): Likewise.
994         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
995         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
996         Variables removed.
997         * inet/getnetgrent_r.c
998         (nscd_setnetgrent): New function, broken out of ...
999         (setnetgrent): ... here.  Call it.
1000         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1001         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1002         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1003         * nscd/Makefile (routines, aux): Move definitions after include of
1004         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1005         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1006         Conditionalize on [USE_NSCD].
1007         (is_nscd, nscd_init_cb): Likewise.
1008         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1009         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1010         * nss/nss_db/db-init.c: Likewise.
1011         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1012         [USE_NSCD].
1013         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1014         (make_request): Use it.
1015         (cache_valid_p): New function.
1016         (__check_pf): Use it.
1017         * NEWS: Add item for --disable-nscd.
1018
1019 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1020
1021         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1022         to support sed >= 4.2.1-20-ga9bf076.
1023         * configure: Regenerated.
1024
1025 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1026
1027         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1028         Conditionalize whole body on [IREL].
1029
1030 2012-08-22  Jeff Law <law@redhat.com>
1031
1032         [BZ #14505]
1033         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1034         if the family is PF_UNSPEC.
1035
1036 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1037
1038         * Makerules (lib-version): Rename from V.
1039         (install-lib-nosubdir): Change V to lib-version.
1040
1041 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1042
1043         [BZ #14252]
1044         * powerpc32/power6/wcschr.c: New file.
1045         * powerpc32/power6/wcscpy.c: New file.
1046         * powerpc32/power6/wcsrchr.c: New file.
1047         * powerpc64/power6/wcschr.c: New file.
1048         * powerpc64/power6/wcscpy.c: New file.
1049         * powerpc64/power6/wcsrchr.c: New file.
1050
1051 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1052
1053         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1054         (two_way_short_needle): Use it.
1055         * string/strstr.c (AVAILABLE1_USES_J): Define.
1056         * string/strcasestr.c: Likewise.
1057
1058         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1059         array references.
1060         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1061
1062         [BZ #11607]
1063         * NEWS: Add an entry.
1064         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1065         define their defaults.
1066         (two_way_short_needle): Detect end-of-string on-the-fly.
1067         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1068         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1069         * string/bug-strcasestr1.c: New test.
1070         * string/Makefile: Run it.
1071
1072 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1073
1074         [BZ #11607]
1075         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1076         the first character.
1077
1078 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1079
1080         * csu/elf-init.c (__libc_csu_irel): Function removed.
1081         * csu/libc-start.c (apply_irel): New function.
1082         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1083
1084 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1085
1086         * sysdeps/unix/sysv/linux/kernel-features.h
1087         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1088         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1089         <kernel-features.h>.
1090         [__NR_fadvise64_64]: Make code unconditional.
1091         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1092         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1093         !__NR_fadvise64_64)]: Likewise.
1094         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1095         !__NR_fadvise64_64))]: Likewise.
1096         [__NR_fadvise64]: Make code unconditional.
1097         [!__NR_fadvise64]: Remove conditional code.
1098         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1099         <kernel-features.h>.
1100         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1101         unconditional.
1102         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1103         conditional code.
1104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1105         not include <kernel-features.h>.
1106         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1107         unconditional.
1108         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1109         conditional code.
1110         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1111         include <kernel-features.h>.
1112         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1113         unconditional.
1114         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1115         conditional code.
1116
1117 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1118
1119         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1120         slight instruction rearrangements per scrollpipe analysis.
1121         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1122
1123 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1124
1125         * manual/syslog.texi (syslog; vsyslog, closelog):
1126         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1127         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1128
1129         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1130         DSOCAPS to match condition on defining it.
1131
1132 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1133
1134         * sysdeps/unix/sysv/linux/kernel-features.h
1135         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1137         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1138         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1140         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1141         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1143         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1144         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1145
1146         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1147         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1148
1149         * sysdeps/unix/sysv/linux/kernel-features.h
1150         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1151         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1152         unconditional.
1153         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1154         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1155         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1156         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1157         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1158         Make code unconditional.
1159         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1160         (__mmap64) [!__NR_mmap2]: Likewise.
1161         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1162         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1163         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1164         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1165         [__NR_mmap2]: Make code unconditional.
1166         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1167         (__mmap64) [!__NR_mmap2]: Likewise.
1168
1169 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1170
1171         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1172
1173 2012-08-18  Andreas Jaeger  <aj@suse.de>
1174
1175         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1176
1177 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1178
1179         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1180         * include/unistd.h (__have_sock_cloexec): Likewise.
1181         (__have_pipe2): Likewise.
1182         (__have_dup3): Likewise.
1183
1184 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1185
1186         [BZ #9685]
1187         * include/unistd.h (__have_pipe2): Change define into an extern int.
1188         (__have_dup3): Likewise.
1189         * socket/have_sock_cloexec.c: Include fcntl.h.
1190         (__have_pipe2): New variable.
1191         (__have_dup3): Likewise.
1192
1193 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1194
1195         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1196
1197 2012-08-17  Marek Polacek  <polacek@redhat.com>
1198
1199         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1200         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1201
1202 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1203
1204         * configure.in: Add AC_SUBST for sysheaders.
1205         * configure: Regenerated.
1206         * config.make.in (sysheaders): New substituted variable.
1207
1208         * sysdeps/unix/mkfifo.c: Moved ...
1209         * sysdeps/posix/mkfifo.c: ... here.
1210         * sysdeps/unix/mkfifoat.c: Moved ...
1211         * sysdeps/posix/mkfifoat.c: ... here.
1212
1213         * sysdeps/unix/utime.c: Moved ...
1214         * sysdeps/posix/utime.c: ... here.
1215
1216         * sysdeps/unix/time.c: Moved ...
1217         * sysdeps/posix/time.c: ... here.
1218         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1219         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1220
1221         * sysdeps/unix/nice.c: Moved ...
1222         * sysdeps/posix/nice.c: ... here.
1223
1224         * sysdeps/unix/alarm.c: Moved ...
1225         * sysdeps/posix/alarm.c: ... here.
1226
1227         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1228
1229 2012-08-17  Jeff Law <law@redhat.com>
1230
1231         * intl/Makefile (codeset_mo): New variable.
1232         ($(codeset_mo)): New target.
1233         (tst-codeset.out): Depend on that.  Remove explicit rule.
1234         (tst-gettext3.out, tst-gettext5.out): Likewise.
1235         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1236         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1237         * intl/tst-codeset.sh: Remove.
1238         * intl/tst-gettext3.sh: Likewise.
1239         * intl/tst-gettext5.sh: Likewise.
1240
1241 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1242
1243         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1244         * sysdeps/unix/syscalls.list: ... here.
1245
1246         * sysdeps/posix/getaddrinfo.c
1247         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1248         (gaiconf_init, gaiconf_reload): Use them.
1249         [!_STATBUF_ST_NSEC]
1250         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1251         Define using time_t rather than struct timespec.
1252
1253         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1254         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1255         Macros removed.
1256         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1257         [!NO_THREADS].
1258         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1259         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1260         Likewise.
1261
1262         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1263         __libc_cleanup_push argument.
1264
1265         * bits/param.h: New file.
1266         * misc/sys/param.h: New file.
1267         * include/sys/param.h: New file.
1268         * misc/Makefile (headers): Add bits/param.h.
1269         * sysdeps/generic/sys/param.h: File removed.
1270         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1271         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1272         * sysdeps/mach/hurd/bits/param.h: New file.
1273         * sysdeps/mach/hurd/sys/param.h: New file.
1274
1275         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1276         last change.
1277
1278         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1279         [_IO_MTSAFE_IO].
1280         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1281         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1282         New macros.
1283
1284         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1285         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1286         rather than -D_IO_MTSAFE_IO conditionally.
1287         * stdio-common/Makefile (CPPFLAGS): Likewise.
1288         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1289         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1290         Use $(libio-mtsafe).
1291         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1292         of -D_IO_MTSAFE_IO.
1293         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1294         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1295         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1296         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1297         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1298         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1299         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1300         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1301         (CFLAGS-fread_u_chk.c): Likewise.
1302         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1303         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1304         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1305         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1306         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1307         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1308         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1309         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1310         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1311
1312         * libio/Makefile: Test [$(libc-reentrant) = yes]
1313         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1314
1315         * Makeconfig
1316         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1317         * sysdeps/pthread/configure: File removed.
1318         * sysdeps/pthread/Makeconfig: New file.
1319         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1320         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1321
1322 2012-08-16  Gary Benson  <gbenson@redhat.com>
1323
1324         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1325         unmapping the first object in a namespace.
1326
1327 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1328
1329         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1330         (__internal_setnetgrent): ... this.  Add internal_function to
1331         definition.  Add libc_hidden_def.
1332         (setnetgrent): Update caller.
1333         (internal_endnetgrent): Renamed to ...
1334         (__internal_endnetgrent): ... this.  Add internal_function to
1335         definition.  Add libc_hidden_def.
1336         (endnetgrent): Update caller.
1337         (internal_getnetgrent_r): Renamed to ...
1338         (__internal_getnetgrent_r): ... this.  Add internal_function to
1339         definition.  Add libc_hidden_def.
1340         (__getnetgrent_r): Update caller.
1341         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1342
1343 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1344
1345         * stdlib/longlong.h: Update from GCC.
1346
1347 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1348
1349         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1350         on _QL, which is set by umul_ppmm but never used.
1351         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1352         variables, which are set by GMP macros but never used.
1353         * stdio-common/_itowa.c (_itowa): Likewise.
1354         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1355         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1356
1357 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1358
1359         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1360         struct La_sh_regs is not constant.
1361         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1362         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1363         and struct La_sparc64_regs are not constant.
1364
1365 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1366
1367         * sysdeps/unix/sysv/linux/kernel-features.h
1368         (__ASSUME_POSIX_TIMERS): Remove.
1369         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1370         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1371         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1372         Make code unconditional.
1373         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1374         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1375         Make code unconditional.
1376         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1377         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1378         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1379         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1380         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1381         Make code unconditional.
1382         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1383         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1384         (__libc_missing_posix_timers): Remove.
1385
1386 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1387
1388         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1389         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1390
1391         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1392
1393         * elf/dl-sym.c: Include <stdlib.h>.
1394
1395         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1396         constants, which avoids warnings in 32-bit builds.
1397
1398         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1399         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1400
1401         * misc/lseek.c: File moved to ...
1402         * io/lseek.c: ... here.
1403
1404         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1405
1406         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1407         shifting LEN more than 31 bits at once.
1408
1409 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1410
1411         [BZ #14195]
1412         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1413         segmentation fault for a case of two empty input strings.
1414         * string/test-strncasecmp.c (check1): Renamed to...
1415         (bz12205): ...this.
1416         (bz14195): Add new testcase for two empty input strings and N > 0.
1417         (test_main): Call new testcase, adapt for renamed function.
1418
1419 2012-08-15  Andreas Jaeger  <aj@suse.de>
1420
1421         [BZ #14090]
1422         * crypt/md5test2.c: New test, based on test supplied by Serge
1423         Belyshev <belyshev@depni.sinp.msu.ru>.
1424         * crypt/Makefile (xtests): Add md5test-giant..
1425         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1426
1427 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1428
1429         [BZ #14090]
1430         * crypt/md5.c (md5_process_block): Don't assume the buffer
1431         length is less than 2**32.
1432         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1433         length is less than 2**64.
1434
1435 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1436
1437         * string/str-two-way.h: Include <sys/param.h>.
1438         (MAX): Macro removed.
1439
1440         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1441         Move #define and #undef of memmove to just before and after
1442         including <string.h>.
1443
1444         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1445         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1446         and after including <string.h>.  Move declarations of
1447         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1448         to before #include "string/memmove.c".
1449
1450         * include/dirent.h: Declare __getdirentries.
1451
1452         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1453         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1454
1455 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1456
1457         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1458         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1459         * sysdeps/i386/configure: Regenerated.
1460         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1461         STABS_CURRENT_FILE, and STABS_FUN.
1462         (END): Remove call to STABS_FUN_END.
1463         (STABS_CURRENT_FILE1): Delete.
1464         (STABS_CURRENT_FILE): Likewise.
1465         (STABS_FUN): Likewise.
1466         (STABS_FUN_END): Likewise.
1467         (STABS_FUN2): Likewise.
1468         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1469         * sysdeps/x86_64/configure: Regenerated.
1470
1471 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1472
1473         * elf/dl-open.c: Include <atomic.h>.
1474         * elf/dl-lookup.c: Likewise.
1475
1476 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1477
1478         * sysdeps/unix/sysv/linux/kernel-features.h
1479         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1480         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1481         unconditionally.
1482         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1483         unconditionally.
1484         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1485         condition on __ASSUME_CLONE_THREAD_FLAGS.
1486
1487 2012-08-14  Andreas Jaeger  <aj@suse.de>
1488
1489         * sysdeps/i386/fpu/libm-test-ulps: Update.
1490
1491 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1492
1493         * include/atomic.h (atomic_exchange_and_add): Split into ...
1494         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1495         New atomic macros.
1496
1497 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1498
1499         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1500
1501 2012-08-13  Jeff Law <law@redhat.com>
1502
1503         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1504         null byte in the output string.
1505
1506 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1507
1508         * sysdeps/unix/sysv/linux/kernel-features.h
1509         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1510         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1511         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1512         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1513         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1514         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1515         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1516
1517 2012-08-09  Jeff Law <law@redhat.com>
1518
1519         [BZ #13939]
1520         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1521         When avoid_arena is set, don't retry in the that arena.  Pick the
1522         next one, whatever it might be.
1523         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1524         (arena_lock): Pass in new parameter to arena_get2.
1525         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1526         arena_get2.
1527         (__libc_malloc): Unify retrying after main arena failure with
1528         __libc_memalign version.
1529         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1530
1531 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1532
1533         [BZ #14166]
1534         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1535         to __redirect_strstr.
1536         (__strstr_sse42): Use typeof __redirect_strstr.
1537         (__strstr_ia32): Likewise.
1538         (__libc_strstr): New prototype.
1539         (strstr): Renamed to ...
1540         (__libc_strstr): This.
1541         (strstr): New strong alias of __libc_strstr.
1542         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1543         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1544         __redirect_time.
1545         Include <time.h>.
1546         (__libc_time): New prototype.
1547         (time_ifunc): Replace time with __libc_time.
1548         (time): New strong alias and hidden definition of __libc_time.
1549         (__GI_time): Remove strong alias.
1550         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1551         Include <stddef.h>.
1552         (memmove): Redefined to __redirect_memmove.
1553         (__memmove_sse2): Use typeof __redirect_memmove.
1554         (__memmove_ssse3): Likewise.
1555         (__memmove_ssse3_back): Likewise.
1556         (__libc_memmove): New prototype.
1557         (memmove): Renamed to ...
1558         (__libc_memmove): This.
1559         (memmove): New strong alias of __libc_memmove.
1560
1561 2012-08-08  Mark Salter  <msalter@redhat.com>
1562
1563         * elf/elf.h
1564         (R_MN10300_TLS_GD): Define.
1565         (R_MN10300_TLS_LD): Likewise.
1566         (R_MN10300_TLS_LDO): Likewise.
1567         (R_MN10300_TLS_GOTIE): Likewise.
1568         (R_MN10300_TLS_IE): Likewise.
1569         (R_MN10300_TLS_LE): Likewise.
1570         (R_MN10300_TLS_DTPMOD): Likewise.
1571         (R_MN10300_TLS_DTPOFF): Likewise.
1572         (R_MN10300_TLS_TPOFF): Likewise.
1573         (R_MN10300_SYM_DIFF): Likewise.
1574         (R_MN10300_ALIGN): Likewise.
1575         (R_MN10300_NUM): Update.
1576
1577 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1578
1579         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1580         Remove.
1581
1582 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1583
1584         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1585
1586         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1587         sysdeps/unix -> sysdeps/posix move.
1588         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1589
1590 2012-08-07      Allan McRae     <allan@archlinux.org>
1591
1592         [BZ #14303]
1593         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1594         (SUNOS_CPP): Likewise.
1595         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1596         not found.
1597         (open_input): Call CPP using execvp.
1598
1599 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1600
1601         * sysdeps/unix/sysv/linux/kernel-features.h
1602         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1603         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1604         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1605         (__ASSUME_WAITID_SYSCALL): Likewise.
1606         * sysdeps/unix/sysv/linux/dl-execstack.c
1607         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1608         code unconditional.
1609         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1610         conditional code.
1611         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1612         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1613         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1614         code.
1615         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1616         unconditional.
1617         [__ASSUME_WAITID_SYSCALL]: Likewise.
1618         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1619
1620 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1621
1622         * sysdeps/unix/closedir.c: Renamed to ...
1623         * sysdeps/posix/closedir.c: ... here.
1624         * sysdeps/unix/dirfd.c: Renamed to ...
1625         * sysdeps/posix/dirfd.c: ... here.
1626         * sysdeps/unix/dirstream.h: Renamed to ...
1627         * sysdeps/posix/dirstream.h: ... here.
1628         * sysdeps/unix/fdopendir.c: Renamed to ...
1629         * sysdeps/posix/fdopendir.c: ... here.
1630         * sysdeps/unix/opendir.c: Renamed to ...
1631         * sysdeps/posix/opendir.c: ... here.
1632         * sysdeps/unix/readdir.c: Renamed to ...
1633         * sysdeps/posix/readdir.c: ... here.
1634         * sysdeps/unix/readdir_r.c: Renamed to ...
1635         * sysdeps/posix/readdir_r.c: ... here.
1636         * sysdeps/unix/rewinddir.c: Renamed to ...
1637         * sysdeps/posix/rewinddir.c: ... here.
1638         * sysdeps/unix/seekdir.c: Renamed to ...
1639         * sysdeps/posix/seekdir.c: ... here.
1640         * sysdeps/unix/telldir.c: Renamed to ...
1641         * sysdeps/posix/telldir.c: ... here.
1642         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1643         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1644         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1645         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1646
1647         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1648         * bits/fcntl.h: ... here.
1649
1650         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1651         not 0.
1652         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1653         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1654         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1655         (struct flock): Move l_start, l_len to the beginning.
1656         Use __pid_t for l_pid.
1657         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1658         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1659         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1660         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1661         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1662         [__USE_LARGEFILE64] (struct flock64): New type.
1663         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1664
1665         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1666         * bits/dirent.h: ... here.
1667
1668         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1669         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1670
1671 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1672
1673         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1674         Change from 2.6.0 to 2.6.16.
1675         * sysdeps/unix/sysv/linux/configure: Regenerated.
1676         * sysdeps/unix/sysv/linux/kernel-features.h
1677         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1678         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1679         version.
1680         (__ASSUME_UTIMES): Likewise.
1681         (__ASSUME_CLONE_STOPPED): Remove.
1682         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1683         architectures, not kernel version.
1684         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1685         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1686         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1687         (__ASSUME_WAITID_SYSCALL): Likewise.
1688         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1689         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1690         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1691         refer to older versions.
1692
1693 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1694
1695         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1696         Define alphasort64 as an alias.
1697         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1698         Define versionsort64 as an alias.
1699         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1700         Define scandir64 as an alias.
1701         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1702         Define scandirat64 as an alias.
1703         * dirent/alphasort64.c (alphasort64):
1704         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1705         * dirent/versionsort64.c: Likewise.
1706         * dirent/scandir64.c: Likewise.
1707         * dirent/scandirat64.c: Likewise.
1708         * sysdeps/wordsize-64/alphasort.c: File removed.
1709         * sysdeps/wordsize-64/alphasort64.c: File removed.
1710         * sysdeps/wordsize-64/scandir.c: File removed.
1711         * sysdeps/wordsize-64/scandir64.c: File removed.
1712         * sysdeps/wordsize-64/scandirat.c: File removed.
1713         * sysdeps/wordsize-64/scandirat64.c: File removed.
1714         * sysdeps/wordsize-64/versionsort.c: File removed.
1715         * sysdeps/wordsize-64/versionsort64.c: File removed.
1716         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1717         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1718         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1719         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1720         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1721         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1722         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1723         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1724
1725         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1726         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1727         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1728         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1729         [defined __arch64__ || defined __sparcv9]
1730         (__INO_T_MATCHES_INO64_T): New macro.
1731         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1732         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1733         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1734         * sysdeps/unix/sysv/linux/bits/dirent.h
1735         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1736         (_DIRENT_MATCHES_DIRENT64): New macro.
1737
1738         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1739         Define lockf64 as an alias.
1740         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1741         Define fseeko64 as an alias.
1742         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1743         Define ftello64 as an alias.
1744         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1745         Define _IO_fgetpos64 and fgetpos64 as aliases.
1746         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1747         Define _IO_fsetpos64 and fsetpos64 as aliases.
1748         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1749         Conditionalize body on this.
1750         * libio/fseeko64.c: Likewise.
1751         * libio/ftello64.c: Likewise.
1752         * libio/iofgetpos64.c: Likewise.
1753         * libio/iofsetpos64.c: Likewise.
1754         * sysdeps/wordsize-64/lockf.c: File removed.
1755         * sysdeps/wordsize-64/lockf64.c: File removed.
1756         * sysdeps/wordsize-64/fseeko.c: File removed.
1757         * sysdeps/wordsize-64/fseeko64.c: File removed.
1758         * sysdeps/wordsize-64/ftello.c: File removed.
1759         * sysdeps/wordsize-64/ftello64.c: File removed.
1760         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1761         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1762         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1763         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1764         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1765         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1766         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1767         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1768         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1769         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1770         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1771         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1772         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1773         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1774
1775         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1776         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1777         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1778         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1779         [defined __arch64__ || defined __sparcv9]
1780         (__OFF_T_MATCHES_OFF64_T): New macro.
1781         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1782         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1783         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1784         (__OFF_T_MATCHES_OFF64_T): New macro.
1785
1786 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1787
1788         * stdlib/secure-getenv.c (__secure_getenv): Replace
1789         GLIBC_2_16 with GLIBC_2_17.
1790
1791 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1792
1793         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1794         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1795
1796 2012-08-03  David S. Miller  <davem@davemloft.net>
1797
1798         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1799
1800 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1801
1802         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1803         Remove.
1804         (__ASSUME_CORRECT_SI_PID): Likewise.
1805         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1806         (__ASSUME_TMPFS_NAME): Likewise.
1807         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1808         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1809         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1810         (HAVE_AUX_SECURE): Make definition unconditional.
1811         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1812         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1813
1814 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1815
1816         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1817         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1818         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1819         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1820         __eloop_threshold instead of SYMLOOP_MAX.
1821
1822         * sysdeps/generic/eloop-threshold.h: New file.
1823         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1824         of MAXSYMLINKS.
1825         * elf/chroot_canon.c (chroot_canon): Likewise.
1826
1827 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1828
1829         [BZ #13717]
1830         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1831         Change to 2.6.0 everywhere.
1832         * sysdeps/unix/sysv/linux/configure: Regenerated.
1833         * sysdeps/unix/sysv/linux/kernel-features.h
1834         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1835         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1836         kernel versions.
1837         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1838         (__ASSUME_FUTEX_REQUEUE): Remove.
1839         (__ASSUME_STATFS64): Define unconditionally.
1840         (__ASSUME_AT_SECURE): Likewise.
1841         (__ASSUME_CORRECT_SI_PID): Likewise.
1842         (__ASSUME_TGKILL): Define without depending on kernel version for
1843         i386.
1844         (__ASSUME_UTIMES): Likewise.
1845         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1846         kernel version.
1847         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1848         (__ASSUME_TMPFS_NAME): Likewise.
1849         * README: Update reference to Linux kernel versions.
1850
1851 2012-08-02  Marek Polacek  <polacek@redhat.com>
1852
1853         [BZ# 14150]
1854         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1855         libc_cv_asm_type_prefix with %.
1856         * configure: Regenerated.
1857         * include/libc-symbols.h: Remove comment about
1858         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1859         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1860         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1861         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1862         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1863         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1864         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1865         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1866         * elf/tst-unique2mod1.c: Likewise.
1867         * elf/tst-unique1mod2.c: Likewise.
1868         * elf/tst-unique1mod1.c: Likewise.
1869         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1870         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1871         Replace ASM_TYPE_DIRECTIVE with .type.
1872         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1873         * sysdeps/i386/sysdep.h: Likewise.
1874         * sysdeps/x86_64/sysdep.h: Likewise.
1875         * sysdeps/sh/sysdep.h: Likewise.
1876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1877         Do not define ASM_TYPE_DIRECTIVE.
1878         * sysdeps/powerpc/sysdep.h: Likewise.
1879         * sysdeps/powerpc/powerpc32/sysdep.h:
1880         Replace ASM_TYPE_DIRECTIVE with .type.
1881         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1882         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1883         * sysdeps/i386/fpu/e_powf.S: Likewise.
1884         * sysdeps/i386/fpu/e_expl.S: Likewise.
1885         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1886         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1887         * sysdeps/i386/fpu/e_pow.S: Likewise.
1888         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1889         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1890         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1891         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1892         * sysdeps/i386/fpu/e_log2.S: Likewise.
1893         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1894         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1895         * sysdeps/i386/fpu/e_powl.S: Likewise.
1896         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1897         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1898         * sysdeps/i386/fpu/e_logl.S: Likewise.
1899         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1900         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1901         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1902         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1903         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1904         * sysdeps/i386/fpu/e_log.S: Likewise.
1905         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1906         * sysdeps/i386/fpu/e_logf.S: Likewise.
1907         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1908         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1909         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1910         * sysdeps/i386/fpu/e_log10.S: Likewise.
1911         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1912         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1913         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1914         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1915         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1916         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1917         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1918         * sysdeps/i386/i686/strtok.S: Likewise.
1919         * sysdeps/i386/i386-mcount.S: Likewise.
1920         * sysdeps/i386/strtok.S: Likewise.
1921         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1922         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1923         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1924         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1925         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1926         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1927         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1928         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1929         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1930         * sysdeps/x86_64/_mcount.S: Likewise.
1931         * sysdeps/x86_64/strtok.S: Likewise.
1932         * sysdeps/sh/_mcount.S: Likewise.
1933
1934 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1935
1936         * libio/iofopen.c: Include <fcntl.h>.
1937         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1938         (_IO_fopen64, fopen64): Define as aliases.
1939         * libio/iofopen64.c: Include <fcntl.h>.
1940         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1941         Conditionalize body on this.
1942         * sysdeps/wordsize-64/iofopen.c: File removed.
1943         * sysdeps/wordsize-64/iofopen64.c: File removed.
1944
1945 2012-08-01  Marek Polacek  <polacek@redhat.com>
1946
1947         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1948         Use dlfcn directly instead of a variable.
1949         (binfmt-subdir): Do not define.
1950         (dlfcn): Likewise.
1951
1952 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1953
1954         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1955         Remove all definitions.
1956         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1957         <kernel-features.h>.
1958         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1959         (miss_F_GETOWN_EX): Remove all definitions.
1960         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1961         macro definition.
1962         [!__ASSUME_FCNTL64]: Remove conditional code.
1963         [__ASSUME_FCNTL64]: Make code unconditional.
1964         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1965         <kernel-features.h>.
1966         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1967         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1968         (lockf64) [__NR_fcntl64]: Make code unconditional.
1969         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1970
1971         * sysdeps/unix/sysv/linux/kernel-features.h
1972         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1973         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1974         Make code unconditional.
1975         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1976         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1978         [__NR_vfork]: Make code unconditional.
1979         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1980         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1982         [__NR_vfork]: Make code unconditional.
1983         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1984         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1985
1986 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1987
1988         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1989         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1990
1991         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1992         Define mkstemp64 as an alias.
1993         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1994         Define mkstemps64 as an alias.
1995         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1996         Define mkostemp64 as an alias.
1997         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1998         Define mkostemps64 as an alias.
1999         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2000         Conditionalize body on this.
2001         * misc/mkostemp64.c: Likewise.
2002         * misc/mkostemps64.c: Likewise.
2003         * misc/mkstemps64.c: Likewise.
2004         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2005         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2006         * sysdeps/wordsize-64/mkostemp.c: File removed.
2007         * sysdeps/wordsize-64/mkstemp.c: File removed.
2008         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2009         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2010         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2011         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2012
2013         [BZ #14138]
2014         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2015         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2016         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2017         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2018
2019         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2020         compat_symbol macros from <shlib-compat.h> rather than the underlying
2021         default_symbol_version and symbol_version macros, so that DEFAULT
2022         lines in shlib-versions are respected.
2023         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2024
2025 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2026
2027         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2028         Declare with warn_unused_result.
2029         (setgid, setregid, setegid, setresgid): Likewise.
2030         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2031         Likewise.
2032         * WUR-REPORT: Remove set*id functions.
2033
2034 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2035
2036         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2037
2038 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2039
2040         * include/sys/socket.h (__libc_accept, __libc_accept4):
2041         Add attribute_hidden.
2042         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2043
2044         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2045         use of PTR_MANGLE.
2046         * inet/getnetgrent_r.c (setup): Likewise.
2047
2048         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2049
2050 2012-07-31  David S. Miller  <davem@davemloft.net>
2051
2052         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2053
2054 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2055
2056         [BZ #13629]
2057         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2058         value between 1.0 and 2.0 and smaller part has absolute value less
2059         than 1.0.
2060         * math/s_clog10.c (__clog10): Likewise.
2061         * math/s_clog10f.c (__clog10f): Likewise.
2062         * math/s_clog10l.c (__clog10l): Likewise.
2063         * math/s_clogf.c (__clogf): Likewise.
2064         * math/s_clogl.c (__clogl): Likewise.
2065         * math/libm-test.inc (clog_test): Add more tests.
2066         (clog10_test): Likewise.
2067         * sysdeps/i386/fpu/libm-test-ulps: Update.
2068         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2069
2070 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2071
2072         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2073         Exit with zero in case no suitable GID is found, and write a
2074         message to standard error.
2075
2076 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2077
2078         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2079         rather than to 1.
2080         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2081         (MAXPATHLEN): Removed.
2082         (NOGROUP, NODEV): New macros.
2083         (setbit, clrbit, isset, isclr): New macros.
2084         (howmany, roundup, powerof2): New macros.
2085         (DEV_BSIZE): New macro.
2086
2087         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2088         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2089
2090         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2091         definition on [!__NO_LONG_DOUBLE_MATH].
2092
2093         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2094         PTR_MANGLE and PTR_DEMANGLE.
2095
2096         * socket/accept4.c (accept4): Rename to __libc_accept4.
2097         Define accept4 as a weak alias.
2098
2099         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2100         on [_DIRENT_HAVE_D_TYPE].
2101         * io/ftw.c (ftw_dir): Likewise.
2102
2103         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2104
2105         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2106
2107         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2108         Use the BSD numbers rather than the arbitrary ones we had.
2109         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2110         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2111         (SIGXCPU, SIGXFSZ): New macros.
2112         (_NSIG): Now 32.
2113
2114         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2115         initializer on [_LIBC_REENTRANT].
2116
2117         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2118         definitions inside [_POSIX_MAPPED_FILES].
2119
2120         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2121
2122         * dirent/opendir.c: Include <fcntl.h>.
2123
2124         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2125         (__libc_getspecific): Likewise.
2126         (__libc_key_create): Likewise.
2127
2128         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2129         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2130         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2131         (tmpfile64): Define as alias.
2132         * sysdeps/wordsize-64/tmpfile.c: File removed.
2133         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2134         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2135         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2136
2137         * stdio-common/vfscanf.c: Include <stdbool.h>.
2138         * nss/makedb.c: Likewise.
2139         * stdio-common/_i18n_number.h: Likewise.
2140         * argp/argp-help.c: Likewise.
2141         * posix/wordexp.c: Likewise.
2142         * sysdeps/posix/spawni.c: Likewise.
2143         * nss/nss_files/files-initgroups.c: Likewise.
2144         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2145         * nss/nss_files/files-initgroups.c: Likewise.
2146         * nss/nss_db/db-netgrp.c: Likewise.
2147         * nss/nss_db/db-initgroups.c: Likewise.
2148         * io/fchmodat.c: Include <sys/stat.h>.
2149
2150         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2151         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2152
2153         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2154         [HAVE_MMAP].
2155
2156         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2157         Add multiple inclusion protection.
2158
2159 2012-07-27  David S. Miller  <davem@davemloft.net>
2160
2161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2162
2163 2012-07-27  Gary Benson  <gbenson@redhat.com>
2164
2165         [BZ #14298]
2166         * elf/rtld.c: Include <stap-probe.h>.
2167         (dl_main): Added static probes "init_start" and "init_complete".
2168         * elf/dl-load.c: Include <stap-probe.h>.
2169         (lose): Take new parameter "nsid".
2170         Added static probe "map_failed".
2171         (_dl_map_object_from_fd): Pass namespace id to lose.
2172         Added static probe "map_start".
2173         (open_verify): Pass namespace id to lose.
2174         * elf/dl-open.c: Include <stap-probe.h>.
2175         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2176         and "reloc_complete".
2177         * elf/dl-close.c: Include <stap-probe.h>.
2178         (_dl_close_worker): Added static probes "unmap_start" and
2179         "unmap_complete".
2180         * elf/rtld-debugger-interface.txt: New file documenting the above.
2181
2182 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2183
2184         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2185         rather than a string variable.
2186         * sunrpc/rpc_main.c (h_output): Likewise.
2187         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2188
2189 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2190
2191         * inet/check_native.c: New file.
2192
2193 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2194
2195         [BZ #13629]
2196         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2197         if larger part has absolute value 1.0.
2198         * math/s_clog10.c (__clog10): Likewise.
2199         * math/s_clog10f.c (__clog10f): Likewise.
2200         * math/s_clog10l.c (__clog10l): Likewise.
2201         * math/s_clogf.c (__clogf): Likewise.
2202         * math/s_clogl.c (__clogl): Likewise.
2203         * math/libm-test.inc (clog_test): Add more tests.
2204         (clog10_test): Likewise.
2205         * sysdeps/i386/fpu/libm-test-ulps: Update.
2206         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2207
2208         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2209         (pltexit): Likewise.
2210         (La_regs): Likewise.
2211         (La_retval): Likewise.
2212         (int_retval): Likewise.
2213         Update #error for removed macros to refer only to definitions in
2214         tst-audit.h.
2215         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2216         macro.
2217         (pltexit): Likewise.
2218         (La_regs): Likewise.
2219         (La_retval): Likewise.
2220         (int_retval): Likewise.
2221         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2222         macro.
2223         (pltexit): Likewise.
2224         (La_regs): Likewise.
2225         (La_retval): Likewise.
2226         (int_retval): Likewise.
2227         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2228         macro.
2229         (pltexit): Likewise.
2230         (La_regs): Likewise.
2231         (La_retval): Likewise.
2232         (int_retval): Likewise.
2233         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2234         macro.
2235         (pltexit): Likewise.
2236         (La_regs): Likewise.
2237         (La_retval): Likewise.
2238         (int_retval): Likewise.
2239         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2240         macro.
2241         (pltexit): Likewise.
2242         (La_regs): Likewise.
2243         (La_retval): Likewise.
2244         (int_retval): Likewise.
2245         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2246         macro.
2247         (pltexit): Likewise.
2248         (La_regs): Likewise.
2249         (La_retval): Likewise.
2250         (int_retval): Likewise.
2251         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2252         macro definitions in tst-audit.h.
2253         * sysdeps/i386/tst-audit.h: New file.
2254         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2255         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2256         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2257         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2258         * sysdeps/sh/tst-audit.h: Likewise.
2259         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2260         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2261         * sysdeps/x86_64/tst-audit.h: Likewise.
2262
2263 2012-07-26  Andreas Jaeger  <aj@suse.de>
2264
2265         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2266         ptrace.
2267
2268         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2269         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2270         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2271         PTRACE_O_MASK.
2272         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2273         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2274         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2275
2276         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2277         value.
2278
2279         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2280         _sigsys.
2281         (si_call_addr, si_syscall, si_arch): Define new macro.
2282         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2283         _sigsys.
2284         (si_call_addr, si_syscall, si_arch): Define new marcro.
2285         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2286         _sigsys.
2287         (si_call_addr, si_syscall, si_arch): Define new macro.
2288         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2289         _sigsys.
2290         (si_call_addr, si_syscall, si_arch): Define new macro.
2291
2292 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2293
2294         [BZ #13717]
2295         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2296         Change to 2.4.21 where previously 2.4.1.
2297         * sysdeps/unix/sysv/linux/configure: Regenerated.
2298         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2299         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2300         Linux kernel version.
2301         (__ASSUME_STD_AUXV): Remove.
2302         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2303         kernel version.
2304         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2305         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2306         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2307         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2308         (__ASSUME_NETLINK_SUPPORT): Likewise.
2309         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2310         (__no_netlink_support): Remove conditional definition.
2311         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2312         Remove.
2313         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2314         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2315         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2316         (if_nameindex_ioctl): Remove.
2317         (if_nameindex_netlink): Do not handle __no_netlink_support.
2318         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2319         code.
2320         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2321         Remove conditional code.
2322         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2323         code.
2324         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2325         unconditional.
2326         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2327         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2328         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2329         Remove.
2330         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2331         [!__ASSUME_STD_AUXV]: Remove conditional code.
2332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2333         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2334         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2336         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2337         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2338         code.
2339         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2341         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2342         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2343         conditional code.
2344         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2346         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2347         code.
2348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2349         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2350         conditional code.
2351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2352         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2353         code unconditional.
2354         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2355         conditional code.
2356         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2357         unconditional.
2358         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2359         conditional code.
2360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2361         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2362         unconditional.
2363         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2364         conditional code.
2365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2366         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2367         code unconditional.
2368         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2369         conditional code.
2370         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2371         unconditional.
2372         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2373         conditional code.
2374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2375         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2376         code unconditional.
2377         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2378         conditional code.
2379         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2380         unconditional.
2381         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2382         conditional code.
2383
2384 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2385
2386         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2387         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2388         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2389         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2390         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2391         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2392         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2393         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2394         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2395         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2396         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2397         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2398         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2399         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2400         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2401         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2402         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2403         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2404         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2405         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2406         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2407         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2408         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2409
2410 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2411
2412         * Versions.def: Add GLIBC_2.17.
2413         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2414         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2415         Introduce __libc_secure_getenv.
2416         * stdlib/Versions (2.17): Add secure_getenv
2417         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2418         * stdlib/secure-getenv.c: Rename __secure_getenv to
2419         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2420         symbol __secure_getenv for GLIBC_2.0.
2421         * stdlib/tst-secure-getenv.c: New.
2422         * stdlib/Makefile (tests): Add testcase.
2423         * manual/startup.texi (Environment Access): Document
2424         secure_getenv.
2425         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2426         __libc_secure_getenv.
2427         * inet/ruserpass.c (ruserpass): Likewise.
2428         * malloc/mtrace.c (mtrace): Likewise.
2429         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2430         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2431         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2432         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2433         HAVE_SECURE_GETENV.
2434         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2435         __secure_getenv to __libc_secure_getenv.
2436         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2438         Likewise.
2439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2440         Likewise.
2441         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2442         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2443         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2444         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2445         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2446         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2447         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2448
2449 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2450
2451         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2452         (struct La_i86_retval): Likewise.
2453         (struct La_x86_64_regs): Likewise.
2454         (struct La_x86_64_retval): Likewise.
2455         (struct La_x32_regs): Likewise.
2456         (struct La_x32_retval): Likewise.
2457         (struct La_ppc32_regs): Likewise.
2458         (struct La_ppc32_retval): Likewise.
2459         (struct La_ppc64_regs): Likewise.
2460         (struct La_ppc64_retval): Likewise.
2461         (struct La_sh_regs): Likewise.
2462         (struct La_sh_retval): Likewise.
2463         (struct La_s390_32_regs): Likewise.
2464         (struct La_s390_32_retval): Likewise.
2465         (struct La_s390_64_regs): Likewise.
2466         (struct La_s390_64_retval): Likewise.
2467         (struct La_sparc32_regs): Likewise.
2468         (struct La_sparc32_retval): Likewise.
2469         (struct La_sparc64_regs): Likewise.
2470         (struct La_sparc64_retval): Likewise.
2471         (struct audit_ifaces): Remove architecture-specific pltenter and
2472         pltexit members.
2473         * sysdeps/i386/ldsodefs.h: New file.
2474         * sysdeps/powerpc/ldsodefs.h: Likewise.
2475         * sysdeps/s390/ldsodefs.h: Likewise.
2476         * sysdeps/sh/ldsodefs.h: Likewise.
2477         * sysdeps/sparc/ldsodefs.h: Likewise.
2478         * sysdeps/x86_64/ldsodefs.h: Likewise.
2479
2480 2012-07-25  Marek Polacek  <polacek@redhat.com>
2481
2482         [BZ #6808]
2483         * math/libm-test.inc (yn_test): Add another test.
2484         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2485         to ERANGE when the result is +-Inf.
2486         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2487         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2488         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2489         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2490
2491 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2492
2493         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2494         equal to 0.
2495         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2496         clock_t.
2497         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2498
2499 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2500
2501         * configure.in <sysdeps resolving>: Correct printing
2502         Implies_before.
2503         * configure: Regenerate.
2504
2505 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2506
2507         * math/w_ilogb.c: Include <limits.h>.
2508         * math/w_ilogbl.c: Likewise.
2509
2510 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2511
2512         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2513         va_copy.  Document allowing for unavailable va_copy only as
2514         pre-C99 compatibility.
2515         * manual/string.texi (Copying and Concatenation): Use va_copy
2516         instead of __va_copy in concat example.
2517
2518 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2519
2520         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2521         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2522         it if not null.
2523
2524         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2525         with O_NOLINK passed to __file_name_lookup.
2526
2527         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2528         with O_NOLINK passed to __file_name_lookup.
2529
2530         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2531         negative N or less than NGIDS.
2532
2533         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2534         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2535         enough.  Use memcpy instead of strncpy.
2536
2537 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2538
2539         * elf/Makefile (check-data): Remove.
2540         (localplt.data): New vpath directive.
2541         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2542         instead of $(check-data).
2543         * scripts/data/localplt-generic.data: Move to ...
2544         * sysdeps/generic/localplt.data: ... here.
2545         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2546         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2547         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2549         ... here.
2550         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2552         ... here.
2553         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2554         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2555         ... here.
2556         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2557         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2558         ... here.
2559         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2560         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2561         ... here.
2562         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2564         ... here.
2565
2566 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2567
2568         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2569         PPC32 and PPC64 files.
2570         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2571         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2572
2573 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2574
2575         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2576         __makecontext_ret to ...
2577         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2578         ... here and call exit if uc_link is NULL.  New file.
2579         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2580         __makecontext_ret.S.
2581         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2582         __makecontext_ret to ...
2583         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2584         ... here and call exit if uc_link is NULL.  New file.
2585         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2586         __makecontext_ret.S.
2587
2588 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2589
2590         * elf/elf.h (R_390_IRELATIVE): New definition.
2591         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2592         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2593         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2594         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2595         (elf_machine_lazy_rel): Likewise.
2596         * sysdeps/s390/dl-irel.h: New file.
2597         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2598         * sysdeps/s390/s390-64/memset.S: New asm code.
2599         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2600         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2601         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2602         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2603         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2604         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2605         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2606         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2607         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2608         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2609         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2610         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2611         * sysdeps/s390/s390-32/memset.S: New asm code.
2612         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2613
2614 2012-07-17  Marek Polacek  <polacek@redhat.com>
2615
2616         [BZ #14349]
2617         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2618         * sysdeps/s390/s390-64/configure.in: Likewise.
2619         * sysdeps/sparc/configure.in: Likewise.
2620         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2621         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2622         * sysdeps/i386/configure.in: Likewise.
2623         * sysdeps/x86_64/configure.in: Likewise.
2624         * sysdeps/sh/configure.in: Likewise.
2625         * sysdeps/s390/s390-32/configure: Regenerated.
2626         * sysdeps/s390/s390-64/configure: Likewise.
2627         * sysdeps/x86_64/configure: Likewise.
2628         * sysdeps/sh/configure: Likewise.
2629         * sysdeps/powerpc/powerpc64/configure: Likewise.
2630         * sysdeps/powerpc/powerpc32/configure: Likewise.
2631         * sysdeps/sparc/configure: Likwise.
2632         * sysdeps/i386/configure: Likewise.
2633
2634         * elf/dl-open.c: Comment fixes.
2635
2636 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2637
2638         * Makefile [CXX] (check-data): Remove.
2639         [CXX] (c++-types.data): New vpath directive.
2640         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2641         vpath.  Do not allow for C++ type data being missing.
2642         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2643         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2644         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2645         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2646         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2647         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2648         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2650         ... here.
2651         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2653         ... here.
2654         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2655         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2656         ... here.
2657         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2658         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2659         ... here.
2660         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2661         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2662         ... here.
2663         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2664         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2665         ... here.
2666         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2667         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2668         ... here.
2669         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2670         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2671
2672         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2673         definitions to architecture-specific files.
2674         (TLS_IE): Likewise.
2675         (TLS_LD): Likewise.
2676         (TLS_GD): Likewise.
2677         * sysdeps/i386/tls-macros.h: New file.
2678         * sysdeps/powerpc/tls-macros.h: Likewise.
2679         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2680         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2681         * sysdeps/sh/tls-macros.h: Likewise.
2682         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2683         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2684         * sysdeps/x86_64/tls-macros.h: Likewise.
2685
2686 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2687
2688         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2689         zero value for regular exit case.
2690
2691         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2692         (__start_context): Preserve zero value for regular exit case.
2693
2694 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2695             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2696
2697         * manual/setjmp.texi (setcontext): Clarify normal process
2698         termination when uc_link is the null pointer.
2699         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2700         exit call.
2701
2702 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2703
2704         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2705         preprocessor.  Test for each exception mask separately.
2706
2707 2012-07-16  Andreas Jaeger  <aj@suse.de>
2708
2709         * po/ru.po: Update from translation team.
2710
2711 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2712
2713         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2714         equal to 0.
2715         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2716         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2717         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2718         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2719         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2720
2721 2012-07-13  Andreas Jaeger  <aj@suse.de>
2722
2723         * po/fr.po: Update from translation team.
2724
2725 2012-07-12  Marek Polacek  <polacek@redhat.com>
2726
2727         [BZ #14173]
2728         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2729         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2730         loop condition.
2731
2732 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2733
2734         [BZ #13717]
2735         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2736         Change to 2.4.1 where previously 2.4.0.
2737         * sysdeps/unix/sysv/linux/configure: Regenerated.
2738         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2739         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2740         version.
2741         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2742         (__ASSUME_AT_CLKTCK): Remove.
2743         (__ASSUME_AT_PAGESIZE): Likewise.
2744         (__ASSUME_AT_XID): Likewise.
2745         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2746         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2747         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2748         unconditionally.
2749         (HAVE_AUX_PAGESIZE): Likewise.
2750         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2751         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2752         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2753
2754 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2755
2756         [BZ #14307]
2757         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2758         the temporary buffer used to invoke __gethostbyname2_r,
2759         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2760         host_data / struct gaih_addrtuple.
2761         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2762         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2763         header file nss/nsswitch.h.
2764         * nss/nsswitch.h (global scope): Add definition of implementation
2765         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2766         resolv/nss_dns/dns-host.c).
2767
2768 2012-07-11  Andreas Jaeger  <aj@suse.de>
2769
2770         * po/fr.po: Update from translation team.
2771
2772         * po/sv.po: Update from translation team
2773         * po/fr.po: Another update from translation team.
2774
2775 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2776
2777         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2778         for subnormals or multiply small sinh result by itself.
2779         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2780         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2781
2782 2012-07-11  David S. Miller  <davem@davemloft.net>
2783
2784         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2785
2786 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2787
2788         [BZ #14347]
2789         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2790         (INTERNAL_MARK): Shift it here.
2791
2792 2012-07-10  Marek Polacek  <polacek@redhat.com>
2793
2794         [BZ #14151]
2795         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2796         libc_cv_asm_global_directive with .globl.
2797         * configure: Regenerated.
2798         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2799         with .globl.
2800         * sysdeps/i386/configure: Regenerated.
2801         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2802         with .globl.
2803         * sysdeps/x86_64/configure: Regenerated.
2804         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2805         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2806         * elf/tst-unique2mod2.c: Likewise.
2807         * elf/tst-unique2mod1.c: Likewise.
2808         * elf/tst-unique1mod2.c: Likewise.
2809         * elf/tst-unique1mod1.c: Likewise.
2810         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2811         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2812         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2813         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2814         * sysdeps/mach/sysdep.h: Likewise.
2815         * sysdeps/i386/sysdep.h: Likewise.
2816         * sysdeps/i386/i386-mcount.S: Likewise.
2817         * sysdeps/x86_64/_mcount.S: Likewise.
2818         * sysdeps/x86_64/sysdep.h: Likewise.
2819         * sysdeps/sh/_mcount.S: Likewise.
2820         * sysdeps/sh/sysdep.h: Likewise.
2821         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2822         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2823         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2824         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2825         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2826         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2827         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2828         * locale/localeinfo.h: Likewise.
2829         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2830         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2831
2832 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2833
2834         [BZ #14336]
2835         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2836         system".
2837         * manual/message.texi (The Uniforum approach): Likewise.
2838         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2839         (glibc iconv Implementation): Likewise.
2840
2841 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2842
2843         [BZ #14337]
2844         * math/s_clog.c (__clog): Avoid scaling a value down where that
2845         could result in underflow.
2846         * math/s_clog10.c (__clog10): Likewise.
2847         * math/s_clog10f.c (__clog10f): Likewise.
2848         * math/s_clog10l.c (__clog10l): Likewise.
2849         * math/s_clogf.c (__clogf): Likewise.
2850         * math/s_clogl.c (__clogl): Likewise.
2851         * math/libm-test.inc (clog_test): Add more tests.
2852         (clog10_test): Likewise.
2853         * sysdeps/i386/fpu/libm-test-ulps: Update.
2854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2855
2856 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2857
2858         [BZ #14283]
2859         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2860         by 7 not 8 to examine high bit of fractional part.
2861
2862         [BZ #14042]
2863         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2864         for call to __mcount_internal.
2865         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2866         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2867         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2868
2869 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2870
2871         [BZ #14154]
2872         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2873         approximation for values within 0x1p-13f of an odd multiple of
2874         pi/4.
2875         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2876         exception.  Add more tests.
2877         * sysdeps/i386/fpu/libm-test-ulps: Update.
2878
2879         [BZ #6778]
2880         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2881         inputs and return -1 for them.  Do not check for +Inf in case not
2882         reachable for +Inf.
2883         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2884         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not 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         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2889         define.
2890         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2891         and return -1 for them.  Do not check for +Inf in case not
2892         reachable for +Inf.
2893         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2894         spurious underflow.
2895         * sysdeps/i386/fpu/libm-test-ulps: Update.
2896         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2897
2898 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2899
2900         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2901
2902 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2903
2904         [BZ #14157]
2905         [BZ #14331]
2906         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2907         could result in spurious underflow.  Scale down values above
2908         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2909         * math/s_csqrtf.c (__csqrtf): Likewise.
2910         * math/s_csqrtl.c (__csqrtl): Likewise.
2911         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2912         spurious underflow.
2913         * sysdeps/i386/fpu/libm-test-ulps: Update.
2914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2915
2916 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2917
2918         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2919         xopen-msg.sed.
2920         * catgets/xopen-msg.awk: New file.
2921         * catgets/xopen-msg.sed: Removed.
2922
2923         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2924         po2text.sed.
2925         * intl/po2test.awk: New file.
2926         * intl/po2test.sed: Removed.
2927
2928 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2929
2930         [BZ #14328]
2931         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2932         or multiply small sinh result by itself.
2933         * math/s_ctanf.c (__ctanf): Likewise.
2934         * math/s_ctanh.c (__ctanh): Likewise.
2935         * math/s_ctanhf.c (__ctanhf): Likewise.
2936         * math/s_ctanhl.c (__ctanhl): Likewise.
2937         * math/s_ctanl.c (__ctanl): Likewise.
2938         * math/libm-test.inc (ctan_test_tonearest): New function.
2939         (ctan_test_towardzero): Likewise.
2940         (ctan_test_downward): Likewise.
2941         (ctan_test_upward): Likewise.
2942         (ctanh_test_tonearest): Likewise.
2943         (ctanh_test_towardzero): Likewise.
2944         (ctanh_test_downward): Likewise.
2945         (ctanh_test_upward): Likewise.
2946         (main): Call these new functions.
2947         * sysdeps/i386/fpu/libm-test-ulps: Update.
2948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2949
2950 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2951
2952         * .gitignore: Delete /ports entry.
2953
2954 2012-07-03  Andreas Jaeger  <aj@suse.de>
2955
2956         * po/bg.po: Update from translation team.
2957         * po/cs.po: Likewise.
2958         * po/de.po: Likewise.
2959         * po/hr.po: Likewise.
2960         * po/nl.pl: Likewise.
2961         * po/pl.po: Likewise.
2962         * po/vi.po: Likewise.
2963
2964 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2965
2966         * Makeconfig [!+link] (+link-before-libc): New variable.
2967         [!+link] (+link-after-libc): Likewise.
2968         [!+link] (+link-tests): Likewise.
2969         [!+link] (+link): Define in terms of $(+link-before-libc) and
2970         $(+link-after-libc).
2971         [!+link-static] (+link-static-before-libc): New variable.
2972         [!+link-static] (+link-static-after-libc): Likewise.
2973         [!+link-static] (+link-static-tests): Likewise.
2974         [!+link-static] (+link-static): Define in terms of
2975         $(+link-static-before-libc) and $(+link-static-after-libc).
2976         [build-shared] (link-libc-before-gnulib): New variable.
2977         [build-shared] (link-libc-tests): Likewise.
2978         [build-shared] (link-libc): Define in terms of
2979         $(link-libc-before-gnulib).
2980         [!build-shared] (link-libc-tests): New variable.
2981         (link-libc-static-tests): New variable.
2982         [!gnulib] (gnulib-arch): New variable.
2983         [!gnulib] (gnulib-tests): Likewise.
2984         [!gnulib] (static-gnulib-arch): Likewise.
2985         [!gnulib] (static-gnulib-tests): Likewise.
2986         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2987         Define with "=" instead of ":=".
2988         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2989         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2990         * Rules (binaries-all-notests): New variable.
2991         (binaries-all-tests): Likewise.
2992         (binaries-static-notests): Likewise.
2993         (binaries-static-tests): Likewise.
2994         (binaries-all): Define using $(binaries-all-notests) and
2995         $(binaries-all-tests).
2996         (binaries-static): Define using $(binaries-static-notests) and
2997         $(binaries-static-tests).
2998         (binaries-shared-tests): New variable.
2999         (binaries-shared-notests): Likewise.
3000         (binaries-shared): Remove variable.
3001         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3002         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3003         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3004         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3005         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3006         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3007         * elf/Makefile (sln-modules): New variable.
3008         (extra-objs): Add $(sln-modules:=.o).
3009         (ldconfig-modules): Add static-stubs.
3010         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3011         * elf/static-stubs.c: New file.
3012
3013         [BZ #14283]
3014         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3015         by 7 not 8 to examine high bit of fractional part.  Use volatile
3016         variables when splitting into final array of floats if
3017         __FLT_EVAL_METHOD__ != 0.
3018         * math/libm-test.inc (cos_test): Add another test.
3019         (sin_test): Likewise.
3020         * sysdeps/i386/fpu/libm-test-ulps: Update.
3021
3022         [BZ #14273]
3023         * math/libm-test.inc (cosh_test): Add more tests.
3024
3025         * version.h (RELEASE): Set to "development".
3026         (VERSION): Set to "2.16.90".
3027
3028 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3029
3030         * NEWS: Update copyright. Remove last-updated date.
3031         Mention math library bug fixes and timezone data changes.
3032         * README: Mention GNU/Hurd, x32, and HPPA support status.
3033
3034 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3035
3036         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3037
3038 2012-06-27  Andreas Jaeger  <aj@suse.de>
3039
3040         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3041
3042 2012-06-25  Andreas Jaeger  <aj@suse.de>
3043
3044         * sysdeps/s390/fpu/libm-test-ulps: Update.
3045
3046 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3047             Thomas Schwinge  <thomas@codesourcery.com>
3048
3049         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3050         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3051         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3052         fanotify_mark.
3053
3054 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3055
3056         * sysdeps/mach/start.c: Remove file.
3057         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3058         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3059         * sysdeps/sh/init-first.c: Likewise.
3060
3061         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3062         registers for frame unwinding purposes, add CFI directives.
3063         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3064         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3065         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3066         Likewise.
3067
3068         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3069         __fortify_fail returning.
3070         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3071
3072         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3073         sysdeps/sh/____longjmp_chk.S.
3074         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3075         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3076         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3077         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3078
3079         * sysdeps/sh/abort-instr.h: New file.
3080         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3081         process in case exit returns.
3082
3083         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3084         initialize the GOT register before use.
3085
3086         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3087         calculation of ARGC > 4.
3088
3089         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3090         meaningful names to some local labels.
3091
3092 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3093             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3094
3095         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3096         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3097         (__arch_compare_and_exchange_val_16_acq): Likewise.
3098         (__arch_compare_and_exchange_val_32_acq): Likewise.
3099         (atomic_exchange_and_add): Fix gUSA sequence.
3100         (atomic_add): Likewise.
3101         (atomic_add_negative): Likewise.
3102         (atomic_add_zero): Likewise.
3103         (atomic_bit_test_set): Likewise.
3104
3105 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3106
3107         [BZ #13579]
3108         * include/link.h (struct link_map): Add l_free_initfini.
3109         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3110         l_initfini.
3111         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3112         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3113         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3114         set.
3115
3116 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3117
3118         * configure.in: Use AC_LANG_SOURCE.
3119         * configure: Regenerate.
3120
3121 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3122
3123         * configure.in (libc_cv_localstatedir): New substituted variable.
3124         * configure: Regenerated.
3125         * config.make.in (localstatedir): New variable, substituted from
3126         libc_cv_localstatedir.
3127         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3128         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3129         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3130         * sysdeps/gnu/configure: Regenerated.
3131
3132 2012-06-21  Jeff Law  <law@redhat.com>
3133
3134         [BZ #14277]
3135         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3136         free.  Simplify list management for _LIBC case.
3137
3138 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3139
3140         [BZ #14273]
3141         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3142         Clear sign bit of 64-bit integer value before comparing against
3143         overflow value.
3144
3145         * sysdeps/mach/configure: Regenerated.
3146
3147 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3148
3149         [BZ #14278]
3150         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3151
3152 2012-06-21  Jeff Law  <law@redhat.com>
3153
3154         [BZ #13882]
3155         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3156         uint16_t for elements in the "seen" array to avoid char overflows.
3157         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3158         * elf/dl-open.c (dl_open_worker): Likewise.
3159
3160 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3161
3162         * scripts/list-sources.sh: Scan PORTS for translations.
3163         * po/libc.pot: Regenerated.
3164
3165 2012-06-21  Andreas Jaeger  <aj@suse.de>
3166
3167         [BZ #12194]
3168         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3169         warning.
3170         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3171         * bits/byteswap-16.h (__bswap_16): Likewise.
3172         * bits/byteswap.h (__bswap_constant_16): Likewise.
3173
3174 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3175
3176         [BZ #14117]
3177         * sysdeps/i386/fpu_control.h: Removed.
3178         * sysdeps/x86_64/fpu_control.h: Moved to ...
3179         * sysdeps/x86/fpu_control.h: Here.
3180
3181         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3182         (_FPU_SETCW): Likewise.
3183
3184 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3185
3186         [BZ #14117]
3187         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3188         * sysdeps/x86/fpu/bits/mathinline.h: This.
3189         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3190
3191         [BZ #14050]
3192         [BZ #14117]
3193         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3194         functions if __x86_64__ is defined.
3195
3196 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3197
3198         * string/endian.h: Add !__ASSEMBLER__ condition for including
3199         conversion interfaces.
3200
3201 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3202
3203         [BZ #14241]
3204         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3205         of ABS(x) in calculating zero to negative powers other than odd
3206         integers.
3207         * math/libm-test.inc (pow_test): Add more tests.
3208
3209 2012-06-15  Andreas Jaeger  <aj@suse.de>
3210
3211         * manual/contrib.texi (Contributors): Update entry of Liubov
3212         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3213         Machado Filho.
3214
3215 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3216
3217         * string/string.h: Add __wur to GNU version of strerror_r.
3218
3219 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3220
3221         [BZ #14229]
3222         * string/Makefile (tests): Add tst-strtok_r.
3223         * string/tst-strtok_r.c: New file.
3224         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3225         RAX_LP/RDX_LP on SAVE_PTR.
3226
3227 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3228
3229         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3230
3231 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3232
3233         * libm_test.inc (csqrt_test): Allow more spurious underflow
3234         exceptions.
3235         (j0_test): Likewise.
3236         (j1_test): Likewise.
3237         (y0_test): Likewise.
3238         (y1_test): Likewise.
3239
3240 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3241
3242         * po/Makefile (libc.pot): Use UTF-8 charset.
3243
3244 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3245
3246         [BZ #14210]
3247         Suppress sign-conversion warning from FD_SET.
3248         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3249         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3250         not unsigned long int.
3251         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3252
3253 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3254
3255         [BZ #14050]
3256         [BZ #14117]
3257         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3258         __extern_always_inline instead of __extern_inline.
3259         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3260         (__signbit): Likewise.
3261         (__signbitl): Support C++ namespace.
3262         (lrintf): New inline function.
3263         (lrint): Likewise.
3264         (llrintf): Likewise.
3265         (llrint): Likewise.
3266         (fmaxf): Likewise.
3267         (fmax): Likewise.
3268         (fminf): Likewise.
3269         (fmin): Likewise.
3270         (rint): Likewise.
3271         (rintf): Likewise.
3272         (ceil): Likewise.
3273         (ceilf): Likewise.
3274         (floor): Likewise.
3275         (floorf): Likewise.
3276         (nearbyint): Likewise.
3277         (nearbyintf): Likewise.
3278
3279 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3280
3281         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3282         non-default versions.
3283
3284 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3285
3286         [BZ #14218]
3287         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3288
3289 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3290
3291         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3292         (FE_UPWARD, FE_DOWNWARD): Don't define.
3293         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3294         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3295
3296         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3297         reading it.
3298         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3299         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3300
3301 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3302
3303         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3304         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3305         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3306         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3307
3308 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3309
3310         [BZ #14117]
3311         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3312         * sysdeps/i386/fpu/Implies: New file.
3313         * sysdeps/x86_64/fpu/Implies: Likewise.
3314         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3315         * sysdeps/x86/fpu/bits/fenv.h: This.
3316
3317         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3318         __SSE_MATH__.
3319
3320 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3321
3322         [BZ #14134]
3323         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3324         character 0xffff that matches the last element of the
3325         conversion table.
3326
3327 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3328
3329         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3330         fmodl commit.
3331
3332 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3333
3334         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3335         values higher than 25.6283.
3336
3337 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3338
3339         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3340         subnormal exponent extraction and add some __builtin_expect.
3341         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3342         Fix for subnormal mantissa calculation.
3343
3344 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3345
3346         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3347         cpu2 is -1 and errno is not ENOSYS.
3348
3349 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3350
3351         [BZ #14117]
3352         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3353         * sysdeps/x86/bits/string.h: This.
3354         * sysdeps/x86_64/bits/string.h: Removed.
3355
3356         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3357         if not compiling for x86-64, but compiling for >= i486.
3358
3359         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3360         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3361
3362         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3363         New macro from Linux kernel 3.4.0.
3364         (FP_XSTATE_MAGIC2): Likewise.
3365         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3366         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3367         (struct _fpx_sw_bytes): New struct.
3368         (struct _xsave_hdr): Likewise.
3369         (struct _ymmh_state): Likewise.
3370         (struct _xstate): Likewise.
3371
3372         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3373         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3374         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3375         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3376         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3377         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3378
3379         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3380         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3381         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3382         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3383         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3384         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3385
3386 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3387
3388         [BZ #13743]
3389         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3390         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3391         (sysdep_headers): Include sys/platform/ppc.h.
3392         * sysdeps/powerpc/test-gettimebase.c: Test for
3393         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3394         * manual/Makefile (appendices): Include platform.texi.
3395         * manual/contrib.texi (Contributors): Update @node pointers.
3396         * manual/maint.texi (Maintenance): Likewise.
3397         (Platform): New node.
3398         * manual/platform.texi: New file.  Document the new features.
3399
3400 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3401             Jakub Jelinek  <jakub@redhat.com>
3402
3403         [BZ #14188]
3404         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3405         where __builtin_expect is unavailable.
3406
3407 2012-06-03  David S. Miller  <davem@davemloft.net>
3408
3409         * stdlib/longlong.h: Updated from GCC.
3410
3411 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3412
3413         [BZ #14042]
3414         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3415         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3416         __mcount_internal.
3417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3418         (GLIBC_2.16): Likewise.
3419
3420 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3421
3422         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3423
3424 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3425
3426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3427         (default-abi): New variable.
3428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3429         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3430         variable.
3431         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3432         Likewise.
3433         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3434         Likewise.
3435         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3436         Likewise.
3437
3438         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3439         definition.  Document in comment.
3440
3441 2012-06-01  David S. Miller  <davem@davemloft.net>
3442
3443         * stdlib/longlong.h: Updated from GCC.
3444
3445 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3446
3447         [BZ #14117]
3448         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3449         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3450         sys/debugreg.h sys/io.h here.
3451         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3452         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3453         sys/io.h.
3454         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3455         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3456         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3457         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3458         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3459         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3460
3461         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3462         Define only if __x86_64__ is defined.
3463
3464 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3465
3466         [BZ #14048]
3467         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3468         Use int64_t for variable i.
3469         * math/libm-test.inc (fmod_test): Add more tests.
3470
3471         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3472         z computation is not scheduled after fetestexcept.
3473         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3474         Use math_force_eval instead of asm to ensure calculation scheduled
3475         before exception test.
3476         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3477         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3478
3479 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3480
3481         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3482         computation is not scheduled after fetestexcept.
3483
3484 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3485
3486         [BZ #14117]
3487         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3488         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3489
3490 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3491
3492         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3493         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3494
3495 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3496
3497         [BZ #14117]
3498         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3499         <bits/wordsize.h>.
3500         (__WCHAR_MIN): Support __WORDSIZE == 64.
3501         (__WCHAR_MAX): Likewise.
3502
3503         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3504         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3505
3506         [BZ #14183]
3507         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3508         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3509
3510         [BZ #14117]
3511         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3512         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3513
3514         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3515         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3516
3517         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3518         Defined to 1 if __x86_64__ isn't defined.
3519         (_STAT_VER_LINUX_OLD): New.
3520         (st_atime): Remove duplicate.
3521         (st_mtime): Likewise.
3522         (st_ctime): Likewise.
3523
3524 2012-05-31  David S. Miller  <davem@davemloft.net>
3525
3526         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3527         entries.
3528
3529 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3530
3531         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3532         gen-libm-test.pl.
3533
3534         [BZ #14132]
3535         * elf/dl-reloc.c: Include <_itoa.h>.
3536         (_dl_reloc_bad_type): Remove use of INTUSE.
3537         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3538         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3539         * stdio-common/psiginfo.c (psiginfo): Likewise.
3540         * stdio-common/psignal.c (psignal): Likewise.
3541         * string/strsignal.c (strsignal): Likewise.
3542         * include/signal.h (_sys_siglist): Declare hidden proto.
3543         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3544         INTVARDEF with libc_hidden_data_def.
3545         * stdio-common/itoa-udigits.c: Likewise.
3546         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3547         (_itoa_lower_digits_internal): Remove declaration.
3548         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3549         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3550         (_sys_sigabbrev_internal): Remove aliases.
3551         (_sys_siglist): Define hidden alias.
3552
3553 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3554
3555         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3556         bits/sysctl.h.
3557
3558 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3559
3560         [BZ #14117]
3561         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3562         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3563
3564         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3565         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3566         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3567         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3568         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3569         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3570
3571         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3572         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3573         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3574
3575         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3576         with __addr.
3577         (insw): Likewise.
3578         (insl): Likewise.
3579         (outsb): Likewise.
3580         (outsw): Likewise.
3581         (outsl): Likewise.
3582
3583         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3584         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3585         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3586
3587         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3588         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3589         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3590         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3591         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3592         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3593
3594         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3595         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3596
3597         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3598         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3599
3600         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3601         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3602         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3603
3604         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3605         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3606         to ...
3607         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3608
3609         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3610         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3611         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3612
3613         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3614         for x86-64.
3615         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3616
3617 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3618
3619         * math/math.h (M_El): Use two more decimal places.
3620         (M_LOG2El): Likewise.
3621         (M_LOG10El): Likewise.
3622         (M_LN2l): Likewise.
3623         (M_LN10l): Likewise.
3624         (M_PIl): Likewise.
3625         (M_PI_2l): Likewise.
3626         (M_PI_4l): Likewise.
3627         (M_1_PIl): Likewise.
3628         (M_2_PIl): Likewise.
3629         (M_2_SQRTPIl): Likewise.
3630         (M_SQRT2l): Likewise.
3631         (M_SQRT1_2l): Likewise.
3632
3633 2012-05-31  David S. Miller  <davem@davemloft.net>
3634
3635         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3636         values between float registers.
3637         * sysdeps/sparc/sparc64/memset.S: Likewise.
3638         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3639
3640 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3641
3642         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3643         -D_FORTIFY_SOURCE=1.
3644         (CPPFLAGS-tst-longjmp_chk.c): Define.
3645         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3646         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3647         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3648         CFLAGS-tst-wchar-h.c.
3649
3650 2012-05-31  Marek Polacek  <polacek@redhat.com>
3651
3652         [BZ #14132]
3653         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3654         __endmntent_internal): Remove declaration.
3655         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3656         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3657         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3658
3659 2012-05-30  David S. Miller  <davem@davemloft.net>
3660
3661         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3662         (___Q_simulate_exceptions): Use real FP ops rather than writing
3663         into the %fsr.
3664         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3665         Likewise.
3666
3667 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3668
3669         [BZ #14117]
3670         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3671         * sysdeps/x86/bits/xtitypes.h: This.
3672
3673         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3674         * sysdeps/x86/bits/wordsize.h: This.
3675
3676         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3677         * sysdeps/x86/bits/huge_vall.h: This.
3678
3679         * sysdeps/i386/bits/select.h: Removed.
3680         * sysdeps/x86_64/bits/select.h: Renamed to ...
3681         * sysdeps/x86/bits/select.h: This.
3682
3683         * sysdeps/i386/bits/setjmp.h: Removed.
3684         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3685         * sysdeps/x86/bits/setjmp.h: This.
3686
3687         * sysdeps/i386/bits/mathdef.h: Removed.
3688         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3689         * sysdeps/x86/bits/mathdef.h: This.
3690
3691 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3692
3693         [BZ #14132]
3694         * include/sys/socket.h (__connect_internal)
3695         (__libc_sa_len_internal): Remove declaration.
3696         (__connect, __libc_sa_len): Declare hidden_proto.
3697         (SA_LEN): Remove use of INTUSE.
3698         * socket/connect.c: Add libc_hidden_def.
3699         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3700         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3701         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3702         alias.
3703         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3704         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3705         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3706         of adding _internal alias.
3707
3708 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3709
3710         [BZ #14117]
3711         * sysdeps/i386/bits/link.h: Removed.
3712         * sysdeps/i386/bits/linkmap.h: Likewise.
3713         * sysdeps/x86_64/bits/link.h: Renamed to ...
3714         * sysdeps/x86/bits/link.h: This.
3715         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3716         * sysdeps/x86/bits/linkmap.h: This.
3717
3718         * sysdeps/i386/bits/endian.h: Removed.
3719         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3720         * sysdeps/x86/bits/endian.h: This.
3721
3722         * sysdeps/i386/bits/byteswap.h: Removed.
3723         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3724         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3725         * sysdeps/x86/bits/byteswap.h: This.
3726         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3727         * sysdeps/x86/bits/byteswap-16.h: This.
3728         * sysdeps/i386/Implies: Add x86.
3729         * sysdeps/x86_64/Implies: Likewise.
3730
3731 2012-05-30  David S. Miller  <davem@davemloft.net>
3732
3733         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3734         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3735         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3736         (FP_TRAPPING_EXCEPTIONS): Define.
3737         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3738         (FP_TRAPPING_EXCEPTIONS): Define.
3739         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3740         subnormals only when inexact has been signalled or underflow
3741         exceptions are enabled.
3742         (_FP_PACK_CANONICAL): Likewise.
3743
3744 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3745
3746         [BZ #14183]
3747         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3748         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3749
3750 2012-05-30  Richard Henderson  <rth@twiddle.net>
3751
3752         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3753         with #ifndef NOT_IN_libc.
3754
3755         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3756         marked to avoid plt entry.
3757
3758 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3759
3760         [BZ #14112]
3761         * Makeconfig (default-abi): New macro.
3762         (abi-includes): Likewise.
3763         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3764         $(abi-$(default-abi)-lib-soname) for soname if defined.
3765         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3766         abi-variants.
3767         * Makefile (installed-stubs): Likewise.
3768         * include/stubs-biarch.h: Removed.
3769         * scripts/lib-names.awk: Only handle one library at a time.
3770         * scripts/soversions.awk: Remove WORDSIZE support.
3771         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3772         entries.
3773         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3774         Removed.
3775         (syscall-list-default-condition): Likewise.
3776         (syscall-list-default-condition): Likewise.
3777         (syscall-list-includes): Likewise.
3778         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3779         syscall-list-* with abi-*.  Handle undefined abi-variants.
3780         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3781         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3782         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3783         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3784         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3785         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3786         Removed.
3787         (syscall-list-32-options): Likewise.
3788         (syscall-list-32-condition): Likewise.
3789         (syscall-list-64-options): Likewise.
3790         (syscall-list-64-condition): Likewise.
3791         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3792         macro.
3793         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3794         Renamed to ...
3795         (abi-*): This.
3796         (abi-64-ld-soname): New macro.
3797         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3798         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3799         Renamed to ...
3800         (abi-*): This.
3801         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3802         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3803
3804 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3805
3806         * sysdeps/unix/sysv/linux/kernel-features.h
3807         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3808         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3809         include <kernel-features.h>.
3810         [!__NR_ftruncate64]: Remove conditional code.
3811         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3812         [__NR_ftruncate64]: Make code unconditional.
3813         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3814         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3815         include <kernel-features.h>.
3816         [!__NR_ftruncate64]: Remove conditional code.
3817         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3818         [__NR_ftruncate64]: Make code unconditional.
3819         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3821         include <kernel-features.h>.
3822         [!__NR_ftruncate64]: Remove conditional code.
3823         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3824         [__NR_ftruncate64]: Make code unconditional.
3825         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3827         include <kernel-features.h>.
3828         [!__NR_ftruncate64]: Remove conditional code.
3829         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3830         [__NR_ftruncate64]: Make code unconditional.
3831         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3832
3833         * configure.in (libc_cv_fpie): Weaken to a compile test using
3834         LIBC_TRY_CC_OPTION.
3835         * configure: Regenerated.
3836
3837 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3838
3839         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3840         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3841         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3842         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3843         Refreshed.
3844         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3845         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3846         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3847         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3848         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3849         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3850         Refreshed.
3851
3852 2012-05-27  David S. Miller  <davem@davemloft.net>
3853
3854         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3855         (___Q_zero): New.
3856         (__Q_simulate_exceptions): Return void.  Change to simulate
3857         exceptions by writing into the %fsr.
3858         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3859         (__Qp_handle_exceptions): Likewise.
3860         (numbers): Delete.
3861         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3862         __Qp_handle_exceptions.
3863         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3864         __Qp_handle_exceptions.
3865         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3866         as unused and give dummy FP_RND_NEAREST initializer.
3867         (FP_INHIBIT_RESULTS): Define.
3868         (___Q_simulate_exceptions): Update declaration.
3869         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3870         formatting.
3871         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3872         as unused and give dummy FP_RND_NEAREST initializer.
3873         (__Qp_handle_exceptions): Update declaration.
3874         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3875         formatting.
3876
3877 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3878
3879         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3880         the temporary FPU control word.
3881         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3882         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3883         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3884         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3885         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3886         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3887         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3888         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3889         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3890         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3891         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3892
3893 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3894
3895         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3896         fields.
3897
3898 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3899
3900         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3901         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3902         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3903         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3904         Likewise.
3905         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3906         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3907         Likewise.
3908
3909 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3910
3911         * po/h.po: Update from translation team.
3912
3913 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3914
3915         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3916
3917         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3918         handling of denormals.
3919         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3920         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3921         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3922         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3923         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3924         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3925         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3926         Likewise.
3927
3928 2012-05-26  Marek Polacek  <polacek@redhat.com>
3929
3930         [BZ #14152]
3931         * math/libm-test.inc (fma_test): Don't always expect underflow
3932         exception.
3933
3934 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3935
3936         [BZ #12416]
3937         * elf/tst-execstack.c: Include stackinfo.h.
3938         (do_test): Adjust test case to ensure that pthread_getattr_np
3939         behaviour remains the same after marking stack executable.
3940
3941 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3942
3943         * sysdeps/unix/sysv/linux/kernel-features.h
3944         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3945         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3946         kernel-features.h.
3947         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3948         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3949         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3950         kernel-features.h.
3951         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3952         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3953
3954 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3955
3956         * configure.in: Define the default includes to being none.
3957         * configure: Regenerated.
3958
3959 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3960
3961         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3962         * sysdeps/x86_64/setjmp.S: Likewise.
3963         * sysdeps/i386/bsd-setjmp.S: Likewise.
3964         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3965         * sysdeps/i386/setjmp.S: Likewise.
3966         * sysdeps/i386/__longjmp.S: Likewise.
3967         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3968         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3969
3970         * include/stap-probe.h: New file.
3971         * configure.in: Handle --enable-systemtap.
3972         * configure: Regenerated.
3973         * config.h.in (USE_STAP_PROBE): New #undef.
3974         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3975         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3976         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3977
3978 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3979
3980         [BZ #13717]
3981         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3982         to 2.4.0 where earlier.
3983         * sysdeps/unix/sysv/linux/configure: Regenerated.
3984         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3985         <kernel-features.h>.
3986         [__ASSUME_32BITUIDS]: Make code unconditional.
3987         [!__ASSUME_32BITUIDS]: Remove conditional code.
3988         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3989         <kernel-features.h>.
3990         [__ASSUME_32BITUIDS]: Make code unconditional.
3991         [!__ASSUME_32BITUIDS]: Remove conditional code.
3992         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3993         [__ASSUME_32BITUIDS]: Make code unconditional.
3994         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3995         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3996         <kernel-features.h>.
3997         [__ASSUME_32BITUIDS]: Make code unconditional.
3998         [!__ASSUME_32BITUIDS]: Remove conditional code.
3999         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4000         <kernel-features.h>.
4001         [__ASSUME_32BITUIDS]: Make code unconditional.
4002         [!__ASSUME_32BITUIDS]: Remove conditional code.
4003         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4004         <kernel-features.h>.
4005         [__ASSUME_32BITUIDS]: Make code unconditional.
4006         [!__ASSUME_32BITUIDS]: Remove conditional code.
4007         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4008         <kernel-features.h>.
4009         [__ASSUME_32BITUIDS]: Make code unconditional.
4010         [!__ASSUME_32BITUIDS]: Remove conditional code.
4011         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4012         <kernel-features.h>.
4013         [__ASSUME_32BITUIDS]: Make code unconditional.
4014         [!__ASSUME_32BITUIDS]: Remove conditional code.
4015         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4016         <kernel-features.h>.
4017         [__ASSUME_32BITUIDS]: Make code unconditional.
4018         [!__ASSUME_32BITUIDS]: Remove conditional code.
4019         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4020         <kernel-features.h>.
4021         [__ASSUME_32BITUIDS]: Make code unconditional.
4022         [!__ASSUME_32BITUIDS]: Remove conditional code.
4023         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4024         <kernel-features.h>.
4025         [__ASSUME_32BITUIDS]: Make code unconditional.
4026         [!__ASSUME_32BITUIDS]: Remove conditional code.
4027         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4028         <kernel-features.h>.
4029         [__ASSUME_32BITUIDS]: Make code unconditional.
4030         [!__ASSUME_32BITUIDS]: Remove conditional code.
4031         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4032         <kernel-features.h>.
4033         [__ASSUME_32BITUIDS]: Make code unconditional.
4034         [!__ASSUME_32BITUIDS]: Remove conditional code.
4035         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4036         <kernel-features.h>.
4037         [__NR_setresgid] (__setresgid): Do not declare.
4038         [__ASSUME_32BITUIDS]: Make code unconditional.
4039         [!__ASSUME_32BITUIDS]: Remove conditional code.
4040         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4041         <kernel-features.h>.
4042         [__NR_setresuid] (__setresuid): Do not declare.
4043         [__ASSUME_32BITUIDS]: Make code unconditional.
4044         [!__ASSUME_32BITUIDS]: Remove conditional code.
4045         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4046         <kernel-features.h>.
4047         [__ASSUME_32BITUIDS]: Make code unconditional.
4048         [!__ASSUME_32BITUIDS]: Remove conditional code.
4049         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4050         <kernel-features.h>.
4051         [__ASSUME_32BITUIDS]: Make code unconditional.
4052         [!__ASSUME_32BITUIDS]: Remove conditional code.
4053         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4054         <kernel-features.h>.
4055         [__ASSUME_32BITUIDS]: Make code unconditional.
4056         [!__ASSUME_32BITUIDS]: Remove conditional code.
4057         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4058         <kernel-features.h>.
4059         [__ASSUME_32BITUIDS]: Make code unconditional.
4060         [!__ASSUME_32BITUIDS]: Remove conditional code.
4061         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4062         <kernel-features.h>.
4063         [__ASSUME_32BITUIDS]: Make code unconditional.
4064         [!__ASSUME_32BITUIDS]: Remove conditional code.
4065         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4066         <kernel-features.h>.
4067         [__ASSUME_32BITUIDS]: Make code unconditional.
4068         [!__ASSUME_32BITUIDS]: Remove conditional code.
4069         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4070         <kernel-features.h>.
4071         [__ASSUME_32BITUIDS]: Make code unconditional.
4072         [!__ASSUME_32BITUIDS]: Remove conditional code.
4073         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4074         <kernel-features.h>.
4075         [__ASSUME_32BITUIDS]: Make code unconditional.
4076         [!__ASSUME_32BITUIDS]: Remove conditional code.
4077         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4078         <kernel-features.h>.
4079         [__ASSUME_32BITUIDS]: Make code unconditional.
4080         [!__ASSUME_32BITUIDS]: Remove conditional code.
4081         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4082         <kernel-features.h>.
4083         [__ASSUME_32BITUIDS]: Make code unconditional.
4084         [!__ASSUME_32BITUIDS]: Remove conditional code.
4085         * sysdeps/unix/sysv/linux/kernel-features.h
4086         (__ASSUME_SETRESUID_SYSCALL): Remove.
4087         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4088         (__ASSUME_32BITUIDS): Likewise.
4089         (__ASSUME_LDT_WORKS): Likewise.
4090         (__ASSUME_O_DIRECTORY): Likewise.
4091         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4092         architecture but not kernel version.
4093         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4094         (__ASSUME_MMAP2_SYSCALL): Likewise.
4095         (__ASSUME_STAT64_SYSCALL): Likewise.
4096         (__ASSUME_IPC64): Likewise.
4097         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4098         <kernel-features.h>.
4099         [__ASSUME_32BITUIDS]: Make code unconditional.
4100         [!__ASSUME_32BITUIDS]: Remove conditional code.
4101         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4102         <kernel-features.h>.
4103         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4104         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4105         132096]: Remove conditional code.
4106         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4107         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4108         <kernel-features.h>.
4109         [__ASSUME_32BITUIDS]: Make code unconditional.
4110         [!__ASSUME_32BITUIDS]: Remove conditional code.
4111         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4112         <kernel-features.h>.
4113         [__ASSUME_32BITUIDS]: Make code unconditional.
4114         [!__ASSUME_32BITUIDS]: Remove conditional code.
4115         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4116         <kernel-features.h>.
4117         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4118         unconditional.
4119         (__setresgid): Do not declare.
4120         [__ASSUME_32BITUIDS]: Make code unconditional.
4121         [!__ASSUME_32BITUIDS]: Remove conditional code.
4122         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4123         <kernel-features.h>.
4124         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4125         unconditional.
4126         (__setresuid): Do not declare.
4127         [__ASSUME_32BITUIDS]: Make code unconditional.
4128         [!__ASSUME_32BITUIDS]: Remove conditional code.
4129         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4130         <kernel-features.h>.
4131         [__ASSUME_32BITUIDS]: Make code unconditional.
4132         [!__ASSUME_32BITUIDS]: Remove conditional code.
4133         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4134         <kernel-features.h>.
4135         [__ASSUME_32BITUIDS]: Make code unconditional.
4136         [!__ASSUME_32BITUIDS]: Remove conditional code.
4137
4138 2012-05-25  Richard Henderson  <rth@twiddle.net>
4139
4140         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4141         dl_hwcap to ifunc resolver.
4142         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4143         elf_ifunc_invoke.
4144         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4145         dl_hwcap to ifunc resolver.
4146         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4147
4148 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4149
4150         [BZ #14153]
4151         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4152         for |x| <= 2**-26, not 2**-57.
4153         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4154         exception.
4155
4156 2012-05-24  Jeff Law  <law@redhat.com>
4157
4158         * stdio-common/Makefile (tests): Add bug25.
4159         * stdio-common/bug25.c: New test.
4160
4161 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4162
4163         [BZ #13576]
4164         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4165         multiple of MALLOC_ALIGNMENT in size.
4166         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4167
4168 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4169
4170         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4171         Require >= 256.
4172         (FILENAME_MAX): Use macro-int-constant.
4173         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4174         (_IOFBF): Use macro-int-constant.
4175         (_IOLBF): Likewise.
4176         (_IONBF): Likewise.
4177         (SEEK_CUR): Likewise.
4178         (SEEK_END): Likewise.
4179         (SEEK_SET): Likewise.
4180         (TMP_MAX): Likewise.
4181         (EOF): Use macro-int-constant.  Require < 0.
4182         (NULL): Use macro-constant.  Require == 0.
4183         (stdin): Require type to be FILE *.
4184         (stdout): Likewise.
4185         (stderr): Likewise.
4186         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4187         macro-int-constant.
4188         (EXIT_SUCCESS): Likewise.
4189         (NULL): Use macro-constant.  Require == 0.
4190         (RAND_MAX): Use macro-int-constant.
4191         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4192         [C99-based standards] (strtof): Require function.
4193         [C99-based standards] (strtold): Likewise.
4194         [C99-based standards] (strtoll): Likewise.
4195         [C99-based standards] (strtoull): Likewise.
4196         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4197         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4198         [ISO || ISO99 || ISO11] (math.h): Likewise.
4199         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4200         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4201         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4202
4203 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4204
4205         [BZ #14132]
4206         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4207         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4208         * intl/dgettext.c (DCGETTEXT): Likewise.
4209         * intl/gettext.c (DCGETTEXT): Likewise.
4210         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4211         * posix/regex_internal.h (gettext): Likewise.
4212         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4213         Remove declaration.
4214         * include/argz.h (__argz_count_internal)
4215         (__argz_stringify_internal): Remove declaration.
4216         (__argz_count, __argz_stringify): Declare hidden proto.
4217         * intl/dcgettext.c: Remove use of INTDEF.
4218         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4219         * string/argz-stringify.c: Likewise.
4220         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4221         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4222         Declare hidden proto.
4223         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4224         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4225         Declare hidden proto.
4226         * include/stdio.h (__asprintf_internal): Don't declare.
4227         (__asprintf): Don't define as macro.  Declare hidden proto.
4228         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4229         (__fsetlocking): Declare hidden proto.
4230         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4231         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4232         hidden proto.
4233         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4234         (_IO_setlinebuf): Remove use of INTUSE.
4235         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4236         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4237         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4238         Remove declaration.
4239         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4240         (_IO_do_flush): Remove use of INTUSE.
4241         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4242         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4243         (_IO_adjust_column, _IO_least_wmarker)
4244         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4245         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4246         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4247         (_IO_default_doallocate, _IO_wdefault_doallocate)
4248         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4249         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4250         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4251         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4252         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4253         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4254         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4255         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4256         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4257         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4258         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4259         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4260         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4261         proto.
4262         (_IO_flush_all_internal, _IO_adjust_column_internal)
4263         (_IO_default_uflow_internal, _IO_default_finish_internal)
4264         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4265         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4266         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4267         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4268         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4269         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4270         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4271         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4272         (_IO_file_close_internal, _IO_file_close_it_internal)
4273         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4274         (_IO_file_init_internal, _IO_file_attach_internal)
4275         (_IO_file_fopen_internal, _IO_file_read_internal)
4276         (_IO_file_sync_internal, _IO_file_seek_internal)
4277         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4278         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4279         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4280         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4281         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4282         (_IO_list_all_internal, _IO_link_in_internal)
4283         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4284         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4285         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4286         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4287         (_IO_do_write_internal, _IO_padn_internal)
4288         (_IO_getline_info_internal, _IO_getline_internal)
4289         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4290         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4291         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4292         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4293         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4294         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4295         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4296         with libc_hidden_ver, remove use of INTUSE.
4297         * libio/genops.c: Likewise.
4298         * libio/freopen.c: Likewise.
4299         * libio/freopen64.c: Likewise.
4300         * libio/iofclose.c: Likewise.
4301         * libio/iofdopen.c: Likewise.
4302         * libio/iofflush.c: Likewise.
4303         * libio/iofflush_u.c: Likewise.
4304         * libio/iofgets.c: Likewise.
4305         * libio/iofgets_u.c: Likewise.
4306         * libio/iofopen.c: Likewise.
4307         * libio/iofopncook.c: Likewise.
4308         * libio/iofread.c: Likewise.
4309         * libio/iofread_u.c: Likewise.
4310         * libio/ioftell.c: Likewise.
4311         * libio/iofwrite.c: Likewise.
4312         * libio/iogetline.c: Likewise.
4313         * libio/iogets.c: Likewise.
4314         * libio/iogetwline.c: Likewise.
4315         * libio/iopadn.c: Likewise.
4316         * libio/iopopen.c: Likewise.
4317         * libio/ioseekoff.c: Likewise.
4318         * libio/ioseekpos.c: Likewise.
4319         * libio/iosetbuffer.c: Likewise.
4320         * libio/iosetvbuf.c: Likewise.
4321         * libio/ioungetc.c: Likewise.
4322         * libio/ioungetwc.c: Likewise.
4323         * libio/iovdprintf.c: Likewise.
4324         * libio/iovsprintf.c: Likewise.
4325         * libio/iovsscanf.c: Likewise.
4326         * libio/memstream.c: Likewise.
4327         * libio/obprintf.c: Likewise.
4328         * libio/oldfileops.c: Likewise.
4329         * libio/oldiofclose.c: Likewise.
4330         * libio/oldiofdopen.c: Likewise.
4331         * libio/oldiofopen.c: Likewise.
4332         * libio/oldiopopen.c: Likewise.
4333         * libio/oldstdfiles.c: Likewise.
4334         * libio/putc.c: Likewise.
4335         * libio/setbuf.c: Likewise.
4336         * libio/setlinebuf.c: Likewise.
4337         * libio/stdfiles.c: Likewise.
4338         * libio/strops.c: Likewise.
4339         * libio/vasprintf.c: Likewise.
4340         * libio/vscanf.c: Likewise.
4341         * libio/vsnprintf.c: Likewise.
4342         * libio/vswprintf.c: Likewise.
4343         * libio/wfiledoalloc.c: Likewise.
4344         * libio/wfileops.c: Likewise.
4345         * libio/wgenops.c: Likewise.
4346         * libio/wmemstream.c: Likewise.
4347         * libio/wstrops.c: Likewise.
4348         * libio/__fpurge.c: Likewise.
4349         * libio/__fsetlocking.c: Likewise.
4350         * assert/assert.c: Likewise.
4351         * debug/fgets_chk.c: Likewise.
4352         * debug/fgets_u_chk.c: Likewise.
4353         * debug/fread_chk.c: Likewise.
4354         * debug/fread_u_chk.c: Likewise.
4355         * debug/gets_chk.c: Likewise.
4356         * debug/obprintf_chk.c: Likewise.
4357         * debug/vasprintf_chk.c: Likewise.
4358         * debug/vdprintf_chk.c: Likewise.
4359         * debug/vsnprintf_chk.c: Likewise.
4360         * debug/vsprintf_chk.c: Likewise.
4361         * malloc/mtrace.c: Likewise.
4362         * misc/error.c: Likewise.
4363         * misc/syslog.c: Likewise.
4364         * stdio-common/asprintf.c: Likewise.
4365         * stdio-common/fxprintf.c: Likewise.
4366         * stdio-common/getw.c: Likewise.
4367         * stdio-common/isoc99_fscanf.c: Likewise.
4368         * stdio-common/isoc99_scanf.c: Likewise.
4369         * stdio-common/isoc99_vfscanf.c: Likewise.
4370         * stdio-common/isoc99_vscanf.c: Likewise.
4371         * stdio-common/isoc99_vsscanf.c: Likewise.
4372         * stdio-common/printf-prs.c: Likewise.
4373         * stdio-common/printf_fp.c: Likewise.
4374         * stdio-common/printf_fphex.c: Likewise.
4375         * stdio-common/printf_size.c: Likewise.
4376         * stdio-common/putw.c: Likewise.
4377         * stdio-common/scanf.c: Likewise.
4378         * stdio-common/sprintf.c: Likewise.
4379         * stdio-common/tmpfile.c: Likewise.
4380         * stdio-common/vfprintf.c: Likewise.
4381         * stdio-common/vfscanf.c: Likewise.
4382         * stdlib/strfmon_l.c: Likewise.
4383         * sunrpc/openchild.c: Likewise.
4384         * sunrpc/xdr_stdio.c: Likewise.
4385         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4386         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4387
4388 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4389
4390         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4391
4392         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4393         in the third column, to generate for the shared library an IFUNC
4394         that uses _dl_vdso_vsym.
4395         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4396         * Makeconfig (object-suffixes-noshared): New variable.
4397
4398         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4399         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4400         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4401         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4402
4403         [BZ #14132]
4404         * include/sys/time.h (__gettimeofday): Remove macro.
4405         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4406         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4407         Remove INTDEF.
4408         (__gettimeofday): Add libc_hidden_def.
4409         (gettimeofday): Add libc_hidden_weak.
4410         * sysdeps/mach/gettimeofday.c: Likewise.
4411         * sysdeps/posix/gettimeofday.c: Likewise.
4412         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4413         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4414         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4415         (__gettimeofday_internal): Remove strong_alias.
4416         (__gettimeofday): Add libc_hidden_def.
4417         (gettimeofday): Add libc_hidden_weak.
4418         * sysdeps/unix/syscalls.list (gettimeofday):
4419         Remove __gettimeofday_internal alias.
4420
4421 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4422             H.J. Lu  <hongjiu.lu@intel.com>
4423
4424         [BZ #12495]
4425         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4426         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4427         (largebin_index_32_big): New.
4428         (largebin_index): Use it for 16-byte alignment.
4429         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4430         correction with front_misalign.
4431
4432 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4433
4434         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4435         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4436         Likewise.
4437         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4438         Likewise.
4439         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4440         Likewise.
4441         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4442         Likewise.
4443         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4444         Likewise.
4445         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4446         Likewise.
4447         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4448         Likewise.
4449         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4450         Likewise.
4451         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4452         Likewise.
4453         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4454         Likewise.
4455         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4456         Likewise.
4457         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4458         Likewise.
4459
4460         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4461         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4462
4463 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4464
4465         [BZ #10846]
4466         [BZ #14036]
4467         * math/libm-test.inc (exp_test): Add test from bug 14036.
4468         (pow_test): Add test from bug 10846.
4469
4470         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4471         and other flags.
4472         (special_function): Do not include flags in test name.
4473         (parse_args): Likewise.
4474         * sysdeps/i386/fpu/libm-test-ulps: Update.
4475         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4476         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4477         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4479
4480         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4481         exceptions.
4482         * math/libm-test.inc ("Philosophy"): Update comment about
4483         exception testing.
4484         (UNDERFLOW_EXCEPTION): New macro.
4485         (UNDERFLOW_EXCEPTION_OK): Likewise.
4486         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4487         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4488         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4489         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4490         (INVALID_EXCEPTION_OK): Update value.
4491         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4492         (OVERFLOW_EXCEPTION_OK): Likewise.
4493         (IGNORE_ZERO_INF_SIGN): Likewise.
4494         (test_exceptions): Handle underflow exceptions.
4495         (acos_test): Update for underflow exception expectations.
4496         (cexp_test): Likewise.
4497         (clog_test): Likewise.
4498         (clog10_test): Likewise.
4499         (csqrt_test): Likewise.
4500         (ctan_test): Likewise.
4501         (ctanh_test): Likewise.
4502         (exp_test): Likewise.
4503         (exp10_test): Likewise.
4504         (exp2_test): Likewise.
4505         (expm1_test): Likewise.
4506         (fma_test): Likewise.
4507         (j0_test): Likewise.
4508         (jn_test): Likewise.
4509         (nexttoward_test): Likewise.
4510         (pow_test): Likewise.
4511         (scalbn_test): Likewise.
4512         (scalbln_test): Likewise.
4513         (tan_test): Likewise.
4514         (y1_test): Likewise.
4515         * sysdeps/i386/fpu/libm-test-ulps: Update.
4516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4517
4518 2012-05-23  David S. Miller  <davem@davemloft.net>
4519
4520         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4521         (__libc_sigaction): Remove unused local variables.
4522
4523 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4524
4525         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4526
4527 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4528
4529         mktime: avoid signed integer overflow
4530         * time/mktime.c (__mktime_internal): Do not mishandle the case
4531         where diff == INT_MIN.
4532
4533         mktime: simplify computation of average
4534         * time/mktime.c (ranged_convert): Use new time_t_avg function
4535         instead of rolling our own (probably-slower) code.
4536
4537         mktime: do not assume signed right shift propagates sign bit
4538         * time/mktime.c (isdst_differ): New static function.
4539         (__mktime_internal): No need to normalize tm_isdst now.
4540         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4541         tm_isdst values.
4542
4543         mktime: merge another wrapv change from gnulib
4544         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4545         from some compilers.
4546
4547         mktime: remove incorrect attempt at unusual arithmetics
4548         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4549         The code didn't really work on such machines anyway.
4550         (TYPE_MINIMUM): Assume two's complement.
4551         (twos_complement_arithmetic): Verify that long_int and time_t
4552         are two's complement (or unsigned, in the latter case).
4553
4554         mktime: check signed shifts on long_int and time_t, too
4555         * time/mktime.c (SHR): Check that shifts work as desired
4556         on the types long_int and time_t too, as SHR is used on
4557         such types.
4558
4559         mktime: do not assume 'long' is wide enough
4560         * time/mktime.c (verify): Move decl up.
4561         (long_int): New type.
4562         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4563         to remove assumption in the code that 'long' is wide enough to
4564         store year values.  This assumption is not true on x32 and on
4565         some non-glibc platforms.
4566
4567         mktime: merge wrapv change from gnulib
4568         * time/mktime.c (WRAPV): New macro.
4569         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4570         (guess_time_tm, __mktime_internal): Do not assume that signed
4571         integer overflow wraps around; modern compilers generate code
4572         where this assumption is no longer valid.
4573
4574 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4575
4576         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4577         Replace "jmp L(pseudo_end)" with "ret".
4578         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4579         Likewise.
4580
4581 2012-05-23  Andreas Jaeger  <aj@suse.de>
4582
4583         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4584         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4585
4586 2012-05-23  Andreas Jaeger  <aj@suse.de>
4587             Maximilian Attems  <max@stro.at>
4588
4589         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4590         New macros.
4591
4592 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4593
4594         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4595         code so that pseudo_end is just ret and the stack pointer is
4596         correct also for static library in error case.
4597
4598 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4599
4600         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4601         move to syscalls.list.
4602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4606
4607         * manual/install.texi (Running make install): Do not mention Linux
4608         kernel version for which pt_chown is not needed.
4609         (Linux): Do not mention problems with nscd with 2.0 kernels.
4610         * INSTALL: Regenerated.
4611
4612 2012-05-23  Andreas Jaeger  <aj@suse.de>
4613
4614         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4615         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4616         macro.
4617         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4618         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4619         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4620         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4621         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4622         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4623         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4624         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4625         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4626         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4627         * sysdeps/unix/sysv/linux/bits/in.h
4628         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4629
4630 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4631
4632         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4633         (PREPARE_VERSION): Just use assert instead, it will be elided
4634         under [NDEBUG] anyway.
4635
4636 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4637
4638         * sysdeps/unix/sysv/linux/Makefile: Include
4639         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4640         (sysdep_routines): Remove sysctl.
4641         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4642         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4643         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4644         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4645         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4646
4647 2012-05-22  Andreas Jaeger  <aj@suse.de>
4648
4649         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4650         that pseudo_end is just ret and the stack pointer is correct also
4651         for static library in error case.
4652
4653 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4654
4655         [BZ #14122]
4656         * nss/nsswitch.c (defconfig_entries): New variable.
4657         (__nss_database_lookup): Don't leak defconfig entries.
4658         (nss_parse_service_list): Don't leak on error paths.
4659         (free_database_entries): New function.
4660         (free_defconfig): New function.
4661         (free_mem): Move common code to free_database_entries.
4662
4663 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4664
4665         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4666         Add arch_prctl.
4667         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4668
4669         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4670         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4671         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4672         New macro.
4673         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4674         (INTERNAL_SYSCALL_TYPES): Likewise.
4675         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4676         (LOAD_REGS_TYPES_[1-6]): Likewise.
4677         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4678         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4679
4680 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4681
4682         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4683         copysignl for GLIBC_2_0.
4684         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4685         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4686         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4687         logbl for GLIBC_2_0.
4688         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4689         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4690
4691 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4692
4693         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4694         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4695
4696         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4697         Use "neg %eax".
4698
4699         * time/mktime.c: Update copyright years.
4700
4701 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4702
4703         mktime: merge comment-quoting-style change from gnulib
4704         * time/mktime.c: Quote 'like this' in comments.
4705         The GNU coding standards suggest that we no longer quote `like this',
4706         as "`" and "'" are typically rendered asymmetrically nowadays.
4707         The typical gnulib style is to quote 'like this' when quoting
4708         code, and "like this" when quoting English.
4709
4710         * time/mktime.c (compile-command): Add "-I.".
4711
4712         mktime: merge mktime-internal.h change from gnulib
4713         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4714
4715         mktime: merge time_r change from gnulib
4716         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4717
4718         mktime: merge DEBUG change from gnulib
4719         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4720         case system <time.h> has a #define.
4721
4722         mktime: merge <sys/types.h> change from gnulib
4723         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4724         since <time.t> is now guaranteed to define time_t.
4725
4726         mktime: merge HAVE_CONFIG_H change from gnulib
4727         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4728
4729 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4730
4731         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4732         Use "neg %eax".
4733
4734         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4735         __rlim_t cast.
4736         (struct rusage): Use anonymous union to pad each field to
4737         __syscall_slong_t.
4738
4739 2012-05-21  David S. Miller  <davem@davemloft.net>
4740
4741         * Makefules (o-iterator): Remove .s cases.
4742         (compile-command.s): Delete.
4743         (COMPILE.s): Delete.
4744         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4745
4746 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4747
4748         * configure.in (libc_cv_predef_stack_protector): Only consider
4749         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4750         * configure: Regenerated.
4751
4752 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4753
4754         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4755         New macro.  Use R*LP on int and pointer.
4756         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4757         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4758         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4759         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4760
4761         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4762         [__WORDSIZE_TIME64_COMPAT32] instead of
4763         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4764         (struct utmp): Likewise.
4765         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4766         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4767         Renamed to ...
4768         (__WORDSIZE_TIME64_COMPAT32): This.
4769         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4770         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4771         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4772         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4773         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4774         (__WORDSIZE_TIME64_COMPAT32): New macro.
4775
4776 2012-05-21  Andreas Jaeger  <aj@suse.de>
4777
4778         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4779         only if [SHARED]. Add prototype for __wcschr_ia32.
4780
4781 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4782
4783         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4784         of %rbp unmolested in the jmp_buf while mangling the low bits.
4785         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4786         unmolested high bits of %rbp while demangling the low bits.
4787         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4788
4789 2012-05-21  Andreas Jaeger  <aj@suse.de>
4790
4791         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4792         * sunrpc/svc_simple.c: Use it for registerrpc.
4793         * sunrpc/xcrypt.c: Use it for passwd2des.
4794
4795         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4796
4797 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4798
4799         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4800         Don't define if [__SYSCALL_WORDSIZE != 32].
4801         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4802         New macro.
4803
4804 2012-05-21  Bruno Haible  <bruno@clisp.org>
4805             Andreas Jaeger  <aj@suse.de>
4806
4807         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4808         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4809         inptr and inend for must_buffer_ch.
4810         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4811         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4812         * stdio-common/Makefile (tests): Remove bug15.
4813         (bug15-ENV): Remove macro.
4814         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4815         anymore.
4816
4817 2012-05-19  Andreas Jaeger  <aj@suse.de>
4818             Roland McGrath  <roland@hack.frob.com>
4819
4820         * manual/contrib.texi: Completely rewritten. It contains now an
4821         alphabetical list of contributors and their contributions.
4822
4823 2012-05-21  Richard Henderson  <rth@twiddle.net>
4824
4825         * misc/getauxval.c (__getauxval): Use unsigned long int.
4826         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4827         (getauxval): Use unsigned long int.
4828
4829 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4830
4831         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4832
4833 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4834
4835         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4836         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4837         __alignof__ (long double).
4838
4839 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4840
4841         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4842
4843 2012-05-20  Richard Henderson  <rth@twiddle.net>
4844
4845         * misc/getauxval.c: New file.
4846         * misc/sys/auxv.h: New file.
4847         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4848         (routines): Add getauxval.
4849         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4850         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4851         * elf/dl-sysdep.c (_dl_auxv): Remove.
4852         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4853         * elf/dl-support.c (_dl_auxv): New variable.
4854         (_dl_aux_init): Initialize it.
4855         * manual/startup.texi (Auxiliary Vector): New node.
4856         * sysdeps/generic/bits/hwcap.h: New file.
4857         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4858         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4859         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4860         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4861         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4862         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4864         Update.
4865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4866         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4867         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4868         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4869         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4870         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4871         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4872         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4873
4874 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4875
4876         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4877
4878 2012-05-19  David S. Miller  <davem@davemloft.net>
4879
4880         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4881
4882 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4883
4884         [BZ #14123]
4885         * math/s_ccosh.c: Include <float.h>
4886         (__ccosh): Avoid internal overflow calculating sinh and cosh
4887         values before multiplying by sin and cos values.
4888         * math/s_ccoshf.c: Likewise.
4889         * math/s_ccoshl.c: Likewise.
4890         * math/s_csin.c: Likewise.
4891         * math/s_csinf.c: Likewise.
4892         * math/s_csinl.c: Likewise.
4893         * math/s_csinh.c: Likewise.
4894         * math/s_csinhf.c: Likewise.
4895         * math/s_csinhl.c: Likewise.
4896         * math/libm-test.inc (ccos_test): Add more tests.
4897         (ccosh_test): Likewise.
4898         (csin_test): Likewise.
4899         (csinh_test): Likewise.
4900         * sysdeps/i386/fpu/libm-test-ulps: Update.
4901         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4902
4903 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4904
4905         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4906         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4907
4908         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4909
4910 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4911
4912         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4913         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4914         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4915         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4916         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4917         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4918         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4919         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4920         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4921         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4922         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4923         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4924         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4925         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4926         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4927         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4928         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4929         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4930         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4931         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4932         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4933         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4934         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4935         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4936         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4937         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4938         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4939         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4940         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4941         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4942         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4943
4944 2012-05-18  Andreas Jaeger  <aj@suse.de>
4945
4946         * csu/.gitignore: Delete.
4947
4948 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4949
4950         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4951         (timex): Use __syscall_slong_t.
4952
4953 2012-05-18  Andreas Jaeger  <aj@suse.de>
4954             Carlos O'Donell  <carlos_odonell@mentor.com>
4955
4956         * manual/install.texi (Configuring and compiling): Update
4957         description about files modified in the source directory.
4958         * INSTALL: Regenerated.
4959
4960 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4961
4962         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4963         value.  Use "or" to set return value to -1.
4964         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4965         negate return value.
4966
4967 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4968
4969         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4970         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4971         failure if the compiler has Graphite support disabled.
4972         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4973         Likewise.
4974         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4975         CFLAGS-memmove.c): Likewise.
4976         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4977         Likewise.
4978
4979 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4980
4981         * sysdeps/x86_64/x32/_itoa.h: New file.
4982
4983         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4984         getdents system call only if kernel and user dirents have the
4985         same d_ino and d_off.
4986
4987         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4988         LLONG_MAX != LONG_MAX.
4989         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4990         (_fitoa_word): Likewise.
4991
4992         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4993         years.
4994         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4995         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4996         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4997
4998         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4999         include <bits/wordsize.h>.  Check __x86_64__ instead of
5000         __WORDSIZE.
5001         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5002         if __x86_64__ is defined.  Use anonymous union on fpstate.
5003
5004         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5005         anonymous union.
5006
5007 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5008
5009         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5010         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5011         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5012         Refer to _rtld_local_ro instead of _rtld_global_ro.
5013         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5014         Likewise.
5015         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5016         Likewise.
5017         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5018         Likewise.
5019         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5020         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5021         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5022
5023         * sysdeps/powerpc/powerpc32/dl-machine.c
5024         (__elf_machine_runtime_setup) [PROF]: Don't reference
5025         _dl_prof_resolve.
5026
5027 2012-05-18  Andreas Jaeger  <aj@suse.de>
5028
5029         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5030         function only available for GCCs before 3.4 since GCC 3.4
5031         introduced a builtin.
5032         (lrint): Likewise.
5033         (llrintf): Likewise.
5034         (llrint): Likewise.
5035         (fmaxf): Likewise.
5036         (fmax): Likewise.
5037         (fminf): Likewise.
5038         (fmin): Likewise.
5039         (rint): Likewise.
5040         (rintf): Likewise.
5041         (nearbyint): Likewise.
5042         (nearbyintf): Likewise.
5043         (ceil): Likewise.
5044         (ceilf): Likewise.
5045         (floor): Likewise.
5046         (floorf): Likewise.
5047
5048 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5049
5050         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5051         on both fields and cast pointer to __syscall_ulong_t.
5052
5053         * bits/types.h (__fsword_t): New type.
5054         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5055         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5056         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5057         (__FSWORD_T_TYPE): Likewise.
5058         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5059         (__FSWORD_T_TYPE): Likewise.
5060         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5061         (__FSWORD_T_TYPE): Likewise.
5062         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5063         (__FSWORD_T_TYPE): Likewise.
5064         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5065         __SWORD_TYPE with __fsword_t.
5066         (statfs64): Likewise.
5067
5068 2012-05-17  David S. Miller  <davem@davemloft.net>
5069
5070         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5071
5072 2012-05-17  Andreas Jaeger  <aj@suse.de>
5073
5074         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5075         warning.
5076
5077 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5078
5079         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5080
5081 2012-05-17  Andreas Jaeger  <aj@suse.de>
5082
5083         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5084         when it is used.
5085
5086 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5087
5088         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5089
5090 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5091
5092         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5093         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5094
5095 2012-05-17  Andreas Jaeger  <aj@suse.de>
5096             Carlos O'Donell  <carlos_odonell@mentor.com>
5097
5098         [BZ #14059]
5099         * sysdeps/x86_64/multiarch/init-arch.h
5100         (bit_YMM_Usable): Rename to...
5101         (bit_AVX_Usable): ... this.
5102         (bit_FMA4_Usable): New macro.
5103         (bit_XMM_state): New macro.
5104         (bit_YMM_state): New macro.
5105         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5106         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5107         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5108         (CPUID_OSXSAVE): New macro.
5109         (CPUID_AVX): New macro.
5110         (CPUID_FMA4): New macro.
5111         (index_YMM_Usable): Rename to...
5112         (index_AVX_Usable): ... this.
5113         (HAS_AVX): Use HAS_ARCH_FEATURE.
5114         (HAS_FMA4): Likewise.
5115         (HAS_YMM_USABLE): Remove.
5116         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5117         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5118         are present.
5119         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5120         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5121         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5122         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5123         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5124
5125 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5126
5127         * math/libm-test.c: Support platforms without multiple rounding modes.
5128         * math/bug-nextafter.c: Support platforms without FP exceptions.
5129         * math/bug-nexttoward.c: Likewise.
5130         * math/test-fenv.c: Likewise.
5131         * math/test-misc.c: Likewise.
5132         * stdlib/bug-getcontext.c: Likewise.
5133
5134 2012-05-17  Andreas Jaeger  <aj@suse.de>
5135
5136         * manual/examples/search.c (critter_cmp): Change signature to
5137         avoid warnings.
5138         * manual/string.texi (Collation Functions): Likewise.
5139
5140 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5141
5142         * bits/types.h: Fold copyright years.
5143         * bits/typesizes.h: Likewise.
5144         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5145         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5146         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5147         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5148         * time/time.h: Likewise.
5149
5150 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5151
5152         [BZ #208]
5153         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5154         in instead of returning them.  Return void.
5155         (__libc_mallinfo): Accumulate over all arenas.
5156         (__malloc_stats): Adjust for change in int_mallinfo interface.
5157
5158 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5159
5160         [BZ #10375]
5161         * configure.in (NM): Add AC_CHECK_TOOL for it.
5162         (libc_extra_cflags): New substituted variable.
5163         Check for -fstack-protector being used implicitly.
5164         * configure: Regenerated.
5165         * config.make.in (config-extra-cflags): New variable,
5166         gets @libc_extra_cflags@.
5167         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5168
5169         [BZ #10375]
5170         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5171         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5172         * configure: Regenerated.
5173         * config.make.in (CPPUNDEFS): New substituted variable.
5174         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5175         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5176         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5177
5178 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5179
5180         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5181         (mq_attr): Use __syscall_slong_t.
5182
5183 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5184
5185         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5186         Check __x86_64__ instead of __WORDSIZE.
5187         (_STAT_VER_LINUX): Likewise.
5188         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5189         __syscall_ulong_t and __syscall_slong_t.
5190         (stat64): Likewise.
5191
5192 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5193
5194         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5195
5196 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5197
5198         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5199
5200 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5201
5202         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5203         __syscall_ulong_t.
5204
5205         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5206         include <bits/wordsize.h>.  Check __x86_64__ instead of
5207         __WORDSIZE.
5208         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5209         defined.
5210         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5211
5212         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5213         include <bits/wordsize.h>.  Check __x86_64__ instead of
5214         __WORDSIZE.
5215         (user_regs_struct): Use "__extension__ unsigned long long"
5216         instead of "unsigned long" if __x86_64__ is defined.
5217         (user): Likewise.  Pad after pointer field if __ILP32__ is
5218         defined.
5219
5220 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5221
5222         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5223         versions 5 to 9.
5224         * configure: Regenerated.
5225         * manual/install.texi (texinfo): Increase version requirement to
5226         4.5 or later.
5227         * INSTALL: Regenerated.
5228
5229         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5230
5231 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5232
5233         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5234
5235         * sysdeps/x86_64/x32/ffs.c: New file.
5236
5237         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5238         __syscall_ulong_t.
5239         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5240         defined.  Use __syscall_ulong_t.
5241         (shminfo): Use __syscall_ulong_t.
5242         (shm_info): Likewise.
5243
5244         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5245         __syscall_ulong_t.
5246
5247         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5248         <bits/wordsize.h>.
5249         (msgqnum_t): Use __syscall_ulong_t.
5250         (msglen_t): Likewise.
5251         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5252         __syscall_ulong_t.
5253
5254         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5255         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5256
5257         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5258
5259         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5260         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5261
5262         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5263         __syscall_slong_t.
5264
5265         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5266         include <bits/wordsize.h>.  Check __x86_64__ instead of
5267         __WORDSIZE.
5268
5269         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5270         "unsigned long long int" if __x86_64__ is defined.
5271         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5272
5273         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5274         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5275         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5276
5277         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5278         <stdint.h>.
5279         (GET_PC): Cast to uintptr_t first.
5280         (GET_FRAME): Likewise.
5281         (GET_STACK): Likewise.
5282
5283         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5284         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5285         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5286         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5287         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5288         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5289         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5290         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5291         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5292         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5293         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5294         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5295         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5296         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5297         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5298         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5299         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5300         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5301         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5302         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5303         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5304         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5305         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5306         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5307         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5308         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5309         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5310         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5311         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5312
5313 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5314
5315         * Makerules (+depfiles): Also collect depfiles from .oS in
5316         $(extra-objs).
5317         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5318         .oS, $(libnldbl-routines)).
5319
5320         * Makerules (native-compile-mkdep-flags): Define.
5321         * sunrpc/Makefile (extra-objs): Add $(addprefix
5322         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5323         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5324         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5325         calling $(make-target-directory).
5326
5327 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5328
5329         * bits/types.h (__snseconds_t): Removed.
5330         * time/time.h (struct timespec): Replace __snseconds_t with
5331         __syscall_slong_t.
5332         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5333         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5334         Likewise.
5335         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5336         (__SNSECONDS_T_TYPE): Likewise.
5337         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5338         (__SNSECONDS_T_TYPE): Likewise.
5339         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5340         (__SNSECONDS_T_TYPE): Likewise.
5341
5342 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5343
5344         * sysdeps/mach/hurd/bits/typesizes.h
5345         (__SYSCALL_SLONG_TYPE): New macro.
5346         (__SYSCALL_ULONG_TYPE): Likewise.
5347
5348 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5349
5350         * bits/types.h (__syscall_slong_t): New type.
5351         (__syscall_ulong_t): Likewise.
5352
5353         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5354         (__SYSCALL_ULONG_TYPE): Likewise.
5355         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5356         (__SYSCALL_SLONG_TYPE): Likewise.
5357         (__SYSCALL_ULONG_TYPE): Likewise.
5358         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5359         (__SYSCALL_SLONG_TYPE): Likewise.
5360         (__SYSCALL_ULONG_TYPE): Likewise.
5361         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5362         (__SYSCALL_SLONG_TYPE): Likewise.
5363         (__SYSCALL_ULONG_TYPE): Likewise.
5364
5365 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5366
5367         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5368         Add sigaltstack-offsets.sym.
5369         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5370         <sigaltstack-offsets.h>.
5371         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5372         longjmp_msg pointer.
5373         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5374         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5375         signal stack.
5376         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5377
5378 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5379
5380         * elf/stackguard-macros.h: Remove file.
5381         * sysdeps/generic/stackguard-macros.h: New file.
5382         * sysdeps/i386/stackguard-macros.h: Likewise.
5383         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5384         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5385         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5386         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5387         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5388         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5389         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5390         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5391         <elf/stackguard-macros.h>.
5392
5393         [BZ #14109]
5394         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5395         __aligned__ in attribute.
5396         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5397         (gregset_t): Likewise.
5398
5399 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5400
5401         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5402         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5403         * sysdeps/x86_64/x32/Implies-after: New file.
5404
5405 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5406
5407         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5408         and access return value for _dl_profile_fixup.  Use R10_LP to
5409         load frame size.
5410
5411 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5412
5413         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5414
5415 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5416
5417         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5418         * sysdeps/x86_64/x32/sysdep.h: New file.
5419
5420 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5421
5422         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5423         * sysdeps/x86_64/setjmp.S: Likewise.
5424
5425 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5426
5427         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5428         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5429         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5430         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5431         remove unused global constant.
5432
5433 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5434
5435         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5436         include of <not-cancel.h>.
5437
5438 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5439
5440         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5441
5442 2012-05-15  Jeff Law  <law@redhat.com>
5443             Andreas Jaeger  <aj@suse.de>
5444
5445         [BZ #13594]
5446         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5447         out from...
5448         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5449         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5450         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5451         code changing __hst_map_handle.map.
5452
5453 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5454
5455         * configure.in (sysnames): Look for Implies-before and Implies-after
5456         files.
5457         * configure: Regenerated.
5458
5459 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5460
5461         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5462         8-byte data alignment with LP_SIZE alignment.
5463
5464 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5465
5466         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5467         into R10_LP.
5468
5469 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5470
5471         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5472
5473 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5474
5475         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5476         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5477         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5478         Likewise.
5479         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5480
5481 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5482
5483         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5484         (stackinfo_sub_sp): Likewise.
5485
5486 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5487
5488         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5489         RAX_LP.
5490
5491 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5492
5493         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5494         into R*_LP.
5495
5496 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5497
5498         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5499         sizes into R*_LP.
5500
5501 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5502
5503         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5504
5505 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5506
5507         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5508         into R11_LP and load __x86_64_shared_cache_size_half into
5509         R8_LP.
5510
5511 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5512
5513         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5514         R8_LP.
5515
5516 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5517
5518         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5519         logb for POWER7.
5520         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5521         logbf for POWER7.
5522         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5523         logbl for POWER7.
5524         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5525         powerpc32/power7/fpu/s_logb.c via #include.
5526         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5527         powerpc32/power7/fpu/s_logbf.c via #include.
5528         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5529         powerpc32/power7/fpu/s_logbl.c via #include.
5530
5531 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5532
5533         * README.libm: Remove file.
5534
5535 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5536
5537         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5538         count for x32.  Use R*_LP and omit operand-size suffix.
5539
5540 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5541
5542         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5543         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5544         * sysdeps/x86_64/x32/shlib-versions: New file.
5545
5546 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5547
5548         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5549         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5550         Use _dl_fatal_printf instead.
5551
5552 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5553
5554         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5555         set if not set by the user.  Do not allow for being unset.
5556         * sysdeps/unix/sysv/linux/configure: Regenerated.
5557
5558 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5559
5560         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5561         the `q' suffix from lea and replace .quad with ASM_ADDR.
5562
5563 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5564
5565         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5566         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5567         instead of $17.
5568         (PTR_DEMANGLE): Likewise.
5569
5570 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5571
5572         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5573         (LP_OP): Likewise.
5574         (ASM_ADDR): Likewise.
5575         (RAX_LP): Likewise.
5576         (RBP_LP): Likewise.
5577         (RBX_LP): Likewise.
5578         (RCX_LP): Likewise.
5579         (RDI_LP): Likewise.
5580         (RSI_LP): Likewise.
5581         (RSP_LP): Likewise.
5582         (R8_LP): Likewise.
5583         (R9_LP): Likewise.
5584         (R10_LP): Likewise.
5585         (R10_LP): Likewise.
5586         (R11_LP): Likewise.
5587         (R12_LP): Likewise.
5588         (R13_LP): Likewise.
5589         (R14_LP): Likewise.
5590         (R15_LP): Likewise.
5591
5592 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5593
5594         * sysdeps/x86_64/x32/dl-machine.h: New file.
5595
5596 2012-05-14  Andreas Jaeger  <aj@suse.de>
5597
5598         * manual/Makefile (subdir): Remove export of subdir.
5599         (all): Remove target.
5600         (.PHONY): Remove all from list.
5601         (mkinstalldirs): Remove.
5602         (.PHONY): Remove installdirs from list.
5603         ($(inst_infodir)/libc.info): Use make-target-directory.
5604         (installdirs): Remove.
5605         (subdir_%): Remove.
5606         (glibc-targets): Remove.
5607         (lib): Remove.
5608         (stubs): Remove.
5609         ($(objpfx)stubs ../po/manual.pot): Remove.
5610         ($(objpfx)stamp%): Remove.
5611         (make-target-directory): Remove.
5612         (subdir_install): Remove.
5613         (routines): Remove.
5614         (aux): Remove.
5615         (sources): Remove.
5616         (objects): Remove.
5617         (headers): Remove.
5618
5619         [BZ #13750]
5620         * manual/.gitignore: Remove, it's not needed anymore.
5621         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5622         all files in it.
5623         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5624         directory.
5625         (texis): Renamed to $(objpfx)texis.
5626         (texis-path): New, contains path to generated files.
5627         (chapters.%): Use texis-path for complete path, add extra argument
5628         libc-texinfo.sh.
5629         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5630         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5631         (summary,texi, stamp-summary): Use complete path of
5632         files. Generate files in build dir.
5633         (dir-add.texi): Build in build dir.
5634         (libm-err.texi,stamp-libm-err): Likewise.
5635         (version.texi, stamp-version): Likewise.
5636         (.%c.texi): Likewise.
5637         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5638         (mostlyclean): Remove target.
5639         (realclean): Remove target.
5640         (generated): Add new variable with contents from mostlyclean and
5641         realclean, remove entries duplicated in common-mostlyclean, add
5642         stamp-libm-err and stamp-version.
5643         (generated-dirs): Add libc directory.
5644         ($(inst_infodir)/libc.info): Install files from build dir.
5645
5646         * manual/install.texi (Configuring and compiling): Adjust since
5647         the info files are not part of the tar ball anymore.
5648
5649 2012-05-14  Andreas Jaeger  <aj@suse.de>
5650
5651         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5652         variable.
5653
5654 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5655
5656         [BZ #13717]
5657         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5658         to 2.2.0 where earlier.
5659         * sysdeps/unix/sysv/linux/configure: Regenerated.
5660         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5661         Remove conditional code.
5662         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5663         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5664         Remove conditional code.
5665         [!__NR_lchown]: Likewise.
5666         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5667         [__NR_lchown]: Likewise.
5668         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5669         comment referencing __ASSUME_LCHOWN_SYSCALL.
5670         * sysdeps/unix/sysv/linux/i386/sigaction.c
5671         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5672         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5673         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5674         Remove conditional code.
5675         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5676         (__protocol_available): Remove #if 0 code.
5677         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5678         conditional code.
5679         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5680         * sysdeps/unix/sysv/linux/kernel-features.h
5681         (__ASSUME_GETCWD_SYSCALL): Don't define.
5682         (__ASSUME_REALTIME_SIGNALS): Likewise.
5683         (__ASSUME_PREAD_SYSCALL): Likewise.
5684         (__ASSUME_PWRITE_SYSCALL): Likewise.
5685         (__ASSUME_POLL_SYSCALL): Likewise.
5686         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5687         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5688         non-SPARC.
5689         (__ASSUME_SIOCGIFNAME): Don't define.
5690         (__ASSUME_MSG_NOSIGNAL): Likewise.
5691         (__ASSUME_SENDFILE): Define unconditionally.
5692         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5693         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5694         conditional code.
5695         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5696         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5697         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5698         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5699         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5700         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5701         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5703         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5704         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5706         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5707         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5709         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5710         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5712         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5713         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5715         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5716         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5718         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5719         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5721         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5722         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5724         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5725         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5726         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5727         Remove conditional code.
5728         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5729         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5730         Remove conditional code.
5731         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5732         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5733         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5734         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5735         Remove conditional code.
5736         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5737         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5738         Remove conditional code.
5739         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5740         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5741         Remove conditional code.
5742         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5743         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5744         Remove conditional code.
5745         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5746         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5747         Remove conditional code.
5748         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5749         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5750         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5751         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5752         * sysdeps/unix/sysv/linux/sigaction.c
5753         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5754         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5755         * sysdeps/unix/sysv/linux/sigpending.c
5756         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5757         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5758         * sysdeps/unix/sysv/linux/sigprocmask.c
5759         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5760         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5761         * sysdeps/unix/sysv/linux/sigsuspend.c
5762         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5763         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5764         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5765         (__libc_missing_rt_sigs): Remove.
5766         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5767         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5768         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5769         Remove conditional code.
5770         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5771         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5772         return 1.
5773         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5774         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5775         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5776         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5777
5778 2012-05-14  Andreas Jaeger  <aj@suse.de>
5779
5780         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5781         it's not used in glibc.
5782         (__coshm1): Likewise.
5783         (__acosh1p): Likewise.
5784         (__sgn): Likewise.
5785
5786         * manual/string.texi (Copying and Concatenation): Add missing
5787         variable in concat example.
5788         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5789
5790 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5791
5792         [BZ #14103]
5793         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5794         __builtin_clzl with __builtin_clzll.
5795
5796 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5797
5798         [BZ #14104]
5799         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5800         libc_freeres_ptr.
5801
5802 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5803
5804         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5805         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5806         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5807         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5808
5809 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5810
5811         * NEWS: Update ia64 info.
5812
5813 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5814
5815         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5816         used as bcopy.
5817
5818 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5819
5820         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5821         * sysdeps/unix/syscalls.list (dup3): Likewise.
5822         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5823         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5824
5825 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5826
5827         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5828         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5829
5830 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5831
5832         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5833         thread pointer.
5834         (TLS_IE): Use mov/add instead of movq/addq to load thread
5835         pointer.
5836         (TLS_GD_PREFIX): New.
5837         (TLS_GD): Use it.
5838
5839 2012-05-11  David S. Miller  <davem@davemloft.net>
5840
5841         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5842         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5843         (_FPU_SETCW): Likewise.
5844
5845 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5846
5847         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5848         is 32-byte aligned.
5849
5850 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5851
5852         [BZ #11837]
5853         * iconvdata/gb18030.c: Update tables.
5854         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5855         characters specially.
5856         (BODY for TO_LOOP): Add encoding of missing ranges.
5857
5858 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5859
5860         [BZ #13673]
5861         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5862         * sysdeps/mach/hurd/dup3.c: Likewise.
5863         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5864         * sysdeps/powerpc/memmove.c:: Likewise.
5865
5866 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5867
5868         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5869         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5870
5871 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5872
5873         * elf/elf.h (R_X86_64_RELATIVE64): New.
5874         (R_X86_64_NUM): Updated.
5875         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5876         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5877         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5878         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5879         tst-quad1pie tst-quad2pie
5880         (modules-names): Add tst-quadmod1 tst-quadmod2.
5881         ($(objpfx)tst-quad1): New dependency.
5882         ($(objpfx)tst-quad2): Likewise.
5883         ($(objpfx)tst-quad1pie): Likewise.
5884         ($(objpfx)tst-quad2pie): Likewise.
5885         * sysdeps/x86_64/tst-quad1.c: New file.
5886         * sysdeps/x86_64/tst-quad1pie.c: New file.
5887         * sysdeps/x86_64/tst-quad2.c: Likewise.
5888         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5889         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5890         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5891         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5892         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5893
5894 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5895
5896         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5897         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5898         * streams/stropts.h (t_scalar_t): Define type.
5899
5900         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5901         (_PATH_PRESERVE): Set to "/var/lib".
5902         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5903
5904         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5905         instead of int.
5906
5907         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5908         if __dir_mkfile succeeded.
5909
5910         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5911         checking for _hurd_dtablesize.  Unlock it right after having
5912         finished _hurd_dtable allocation.
5913
5914 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5915
5916         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5917         * sysdeps/mach/hurd/configure: Regenerated.
5918         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5919         special-casing to...
5920         * sysdeps/gnu/configure.in: ... this new file.
5921         * sysdeps/unix/sysv/linux/configure: Regenerated.
5922         * sysdeps/gnu/configure: New generated file.
5923
5924         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5925         for Linux: use nsec instead of usec, as well as:
5926         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5927         members of type struct timespec.
5928         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5929         New macros.
5930         (struct stat64): Likewise.
5931         (_STATBUF_ST_NSEC): New macro.
5932         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5933
5934         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5935         __strtoul_internal rather than strtoul.
5936
5937 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5938
5939         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5940         and reject them.
5941
5942 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5943
5944         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5945         which preserves existing values.
5946         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5947
5948 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5949
5950         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5951         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5952         greater than FD_SETSIZE.
5953
5954 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5955
5956         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5957         allocated, call __vm_protect to finish enabling the existing space, and
5958         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5959         allocate the remainder.
5960
5961 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5962
5963         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5964         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5965
5966 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5967
5968         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5969         sysdeps/mach/hurd/readlink.c.
5970
5971         * posix/tst-sysconf.c (posix_options): Only use
5972         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5973         _POSIX_SYNCHRONIZED_IO when they are defined
5974         * sysdeps/mach/hurd/bits/posix_opt.h:
5975         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5976         (_XOPEN_REALTIME): Undefine macro.
5977         (_XOPEN_REALTIME_THREADS): Undefine macro.
5978         (_XOPEN_SHM): Undefine macro.
5979         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5980         macro to -1.
5981         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5982         macro to -1.
5983         (_POSIX_ASYNC_IO): Undefine macro.
5984         (_POSIX_PRIORITIZED_IO): Undefine macro.
5985         (_POSIX_SPIN_LOCKS): Define macro to -1.
5986
5987         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5988         SA_NODEFER, SA_RESETHAND.
5989         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5990         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5991         F_DUPFD_CLOEXEC.
5992
5993 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5994
5995         * elf/Makefile (pldd-modules): Define unconditionally.
5996
5997 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5998
5999         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6000
6001 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6002
6003         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6004         Return ENOENT when name is empty.
6005         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6006
6007 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6008
6009         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6010
6011         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6012
6013 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6014
6015         Fix mlock in all cases except non-readable pages.
6016         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6017         instead of VM_PROT_ALL as parameter to __vm_wire function.
6018
6019         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6020         (__mkdir): When path is `/', just fail with EEXIST.
6021         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6022
6023 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6024
6025         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6026         <sys/uio.h> (for writev).
6027         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6028         and <sys/param.h> (for MIN).
6029
6030 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6031
6032         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6033         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6034         if interrupted.
6035
6036 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6037
6038         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6039         Depend on against $(link-rpcuserlibs).
6040
6041 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6042
6043         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6044         (__libc_stack_end): Do not use attribute_relro.
6045         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6046         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6047         to libthread-provided value.
6048         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6049         attribute_relro.
6050
6051 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6052
6053         [BZ #3748]
6054         * bits/libc-lock.h (__libc_once_get): New macro.
6055         * sysdeps/mach/bits/libc-lock.h: Likewise.
6056         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6057         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6058         instead of using implementation details.
6059
6060         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6061         * libio/freopen.c: Likewise.
6062         * libio/freopen64.c: Likewise.
6063         * misc/syslog.c: Likewise.
6064         * nscd/connections.c: Likewise.
6065         * nscd/netgroupcache.c: Likewise.
6066         * sysdeps/posix/getcwd.c: Likewise.
6067
6068 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6069
6070         * math/w_ilogbf.c: Add #include <limits.h>.
6071
6072 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6073
6074         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6075         path instead of returning without unlocking.
6076
6077         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6078         immediate-write ioctls.
6079         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6080
6081 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6082
6083         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6084         __builtin_frame_address instead of making assumptions about the
6085         location of the return address relative to DATA.  Force early load of
6086         the return address.
6087         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6088         __builtin_frame_address.
6089
6090         dup3 for GNU Hurd.
6091         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6092         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6093         implement dup3 and do some further code clean-ups.
6094         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6095         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6096
6097 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6098
6099         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6100
6101         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6102         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6103         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6104         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6105         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6106         d->port.lock.
6107
6108         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6109         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6110         when handler == SIG_ERR, not when handler != SIG_ERR.
6111
6112 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6113
6114         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6115         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6116         definitions.
6117
6118         accept4 for GNU Hurd.
6119         * include/sys/socket.h (__libc_accept4): New prototype.
6120         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6121         to implement __libc_accept4.
6122         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6123         __libc_accept4.
6124         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6125
6126         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6127         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6128         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6129         signal-defines.sym.
6130
6131 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6132
6133         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6134
6135 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6136
6137         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6138         assertion on O_CLOEXEC flag.
6139         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6140         * hurd/intern-fd.c: Likewise.
6141         * hurd/port2fd.c: Likewise.
6142
6143 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6144
6145         [BZ #3906]
6146         * bits/in.h (IPV6_PKTINFO): Define new macro.
6147         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6148
6149 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6150
6151         [BZ #13954]
6152         [BZ #13955]
6153         [BZ #13956]
6154         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6155         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6156         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6157         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6158         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6159         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6160         * math/libm-test.inc (logb_test) : Additional logb tests.
6161
6162 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6163             Andreas Jaeger  <aj@suse.de>
6164
6165         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6166         * configure: Regenerated.
6167         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6168         * config.make.in (link-obsolete-rpc): New substituted variable.
6169         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6170         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6171         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6172         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6173         so that libc.a contains the symbols.
6174         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6175         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6176         * sunrpc/auth_none.c: Likewise.
6177         * sunrpc/auth_unix.c: Likewise.
6178         * sunrpc/authdes_prot.c: Likewise.
6179         * sunrpc/authuxprot.c: Likewise.
6180         * sunrpc/clnt_gen.c: Likewise.
6181         * sunrpc/clnt_perr.c: Likewise.
6182         * sunrpc/clnt_raw.c: Likewise.
6183         * sunrpc/clnt_simp.c: Likewise.
6184         * sunrpc/clnt_tcp.c: Likewise.
6185         * sunrpc/clnt_udp.c: Likewise.
6186         * sunrpc/clnt_unix.c: Likewise.
6187         * sunrpc/des_crypt.c: Likewise.
6188         * sunrpc/des_soft.c: Likewise.
6189         * sunrpc/get_myaddr.c: Likewise.
6190         * sunrpc/key_call.c: Likewise.
6191         * sunrpc/key_prot.c: Likewise.
6192         * sunrpc/netname.c: Likewise.
6193         * sunrpc/pm_getmaps.c: Likewise.
6194         * sunrpc/pm_getport.c: Likewise.
6195         * sunrpc/pmap_clnt.c: Likewise.
6196         * sunrpc/pmap_prot.c: Likewise.
6197         * sunrpc/pmap_prot2.c: Likewise.
6198         * sunrpc/pmap_rmt.c: Likewise.
6199         * sunrpc/publickey.c: Likewise.
6200         * sunrpc/rpc_cmsg.c: Likewise.
6201         * sunrpc/rpc_common.c: Likewise.
6202         * sunrpc/rpc_dtable.c: Likewise.
6203         * sunrpc/rpc_prot.c: Likewise.
6204         * sunrpc/rpc_thread.c: Likewise.
6205         * sunrpc/rtime.c: Likewise.
6206         * sunrpc/svc.c: Likewise.
6207         * sunrpc/svc_auth.c: Likewise.
6208         * sunrpc/svc_raw.c: Likewise.
6209         * sunrpc/svc_run.c: Likewise.
6210         * sunrpc/svc_tcp.c: Likewise.
6211         * sunrpc/svc_udp.c: Likewise.
6212         * sunrpc/svc_unix.c: Likewise.
6213         * sunrpc/svcauth_des.c: Likewise.
6214         * sunrpc/xcrypt.c: Likewise.
6215         * sunrpc/xdr.c: Likewise.
6216         * sunrpc/xdr_array.c: Likewise.
6217         * sunrpc/xdr_float.c: Likewise.
6218         * sunrpc/xdr_intXX_t.c: Likewise.
6219         * sunrpc/xdr_mem.c: Likewise.
6220         * sunrpc/xdr_rec.c: Likewise.
6221         * sunrpc/xdr_ref.c: Likewise.
6222         * sunrpc/xdr_sizeof.c: Likewise.
6223         * sunrpc/xdr_stdio.c: Likewise.
6224
6225 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6226
6227         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6228         change.  Update copyright years.
6229
6230 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6231
6232         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6233
6234 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6235             Joseph Myers  <joseph@codesourcery.com>
6236             Paul Pluzhnikov  <ppluzhnikov@google.com>
6237
6238         [BZ #14012]
6239         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6240         requiring rpcgen.
6241         [cross-compiling] (extra-libs): Likewise.
6242         [cross-compiling] (extra-libs-others): Likewise.
6243         [cross-compiling] (librpcsvc-routines): Likewise.
6244         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6245         [cross-compiling] (omit-deps): Likewise.
6246         (sunrpc-CPPFLAGS): New variable.
6247         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6248         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6249         (cross-rpcgen-objs): New variable.
6250         (extra-objs): Append $(cross-rpcgen-objs).
6251         ($(cross-rpcgen-objs)): New rule.
6252         ($(objpfx)cross-rpcgen): Likewise.
6253         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6254         comment.
6255         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6256         ($(objpfx)x%.stmp): Likewise.
6257         * sunrpc/proto.h [IS_IN_build] (_): Define.
6258         [IS_IN_build] (_libc_intl_domainname): Likewise.
6259
6260 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6261
6262         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6263         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6264         and R_X86_64_TPOFF64.
6265
6266 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6267
6268         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6269         sysdeps/unix/sysv/syscalls.list.
6270         (stime): Likewise.
6271         (utime): Likewise.
6272         * sysdeps/unix/sysv/syscalls.list: Remove file.
6273
6274 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6275
6276         [BZ #3440]
6277         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6278         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6279         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6280         (__LC_IDENTIFICATION): Make these macros useful in #if
6281         expressions, as required by C99.
6282
6283 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6284
6285         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6286         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6287         after this.
6288
6289 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6290
6291         * stdlib/longlong.h: Updated from GCC.
6292
6293 2012-05-09  Andreas Jaeger  <aj@suse.de>
6294
6295         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6296         default is first entry.
6297         (run_mode): Set type.
6298         (main): Remove informal message about syslog.
6299         (options): Fix typo.
6300
6301         [BZ #14053]
6302         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6303         to asm.
6304         (lrint): Likewise.
6305         (llrintf): Likewise.
6306         (llrint): Likewise.
6307         (rint): Likewise.
6308         (rintf): Likewise.
6309         (nearbyint): Likewise.
6310         (nearbyintf): Likewise.
6311
6312 2012-05-09  Andreas Jaeger  <aj@suse.de>
6313             Pedro Alves  <palves@redhat.com>
6314
6315         * nscd/nscd.c (run_mode): Use enum.
6316         (main): Cleanup coding style issue.
6317
6318 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6319             Andreas Jaeger  <aj@suse.de>
6320
6321         * nscd/nscd.c (go_background): Replaced with...
6322         (run_mode): ... this.
6323         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6324         (options): Add -F --foreground.
6325         (main): Implement it.
6326         (parse_opt): Parse it.
6327
6328 2012-05-09  Andreas Jaeger  <aj@suse.de>
6329
6330         [BZ #14083]
6331         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6332         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6333         -Wconversion warning.
6334         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6335         Likewise.
6336
6337 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6338
6339         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6340         == 0.
6341         (LC_ALL): Use macro-int-constant.
6342         (LC_COLLATE): Likewise.
6343         (LC_CTYPE): Likewise.
6344         (LC_MESSAGES): Likewise.
6345         (LC_MONETARY): Likewise.
6346         (LC_NUMERIC): Likewise.
6347         (LC_TIME): Likewise.
6348         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6349         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6350         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6351         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6352         Specify type.
6353         [C99-based standards] (float_t): Expect type.
6354         [C99-based standards] (double_t): Expect type.
6355         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6356         type.
6357         [C99-based standards] (HUGE_VALL): Likewise.
6358         [C99-based standards] (INFINITY): Likewise.
6359         [C99-based standards] (NAN): Likewise.
6360         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6361         [C99-based standards] (FP_NAN): Likewise.
6362         [C99-based standards] (FP_NORMAL): Likewise.
6363         [C99-based standards] (FP_SUBNORMAL): Likewise.
6364         [C99-based standards] (FP_ZERO): Likewise.
6365         [C99-based standards] (FP_FAST_FMA): Use
6366         optional-macro-int-constant.  Specify type.  Require == 1.
6367         [C99-based standards] (FP_FAST_FMAF): Likewise.
6368         [C99-based standards] (FP_FAST_FMAL): Likewise.
6369         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6370         [C99-based standards] (FP_ILOGBNAN): Likewise.
6371         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6372         Specify type.
6373         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6374         [C99-based standards] (math_errhandling): Specify type.
6375         [ISO99 || ISO11] (signgam): Do not allow.
6376         [non-C99-based standards] (copysignf): Do not allow.
6377         [non-C99-based standards] (exp2f): Likewise.
6378         [non-C99-based standards] (log2f): Likewise.
6379         [non-C99-based standards] (modff): Allow.
6380         [non-C99-based standards] (erff): Do not allow.
6381         [non-C99-based standards] (erfcf): Likewise.
6382         [non-C99-based standards] (gammaf): Likewise.
6383         [non-C99-based standards] (hypotf): Likewise.
6384         [non-C99-based standards] (j0f): Likewise.
6385         [non-C99-based standards] (j1f): Likewise.
6386         [non-C99-based standards] (jnf): Likewise.
6387         [non-C99-based standards] (lgammaf): Likewise.
6388         [non-C99-based standards] (tgammaf): Likewise.
6389         [non-C99-based standards] (y0f): Likewise.
6390         [non-C99-based standards] (y1f): Likewise.
6391         [non-C99-based standards] (ynf): Likewise.
6392         [non-C99-based standards] (isnanf): Likewise.
6393         [non-C99-based standards] (acoshf): Likewise.
6394         [non-C99-based standards] (asinhf): Likewise.
6395         [non-C99-based standards] (atanhf): Likewise.
6396         [non-C99-based standards] (cbrtf): Likewise.
6397         [non-C99-based standards] (expm1f): Likewise.
6398         [non-C99-based standards] (ilogbf): Likewise.
6399         [non-C99-based standards] (log1pf): Likewise.
6400         [non-C99-based standards] (logbf): Likewise.
6401         [non-C99-based standards] (nextafterf): Likewise.
6402         [non-C99-based standards] (remainderf): Likewise.
6403         [non-C99-based standards] (rintf): Likewise.
6404         [non-C99-based standards] (scalbf): Likewise.
6405         [non-C99-based standards] (copysignl): Likewise.
6406         [non-C99-based standards] (exp2l): Likewise.
6407         [non-C99-based standards] (log2l): Likewise.
6408         [non-C99-based standards] (modfl): Allow.
6409         [non-C99-based standards] (erfl): Do not allow.
6410         [non-C99-based standards] (erfcl): Likewise.
6411         [non-C99-based standards] (gammal): Likewise.
6412         [non-C99-based standards] (hypotl): Likewise.
6413         [non-C99-based standards] (j0l): Likewise.
6414         [non-C99-based standards] (j1l): Likewise.
6415         [non-C99-based standards] (jnl): Likewise.
6416         [non-C99-based standards] (lgammal): Likewise.
6417         [non-C99-based standards] (tgammal): Likewise.
6418         [non-C99-based standards] (y0l): Likewise.
6419         [non-C99-based standards] (y1l): Likewise.
6420         [non-C99-based standards] (ynl): Likewise.
6421         [non-C99-based standards] (isnanl): Likewise.
6422         [non-C99-based standards] (acoshl): Likewise.
6423         [non-C99-based standards] (asinhl): Likewise.
6424         [non-C99-based standards] (atanhl): Likewise.
6425         [non-C99-based standards] (cbrtl): Likewise.
6426         [non-C99-based standards] (expm1l): Likewise.
6427         [non-C99-based standards] (ilogbl): Likewise.
6428         [non-C99-based standards] (log1pl): Likewise.
6429         [non-C99-based standards] (logbl): Likewise.
6430         [non-C99-based standards] (nextafterl): Likewise.
6431         [non-C99-based standards] (remainderl): Likewise.
6432         [non-C99-based standards] (rintl): Likewise.
6433         [non-C99-based standards] (scalbl): Likewise.
6434         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6435         [non-C99-based standards] (FP_*): Do not allow.
6436         [C99-based standards] (FP_*): Change to
6437         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6438         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6439         allow.
6440         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6441         (SIG_ERR): Likewise.
6442         [X/Open-based standards] (SIG_HOLD): Likewise.
6443         (SIG_IGN): Likewise.
6444         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6445         positive value.
6446         (SIGFPE): Likewise.
6447         (SIGILL): Likewise.
6448         (SIGINT): Likewise.
6449         (SIGSEGV): Likewise.
6450         (SIGTER): Likewise.
6451         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6452         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6453         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6454         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6455         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6456         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6457         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6458         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6459         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6460         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6461         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6462         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6463         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6464         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6465         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6466         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6467         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6468         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6469         [X/Open-based standards] (SIGTRAP): Likewise.
6470         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6471         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6472         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6473         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6474         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6475         allow.
6476
6477 2012-05-08  Ian Wienand  <ianw@vmware.com>
6478
6479         [BZ #14080]
6480         * time/tzset.c (__tzset_parse_tz): Update default rules for
6481         daylight time changes in the Energy Policy Act of 2005.
6482
6483 2012-05-09  Andreas Jaeger  <aj@suse.de>
6484
6485         [BZ #13983]
6486         * elf/ldconfig.c (parse_conf): Change string to make clear that
6487         ldconfig only issued a warning if ld.so.conf does not exist.
6488
6489 2012-05-08  David S. Miller  <davem@davemloft.net>
6490
6491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6492         movxtod instead of popping the value on the stack.
6493
6494         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6495
6496 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6497
6498         * config.h.in: Add HAVE_ARM_PCS_VFP.
6499
6500 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6501
6502         [BZ #13979]
6503         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6504         checking but the checks are disabled for any reason.
6505
6506 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6507
6508         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6509         and ELF64_R_TYPE with ELFW(R_TYPE).
6510
6511 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6512
6513         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6514         (ulimit): Likewise.
6515
6516         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6517         (settimeofday): Likewise.
6518
6519 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6520
6521         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6522         a struct th_u2 inside the union, and move tu_block/tu_code into
6523         a new th_u3 union of tu_block/tu_code inside of that.  Move
6524         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6525         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6526         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6527         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6528         (th_stuff): Change to th_u1.tu_stuff.
6529         (th_data): Define.
6530         (th_msg): Change to th_u1.th_u2.tu_data.
6531
6532 2012-05-07  David S. Miller  <davem@davemloft.net>
6533
6534         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6535
6536         [BZ #14074]
6537         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6538         (SETUP_PIC_REG): Use it.
6539         (SETUP_PIC_REG_LEAF): Use it.
6540
6541 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6542
6543         [BZ #13885]
6544         [BZ #13923]
6545         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6546         USE_AS_EXPM1L.
6547         (EXPL_FINITE): Likewise.
6548         (FLDLOG): Likewise.
6549         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6550         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6551         e_expl.S.
6552         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6553         USE_AS_EXPM1L.
6554         (EXPL_FINITE): Likewise.
6555         (FLDLOG): Likewise.
6556         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6557         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6558         e_expl.S.
6559         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6560         test of -max_value argument for long double.
6561         * sysdeps/i386/fpu/libm-test-ulps: Update.
6562         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6563
6564 2012-05-06  David S. Miller  <davem@davemloft.net>
6565
6566         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6567         quad soft-float symbols whose references which are compiler
6568         generated.
6569         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6570
6571 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6572
6573         [BZ #13884]
6574         [BZ #13914]
6575         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6576         USE_AS_EXP10L.
6577         (EXPL_FINITE): Likewise.
6578         (FLDLOG): Likewise.
6579         (c0): Likewise.
6580         (c1): Likewise.
6581         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6582         Adjust comments for base varying.
6583         (__expl_finite): Change alias to EXPL_FINITE.
6584         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6585         e_expl.S.
6586         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6587         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6588         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6589         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6590         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6591         USE_AS_EXP10L.
6592         (EXPL_FINITE): Likewise.
6593         (FLDLOG): Likewise.
6594         (c0): Likewise.
6595         (c1): Likewise.
6596         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6597         Adjust comments for base varying.
6598         (__expl_finite): Change alias to EXPL_FINITE.
6599         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6600         tests for bugs.
6601         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6602
6603         [BZ #14064]
6604         * math/libm-test.inc (check_float_internal): Correct ulp
6605         calculation for subnormal expected results.
6606
6607 2012-05-06  Andreas Jaeger  <aj@suse.de>
6608
6609         * Makeconfig (+math-flags): New, set to -frounding-math.
6610         (+cflags): Add +math-flags so that all of glibc gets compiled with
6611         it.
6612
6613         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6614
6615 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6616
6617         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6618         Disable one test.
6619
6620         [BZ #13787]
6621         [BZ #13922]
6622         [BZ #14036]
6623         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6624         (__ieee754_expl): Allow for and saturate large arguments.
6625         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6626         (u_threshold): Likewise.
6627         (__exp): Call __ieee754_exp before checking for overflow and
6628         underflow.
6629         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6630         (u_threshold): Likewise.
6631         (__expf): Call __ieee754_expf before checking for overflow and
6632         underflow.
6633         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6634         (u_threshold): Likewise.
6635         (__expl): Call __ieee754_expl before checking for overflow and
6636         underflow.
6637         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6638         (__ieee754_expl): Allow for and saturate large arguments.
6639         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6640         missing overflow exception on overflow.
6641         (expm1_test): Do not allow missing overflow exception on overflow.
6642
6643         * sysdeps/i386/fpu/e_expl.c: Move to ...
6644         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6645         rather than using inline asm.
6646         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6647         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6648         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6649
6650         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6651         (nice): Likewise.
6652         (poll): Likewise.
6653         (signal): Likewise.
6654         (time): Likewise.
6655         (times): Likewise.
6656
6657 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6658
6659         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6660         sysdeps/unix/common/syscalls.list.
6661         (fchmod): Likewise.
6662         (fchown): Likewise.
6663         (ftruncate): Likewise.
6664         (getrusage): Likewise.
6665         (gettimeofday): Likewise.
6666         (setpgid): Likewise.
6667         (setregid): Likewise.
6668         (setreuid): Likewise.
6669         (sigaction): Likewise.
6670         (truncate): Likewise.
6671         (vhangup): Likewise.
6672         * sysdeps/unix/common/syscalls.list: Remove file.
6673         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6674         * sysdeps/unix/sysv/linux/Implies: Likewise.
6675
6676 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6677
6678         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6679         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6680         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6681         Moved to ...
6682         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6683         Here.
6684         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6685         to ...
6686         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6687         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6688         to ...
6689         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6690         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6691         to ...
6692         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6693         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6694         to ...
6695         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6696         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6697         to ...
6698         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6699         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6700         to ...
6701         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6702         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6703         to ...
6704         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6705         Here.
6706         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6707         to ...
6708         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6709         Here.
6710         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6711         to ...
6712         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6713         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6714         Moved to ...
6715         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6716         Here.
6717         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6718         to ...
6719         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6720
6721 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6722
6723         * sysdeps/unix/common/bits/dirent.h: Remove file.
6724         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6725
6726         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6727         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6728         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6729         * sysdeps/unix/bsd/isatty.c: Likewise.
6730         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6731         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6732         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6733
6734 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6735
6736         [BZ #13563]
6737         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6738         long double comparison inaccuracies.
6739         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6740         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6741
6742 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6743
6744         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6745         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6746
6747 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6748
6749         [BZ #14049]
6750         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6751         nonzero digits before rounding a hex value.
6752         * stdlib/tst-strtod.c (tests): Add another test.
6753
6754 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6755
6756         * sysdeps/s390/fpu/libm-test-ulps: Update.
6757
6758 2012-05-03  Andreas Jaeger  <aj@suse.de>
6759
6760         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6761         does not get optimized out.
6762         (malloc_opt_barrier): New.
6763
6764 2012-05-03  Andreas Jaeger  <aj@suse.de>
6765             Roland McGrath  <roland@hack.frob.com>
6766
6767         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6768         intermediate file deletion.
6769         (generated): Add .symlist files.
6770
6771 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6772
6773         [BZ #13775]
6774         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6775         Redirect under this condition.
6776         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6777         [__USE_GNU] (__dprintf_chk): Not under this condition.
6778         [__USE_GNU] (__vdprintf_chk): Likewise.
6779         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6780         under this condition.
6781         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6782         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6783         [__USE_XOPEN2K8] (vdprintf): Likewise.
6784         [__USE_GNU] (__dprintf_chk): Not under this condition.
6785         [__USE_GNU] (__vdprintf_chk): Likewise.
6786         [__USE_GNU] (dprintf): Likewise.
6787         [__USE_GNU] (vdprintf): Likewise.
6788
6789 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6790
6791         * elf/Makefile (common-generated): Set this instead of generated for
6792         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6793         $(all-built-dso)-derived lists.
6794
6795 2012-05-03  Andreas Jaeger  <aj@suse.de>
6796
6797         * sysdeps/i386/fpu/libm-test-ulps: Update.
6798
6799         * FAQ: Removed.
6800         * FAQ.in: Likewise.
6801         * scripts/gen-FAQ.pl: Likewise.
6802         * manual/install.texi (Installation): Point to online location of
6803         FAQ.
6804         * Makefile (files-for-dist): Remove FAQ.
6805         (FAQ): Remove.
6806
6807 2012-05-02  Allan McRae  <allan@archlinux.org>
6808
6809         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6810         (LDFLAGS-reldepmod5.so): Likewise.
6811         (LDFLAGS-reldep6mod1.so): Likewise.
6812         (LDFLAGS-reldep6mod4.so): Likewise.
6813         (LDFLAGS-reldep8mod3.so): Likewise.
6814         (LDFLAGS-unload4mod1.so): Likewise.
6815         (LDFLAGS-unload4mod2.so): Likewise.
6816         (LDFLAGS-tst-initorder): Likewise.
6817         (LDFLAGS-tst-initordera2.so): Likewise.
6818         (LDFLAGS-tst-initordera3.so): Likewise.
6819         (LDFLAGS-tst-initordera4.so): Likewise.
6820         (LDFLAGS-tst-initorderb2.so): Likewise.
6821         (LDFLAGS-noload): Likewise.
6822         (LDFLAGS-next): Likewise.
6823         (LDFLAGS-order2mod1.so): Likewise.
6824         (LDFLAGS-order2mod2.so): Likewise.
6825         (LDFLAGS-tst-initorder2): Likewise.
6826         (LDFLAGS-tst-initorder2a.so): Likewise.
6827         (LDFLAGS-tst-initorder2b.so): Likewise.
6828         (LDFLAGS-tst-initorder2c.so): Likewise.
6829         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6830
6831 2012-05-02  David S. Miller  <davem@davemloft.net>
6832
6833         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6834
6835 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6836
6837         [BZ #14055]
6838         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6839
6840 2012-05-02  Andreas Jaeger  <aj@suse.de>
6841
6842         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6843         since we manipulate rounding mode.
6844         (CPPFLAGS-test-idouble.c): Likewise.
6845         (CPPFLAGS-test-ifloat.c): Likewise.
6846         (CFLAGS-test-ldouble.c): Likewise.
6847         (CFLAGS-test-double.c): Likewise.
6848         (CFLAGS-test-float.c): Likewise.
6849         (CFLAGS-test-misc.c): Likewise.
6850         (CFLAGS-test-test-fenv.c): Likewise.
6851
6852 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6853
6854         [BZ #2550]
6855         [BZ #2570]
6856         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6857         comparisons to determine direction to adjust input.
6858
6859 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6860
6861         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6862         output to the target.
6863
6864         * scripts/localplt.awk: New file.
6865         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6866         (check-localplt-CFLAGS): Variable removed.
6867         ($(all-built-dso:=.jmprel)): New static pattern rule.
6868         (generated): Add those targets.
6869         (localplt-built-dso): New variable.
6870         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6871
6872         * elf/check-localplt.c: File removed.
6873
6874         * scripts/check-execstack.awk: New file.
6875         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6876         (check-execstack-CFLAGS): Variable removed.
6877         ($(objpfx)check-execstack.h): Target removed.
6878         ($(objpfx)execstack-default): New target.
6879         (generated): Add that instead of check-execstack.h.
6880         ($(all-built-dso:=.phdr)): New static pattern rule.
6881         (generated): Add those targets.
6882         * elf/check-execstack.c: File removed.
6883
6884         * scripts/check-textrel.awk: New file.
6885         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6886         (check-textrel-CFLAGS): Variable removed.
6887         (all-built-dso): Use := to define.o
6888         ($(all-built-dso:=.dyn)): New static pattern rule.
6889         (generated): Add those targets.
6890         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6891         * config.make.in (READELF): New substituted variable.
6892         * elf/check-textrel.c: File removed.
6893
6894 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6895
6896         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6897         allow.
6898         * conform/data/ctype.h-data [C99-based standards] (isblank):
6899         Expect function.
6900         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6901         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6902         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6903         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6904         Specify type.  Require positive value.
6905         (EILSEQ): Likewise.
6906         (ERANGE): Likewise.
6907         [ISO || POSIX] (EILSEQ): Do not expect.
6908         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6909         Specify type.  Require positive value.
6910         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6911         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6912         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6913         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6914         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6915         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6916         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6917         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6918         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6919         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6920         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6921         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6922         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6923         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6924         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6925         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6926         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6927         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6928         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6929         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6930         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6931         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6932         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6933         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6934         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6935         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6936         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6937         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6938         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6939         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6940         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6941         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6942         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6943         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6944         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6945         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6946         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6947         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6948         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6949         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6950         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6951         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6952         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6953         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6954         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6955         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6956         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6957         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6958         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6959         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6960         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6961         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6962         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6963         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6964         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6965         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6966         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6967         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6968         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6969         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6970         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6971         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6972         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6973         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6974         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6975         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6976         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6977         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6978         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6979         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6980         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6981         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6982         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6983         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6984         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6985         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6986         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6987         Require >= 2.
6988         (FLT_ROUNDS): Expect as macro, not constant.
6989         (FLT_MANT_DIG): Use macro-int-constant.
6990         (DBL_MANT_DIG): Likewise.
6991         (LDBL_MANT_DIG): Likewise.
6992         (FLT_DIG): Likewise.
6993         (DBL_DIG): Likewise.
6994         (LDBL_DIG): Likewise.
6995         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6996         (DBL_MIN_EXP): Likewise.
6997         (LDBL_MIN_EXP): Likewise.
6998         (FLT_MAX_EXP): Use macro-int-constant.
6999         (DBL_MAX_EXP): Likewise.
7000         (LDBL_MAX_EXP): Likewise.
7001         (FLT_MAX_10_EXP): Likewise.
7002         (DBL_MAX_10_EXP): Likewise.
7003         (LDBL_MAX_10_EXP): Likewise.
7004         (FLT_MAX): Use macro-constant.
7005         (DBL_MAX): Likewise.
7006         (LDBL_MAX): Likewise.
7007         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7008         (DBL_EPSILON): Likewise.
7009         (LDBL_EPSILON): Likewise.
7010         (FLT_MIN): Likewise.
7011         (DBL_MIN): Likewise.
7012         (LDBL_MIN): Likewise.
7013         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7014         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7015         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7016         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7017         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7018         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7019         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7020         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7021         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7022         [ISO11] (FLT_TRUE_MIN): Likewise.
7023         [ISO11] (LDBL_TRUE_MIN): Likewise.
7024         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7025         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7026         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7027         (SCHAR_MAX): Likewise.
7028         (UCHAR_MAX): Likewise.
7029         (CHAR_MIN): Likewise.
7030         (CHAR_MAX): Likewise.
7031         (MB_LEN_MAX): Use macro-int-constant.
7032         (SHRT_MIN): Use macro-int-constant.  Specify type.
7033         (SHRT_MAX): Likewise.
7034         (USHRT_MAX): Likewise.
7035         (INT_MAX): Likewise.
7036         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7037         bound negative.
7038         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7039         bound with "U".
7040         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7041         bound with "L".
7042         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7043         bound negative.  Suffix upper bound with "L".
7044         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7045         bound with "UL".
7046         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7047         Specify type.
7048         [C99-based standards] (LLONG_MAX): Likewise.
7049         [C99-based standards] (ULLONG_MAX): Likewise.
7050         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7051         == 0.
7052         [ISO11] (max_align_t): Require type.
7053         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7054
7055         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7056         from $CFLAGS, without defining away __attribute__ calls.
7057         (checknamespace): Use $CFLAGS_namespace.
7058
7059         * conform/conformtest.pl (@keywords): Only include C99 keywords
7060         for standards based on C99 or C11.
7061
7062         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7063         Disable tests.
7064         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7065         UNIX98]: Likewise.
7066
7067         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7068         usability of symbols in #if.
7069
7070         * conform/conformtest.pl: If macro or constant types start
7071         "promoted:", expect the symbol to be of the following type
7072         promoted by the integer promotions.
7073
7074         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7075         in one place.  Also handle "macro-constant".
7076
7077         * conform/conformtest.pl: Only accept expected macro values with
7078         "==".  Parse all "macro" lines in one place.
7079         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7080
7081         * conform/conformtest.pl: Handle braced types on "constant" lines
7082         instead of handling "typed-constant".
7083         * conform/data/signal.h-data: Use "constant" instead of
7084         "typed-constant".
7085
7086         * conform/conformtest.pl: Handle "optional-" at start of lines in
7087         one place rather than duplicating several cases.  Handle each
7088         format of "macro" line with initial "optional-".
7089
7090         * conform/conformtest.pl: Only accept expected constant or
7091         optional-constant values with "==".  Parse all "constant" lines in
7092         one place.  Parse all "optional-constant" lines in one place.
7093         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7094         * conform/data/fmtmsg.h-data: Likewise.
7095         * conform/data/netinet/in.h-data: Likewise.
7096         * conform/data/tar.h-data: Likewise.
7097         * conform/data/limits.h-data: Use "==" form on "constant" and
7098         "optional-constant" lines.
7099
7100         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7101         Use -std=c99 for XOPEN2K.
7102         (@knownproblems): Remove.
7103         (newtoken): Don't check %isknown.
7104
7105         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7106         Do not expect macro.
7107         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7108         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7109         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7110         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7111         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7112         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7113         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7114         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7115         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7116         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7117         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7118         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7119         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7120         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7121         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7122         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7123         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7124         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7125         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7126         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7127         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7128         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7129         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7130         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7131         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7132         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7133         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7134         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7135         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7136         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7137         [XPG3] (acosh): Likewise.
7138         [XPG3] (asinh): Likewise.
7139         [XPG3] (atanh): Likewise.
7140         [XPG3] (cbrt): Likewise.
7141         [XPG3] (expm1): Likewise.
7142         [XPG3] (ilogb): Likewise.
7143         [XPG3] (log1p): Likewise.
7144         [XPG3] (logb): Likewise.
7145         [XPG3] (nextafter): Likewise.
7146         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7147         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7148         [XPG3] (remainder): Likewise.
7149         [XPG3] (rint): Likewise.
7150         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7151         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7152         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7153         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7154         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7155         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7156         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7157         [UNIX98 || XOPEN2K] (scalb): Expect.
7158         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7159         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7160         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7161         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7162         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7163         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7164         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7165         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7166         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7167         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7168         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7169         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7170         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7171         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7172         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7173         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7174         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7175         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7176         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7177         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7178         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7179         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7180         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7181         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7182         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7183         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7184         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7185         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7186         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7187         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7188         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7189         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7190         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7191         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7192         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7193         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7194         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7195         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7196         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7197         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7198         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7199         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7200         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7201         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7202         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7203         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7204         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7205         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7206         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7207         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7208         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7209         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7210         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7211         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7212         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7213         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7214         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7215         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7216         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7217         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7218         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7219         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7220         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7221         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7222         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7223         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7224         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7225         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7226         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7227         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7228         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7229         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7230         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7231         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7232         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7233         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7234         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7235         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7236         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7237         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7238         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7239         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7240         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7241         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7242         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7243         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7244         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7245         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7246         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7247         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7248         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7249         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7250         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7251         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7252         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7253         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7254         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7255         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7256         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7257         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7258         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7259         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7260         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7261         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7262         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7263         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7264         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7265         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7266         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7267         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7268         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7269         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7270         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7271         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7272         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7273         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7274         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7275         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7276         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7277         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7278         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7279         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7280         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7281         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7282         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7283         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7284         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7285         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7286         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7287         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7288         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7289         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7290         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7291         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7292         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7293         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7294         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7295
7296         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7297         _XOPEN_SOURCE_EXTENDED for XPG4.
7298
7299         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7300
7301         * Makeconfig (localtime): Remove variable.
7302         (inst_localtime-file): Likewise.
7303
7304 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7305
7306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7307         Update.
7308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7309         Update.
7310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7311         Update.
7312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7313         Update.
7314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7315         Update.
7316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7317         Update.
7318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7319         Update.
7320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7321         Update.
7322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7323         Update.
7324
7325 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7326
7327         [BZ #2550]
7328         [BZ #2570]
7329         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7330         comparisons to determine direction to adjust input.
7331         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7332         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7333         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7334         Likewise.
7335         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7336         Likewise.
7337         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7338         Likewise.
7339         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7340         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7341         Likewise.
7342         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7343         Likewise.
7344         * math/libm-test.inc (nexttoward_test): Add more tests.
7345
7346 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7347
7348         [BZ #14040]
7349         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7350         in version GLIBC_2.1, not GLIBC_2.0.
7351         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7352         Likewise.
7353
7354 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7355
7356         [BZ #13942]
7357         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7358         (1 - x) * (1 + x).
7359         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7360         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7361         * math/libm-test.inc (acos_test): Add more tests.
7362         (asin_test): Likewise.
7363         * sysdeps/i386/fpu/libm-test-ulps: Update.
7364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7365
7366         [BZ #14034]
7367         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7368         of square root.
7369         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7370         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7371         * math/libm-test.inc (acos_test_tonearest): New function.
7372         (acos_test_towardzero): Likewise.
7373         (acos_test_downward): Likewise.
7374         (acos_test_upward): Likewise.
7375         (asin_test_tonearest): Likewise.
7376         (asin_test_towardzero): Likewise.
7377         (asin_test_downward): Likewise.
7378         (asin_test_upward): Likewise.
7379         (main): Call the new functions.
7380         * sysdeps/i386/fpu/libm-test-ulps: Update.
7381         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7382
7383         [BZ #13884]
7384         [BZ #13924]
7385         * math/e_exp10.c: Include <float.h>.
7386         (__ieee754_exp10): Handle underflow here rather than multiplying
7387         large negative argument by M_LN10.
7388         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7389         of __ieee754_expf.
7390         * math/e_exp10l.c: Include <float.h>.
7391         (__ieee754_exp10l): Handle underflow here rather than multiplying
7392         large negative argument by M_LN10l.
7393         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7394         spurious overflow exception on underflow.
7395
7396 2012-04-29  Marek Polacek  <polacek@redhat.com>
7397
7398         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7399         (__fortify_function): New macro.
7400         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7401         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7402         __extern_always_inline.
7403         * libio/bits/stdio2.h: Likewise.
7404         * libio/bits/stdio.h: Likewise.
7405         * string/string.h: Likewise.
7406         * string/bits/string3.h: Likewise.
7407         * include/stdio.h: Likewise.
7408         * stdlib/bits/stdlib.h: Likewise.
7409         * stdlib/stdlib.h: Likewise.
7410         * rt/bits/mqueue2.h: Likewise.
7411         * rt/mqueue.h: Likewise.
7412         * posix/bits/unistd.h: Likewise.
7413         * posix/unistd.h: Likewise.
7414         * io/bits/poll2.h: Likewise.
7415         * io/bits/fcntl2.h: Likewise.
7416         * io/fcntl.h: Likewise.
7417         * io/sys/poll.h: Likewise.
7418         * misc/bits/syslog.h: Likewise.
7419         * misc/bits/syslog-ldbl.h: Likewise.
7420         * misc/sys/syslog.h: Likewise.
7421         * socket/bits/socket2.h: Likewise.
7422         * socket/sys/socket.h: Likewise.
7423         * debug/tst-chk1.c: Likewise.
7424         * wcsmbs/bits/wchar2.h: Likewise.
7425         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7426         * wcsmbs/wchar.h: Likewise.
7427
7428 2012-04-29  Andreas Jaeger  <aj@suse.de>
7429
7430         * Makerules (tests): Remove enable-check-abi protection.
7431         (check-abi-warn): Remove.
7432         (check-abi-%): Remove check-abi-warn usage.
7433
7434         * configure.in: Remove check-abi configure option.
7435         * configure: Regenerated.
7436         * config.make.in (enable-check-abi): Remove.
7437
7438 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7439
7440         [BZ #14033]
7441         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7442         double functions to double *_finite functions.
7443
7444         [BZ #13941]
7445         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7446         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7447         LDBL_MIN_EXP.
7448         * stdio-common/Makefile (tests): Add tst-sprintf3.
7449         * stdio-common/tst-sprintf3.c: New file.
7450
7451         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7452         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7453
7454 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7455
7456         * conform/conformtest.pl: Remove duplicate typed-constant
7457         handling.
7458
7459 2012-04-28  David S. Miller  <davem@davemloft.net>
7460
7461         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7462         (check-abi-%): Remove AWK script prerequisite and explicit
7463         abilist directory.
7464         (check-abi): Rewrite to just diff the symlist with the abilist.
7465         (config-tls, config-abi-config): Delete, no longer used.
7466         (update-abi-%): Remove AWK script and explicit abilist directory.
7467         (update-abi): Rewrite to simply compare and conditionally copy the
7468         symlist and the sysdep abilist file.  Remove update-abi-config
7469         checks.
7470         * abilist/ld.abilist: Remove.
7471         * abilist/libBrokenLocale.abilist: Remove.
7472         * abilist/libanl.abilist: Remove.
7473         * abilist/libcrypt.abilist: Remove.
7474         * abilist/libdl.abilist: Remove.
7475         * abilist/librt.abilist: Remove.
7476         * abilist/libthread_db.abilist: Remove.
7477         * abilist/libutil.abilist: Remove.
7478         * scripts/extract-abilist.awk: Remove.
7479         * scripts/merge-abilist.awk: Remove.
7480         * sysdeps/generic/libcidn.abilist: New file.
7481         * sysdeps/generic/libnss_compat.abilist: New file.
7482         * sysdeps/generic/libnss_db.abilist: New file.
7483         * sysdeps/generic/libnss_dns.abilist: New file.
7484         * sysdeps/generic/libnss_files.abilist: New file.
7485         * sysdeps/generic/libnss_hesiod.abilist: New file.
7486         * sysdeps/generic/libnss_nis.abilist: New file.
7487         * sysdeps/generic/libnss_nisplus.abilist: New file.
7488         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7489         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7490         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7491         file.
7492         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7493         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7494         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7495         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7496         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7497         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7498         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7499         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7500         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7501         file.
7502         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7503         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7504         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7505         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7506         file.
7507         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7508         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7509         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7510         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7511         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7512         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7513         file.
7514         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7515         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7516         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7517         file.
7518         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7519         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7520         New file.
7521         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7522         New file.
7523         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7524         New file.
7525         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7526         New file.
7527         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7528         New file.
7529         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7530         New file.
7531         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7532         New file.
7533         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7534         New file.
7535         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7536         New file.
7537         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7538         New file.
7539         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7540         New file.
7541         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7542         New file.
7543         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7544         New file.
7545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7546         file.
7547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7548         New file.
7549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7550         New file.
7551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7552         file.
7553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7554         New file.
7555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7556         New file.
7557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7558         file.
7559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7560         New file.
7561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7562         New file.
7563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7564         New file.
7565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7566         New file.
7567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7568         New file.
7569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7570         New file.
7571         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7573         file.
7574         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7575         New file.
7576         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7577         file.
7578         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7579         file.
7580         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7581         file.
7582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7583         file.
7584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7585         file.
7586         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7587         New file.
7588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7589         file.
7590         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7591         file.
7592         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7593         New file.
7594         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7595         file.
7596         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7597         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7598         file.
7599         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7600         New file.
7601         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7602         file.
7603         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7604         file.
7605         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7606         file.
7607         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7608         file.
7609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7610         file.
7611         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7612         New file.
7613         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7614         file.
7615         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7616         file.
7617         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7618         New file.
7619         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7620         file.
7621         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7622         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7623         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7624         file.
7625         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7626         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7627         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7628         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7629         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7630         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7631         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7632         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7633         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7634         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7635         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7636         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7637         file.
7638         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7639         New file.
7640         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7641         file.
7642         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7643         file.
7644         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7645         file.
7646         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7647         file.
7648         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7649         file.
7650         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7651         New file.
7652         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7653         New file.
7654         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7655         file.
7656         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7657         New file.
7658         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7659         file.
7660         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7661         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7662         file.
7663         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7664         New file.
7665         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7666         file.
7667         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7668         file.
7669         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7670         file.
7671         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7672         file.
7673         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7674         file.
7675         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7676         New file.
7677         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7678         New file.
7679         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7680         file.
7681         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7682         New file.
7683         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7684         file.
7685
7686 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7687
7688         * conform/conformtest.pl: Fix typo in handling typed-constant from
7689         allow-header.
7690
7691 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7692
7693         * README: Cut down references to pre-2.6 Linux kernels and
7694         Linuxthreads.  Update lists of configurations in libc and ports
7695         and sort alphabetically.  Say "or newer" with Linux kernel version
7696         requirements.
7697
7698         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7699
7700 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7701
7702         [BZ #887]
7703         * math/libm-test.inc (logb_test_downward): New test to expose
7704         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7705         rounding mode.
7706
7707 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7708
7709         [BZ #14027]
7710         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7711         to be done.
7712         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7713         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7714
7715 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7716
7717         * sysdeps/unix/i386/brk.S: Remove file.
7718         * sysdeps/unix/i386/dl-brk.S: Likewise.
7719         * sysdeps/unix/i386/pipe.S: Likewise.
7720         * sysdeps/unix/i386/sigreturn.S: Likewise.
7721         * sysdeps/unix/i386/syscall.S: Likewise.
7722         * sysdeps/unix/i386/vfork.S: Likewise.
7723         * sysdeps/unix/i386/wait.S: Likewise.
7724
7725         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7726         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7727
7728         * configure.in (arm*-none*): Do not allow without
7729         --enable-hacker-mode.
7730         (netbsd*): Remove case setting base_os.
7731         (386bsd*): Likewise.
7732         (freebsd*): Likewise.
7733         (bsdi*): Likewise.
7734         (osf*): Likewise.
7735         (sunos*): Likewise.
7736         (ultrix*): Likewise.
7737         (newsos*): Likewise.
7738         (dynix*): Likewise.
7739         (*bsd*): Likewise.
7740         (sysv*): Likewise.
7741         (isc*): Likewise.
7742         (esix*): Likewise.
7743         (sco*): Likewise.
7744         (minix*): Likewise.
7745         (irix4*): Likewise.
7746         (irix6*): Likewise.
7747         (solaris[2-9]*): Likewise.
7748         (none): Likewise.
7749         * configure: Regenerated.
7750
7751 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7752
7753         [BZ #11521]
7754         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7755         overflow or cancellation in calculating denominator.
7756         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7757         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7758         down expression to avoid unexpected rounding in newer GCCs.
7759         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7760
7761 2012-04-26  David S. Miller  <davem@davemloft.net>
7762
7763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7764         long-double compat symbols.
7765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7770         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7772         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7773         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7774         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7775         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7776         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7777         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7778
7779 2012-04-25  David S. Miller  <davem@davemloft.net>
7780
7781         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7782         HWCAP_* values only after the memory barriers have been defined.
7783         (atomic_full_barrier): Define.
7784         (atomic_read_barrier): Define.
7785         (atomic_write_barrier): Define.
7786
7787 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7788
7789         * shlib-versions: Add libgcc_s version information.
7790         * sysdeps/generic/libgcc_s.h: Remove.
7791         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7792         libgcc_s.h.
7793         * sysdeps/gnu/unwind-resume.c: Likewise.
7794         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7795
7796 2012-04-25  David S. Miller  <davem@davemloft.net>
7797
7798         * sysdeps/unix/sparc/brk.S: Delete.
7799         * sysdeps/unix/sparc/dl-brk.S: Delete.
7800         * sysdeps/unix/sparc/pipe.S: Delete.
7801         * sysdeps/unix/sparc/sysdep.S: Delete.
7802         * sysdeps/unix/sparc/sysdep.h: Delete.
7803         * sysdeps/unix/sparc/vfork.S: Delete.
7804         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7805         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7806         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7807         ret_ERRVAL, r0, r1, MOVE): Define.
7808         (JUMPTARGET): Remove.
7809         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7810         sysdeps/unix/sparc/sysdep.h
7811         (ENTRY, END): Remove.
7812         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7813
7814 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7815
7816         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7817         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7818         -DIS_IN_build.
7819
7820         * timezone/README: Update upstream location and email address for
7821         tzcode and tzdata.
7822         * timezone/zdump.c: Update from tzcode 2012b.
7823         * timezone/zic.c: Likewise.
7824
7825         * configure.in (libc_cv_as_needed): Remove test.
7826         * configure: Regenerated.
7827         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7828         conditional definition.
7829         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7830         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7831         * config.make.in (have-as-needed): Remove variable.
7832
7833 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7834             Paul Pluzhnikov  <ppluzhnikov@google.com>
7835
7836         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7837         strings correctly.
7838
7839 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7840
7841         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7842         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7843         * sysdeps/sh/strlen.S: Likewise.
7844
7845 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7846
7847         * sysdeps/unix/fork.S: Remove file.
7848         * sysdeps/unix/i386/fork.S: Likewise.
7849         * sysdeps/unix/sparc/fork.S: Likewise.
7850
7851         * sysdeps/unix/system.c: Remove file.
7852         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7853
7854         * sysdeps/unix/getegid.S: Remove file.
7855         * sysdeps/unix/geteuid.S: Likewise.
7856
7857 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7858
7859         * scripts/check-localplt.awk: New file.
7860         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7861         of diff.
7862         * scripts/data/localplt-generic.data: Add a comment.
7863
7864         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7865         NODE when __dir_mkfile failed.
7866         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7867         Reported by Ludovic Courtès <ludo@gnu.org>.
7868
7869 2012-04-24  Andreas Jaeger  <aj@suse.de>
7870
7871         * Makerules (common-clean): Also remove gen-as-const-headers
7872         files.
7873
7874 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7875
7876         * Makerules (native-compile): Do not change working directory for
7877         build.  Use $(OUTPUT_OPTION) in command.
7878         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7879
7880 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7881
7882         [BZ #13886]
7883         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7884         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7885         * math/libm-test.inc (floor_test): Add more tests.
7886         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7887
7888 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7889
7890         * sysdeps/unix/getdents.c: Remove file.
7891         * sysdeps/unix/sysv/getdents.c: Likewise.
7892         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7893
7894         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7895         sysdeps/unix/mman/syscalls.list.
7896         (mmap): Likewise.
7897         (mprotect): Likewise.
7898         (msync): Likewise.
7899         (munmap): Likewise.
7900         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7901         * sysdeps/unix/mman/syscalls.list: Remove.
7902         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7903
7904         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7905         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7906         * configure: Regenerated.
7907         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7908         $(libgcc_s_suffix).
7909         * config.make.in (libgcc_s_suffix): Remove variable.
7910
7911 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7912
7913         * sysdeps/unix/sysv/gethostname.c: Move to ...
7914         * sysdeps/posix/gethostname.c: ... here.
7915
7916         * sysdeps/unix/execve.S: Remove file.
7917
7918         * sysdeps/unix/_exit.S: Remove file.
7919
7920 2012-04-23  Andreas Jaeger  <aj@suse.de>
7921
7922         [BZ #13739]
7923         * manual/Makefile: Remove make dist support, there's no
7924         need for a stand-alone documentation tar ball.
7925         (TEXI2DVI): Define always, it's not in Makeconfig.
7926         (dist): Removed.
7927         (tar-it): Removed.
7928         (edition): Removed.
7929         (glibc-doc-$(edition).tar): Removed
7930         (%.Z): Removed.
7931         (%.gz): Removed.
7932         (%.uu): Removed.
7933         (ETAGS): Remove, it's in Makeconfig.
7934         (move-if-change): Remove, it's in Makeconfig.
7935
7936 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7937
7938         [BZ #13970]
7939         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7940         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7941         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7942         (strtod_l, strtof_l, strtold_l): Remove __wur.
7943         It is not necessarily an error to ignore strtol's return value.
7944         One can reliably look at the stored endptr to decide whether
7945         the number had valid syntax.
7946
7947 2012-04-21  Andreas Jaeger  <aj@suse.de>
7948
7949         [BZ #13739]
7950         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7951
7952 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7953
7954         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7955         * sysdeps/unix/sysv/Versions: Remove file.
7956
7957 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7958
7959         [BZ #13927]
7960         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7961
7962 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7963
7964         [BZ #7064]
7965         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7966         version from __vm86.
7967
7968 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7969
7970         * sysdeps/unix/common/lxstat.c: Remove file.
7971         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7972
7973         * sysdeps/unix/sysv/Makefile: Remove file.
7974
7975         * sysdeps/unix/sysv/direct.h: Remove file.
7976
7977         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7978         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7979         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7980         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7981         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7982         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7983         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7984
7985         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7986
7987         * sysdeps/unix/xmknod.c: Remove file.
7988         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7989
7990         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7991
7992         * sysdeps/unix/sysv/i386/time.S: Remove file.
7993
7994         * sysdeps/unix/fxstat.c: Remove file.
7995         * sysdeps/unix/xstat.c: Likewise.
7996         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7997
7998         * sysdeps/unix/sysv/sigaction.c: Remove file.
7999
8000         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8001         (sysdep_headers): Remove variable.
8002         [termio.h not in sysdep_headers] (generated): Likewise.
8003         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8004         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8005         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8006         * sysdeps/unix/sysv/tcflow.c: Likewise.
8007         * sysdeps/unix/sysv/tcflush.c: Likewise.
8008         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8009         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8010         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8011         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8012         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8013
8014         * sysdeps/unix/siglist.c: Remove file.
8015
8016         * sysdeps/unix/getppid.S: Remove file.
8017
8018         * sysdeps/unix/mkdir.c: Remove file.
8019         * sysdeps/unix/rmdir.c: Likewise.
8020
8021 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8022
8023         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8024         ERR_MAX value.
8025         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8026         errlist-compat value.
8027
8028 2012-04-18  David S. Miller  <davem@davemloft.net>
8029
8030         * sysdeps/generic/memcopy.h (reg_char): Delete.
8031         * debug/strcat_chk.c: Use char, not reg_char.
8032         * debug/strcpy_chk.c: Likewise.
8033         * debug/strncat_chk.c: Likewise.
8034         * debug/strncpy_chk.c: Likewise.
8035         * string/memchr.c: Likewise.
8036         * string/memrchr.c: Likewise.
8037         * string/rawmemchr.c: Likewise.
8038         * string/strcat.c: Likewise.
8039         * string/strchr.c: Likewise.
8040         * string/strchrnul.c: Likewise.
8041         * string/strcmp.c: Likewise.
8042         * string/strcpy.c: Likewise.
8043         * string/strncat.c: Likewise.
8044         * string/strncmp.c: Likewise.
8045         * string/strncpy.c: Likewise.
8046
8047 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8048
8049         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8050         __builtin_memcopy is called when src and dest ranges are known to not
8051         overlap.
8052
8053 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8054
8055         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8056         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8057         fwd_align_merge macro call.
8058         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8059         bwd_align_merge macro call.
8060         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8061
8062 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8063
8064         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8065         bwd_align_merge macros.
8066         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8067         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8068         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8069
8070 2012-04-18  David S. Miller  <davem@davemloft.net>
8071
8072         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8073
8074 2012-04-18  Andreas Jaeger  <aj@suse.de>
8075
8076         [BZ# 6794]
8077         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8078         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8079         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8080
8081         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8082         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8083         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8084
8085         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8086         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8087         Adjust for changed ldbl-128 files.
8088
8089         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8090         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8091         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8092
8093 2012-04-17  David S. Miller  <davem@davemloft.net>
8094
8095         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8096
8097 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8098
8099         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8100         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8101         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8102         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8103         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8104         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8105
8106 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8107
8108         [BZ #6794]
8109         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8110         * math/libm-test.inc: Add ilogb errno and exception tests.
8111         * math/w_ilogb.c: New file: ilogb wrapper.
8112         * math/w_ilogbf.c: New file: ilogbf wrapper.
8113         * math/w_ilogbl.c: New file: ilogbl wrapper.
8114         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8115         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8116         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8117         exception being thrown with 0.0 as argument.
8118         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8119         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8120         exception being thrown with 0.0 as argument.
8121         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8122         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8123         exception being thrown with 0.0 as argument.
8124         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8125         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8126         exception being thrown with 0.0 as argument.
8127         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8128         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8129         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8130         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8131         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8132         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8133         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8134         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8135         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8136
8137 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8138
8139         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8140         with altivec.
8141
8142 2012-04-16  Marek Polacek  <polacek@redhat.com>
8143
8144         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8145
8146 2012-04-16  Marek Polacek  <polacek@redhat.com>
8147
8148         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8149         operands of fdivp instruction.
8150
8151 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8152
8153         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8154         * elf/tst-auditmod3b.c: Likewise.
8155         * elf/tst-auditmod4b.c: Likewise.
8156         * elf/tst-auditmod5b.c: Likewise.
8157         * elf/tst-auditmod6b.c: Likewise.
8158         * elf/tst-auditmod6c.c: Likewise.
8159         * elf/tst-auditmod7b.c: Likewise.
8160         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8161         * sysdeps/x86_64/preconfigure.in: Likewise.
8162         * sysdeps/x86_64/preconfigure: Regenerated.
8163
8164 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8165
8166         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8167         __ILP32__.
8168
8169 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8170
8171         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8172         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8173
8174 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8175
8176         [BZ #13973]
8177         * locale/iso-639.def: Fix gl language name. Spotted by
8178         Yaron Shahrabani.
8179
8180 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8181
8182         [BZ #2074]
8183         * libio/libio.h (__io_write_fn): Update comment.
8184
8185 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8186
8187         [BZ #2074]
8188         * stdio.texi (Hook Functions): The user provided writer function
8189         is not allowed to return -1.
8190
8191 2012-04-11  David S. Miller  <davem@davemloft.net>
8192
8193         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8194
8195 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8196
8197         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8198         Add a leading slash to rtkaio.
8199
8200 2012-04-11  Jim Meyering  <meyering@redhat.com>
8201
8202         [BZ #11959]
8203         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8204         It is not necessarily an error to ignore fwrite's return
8205         value.  One can reliably use ferror to test for errors after
8206         the fact.
8207
8208 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8209
8210         * bits/types.h (__snseconds_t): New type.
8211         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8212
8213         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8214         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8215         (__SNSECONDS_T_TYPE): Likewise.
8216         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8217         (__SNSECONDS_T_TYPE): Likewise.
8218         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8219         (__SNSECONDS_T_TYPE): Likewise.
8220
8221 2012-04-10  Andreas Jaeger  <aj@suse.de>
8222
8223         [BZ #2636]
8224         * manual/time.texi (Processor Time): Return type of times is
8225         elapsed real time since an arbitrary point in the past.
8226         (CPU Time): Move CLK_TCK from here...
8227         (Processor Time): ...to here.  Correct description.
8228         * manual/conf.texi (Constants for Sysconf): Correct description of
8229         _SC_CLK_TCK.
8230
8231 2012-04-10  David S. Miller  <davem@davemloft.net>
8232
8233         [BZ #13967]
8234         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8235         where the is a gap between DT_REL(A) and DT_JMPREL.
8236
8237 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8238
8239         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8240         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8241         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8242
8243 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8244
8245         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8246         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8247         (dl_main): Handle --inhibit-cache.
8248         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8249         _dl_inhibit_cache.
8250         * elf/dl-load.c (_dl_map_object): Use it.
8251         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8252
8253 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8254
8255         [BZ #13872]
8256         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8257         (__ieee754_powl): Saturate large exponents rather than testing for
8258         overflow of y*log2(x).
8259         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8260         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8261         exceptions.
8262
8263         [BZ #11521]
8264         * math/s_ctan.c: Include <float.h>.
8265         (__ctan): Avoid internal overflow or cancellation in calculating
8266         denominator.
8267         * math/s_ctanf.c: Likewise.
8268         * math/s_ctanl.c: Likewise.
8269         * math/s_ctanh.c: Likewise.
8270         * math/s_ctanhf.c: Likewise.
8271         * math/s_ctanhl.c: Likewise.
8272         * math/libm-test.inc (ctan_test): Add more tests.
8273         (ctanh_test): Likewise.
8274         * sysdeps/i386/fpu/libm-test-ulps: Update.
8275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8276
8277 2012-04-09  Andreas Jaeger  <aj@suse.de>
8278
8279         [BZ #6894]
8280         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8281         is an optional BSD extension.
8282
8283         [BZ #10254]
8284         * manual/stdio.texi (Opening Streams): Document additional fopen
8285         parameters.
8286
8287 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8288
8289         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8290         %eax without telling the compiler.
8291
8292 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8293
8294         [BZ # 13963]
8295         * manual/install.texi: Use sourceware.org.
8296
8297 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8298
8299         [BZ #13873]
8300         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8301         (__ieee754_pow): Generate overflow and underflow using huge*huge
8302         and tiny*tiny rather than just returning constant infinity or zero
8303         for large exponents.
8304         * math/libm-test.inc (pow_test): Require overflow exceptions for
8305         applicable cases of large exponents.
8306
8307         [BZ #706]
8308         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8309         (__ieee754_pow): Use iterative multiplication algorithm only for
8310         integer exponents with absolute value below 1024.  Check for odd
8311         integer exponents when using algorithm for real exponents.
8312         * math/libm-test.inc (pow_test): Add more tests.
8313         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8314
8315 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8316
8317         [BZ #13705]
8318         * math/libm-test.inc (exp_test): Do not allow overflow exception
8319         on underflow test.
8320
8321 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8322
8323         [BZ #13705]
8324         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8325         instead of __kernel_standard_f.
8326
8327 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8328
8329         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8330         * sysdeps/x86_64/memset_chk.S: Likewise.
8331
8332 2012-04-08  Andreas Jaeger  <aj@suse.de>
8333
8334         [BZ #10153]
8335         * manual/startup.texi (Environment Access): Describe return value
8336         for putenv and setenv.
8337
8338         [BZ #6895]
8339         * manual/filesys.texi (Directory Entries): Add description for
8340         DT_LNK.
8341
8342         [BZ #6890]
8343         * manual/filesys.texi (Directory Entries): Clarify that it's file
8344         system not operating system in the description of DT_UNKNOWN.
8345
8346         [BZ #6578]
8347         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8348
8349 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8350
8351         [BZ #6649]
8352         * manual/llio.texi (Opening and Closing Files): Add cross
8353         reference to explain mode argument.
8354
8355 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8356
8357         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8358         * sysdeps/x86_64/memset_chk.S: Likewise.
8359
8360 2012-04-07  David S. Miller  <davem@davemloft.net>
8361
8362         * elf/elf.h (R_SPARC_WDISP10): Define.
8363         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8364         R_SPARC_SIZE32.
8365         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8366         R_SPARC_SIZE64 and R_SPARC_H34.
8367
8368 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8369
8370         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8371         conditions and remove no longer applicable assertion.
8372
8373 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8374
8375         * bits/byteswap.h: Include <features.h>.
8376         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8377         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8378
8379 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8380
8381         * bits/byteswap.h (__bswap_16): Removed.
8382         Include <bits/byteswap-16.h> to get __bswap_16.
8383         * sysdeps/i386/bits/byteswap.h: Likewise.
8384         * sysdeps/s390/bits/byteswap.h: Likewise.
8385         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8386         * bits/byteswap-16.h: New file.
8387         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8388         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8389         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8390         * string/Makefile (headers): Add bits/byteswap-16.h.
8391
8392 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8393
8394         [BZ #13895]
8395         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8396         extra indirection.
8397         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8398         * nss/tst-nss-static.c: New.
8399
8400 2012-04-06  Robert Millan  <rmh@gnu.org>
8401
8402         [BZ #6486]
8403         * manual/llio.texi (File Position Primitive): lseek
8404         refers to WHENCE when it really means OFFSET.
8405
8406 2012-04-06  Andreas Jaeger  <aj@suse.de>
8407
8408         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8409         strncmp declarations.
8410
8411         * abilist/libc.abilist: Add __poll and __ppoll.
8412
8413 2012-04-05  David S. Miller  <davem@davemloft.net>
8414
8415         * scripts/check-local-headers.sh: Accept a host triplet in the
8416         path matched by the exclude regexp.
8417
8418         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8419         definition.
8420         * sysdeps/powerpc/powerpc32/dl-machine.h
8421         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8422         * sysdeps/s390/s390-32/dl-machine.h
8423         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8424         * sysdeps/sparc/sparc32/dl-machine.h
8425         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8426         * sysdeps/sparc/sparc64/dl-machine.h
8427         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8428
8429         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8430         lazy binding.
8431         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8432         undefined symbol errors.
8433
8434         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8435         DT_NEEDED entries.
8436
8437 2012-04-05  Michael Matz  <matz@suse.de>
8438
8439         [BZ #13592]
8440         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8441
8442 2012-04-05  Andreas Jaeger  <aj@suse.de>
8443
8444         [BZ #13908]
8445         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8446         comment.
8447
8448 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8449
8450         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8451         which ROUND is no valid rounding mode.
8452
8453 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8454
8455         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8456         read again.
8457         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8458
8459 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8460
8461         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8462         an exception using FPU order intentionally.
8463
8464 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8465
8466         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8467         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8468         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8469         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8470
8471 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8472
8473         [BZ #12340]
8474         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8475         EINVAL when BUFLEN is too smal.
8476
8477 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8478
8479         [BZ #13553]
8480         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8481         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8482
8483 2012-04-03  Andreas Jaeger  <aj@suse.de>
8484
8485         [BZ #13938]
8486         * manual/setjmp.texi (System V contexts): Fix sentence.
8487
8488         [BZ #13926]
8489         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8490         New macro for this case.
8491         [!__GNUC__] (__bswap_64): New inline function for this case.
8492         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8493         * bits/byteswap.h: Likewise.
8494         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8495         ull, guard with __GLIBC_HAVE_LONG_LONG.
8496
8497         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8498         __GLIBC_HAVE_LONG_LONG.
8499
8500         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8501         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8502
8503 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8504
8505         [BZ #13691]
8506         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8507         inptr and inend, rather than using last_ch.
8508
8509 2012-04-02  David S. Miller  <davem@davemloft.net>
8510
8511         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8512         * stdio-common/printf-parse.h (read_int): Change return type to
8513         'int', return -1 on INT_MAX overflow.
8514         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8515         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8516         overflows INT_MAX.  Check for overflow of in-format-string precision
8517         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8518         SIZE_MAX not INT_MAX for integer overflow test.
8519         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8520         skip the construct in the format string but do not record anything.
8521         * stdio-common/bug22.c: Adjust to test both width/prevision
8522         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8523         explicitly for proper errno values.
8524
8525 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8526
8527         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8528         CHAR_MAX.
8529         * string/test-strcmp.c [! WIDE]: Likewise.
8530         * time/tst-mktime2.c: Likewise for INT_MAX.
8531         * string/test-string.h: #include <sys/param.h> for MIN.
8532
8533         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8534         * sysdeps/i386/init-first.c (init): Likewise.
8535         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8536         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8537         * sysdeps/sh/init-first.c (init): Likewise.
8538
8539 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8540
8541         * po/ru.po: Update from translation team.
8542         * po/vi.po: Likewise.
8543
8544 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8545
8546         * resolv/nss_dns/dns-host.c: Merge copyright years.
8547
8548 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8549
8550         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8551         Optimize memcpy with prefetch if
8552         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8553         src, dst pointers have unequal 16 byte alignments.
8554
8555 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8556
8557         [BZ #13928]
8558         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8559         from a CNAME entry and return the minimum ttl for the query.
8560         (gaih_getanswer_slice): Likewise.
8561
8562 2012-03-30  Jeff Law  <law@redhat.com>
8563
8564         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8565         due to long keys.
8566         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8567         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8568
8569         * resolv/nss_dns/dns-host.c: Update copyright year.
8570
8571 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8572
8573         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8574         requests to save a system call.  Fix check that all bytes are sent.
8575
8576         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8577         comments for sendmmsg.
8578
8579 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8580
8581         [BZ #13691]
8582         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8583         with only 1 character between 0x0041 and 0x01b0.
8584         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8585         * wcsmbs/tst-mbsnrtowcs.c: New file.
8586
8587 2012-03-29  David S. Miller  <davem@davemloft.net>
8588
8589         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8590         small copies by hand.
8591
8592 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8593
8594         [BZ #13761]
8595         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8596         _nss_compat_initgroups_dyn): Fall back to malloc/free
8597         for large group memberships.
8598
8599 2012-03-28  David S. Miller  <davem@davemloft.net>
8600
8601         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8602         that branches into memcpy.
8603         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8604         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8605         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8606         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8607         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8608         bits.
8609         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8610         implementation too.
8611         * sysdeps/sparc/mempcpy.S: New file.
8612
8613         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8614         the IFUNC routine in the libc case.
8615         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8616
8617         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8618         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8619         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8620         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8621         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8622         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8623         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8624         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8625
8626         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8627         loop to 256 bytes instead of 64 bytes and fix test signedness.
8628
8629         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8630         * sysdeps/sparc/sparc32/Makefile: rather than here...
8631         * sysdeps/sparc/sparc64/Makefile: and here.
8632
8633 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8634
8635         * malloc/mallocbug.c: Avoid warnings about unused variables.
8636
8637 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8638
8639         [BZ #13760]
8640         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8641         in the right place. Discard and retry query if response is
8642         larger than input buffer size.
8643
8644 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8645
8646         [BZ #369]
8647         [BZ #2678]
8648         [BZ #3866]
8649         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8650         x for large integer exponent.
8651         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8652         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8653         sign of result as needed afterwards.
8654         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8655         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8656         result for underflowing pow the same as for overflow.
8657         (__kernel_standard_l): Handle powl overflow and underflow here
8658         rather than calling __kernel_standard.
8659         * math/libm-test.inc (pow_test): Add more tests.
8660
8661         [BZ #3868]
8662         [BZ #13879]
8663         [BZ #13910]
8664         [BZ #13911]
8665         [BZ #13912]
8666         [BZ #13913]
8667         [BZ #13915]
8668         [BZ #13916]
8669         [BZ #13917]
8670         [BZ #13918]
8671         [BZ #13919]
8672         [BZ #13920]
8673         [BZ #13921]
8674         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8675         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8676         (__kernel_standard_l): New function.
8677         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8678         __kernel_standard.
8679         * math/w_acosl.c (__acosl): Likewise.
8680         * math/w_asinl.c (__asinl): Likewise.
8681         * math/w_atan2l.c (__atan2l): Likewise.
8682         * math/w_atanhl.c (__atanhl): Likewise.
8683         * math/w_coshl.c (__coshl): Likewise.
8684         * math/w_exp10l.c (__exp10l): Likewise.
8685         * math/w_exp2l.c (__exp2l): Likewise.
8686         * math/w_fmodl.c (__fmodl): Likewise.
8687         * math/w_hypotl.c (__hypotl): Likewise.
8688         * math/w_j0l.c (__j0l, __y0l): Likewise.
8689         * math/w_j1l.c (__j1l, __y1l): Likewise.
8690         * math/w_jnl.c (__jnl, __ynl): Likewise.
8691         * math/w_lgammal.c (__lgammal): Likewise.
8692         * math/w_log10l.c (__log10l): Likewise.
8693         * math/w_log2l.c (__log2l): Likewise.
8694         * math/w_logl.c (__logl): Likewise.
8695         * math/w_powl.c (__powl): Likewise.
8696         * math/w_remainderl.c (__remainderl): Likewise.
8697         * math/w_scalbl.c (sysv_scalbl): Likewise.
8698         * math/w_sinhl.c (__sinhl): Likewise.
8699         * math/w_sqrtl.c (__sqrtl): Likewise.
8700         * math/w_tgammal.c (__tgammal): Likewise.
8701         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8702         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8703         * math/libm-test.inc (acos_test): Add more tests.
8704         (acosh_test): Likewise.
8705         (asin_test): Likewise.
8706         (atanh_test): Likewise.
8707         (exp_test): Likewise.
8708         (exp10_test): Likewise.
8709         (exp2_test): Likewise.
8710         (expm1_test): Likewise.
8711         (lgamma_test): Likewise.
8712         (log_test): Likewise.
8713         (log10_test): Likewise.
8714         (log1p_test): Likewise.
8715         (log2_test): Likewise.
8716         (pow_test): Do not allow some spurious overflow exceptions.
8717         (sqrt_test): Add more tests.
8718         (tgamma_test): Likewise.
8719         (y0_test): Likewise.
8720         (y1_test): Likewise.
8721         (yn_test): Likewise.
8722
8723 2012-03-27  Anton Blanchard  <anton@samba.org>
8724
8725         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8726         MAP_HUGETLB.
8727         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8728         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8729         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8730
8731 2012-03-27  David S. Miller  <davem@davemloft.net>
8732
8733         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8734
8735         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8736         have-as-vis3 check.
8737
8738 2012-03-27  Andreas Jaeger  <aj@suse.de>
8739
8740         * sysdeps/x86_64/elf/configure.in: Moved to ...
8741         * sysdeps/x86_64/configure.in: ... here.
8742         * sysdeps/x86_64/elf/start.S: Moved to ...
8743         * sysdeps/x86_64/start.S: ... here.
8744         * sysdeps/x86_64/elf/configure: Delete.
8745
8746         * sysdeps/x86_64/configure.in: Merge contents from
8747         sysdeps/i386/configure.in (without i686 check).
8748
8749         * sysdeps/i386/elf/Versions: Merge into ...
8750         * sysdeps/i386/Versions: ... this.
8751         * sysdeps/i386/elf/Versions: Delete file.
8752         * sysdeps/i386/elf/start.S: Moved to ...
8753         * sysdeps/i386/start.S: ...here.
8754         * sysdeps/i386/elf/configure.in: Merge into...
8755         * sysdeps/i386/configure.in: ...here.
8756         * sysdeps/i386/elf/configure.in: Delete file.
8757         * sysdeps/i386/elf/configure: Delete file.
8758
8759         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8760         * debug/backtracesyms.c: ... here.
8761         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8762         * debug/backtracesymsfd.c: ... here.
8763         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8764         * sysdeps/generic/ifunc-sel.h: ... here.
8765
8766         * sysdeps/unix/i386/start.c: Delete file.
8767         * sysdeps/unix/sparc/start.c: Delete file.
8768         * sysdeps/unix/start.c: Delete file.
8769
8770         * sysdeps/sh/elf/configure.in: Moved to ...
8771         * sysdeps/sh/configure.in: ... here.
8772         * sysdeps/sh/elf/start.S: Moved to ...
8773         * sysdeps/sh/start.S: ... here.
8774         * sysdeps/sh/elf/configure: Delete file.
8775
8776         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8777         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8778         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8779         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8780         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8781         * sysdeps/powerpc/powerpc64/start.S: here.
8782         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8783         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8784         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8785         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8786         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8787
8788         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8789         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8790         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8791         * sysdeps/powerpc/powerpc32/start.S: ... here.
8792         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8793         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8794         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8795
8796         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8797         * sysdeps/powerpc/ifunc-sel.h: ... here.
8798         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8799         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8800
8801         * sysdeps/sparc/elf/configure.in: Moved to ...
8802         * sysdeps/sparc/configure.in: ... here.
8803         * sysdeps/sparc/elf/configure: Delete file.
8804         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8805         * sysdeps/sparc/sparc32/start.S: ... here.
8806         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8807         * sysdeps/sparc/sparc64/start.S: ... here.
8808         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8809         * sysdeps/sparc/sparc32/Makefile: ... this.
8810         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8811         * sysdeps/sparc/sparc64/Makefile: ... this.
8812
8813         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8814         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8815         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8816         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8817         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8818         * sysdeps/s390/s390-32/setjmp.S: ... here.
8819         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8820         * sysdeps/s390/s390-32/configure.in: ... here.
8821         * sysdeps/s390/s390-32/elf/configure: Delete file.
8822         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8823         * sysdeps/s390/s390-32/start.S: ... here.
8824
8825         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8826         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8827         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8828         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8829         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8830         * sysdeps/s390/s390-64/setjmp.S: ... here.
8831         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8832         * sysdeps/s390/s390-64/configure.in: ... here
8833         * sysdeps/s390/s390-64/elf/configure: Delete file.
8834         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8835         * sysdeps/s390/s390-64/start.S: ... here.
8836         * sysdeps/s390/s390-64/elf/configure: Delete.
8837
8838         * configure.in: Remove support for elf directories in sysdeps.
8839
8840         * configure: Regenerated.
8841         * sysdeps/i386/configure: Regenerated.
8842         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8843         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8844         * sysdeps/s390/s390-32/configure: Regenerated.
8845         * sysdeps/s390/s390-64/configure: Regenerated.
8846         * sysdeps/sh/configure: Regenerated.
8847         * sysdeps/sparc/configure: Regenerated.
8848         * sysdeps/x86_64/configure: Regenerated.
8849
8850 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8851
8852         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8853
8854         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8855         denormal result into account.
8856
8857 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8858
8859         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8860         Reported by Allan McRae <allan@archlinux.org>.
8861
8862 2012-03-23  Jeff Law  <law@redhat.com>
8863
8864         * nss/getnssent.c (__nss_getent): Fix typo.
8865
8866 2012-03-23  David S. Miller  <davem@davemloft.net>
8867
8868         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8869
8870 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8871
8872         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8873         to pad to uint64_t for each field.
8874         (dl_tls_index): Replace unsigned long with uint64_t.
8875
8876 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8877         Paul Pluzhnikov  <ppluzhnikov@google.com>
8878
8879         [BZ #6528]
8880         * grp/Makefile (otherlibs): Don't set it.
8881         * inet/Makefile (otherlibs): Likewise.
8882         * login/Makefile (otherlibs): Likewise.
8883         * nscd/Makefile (otherlibs): Likewise.
8884         * posix/Makefile (otherlibs): Likewise.
8885         * pwd/Makefile (otherlibs): Likewise.
8886         * rt/Makefile (otherlibs): Likewise.
8887         * sunrpc/Makefile (otherlibs): Likewise.
8888         * nss/Makefile (otherlibs): Likewise.
8889         Add libnss_files to routines and static-only-routines.
8890         ($(objpfx)getent): Remove rule.
8891         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8892         static-only-routines.
8893
8894 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8895
8896         [BZ #13892]
8897         * math/s_cexp.c: Include <float.h>.
8898         (__cexp): Handle exp result overflowing not necessarily
8899         overflowing both real and imaginary parts of result.
8900         * math/s_cexpf.c: Likewise.
8901         * math/s_cexpl.c: Likewise.
8902         * math/libm-test.inc (cexp_test): Add more tests.
8903         * sysdeps/i386/fpu/libm-test-ulps: Update.
8904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8905
8906 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8907
8908         * include/link.h (ELFW): New macro.
8909         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8910         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8911
8912 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8913
8914         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8915         with uint64_t.
8916
8917 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8918
8919         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8920         declaration.
8921         (struct La_x32_retval): Likewise.
8922
8923 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8924
8925         * sysdeps/x86_64/preconfigure.in: New file.
8926         * sysdeps/x86_64/preconfigure: New generated file.
8927
8928 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8929
8930         [BZ #13824]
8931         * math/e_exp2l.c: Include <float.h>.
8932         (__ieee754_exp2l): Handle overflow and underflow cases
8933         separately.  Only pass fractional part of argument to
8934         __ieee754_expl.
8935         * math/libm-test.inc (exp2_test): Add more tests.
8936
8937         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8938         negating x to take absolute value.
8939         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8940         Likewise.
8941         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8942         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8943         Likewise.
8944         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8945         computing low part if x was negated.
8946         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8947
8948 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8949
8950         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8951         la_x32_gnu_pltexit.
8952         (pltexit): Cast int_retval to ptrdiff_t.
8953         * elf/tst-auditmod3b.c: Likewise.
8954         * elf/tst-auditmod4b.c: Likewise.
8955         * elf/tst-auditmod5b.c: Likewise.
8956         * elf/tst-auditmod6b.c: Likewise.
8957         * elf/tst-auditmod6c.c: Likewise.
8958         * elf/tst-auditmod7b.c: Likewise.
8959
8960         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8961         and x32_gnu_pltexit.
8962
8963         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8964         __ELF_NATIVE_CLASS.
8965         (La_x32_regs): New macro.
8966         (La_x32_retval): Likewise.
8967         (la_x32_gnu_pltenter): New function prototype.
8968         (la_x32_gnu_pltexit): Likewise.
8969
8970 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8971
8972         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8973         exponent.
8974
8975         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8976
8977         * configure.in (libc_cv_cc_nofma): Check for option to disable
8978         generation of FMA instructions.
8979         * configure: Regenerate.
8980         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8981         * sysdeps/ieee754/dbl-64/Makefile: New file.
8982         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8983         Remove brandred-fma4.
8984         (CFLAGS-brandred-fma4.c): Remove.
8985         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8986         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8987         define.
8988         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8989         define.
8990
8991 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8992
8993         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8994         LLONG_MAX != LONG_MAX.
8995         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8996         (_fitoa_word): Likewise.
8997         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8998         LLONG_MAX != LONG_MAX.
8999         * stdio-common/_itowa.h: Include <_itoa.h>.
9000         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9001         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9002         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9003         only if not defined.
9004         (_ITOA_WORD_TYPE): Likewise.
9005         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9006         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9007
9008 2012-03-21  David S. Miller  <davem@davemloft.net>
9009
9010         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9011
9012 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9013
9014         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9015         of x86_64 when setting libc_cv_slibdir, libdir and
9016         libc_cv_localedir.
9017         * sysdeps/unix/sysv/linux/configure: Regenerated.
9018
9019 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9020
9021         * manual/lang.texi (Old Varargs): Remove section.
9022         (How Variadic): Update menu.
9023         (va_start): Do not mention varargs.h.
9024
9025 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9026             Joseph Myers  <joseph@codesourcery.com>
9027
9028         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9029         link test.
9030         * configure: Regenerated.
9031
9032 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9033
9034         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9035         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9036         conformtest.pl
9037
9038 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9039
9040         * NOTES: Remove.
9041         * Makefile (files-for-dist): Remove NOTES.
9042         (NOTES): Remove rule.
9043         * README: Don't refer to NOTES.
9044         * manual/creature.texi: Don't include macros.texi.
9045         * manual/intro.texi (creature.texi): Remove comment referring to
9046         NOTES.
9047
9048         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9049         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9050         * configure: Regenerated.
9051         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9052         LIBC_TRY_CC_OPTION.
9053         (libc_cv_as_i686): Likewise.
9054         (libc_cv_cc_avx): Likewise.
9055         (libc_cv_cc_sse2avx): Likewise.
9056         (libc_cv_cc_fma4): Likewise.
9057         (libc_cv_cc_novzeroupper): Likewise.
9058         * sysdeps/i386/configure: Regenerated.
9059
9060         [BZ #13883]
9061         * sysdeps/i386/fpu/s_cexp.S: Remove.
9062         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9063         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9064         * math/libm-test.inc (cexp_test): Add more tests.
9065         * sysdeps/i386/fpu/libm-test-ulps: Update.
9066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9067
9068 2012-03-21  Allan McRae  <allan@archlinux.org>
9069
9070         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9071
9072 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9073
9074         [BZ #13871]
9075         * math/w_exp2.c: Do not include <float.h>.
9076         (o_threshold, u_threshold): Remove.
9077         (__exp2): Calculate result before checking finiteness and calling
9078         __kernel_standard.
9079         * math/w_exp2f.c: Likewise.
9080         * math/w_exp2l.c: Likewise.
9081         * math/libm-test.inc (exp2_test): Require overflow exception for
9082         1e6 input.
9083
9084         [BZ #3866]
9085         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9086         range of signed 64-bit integers before using fistpll.  Remove
9087         checks for whether integers fit in mantissa bits.
9088         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9089         the range of signed 32-bit integers before using fistpl.  Remove
9090         checks for whether integers fit in mantissa bits.
9091         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9092         (__ieee754_powl): Test for y outside the range of signed 64-bit
9093         integers before using fistpll.  Reduce 64-bit values to 63-bit
9094         ones as needed.
9095         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9096         divide-by-zero is raised for zero to large negative powers.
9097         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9098         (__ieee754_powl): Test for y outside the range of signed 64-bit
9099         integers before using fistpll.  Reduce 64-bit values to 63-bit
9100         ones as needed.
9101         * math/libm-test.inc (pow_test): Add more tests.
9102
9103 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9104
9105         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9106         <stdio-common/_itoa.h>.
9107         * debug/segfault.c: Likewise.
9108         * elf/dl-cache.c: Likewise.
9109         * elf/dl-minimal.c: Likewise.
9110         * elf/dl-misc.c: Likewise.
9111         * elf/dl-sysdep.c: Likewise.
9112         * elf/dl-version.c: Likewise.
9113         * elf/rtld.c: Likewise.
9114         * hurd/hurdsock.c: Likewise.
9115         * hurd/lookup-retry.c: Likewise.
9116         * malloc/malloc.c: Likewise.
9117         * malloc/mtrace.c: Likewise.
9118         * nscd/nscd_getgr_r.c: Likewise.
9119         * nscd/nscd_getpw_r.c: Likewise.
9120         * nscd/nscd_getserv_r.c: Likewise.
9121         * posix/getopt_init.c: Likewise.
9122         * posix/wordexp.c: Likewise.
9123         * stdio-common/_itoa.c: Likewise.
9124         * stdio-common/printf_fphex.c: Likewise.
9125         * stdio-common/vfprintf.c: Likewise.
9126         * string/_strerror.c: Likewise.
9127         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9128         * sysdeps/i386/i686/hp-timing.h: Likewise.
9129         * sysdeps/mach/_strerror.c: Likewise.
9130         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9131         * sysdeps/mach/hurd/sethostid.c: Likewise.
9132         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9133         * sysdeps/mach/xpg-strerror.c: Likewise.
9134         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9135         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9136         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9137         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9138         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9139         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9140         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9141         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9142         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9143         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9144         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9145         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9146         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9147         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9148         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9149         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9150         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9151         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9152         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9153         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9154         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9155
9156         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9157
9158         * stdio-common/_itoa.h: Moved to ...
9159         * sysdeps/generic/_itoa.h: Here.
9160
9161         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9162
9163         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9164         instead of "_itoa.h" and "_itowa.h".
9165         * stdio-common/vfprintf.: Likewise.
9166
9167 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9168
9169         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9170         <bits/wordsize.h>.
9171         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9172         (__signbit): Likwise.
9173         (llrintf): Likwise.
9174         (llrint): Likwise.
9175
9176 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9177
9178         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9179         __WORDSIZE != 64.
9180
9181 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9182
9183         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9184         OVERFLOW_EXCEPTION_OK.
9185         * math/libm-test.inc ("Philosophy"): Update comment about
9186         exception testing.
9187         (OVERFLOW_EXCEPTION): Define.
9188         (OVERFLOW_EXCEPTION_OK): Likewise.
9189         (INVALID_EXCEPTION_OK): Renumber.
9190         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9191         (IGNORE_ZERO_INF_SIGN): Likewise.
9192         (test_exceptions): Handle FE_OVERFLOW.
9193         (exp10_test): Expect overflow exceptions.
9194         (exp2_test): Likewise.
9195         (expm1_test): Likewise.
9196         (nextafter_test): Likewise.
9197         (pow_test): Likewise.
9198         (scalbn_test): Likewise.
9199         (scalbln_test): Likewise.
9200
9201 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9202
9203         * sysdeps/x86_64/bits/atomic.h
9204         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9205         64bit integer.
9206         (atomic_exchange_acq): Likewise.
9207         (__arch_exchange_and_add_body): Likewise.
9208         (__arch_add_body): Likewise.
9209         (atomic_add_negative): Likewise.
9210         (atomic_add_zero): Likewise.
9211
9212 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9213
9214         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9215         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9216
9217 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9218
9219         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9220         Check __x86_64__ instead of __WORDSIZE.
9221
9222 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9223
9224         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9225
9226 2012-03-19  David S. Miller  <davem@davemloft.net>
9227
9228         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9229
9230         * sysdeps/sparc/fpu/fenv_private.h: New file.
9231         * sysdeps/sparc/fpu/math_private.h: Use it.
9232         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9233         Remove.
9234         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9235         (libc_feholdexcept_setroundl): Remove.
9236         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9237         Remove.
9238         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9239         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9240
9241 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9242
9243         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9244         int64_t instead of long int.
9245         (INSERT_WORDS64): Likwise.
9246
9247 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9248
9249         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9250         _Unwind_GetCFA return to _Unwind_Ptr first.
9251
9252 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9253
9254         [BZ #13629]
9255         * math/s_clog.c: Include <float.h>.
9256         (__clog): Scale large or subnormal inputs.
9257         * math/s_clogf.c: Likewise.
9258         * math/s_clogl.c: Likewise.
9259         * math/s_clog10.c: Include <float.h>.
9260         (M_LOG10_2): Define.
9261         (__clog10): Scale large or subnormal inputs.
9262         * math/s_clog10f.c: Likewise.
9263         * math/s_clog10l.c: Likewise.
9264         * math/libm-test.inc (clog_test): Add more tests.
9265         (clog10_test): Likewise.
9266         * sysdeps/i386/fpu/libm-test-ulps: Update.
9267         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9268
9269         [BZ #11451]
9270         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9271         x and y.
9272         * math/libm-test.inc (atan2_test): Add another test.
9273
9274         * Makerules (common-objdir-compile): Remove.
9275         * sysdeps/unix/Makefile (config-generated): Do not add
9276         $(unix-generated) to variable.
9277         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9278         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9279         Remove rule.
9280         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9281         Likewise.
9282         [generic bits/local_lim.h] (before-compile): Do not append to
9283         variable.
9284         [generic bits/local_lim.h] (common-generated): Likewise.
9285         [generic sys/param.h] (before-compile): Do not append to variable.
9286         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9287         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9288         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9289         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9290         include.
9291         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9292         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9293         [generic sys/param.h] ($(addprefix
9294         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9295         [generic sys/param.h] (common-generated): Do not append to
9296         variable.
9297         [generic sys/param.h] (sysdep_headers): Likewise.
9298         [generic bits/errno.h] (before-compile): Do not append to
9299         variable.
9300         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9301         rule.
9302         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9303         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9304         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9305         [generic bits/errno.h] (common-generated): Do not append to
9306         variable.
9307         [generic bits/ioctls.h] (before-compile): Do not append to
9308         variable.
9309         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9310         rule.
9311         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9312         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9313         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9314         rule.
9315         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9316         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9317         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9318         [generic bits/ioctls.h] (common-generated): Do not append to
9319         variable.
9320         [generic sys/syscall.h] (syscall.h): Remove variable.
9321         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9322         rule.
9323         [generic sys/syscall.h] (before-compile): Do not append to
9324         variable.
9325         [generic sys/syscall.h] (common-generated): Likewise.
9326         * sysdeps/unix/errnos-tmpl.c: Remove file.
9327         * sysdeps/unix/errnos.awk: Likewise.
9328         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9329         * sysdeps/unix/ioctls.awk: Likewise.
9330         * sysdeps/unix/mk-local_lim.c: Likewise.
9331         * sysdeps/unix/snarf-ioctls: Likewise.
9332
9333 2012-03-19  Richard Henderson  <rth@twiddle.net>
9334
9335         * sysdeps/i386/fpu/fenv_private.h: New file.
9336         * sysdeps/i386/fpu/math_private.h: Use it.
9337         (math_opt_barrier, math_force_eval): Remove.
9338         (libc_feholdexcept_setround_53bit): Remove.
9339         (libc_feupdateenv_53bit): Remove.
9340         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9341         (math_opt_barrier, math_force_eval): Remove.
9342         (libc_feholdexcept): Remove.
9343         (libc_feholdexcept_setround): Remove.
9344         (libc_fetestexcept, libc_fesetenv): Remove.
9345         (libc_feupdateenv_test): Remove.
9346         (libc_feupdateenv, libc_feholdsetround): Remove.
9347         (libc_feresetround): Remove.
9348
9349         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9350         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9351
9352         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9353         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9354         (libc_feupdateenv_testl): New.
9355         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9356         (libc_feupdateenv_testf): New.
9357         (libc_feupdateenv): Use libc_feupdateenv_test.
9358         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9359         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9360
9361         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9362         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9363         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9364         (libc_feresetround_noex): New.
9365         (libc_feresetround_noexf): New.
9366         (libc_feresetround_noexl): New.
9367         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9368         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9369         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9370         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9371         SET_RESTORE_ROUND.
9372         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9373         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9374         (__cos): Likewise.
9375         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9376         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9377         SET_RESTORE_ROUND_NOEX.
9378         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9379         SET_RESTORE_ROUND_NOEXF.
9380         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9381         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9382         (libc_feholdsetroundf): New.
9383         (libc_feresetround, libc_feresetroundf): New.
9384
9385         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9386         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9387         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9388
9389         * sysdeps/generic/math_private.h: Include <fenv.h>.
9390         (default_libc_feholdexcept): New.
9391         (default_libc_feholdexcept_setround): New.
9392         (default_libc_fesetenv, default_libc_feupdateenv): New.
9393         (libc_feholdexcept): Only define if undefined.
9394         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9395         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9396         (libc_feholdexcept_setroundl): Likewise.
9397         (libc_feholdexcept_setround_53bit): Likewise.
9398         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9399         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9400         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9401         (libc_feupdateenv_53bit): Likewise.
9402         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9403         (libc_feholdexcept): Convert from macro to inline function.
9404         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9405         (libc_fesetenv, libc_feupdateenv): Likewise.
9406
9407         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9408         not previously defined.
9409         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9410         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9411         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9412         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9413         * sysdeps/ieee754/flt-32/math_private.h: New file.
9414         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9415         math_private.h below SET_FLOAT_WORD.
9416         (__isnan, __isinf_ns, __finite): Remove.
9417         (__isnanf, __isinf_nsf, __finitef): Remove.
9418
9419 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9420
9421         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9422
9423 2012-03-17  David S. Miller  <davem@davemloft.net>
9424
9425         [BZ #6471]
9426         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9427         for 2.16.
9428
9429 2012-03-16  David S. Miller  <davem@davemloft.net>
9430
9431         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9432         warnings.
9433
9434         [BZ #6471]
9435         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9436         properly.
9437         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9438         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9439         sysdep_routines when subdir is sysvipc.
9440         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9441         __getshmlba helper.
9442
9443         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9444
9445 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9446
9447         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9448         [__LP64__].
9449
9450 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9451
9452         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9453         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9454         (__lround): Renamed to ...
9455         (__llround): This.  Replace long int with long long int.
9456         Define lround functions as aliases of llround functions.
9457         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9458
9459 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9460
9461         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9462         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9463         adresses to uintptr_t.  Replace "long int" and "unsigned long
9464         int" with "greg_t" on va_arg.
9465
9466 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9467
9468         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9469         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9470
9471         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9472         Move e_machine check before EI_CLASS check.  Handle x32
9473         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9474         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9475         SKIP_EM_IA_64 and include
9476         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9477
9478         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9479         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9480         (add_system_dir): New macro.
9481
9482         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9483         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9484
9485 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9486
9487         [BZ #2551]
9488         [BZ #2552]
9489         [BZ #2553]
9490         [BZ #2554]
9491         [BZ #2562]
9492         [BZ #2563]
9493         [BZ #2565]
9494         [BZ #2566]
9495         [BZ #2576]
9496         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9497         (y0): Likewise.
9498         * math/w_j0f.c (j0f): Likewise.
9499         (y0f): Likewise.
9500         * math/w_j0l.c (__j0l): Likewise.
9501         (__y0l): Likewise.
9502         * math/w_j1.c (j1): Likewise.
9503         (y1): Likewise.
9504         * math/w_j1f.c (j1f): Likewise.
9505         (y1f): Likewise.
9506         * math/w_j1l.c (__j1l): Likewise.
9507         (__y1l): Likewise.
9508         * math/w_jn.c (jn): Likewise.
9509         (yn): Likewise.
9510         * math/w_jnf.c (jnf): Likewise.
9511         (ynf): Likewise.
9512         * math/w_jnl.c (__jnl): Likewise.
9513         (__ynl): Likewise.
9514         * math/libm-test.inc (j0_test): Add more tests.
9515         (j1_test): Likewise.
9516         (jn_test): Likewise.  Add trailing semicolon to existing test.
9517         (y0_test): Likewise.
9518         (y1_test): Likewise.
9519         * sysdeps/i386/fpu/libm-test-ulps: Update.
9520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9521
9522         [BZ #13851]
9523         [BZ #13854]
9524         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9525         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9526         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9527         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9528         (__tanl): Set errno for infinite argument.
9529         * sysdeps/i386/fpu/mptan.c: Remove.
9530         * sysdeps/i386/fpu/s_tan.S: Likewise.
9531         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9532         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9533         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9534         * math/libm-test.inc (tan_test): Add more tests and enable more
9535         tests for double and long double.
9536         * sysdeps/i386/fpu/libm-test-ulps: Update.
9537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9538
9539 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9540
9541         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9542         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9543
9544 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9545
9546         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9547         * configure.in: Use it for both main tree and add-ons.
9548         * configure: Regenerated.
9549
9550 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9551
9552         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9553
9554 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9555
9556         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9557         in comment.
9558
9559         [BZ #13851]
9560         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9561         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9562         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9563         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9564         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9565         infinite argument.
9566         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9567         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9568         != 0 for prec == 2.
9569         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9570         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9571         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9572         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9573         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9574         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9575         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9576         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9577         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9578         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9579         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9580         * math/libm-test.inc (cos_test): Add more tests and enable more
9581         tests for long double.
9582         (sin_test): Likewise.
9583         (sincos_test): Likewise.
9584         * sysdeps/i386/fpu/libm-test-ulps: Update.
9585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9586
9587 2012-03-16  David S. Miller  <davem@davemloft.net>
9588
9589         * sysdeps/sparc/fpu/math_private.h: New file.
9590
9591 2012-03-15  David S. Miller  <davem@davemloft.net>
9592
9593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9594         file.
9595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9597         file.
9598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9599         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9600         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9601         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9602         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9603         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9604         sysdep routines.
9605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9606
9607         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9608         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9609
9610         * sysdeps/sparc/sparc-ifunc.h: New file.
9611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9612         sparc-ifunc.h
9613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9615         Likewise.
9616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9617         Likewise.
9618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9622         Likewise.
9623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9628         Likewise.
9629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9630         Likewise.
9631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9635         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9636         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9637         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9638         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9639         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9640         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9641         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9642         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9643         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9644         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9645         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9646         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9647         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9648         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9649         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9650         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9651         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9652         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9653         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9654         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9655
9656 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9657
9658         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9659         scaling.
9660         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9661
9662 2012-03-15  Andreas Jaeger  <aj@suse.de>
9663
9664         [BZ #13852]
9665         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9666         ieee754/flt-32 implementation for sin, cos and sincos.
9667         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9668         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9669         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9670         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9671         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9672         ieee754/flt-32 implementation for tan.
9673
9674         * math/libm-test.inc (cos_test): Enable some large input tests for
9675         float as well
9676         (sin_test): Likewise.
9677         (sincos_test): Likewise.
9678         (tan_test): Add tests for large input.
9679
9680         * sysdeps/i386/fpu/libm-test-ulps: Update.
9681
9682 2012-03-15  Andreas Jaeger  <aj@suse.de>
9683
9684         [BZ #13658]
9685         * math/libm-test.inc (cos_test): Add more test cases.
9686         (sin_test): Likewise.
9687         (sincos_test): Likewise.
9688
9689 2012-03-15  Andreas Jaeger  <aj@suse.de>
9690
9691         [BZ #13837]
9692         * math/libm-test.inc (cos_test): Add a test case for large input
9693         value.
9694         (sin_test): Likewise.
9695         (sincos_test): Likewise.
9696
9697 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9698         Joseph Myers  <joseph@codesourcery.com>
9699
9700         [BZ #13658]
9701         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9702         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9703         * sysdeps/i386/fpu/branred.c: Likewise.
9704         * sysdeps/i386/fpu/dosincos.c: Likewise.
9705         * sysdeps/i386/fpu/mpa.c: Likewise.
9706         * sysdeps/i386/fpu/s_cos.S: Likewise.
9707         * sysdeps/i386/fpu/s_sin.S: Likewise.
9708         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9709         * sysdeps/i386/fpu/sincos32.c: Likewise.
9710
9711         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9712         Define.
9713         (libc_feupdateenv_53bit): Define.
9714         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9715         Define.
9716         (libc_feupdateenv_53bit): Define.
9717
9718         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9719         53 bit (without extend i386 double precision).
9720
9721         * math/libm-test.inc (sincos_test): Add tests for large input.
9722         (sin): Likewise.
9723         (cos): Likewise.
9724
9725         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9726
9727 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9728
9729         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9730
9731 2012-03-15  David S. Miller  <davem@davemloft.net>
9732
9733         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9734         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9735         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9736         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9737         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9738         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9739         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9740         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9741         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9742         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9743         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9744         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9745         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9746         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9747         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9749         file.
9750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9752         file.
9753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9755         file.
9756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9758         file.
9759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9760         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9761         fmin/fmax sysdep routines.
9762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9763
9764 2012-03-14  David S. Miller  <davem@davemloft.net>
9765
9766         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9767         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9768         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9769         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9770         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9771         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9772         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9773         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9774         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9775         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9776         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9777         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9778         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9779         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9780         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9781         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9782         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9783         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9784         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9785         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9786         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9787         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9788         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9789         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9790         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9791         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9792         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9793         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9794         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9795         routines.
9796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9797         file.
9798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9800         file.
9801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9803         file.
9804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9806         file.
9807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9809         file.
9810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9812         file.
9813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9814         file.
9815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9816         file.
9817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9818         file.
9819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9820         New file.
9821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9822         file.
9823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9824         file.
9825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9827         file.
9828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9830         file.
9831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9833         file.
9834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9836         VIS3 routines.
9837
9838         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9839         New file.
9840
9841         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9842
9843         * sysdeps/sparc/configure.in: New file.
9844         * sysdeps/sparc/configure: Generate.
9845         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9846         * configure: Regenerate.
9847         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9848         * config.make.in (have-as-vis3): New.
9849         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9850         available use -Av9d instead of -Av9a.
9851         * sysdeps/sparc/sparc64/Makefile: Likewise.
9852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9854         New file.
9855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9856         file.
9857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9858         New file.
9859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9860         file.
9861         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9862         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9863         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9864         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9865         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9866
9867         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9868         fzeros/fnegs to load 0x80000000 into a float register instead of
9869         using the stack.
9870         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9871
9872 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9873
9874         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9875         bits/syscall.h.
9876         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9877         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9878         ($(inst_includedir)/bits/syscall.h): Remove rule.
9879         ($(objpfx)bits/syscall.d): Include instead of
9880         $(objpfx)syscall-list.d.
9881         (generated): Change syscall-list.h and syscall-list.d to
9882         bits/syscall.h and bits/syscall.d.
9883
9884 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9885
9886         [BZ #13846]
9887         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9888
9889 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9890
9891         [BZ #13841]
9892         * math/s_csqrt.c: Include <float.h>.
9893         (__csqrt): Scale large or subnormal inputs.
9894         * math/s_csqrtf.c: Likewise.
9895         * math/s_csqrtl.c: Likewise.
9896         * math/libm-test.inc (csqrt_test): Add more tests.
9897         * sysdeps/i386/fpu/libm-test-ulps: Update.
9898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9899
9900         [BZ #13840]
9901         * math/libm-test.inc (hypot_test): Add more tests.
9902
9903 2012-03-13  David S. Miller  <davem@davemloft.net>
9904
9905         [BZ #13840]
9906         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9907         double-precision for the calculation instead of scaling.
9908
9909 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9910
9911         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9912         manipulate bits before adding and subtracting TWO52[sx].
9913         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9914         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9915         Likewise.
9916         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9917
9918 2012-03-13  David S. Miller  <davem@davemloft.net>
9919
9920         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9921         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9922         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9923         rtld-global-offsets.h
9924         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9925
9926         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9927         large parameters.
9928
9929         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9930
9931         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9932         'err' in the ifdef scope in which it is actually used.
9933
9934         * nss/nss_db/db-init.c: Include string.h
9935
9936 2012-03-12  David S. Miller  <davem@davemloft.net>
9937
9938         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9939         masking out of the most significant byte of random value used.
9940         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9941         Fix coding style in previous change.
9942
9943         * sysdeps/unix/sysv/linux/kernel-features.h
9944         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9945         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9946         expression.
9947         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9948         later.
9949
9950 2012-03-11  David S. Miller  <davem@davemloft.net>
9951
9952         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9953         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9954         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9955         for 'resultvar' otherwise things get truncated on 64-bit.
9956
9957         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9958         Fix masking out of the most significant byte of random value used.
9959
9960         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9961
9962 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9963
9964         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9965
9966 2012-03-09  David S. Miller  <davem@davemloft.net>
9967
9968         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9969         variables with appropriate CPP guards.
9970         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9971         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9972         on resulting framesize and the management of the outregs buffer for pltexit.
9973         Preserve floating point return values across _dl_call_pltexit call.
9974         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9975         framesize and the management of the outregs buffer for pltexit.
9976         Preserve floating point return values across _dl_call_pltexit
9977         call.
9978         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9979         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9980         (print_exit): Fix format string for return register value.
9981
9982 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9983
9984         * sunrpc/Makefile (others): Add rpcgen.
9985         ($(objpfx)rpcgen): Remove special build rule and dependency on
9986         libc.
9987         * sunrpc/rpcgen.c: New file.
9988
9989 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9990
9991         [BZ #13673]
9992         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9993         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9994         * sysdeps/i386/crti.S: Likewise.
9995         * sysdeps/i386/crtn.S: Likewise.
9996         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9997         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9998         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9999         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10000         * sysdeps/sh/crti.S: Likewise.
10001         * sysdeps/sh/crtn.S: Likewise.
10002         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10003
10004         [BZ #13673]
10005         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10006         with URL.
10007         * locale/programs/locfile-kw.gperf: Likewise.
10008         * locale/programs/charmap-kw.h: Regenerated.
10009         * locale/programs/locfile-kw.h: Likewise.
10010
10011         [BZ #13673]
10012         * intl/plural.y: Replace FSF snail mail address with URL.
10013         * intl/plural.c: Regenerated.
10014
10015 2012-03-09  Richard Henderson  <rth@twiddle.net>
10016
10017         * include/math_private.h: Remove file.
10018         * math/math_private.h: Move file ...
10019         * sysdeps/generic/math_private.h: ... here.
10020
10021         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10022         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10023         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10024
10025         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10026         and <math_private.h>.
10027         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10028         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10029         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10030         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10031         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10032         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10033         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10034         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10035         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10036         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10037         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10038         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10039         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10040         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10041         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10042         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10043         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10044         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10045         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10046         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10047         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10048         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10049         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10050         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10051         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10052         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10053         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10054         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10055         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10056         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10057         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10058         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10059         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10060         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10061         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10062         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10063         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10064         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10065         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10066         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10067         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10068         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10069         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10070         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10071         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10072         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10073         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10074         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10075         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10076         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10077         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10078         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10079         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10080         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10081         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10082         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10083         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10084         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10085         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10086         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10087         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10088         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10089         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10090         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10091         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10092         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10093         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10094         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10095         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10096         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10097         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10098         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10099         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10100         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10101         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10102         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10103         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10104         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10105         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10106         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10107         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10108         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10109         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10110         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10111         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10112         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10113         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10114         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10115         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10116         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10117         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10118         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10119         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10120         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10121         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10122         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10123         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10124         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10125         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10126         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10127         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10128         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10129         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10130         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10131         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10132         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10133         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10134         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10135         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10136         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10137         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10138         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10139         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10140         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10141         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10142         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10143         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10144         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10145         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10146         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10147         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10148         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10149         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10150         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10151         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10152         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10153         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10154         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10155         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10156         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10157         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10158         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10159         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10160         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10161         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10162         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10163         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10164         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10165         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10166         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10167         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10168         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10169         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10170         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10171         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10172         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10173         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10174         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10175         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10176         * sysdeps/ieee754/k_standard.c: Likewise.
10177         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10178         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10179         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10180         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10181         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10182         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10183         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10184         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10185         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10186         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10187         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10188         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10189         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10190         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10191         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10192         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10193         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10194         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10195         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10196         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10197         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10198         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10199         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10200         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10201         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10202         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10203         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10204         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10205         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10206         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10207         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10208         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10209         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10210         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10211         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10212         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10213         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10214         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10215         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10216         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10217         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10218         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10219         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10220         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10221         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10222         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10223         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10224         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10225         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10226         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10227         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10228         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10229         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10230         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10231         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10232         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10233         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10234         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10235         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10236         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10237         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10238         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10239         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10240         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10241         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10242         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10243         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10244         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10245         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10246         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10247         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10248         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10249         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10250         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10251         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10252         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10253         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10254         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10255         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10256         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10257         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10258         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10259         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10260         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10261         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10262         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10263         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10264         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10265         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10266         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10267         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10268         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10269         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10270         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10271         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10272         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10273         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10274         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10275         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10276         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10277         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10278         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10279         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10280         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10281         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10282         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10283         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10284         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10285         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10286         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10287         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10288         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10289         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10290         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10291         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10292         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10293         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10294         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10295         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10296         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10297         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10298         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10299         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10300         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10301         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10302         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10303         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10304         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10305         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10306         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10307         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10308         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10309         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10310         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10311         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10312         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10313         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10314         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10315         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10316         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10317         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10318         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10319         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10320         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10321         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10322         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10323         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10324         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10325         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10326         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10327         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10328         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10329         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10330         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10331         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10332         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10333         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10334         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10335         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10336         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10337         * sysdeps/ieee754/s_lib_version.c: Likewise.
10338         * sysdeps/ieee754/s_matherr.c: Likewise.
10339         * sysdeps/ieee754/s_signgam.c: Likewise.
10340         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10341         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10342         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10343         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10344         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10345         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10346         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10347         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10348         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10349         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10350         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10351         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10352         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10353         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10354         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10355         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10356         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10357         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10358         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10359         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10360         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10361
10362 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10363
10364         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10365         * sunrpc/rpc_main.c: Likewise.
10366         * sunrpc/rpc_svcout.c: Likewise.
10367
10368 2012-03-09  David S. Miller  <davem@davemloft.net>
10369
10370         * include/math_private.h: New file.
10371
10372 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10373
10374         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10375         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10376         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10377         from <bits/socket_type.h>.
10378         (enum __socket_type): Don't define here.
10379         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10380         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10381         bits/socket_type.h.
10382
10383         [BZ #13566]
10384         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10385         checking __USE_GNU.
10386
10387         * Makerules ($(inst_includedir)/%.h): New rule.
10388         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10389         (install-others): Remove variable setting.
10390         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10391
10392 2012-03-08  Richard Henderson  <rth@twiddle.net>
10393
10394         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10395         from macro to inline function; merge with the
10396         !__LIBC_INTERNAL_MATH_INLINES version.
10397         (__ieee754_sqrtf): Likewise.
10398
10399         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10400         to inline function.
10401         (__rintf, __floor, __floorf): Likewise.
10402
10403         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10404         macro to inline function.
10405         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10406
10407         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10408         not <math/math_private.h>.
10409
10410 2012-03-08  David S. Miller  <davem@davemloft.net>
10411
10412         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10413         copyright year.
10414         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10415
10416 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10417
10418         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10419         normalization.
10420         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10421         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10422
10423 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10424
10425         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10426         be defined individually, they must be defined as a block.  Define
10427         S for printing a string instead of hidint the different by using a
10428         macro for adding the 'l'.
10429         * stdio-common/tst-fphex-wide.c: Adjust.
10430
10431 2012-03-07  Marek Polacek  <polacek@redhat.com>
10432
10433         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10434
10435 2012-03-08  Marek Polacek  <polacek@redhat.com>
10436
10437         [BZ #13806]
10438         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10439         * stdio-common/tst-fphex.c: Define a few macros to make the
10440         test reusable.  Use them.
10441         * stdio-common/tst-fphex-wide.c: New file.
10442
10443 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10444
10445         [BZ #6911]
10446         * manual/macros.texi (gnusystems): New macro.
10447         (nongnusystems): Likewise.
10448         (gnulinuxhurdsystems): Likewise.
10449         (gnuhurdsystems): Likewise..
10450         (gnulinuxsystems): Likewise.
10451         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10452         variants of the GNU system, not "GNU system".
10453         * manual/conf.texi: Likewise.
10454         * manual/errno.texi: Likewise.  Update example of errno macro
10455         expansion.
10456         * manual/filesys.texi: Likewise.
10457         (getumask): Document as specific to GNU/Hurd.
10458         * manual/install.texi: Likewise.  Reword some references to
10459         GNU/Linux.
10460         * manual/intro.texi: Likewise.
10461         * manual/io.texi: Likewise.
10462         (File Name Portability): Detail which constraints are inapplicable
10463         to all GNU systems and which are only inapplicable to GNU/Hurd.
10464         * manual/job.texi: Likewise.
10465         * manual/llio.texi: Likewise.
10466         (O_NOCTTY): Document as present on GNU/Linux.
10467         * manual/maint.texi: Likewise.
10468         * manual/memory.texi: Likewise.
10469         * manual/pattern.texi: Likewise.
10470         * manual/pipe.texi: Likewise.
10471         * manual/process.texi: Likewise.
10472         * manual/resource.texi: Likewise.
10473         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10474         child on GNU/Hurd.
10475         * manual/setjmp.texi: Likewise.
10476         * manual/signal.texi: Likewise.
10477         * manual/startup.texi: Likewise.
10478         * manual/stdio.texi: Likewise.
10479         * manual/terminal.texi: Likewise.
10480         (ONLCR): Document as POSIX.
10481         (OXTABS): Document availability on GNU/Linux as XTABS.
10482         (ONOEOT): Document availability separately from other bits.
10483         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10484         * manual/time.texi: Likewise.
10485         * manual/users.texi: Likewise.
10486         * INSTALL: Regenerated.
10487         * sysdeps/gnu/errlist.c: Regenerated.
10488
10489         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10490         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10491         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10492         puts.
10493         * configure: Regenerated.
10494
10495 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10496
10497         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10498         default includes instead of AC_HEADER_CHECK.
10499         * sysdeps/i386/configure: Regenerated.
10500
10501         [BZ #10716]
10502         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10503         * math/s_cacoshf.c (__cacoshf): Likewise.
10504         * math/s_cacoshl.c (__cacoshl): Likewise.
10505         * math/s_casinh.c (__casinh): Set signs of result from argument.
10506         * math/s_casinhf.c (__casinhf): Likewise.
10507         * math/s_casinhl.c (__casinhl): Likewise.
10508         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10509         (casinh_test): Add more tests.
10510         * sysdeps/i386/fpu/libm-test-ulps: Update.
10511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10512
10513 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10514
10515         * po/zh_TW.po: Update from translation team.
10516
10517         * login/Makefile (distribute): Remove variable.
10518         * catgets/Makefile: Likewise.
10519         * mach/Makefile: Likewise.
10520         * malloc/Makefile: Likewise.
10521         * misc/Makefile: Likewise.
10522         * iconv/Makefile: Likewise.
10523         * nscd/Makefile: Likewise.
10524         * hurd/Makefile: Likewise.
10525         * manual/Makefile: Likewise.
10526         * locale/Makefile: Likewise.
10527         * intl/Makefile: Likewise.
10528         * conform/Makefile: Likewise.
10529         * nss/Makefile: Likewise.
10530         * time/Makefile: Likewise.
10531         * soft-fp/Makefile: Likewise.
10532         * dirent/Makefile: Likewise.
10533         * gmon/Makefile: Likewise.
10534         * po/Makefile: Likewise.
10535         * rt/Makefile: Likewise.
10536         * socket/Makefile: Likewise.
10537         * math/Makefile: Likewise.
10538         * signal/Makefile: Likewise.
10539         * debug/Makefile: Likewise.
10540         * elf/Makefile: Likewise.
10541         * timezone/Makefile: Likewise.
10542         * stdlib/Makefile: Likewise.
10543         * iconvdata/Makefile: Likewise.
10544         * sunrpc/Makefile: Likewise.
10545         * io/Makefile: Likewise.
10546         * argp/Makefile: Likewise.
10547         * inet/Makefile: Likewise.
10548         * hesiod/Makefile: Likewise.
10549         * grp/Makefile: Likewise.
10550         * csu/Makefile: Likewise.
10551         * wctype/Makefile: Likewise.
10552         * crypt/Makefile: Likewise.
10553         * libio/Makefile: Likewise.
10554         * string/Makefile: Likewise.
10555         * nis/Makefile: Likewise.
10556         * resolv/Makefile: Likewise.
10557         * stdio-common/Makefile: Likewise.
10558         * wcsmbs/Makefile: Likewise.
10559         * dlfcn/Makefile: Likewise.
10560         * posix/Makefile: Likewise.
10561
10562         [BZ #6959]
10563         * timezone/Makefile: Don't install timezone files, just the programs
10564         and scripts.
10565
10566 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10567
10568         * nss/databases.def: Add missing gshadow entry.
10569
10570         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10571
10572 2012-03-06  Marek Polacek  <polacek@redhat.com>
10573
10574         [BZ #13726]
10575         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10576         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10577         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10578         * stdio-common/tst-long-dbl-fphex.c: New file.
10579
10580 2012-03-06  David S. Miller  <davem@davemloft.net>
10581
10582         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10583         (set_obp_int): New function.
10584         (get_obp_int): New function.
10585         (__get_clockfreq_via_dev_openprom): Likewise.
10586         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10587         Avoid unused variable warnings on 'val' and use builtin_expect.
10588         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10589         __builtin_expect.
10590         (INLINE_CLONE_SYSCALL): Likewise.
10591
10592 2012-03-05  David S. Miller  <davem@davemloft.net>
10593
10594         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10595
10596 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10597
10598         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10599
10600         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10601         only for |x| >= 40.
10602         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10603
10604 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10605
10606         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10607         Replace gettimeofday with __vdso_gettimeofday.
10608
10609         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10610         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10611         __vdso_clock_gettime and __vdso_getcpu.
10612
10613         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10614         time with __vdso_time.
10615
10616 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10617
10618         * manual/lang.texi (size_t): Note types to which size_t may be
10619         equivalent with the GNU C Library, but do not describe when
10620         differences between them are significant.
10621
10622 2012-03-05  Andreas Jaeger  <aj@suse.de>
10623
10624         * sysdeps/i386/fpu/libm-test-ulps: Update.
10625
10626 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10627
10628         [BZ #3976]
10629         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10630         (__ieee754_pow): Save and restore rounding mode and use
10631         round-to-nearest for main computations.
10632         * math/libm-test.inc (pow_test_tonearest): New function.
10633         (pow_test_towardzero): Likewise.
10634         (pow_test_downward): Likewise.
10635         (pow_test_upward): Likewise.
10636         (main): Call the new functions.
10637         * sysdeps/i386/fpu/libm-test-ulps: Update.
10638         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10639
10640         [BZ #3976]
10641         * math/libm-test.inc (cosh_test_tonearest): New function.
10642         (cosh_test_towardzero): Likewise.
10643         (cosh_test_downward): Likewise.
10644         (cosh_test_upward): Likewise.
10645         (sinh_test_tonearest): Likewise.
10646         (sinh_test_towardzero): Likewise.
10647         (sinh_test_downward): Likewise.
10648         (sinh_test_upward): Likewise.
10649         (main): Call the new functions.
10650         * sysdeps/i386/fpu/libm-test-ulps: Update.
10651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10652
10653 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10654
10655         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10656         default stack guard is set in last bytes.
10657         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10658
10659 2012-03-05  Kees Cook  <keescook@chromium.org>
10660
10661         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10662
10663         [BZ #13656]
10664         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10665         possibly allocate from heap instead of stack.
10666         * stdio-common/bug-vfprintf-nargs.c: New file.
10667         * stdio-common/Makefile (tests): Add nargs overflow test.
10668
10669 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10670
10671         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10672
10673 2012-03-03  Marek Polacek  <polacek@redhat.com>
10674
10675         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10676         * math/math_private.h: Likewise.
10677         * stdlib/tst-strtod.c: Likewise.
10678         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10679         * sysdeps/x86_64/bits/atomic.h: Likewise.
10680
10681 2012-03-02  David S. Miller  <davem@davemloft.net>
10682
10683         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10684         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10685         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10686         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10687         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10688         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10689         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10690         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10691
10692 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10693
10694         [BZ #13792]
10695         * manual/examples/README: New file, says the example source files
10696         can be used under GPL>=2.
10697         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10698         line containing just "*/".
10699         * manual/examples/add.c: Add copyright header (GPL>=2).
10700         * manual/examples/argp-ex1.c: Likewise.
10701         * manual/examples/argp-ex2.c: Likewise.
10702         * manual/examples/argp-ex3.c: Likewise.
10703         * manual/examples/argp-ex4.c: Likewise.
10704         * manual/examples/atexit.c: Likewise.
10705         * manual/examples/db.c: Likewise.
10706         * manual/examples/dir.c: Likewise.
10707         * manual/examples/dir2.c: Likewise.
10708         * manual/examples/execinfo.c: Likewise.
10709         * manual/examples/filecli.c: Likewise.
10710         * manual/examples/filesrv.c: Likewise.
10711         * manual/examples/fmtmsgexpl.c: Likewise.
10712         * manual/examples/genpass.c: Likewise.
10713         * manual/examples/inetcli.c: Likewise.
10714         * manual/examples/inetsrv.c: Likewise.
10715         * manual/examples/isockad.c: Likewise.
10716         * manual/examples/longopt.c: Likewise.
10717         * manual/examples/memopen.c: Likewise.
10718         * manual/examples/memstrm.c: Likewise.
10719         * manual/examples/mkfsock.c: Likewise.
10720         * manual/examples/mkisock.c: Likewise.
10721         * manual/examples/mygetpass.c: Likewise.
10722         * manual/examples/pipe.c: Likewise.
10723         * manual/examples/popen.c: Likewise.
10724         * manual/examples/rprintf.c: Likewise.
10725         * manual/examples/search.c: Likewise.
10726         * manual/examples/select.c: Likewise.
10727         * manual/examples/setjmp.c: Likewise.
10728         * manual/examples/sigh1.c: Likewise.
10729         * manual/examples/sigusr.c: Likewise.
10730         * manual/examples/stpcpy.c: Likewise.
10731         * manual/examples/strdupa.c: Likewise.
10732         * manual/examples/strftim.c: Likewise.
10733         * manual/examples/strncat.c: Likewise.
10734         * manual/examples/subopt.c: Likewise.
10735         * manual/examples/swapcontext.c: Likewise.
10736         * manual/examples/termios.c: Likewise.
10737         * manual/examples/testopt.c: Likewise.
10738         * manual/examples/testpass.c: Likewise.
10739         * manual/examples/timeval_subtract.c: Likewise.
10740
10741         [BZ #13792]
10742         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10743         function to ...
10744         * manual/timeval_subtract.c.texi: ... here, new file.
10745
10746 2012-03-02  David S. Miller  <davem@davemloft.net>
10747
10748         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10749
10750 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10751
10752         [BZ #3976]
10753         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10754         (__sin): Save and restore rounding mode and use round-to-nearest
10755         for all computations.
10756         (__cos): Save and restore rounding mode and use round-to-nearest
10757         for all computations.
10758         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10759         <fenv.h>.
10760         (tan): Save and restore rounding mode and use round-to-nearest for
10761         all computations.
10762         * math/libm-test.inc (cos_test_tonearest): New function.
10763         (cos_test_towardzero): Likewise.
10764         (cos_test_downward): Likewise.
10765         (cos_test_upward): Likewise.
10766         (sin_test_tonearest): Likewise.
10767         (sin_test_towardzero): Likewise.
10768         (sin_test_downward): Likewise.
10769         (sin_test_upward): Likewise.
10770         (tan_test_tonearest): Likewise.
10771         (tan_test_towardzero): Likewise.
10772         (tan_test_downward): Likewise.
10773         (tan_test_upward): Likewise.
10774         (main): Call the new functions.
10775         * sysdeps/i386/fpu/libm-test-ulps: Update.
10776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10777
10778         [BZ #10135]
10779         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10780         small n, then large n, before computing and testing k+n.
10781         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10782         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10783         Likewise.
10784         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10785         Likewise.
10786         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10787         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10788         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10789         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10790         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10791         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10792         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10793         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10794         * math/libm-test.inc (scalbn_test): Add more tests.
10795         (scalbln_test): Likewise.
10796
10797         * manual/filesys.texi (mode_t): Describe constraints on size and
10798         signedness, not exact equivalence to a particular type.
10799         (ino_t): Likewise.
10800         (ino64_t): Likewise.
10801         (dev_t): Likewise.
10802         (nlink_t): Likewise.
10803         (blkcnt_t): Likewise.
10804         (blkcnt64_t): Likewise.
10805         * manual/llio.texi (off_t): Likewise.
10806
10807         [BZ #3976]
10808         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10809         (__ieee754_exp): Save and restore rounding mode and use
10810         round-to-nearest for all computations.
10811         * math/libm-test.inc (exp_test_tonearest): New function.
10812         (exp_test_towardzero): Likewise.
10813         (exp_test_downward): Likewise.
10814         (exp_test_upward): Likewise.
10815         (main): Call the new functions.
10816         * sysdeps/i386/fpu/libm-test-ulps: Update.
10817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10818
10819 2012-03-01  Chris Demetriou  <cgd@google.com>
10820
10821         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10822         have predictable order.
10823
10824 2012-03-01  David S. Miller  <davem@davemloft.net>
10825
10826         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10827
10828         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10829         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10830         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10831         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10832
10833         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10834         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10835         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10836         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10837         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10838         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10839         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10840         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10841         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10842
10843         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10844
10845         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10846         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10847         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10848
10849         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10850         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10851         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10852         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10853         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10854         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10855         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10856         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10857         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10858         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10859         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10860         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10861         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10862         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10863         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10864         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10865         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10866         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10867         * sysdeps/sparc/elf/configure: Regenerated.
10868
10869 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10870
10871         * configure.in (AS, LD): Require binutils 2.20 or later.
10872         * configure: Regenerated.
10873         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10874         as required minimum version.
10875         * INSTALL: Regenerated.
10876
10877         [BZ #2541]
10878         [BZ #4108]
10879         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10880         before squaring exponent.
10881         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10882         bottom long double and 27 bits of top long double before squaring
10883         exponent.
10884         * math/libm-test.inc (erfc_test): Add more tests.
10885         * sysdeps/i386/fpu/libm-test-ulps: Update.
10886         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10888
10889 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10890
10891         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10892         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10893         containing bit-fields.
10894         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10895         * soft-fp/single.h (_FP_UNION_S): Likewise.
10896         * soft-fp/double.h (_FP_UNION_D): Likewise.
10897
10898 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10899
10900         [BZ #13786]
10901         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10902         not include ../strcmp.S.
10903         [USE_AS_STRNCASECMP_L]: Likewise.
10904         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10905         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10906         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10907         (__strncasecmp_l_ia32): Define as alias to
10908         __strncasecmp_l_nonascii.
10909
10910         [BZ #5794]
10911         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10912         * sysdeps/i386/fpu/libm-test-ulps: Update.
10913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10914
10915         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10916         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10917
10918 2012-02-29  Jeff Law  <law@redhat.com>
10919
10920         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10921         out of bounds read.
10922
10923 2012-02-29  Marek Polacek  <polacek@redhat.com>
10924
10925         [BZ #13706]
10926         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10927         * elf/Makefile: Add rules to run tst-unused-dep.out.
10928
10929 2012-02-28  David S. Miller  <davem@davemloft.net>
10930
10931         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10932         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10933         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10934         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10935         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10936         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10937
10938 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10939
10940         * math/libm-test.inc (llround_test): Move one test from
10941         lround_test.  Use TEST_f_L in moved test.
10942         (lround_test): Move misplaced test to llround_test.  Add testcase
10943         from bug 2561.
10944
10945 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10946
10947         * sysdeps/x86_64/fpu/e_expf.S: New file.
10948         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10949
10950 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10951
10952         [BZ #13637]
10953         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10954         of remain_len that may cause incomplete multi-byte character and
10955         false match.
10956         * posix/bug-regex33.c: New file.
10957         * posix/Makefile (tests): Add bug-regex33.
10958
10959 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10960
10961         * manual/macros.texi: New file.
10962         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10963         * manual/libc.texinfo: Include macros.texi.
10964         * manual/creatute.texi: Likewise.
10965         * manual/install.texi: Likewise.
10966         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10967         @glibcadj{} in references to the GNU C Library.
10968         * manual/charset.texi: Likewise.
10969         * manual/conf.texi: Likewise.
10970         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10971         when not using those macros.
10972         * manual/creature.texi: Likewise.
10973         * manual/crypt.texi: Likewise.
10974         * manual/errno.texi: Likewise.
10975         * manual/filesys.texi: Likewise.
10976         * manual/header.texi: Likewise.
10977         * manual/install.texi: Likewise.
10978         * manual/intro.texi: Likewise.
10979         * manual/io.texi: Likewise.
10980         * manual/job.texi: Likewise.
10981         * manual/lang.texi: Likewise.
10982         * manual/libc.texiinfo: Likewise.
10983         * manual/llio.texi: Likewise.
10984         * manual/locale.texi: Likewise.
10985         * manual/maint.texi: Likewise.
10986         * manual/math.texi: Likewise.
10987         * manual/memory.texi: Likewise.
10988         * manual/message.texi: Likewise.
10989         * manual/nss.texi: Likewise.
10990         * manual/pattern.texi: Likewise.
10991         * manual/process.texi: Likewise.
10992         * manual/resource.texi: Likewise.
10993         * manual/search.texi: Likewise.
10994         * manual/setjmp.texi: Likewise.
10995         * manual/signal.texi: Likewise.
10996         * manual/socket.texi: Likewise.
10997         * manual/startup.texi: Likewise.
10998         * manual/stdio.texi: Likewise.
10999         * manual/string.texi: Likewise.
11000         * manual/sysinfo.texi: Likewise.
11001         * manual/syslog.texi: Likewise.
11002         * manual/terminal.texi: Likewise.
11003         * manual/time.texi: Likewise.
11004         * manual/users.texi: Likewise.
11005         * INSTALL: Regenerated.
11006         * NOTES: Regenerated.
11007         * sysdeps/gnu/errlist.c: Regenerated.
11008
11009 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11010
11011         * include/dirent.h: Include <dirstream.h> before
11012         <dirent/dirent.h>.
11013
11014 2012-02-28  David S. Miller  <davem@davemloft.net>
11015
11016         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11017         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11018         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11019         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11020
11021 2012-02-27  David S. Miller  <davem@davemloft.net>
11022
11023         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11024         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11025         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11026         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11027
11028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11029         frame pointer instead of stack pointer relative arg slot.
11030         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11031         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11032         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11033
11034 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11035
11036         [BZ #3992]
11037         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11038
11039 2012-02-27  David S. Miller  <davem@davemloft.net>
11040
11041         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11042         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11043         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11044         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11045         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11046         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11047         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11048         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11049
11050 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11051
11052         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11053         later.  Allow versions 5-9.
11054         * configure: Regenerated.
11055         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11056         required minimum version and 4.6 as recommended version.  Do not
11057         mention bugs in GCC 2.7 and 2.8.
11058         * INSTALL: Regenerated.
11059
11060 2012-02-27  David S. Miller  <davem@davemloft.net>
11061
11062         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11063         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11064         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11065         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11066         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11067         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11068         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11069         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11070
11071         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11072         manipulate bits before adding and subtracting TWO112[sx].
11073         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11074
11075 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11076
11077         [BZ #13775]
11078         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11079         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11080         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11081         being in POSIX, because they are in 1003.1-2008.
11082
11083         * rt/tst-aio.c: Include <fcntl.h>.
11084         * rt/tst-aio7.c: Likewise.
11085         * rt/tst-aio64.c: Likewise.
11086
11087         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11088
11089 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11090
11091         * manual/install.texi (--with-headers): Describe headers as
11092         interface headers, not private headers.
11093         (Specific advice for GNU/Linux systems): Describe use of headers
11094         from "make headers_install", not private headers from older
11095         kernels.
11096         * INSTALL: Regenerated.
11097         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11098         Change to 2.6.19.
11099         * sysdeps/unix/sysv/linux/configure: Regenerated.
11100
11101         * manual/llio.texi (fclean): Remove documentation.
11102
11103         * manual/Makefile (libc-texi-generated): New variable.  Include
11104         version.texi.
11105         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11106         $(libc-texi-generated), not duplicated list of files.
11107         (version.texi, stamp-version): New rules.
11108         (realclean): Remove $(libc-texi-generated), not individual files
11109         from that list.  Do not remove dir-add.texinfo.
11110         * manual/libc.texinfo: Comment out uses of edition numbers and
11111         references to printed manual.  Remove last-updated dates.
11112         (EDITION): Comment out.
11113         (ISBN): Likewise.
11114         (VERSION, UPDATED): Remove.
11115         (version.texi): Include.
11116
11117 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11118
11119         * sysdeps/posix/spawni.c: Include <signal.h>.
11120         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11121         * sysdeps/pthread/aio_fsync.c: Likewise.
11122
11123 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11124
11125         * conform/Makefile (tests): Run only when not cross-compiling and
11126         when fast-check is not defined.
11127
11128         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11129         * conform/data/limits.h-data: Fixes for POSIX2008.
11130         * conform/run-conformtest.sh: Run all tests.
11131         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11132         headers.
11133         * include/bits/dlfcn.h: Likewise.
11134         * include/langinfo.h: Likewise.
11135         * include/monetary.h: Likewise.
11136         * include/sys/poll.h: Likewise.
11137
11138         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11139         for __USE_GNU.
11140         * posix/spawn.h: Define __need_sigset_t.
11141         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11142         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11143         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11144         to get sigevent_t only.
11145         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11146         only for __USE_GNU.
11147         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11148         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11149         process_vm_writev only for __USE_GNU.
11150         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11151
11152         * conform/Makefile: For now ignore errors from run-conformtest.
11153         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11154         POSIX to avoid namespace pollution.  Don't prepend headers.
11155         * conform/data/aio.h-data: Fixes for POSIX testing.
11156         * conform/data/fcntl.h-data: Likewise.
11157         * conform/data/glob.h-data: Likewise.
11158         * conform/data/grp.h-data: Likewise.
11159         * conform/data/pthread.h-data: Likewise.
11160         * conform/data/pwd.h-data: Likewise.
11161         * conform/data/signal.h-data: Likewise.
11162         * conform/data/spawn.h-data: Likewise.
11163         * conform/data/stdio.h-data: Likewise.
11164         * conform/data/stdlib.h-data: Likewise.
11165         * conform/data/stropts.h-data: Likewise.
11166         * conform/data/sys/mman.h-data: Likewise.
11167         * conform/data/sys/stat.h-data: Likewise.
11168         * conform/data/sys/types.h-data: Likewise.
11169         * conform/data/sys/wait.h-data: Likewise.
11170         * conform/data/time.h-data: Likewise.
11171         * conform/data/unistd.h-data: Likewise.
11172         * conform/data/utime.h-data: Likewise.
11173
11174         * io/sys/stat.h: fchmod was always in POSIX.
11175         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11176         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11177         * rt/aio.h: Define __need_timespec before including <time.h>.
11178         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11179         struct.  Add forward declaration of pthread_attr_t and use it in
11180         sigevent.
11181         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11182         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11183         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11184         always remove CLK_TCK definition.
11185
11186 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11187
11188         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11189
11190 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11191
11192         * conform/run-conformtest.sh: New file.
11193         * conform/Makefile: Run run-conformtest for tests.
11194         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11195         support.
11196
11197         * conform/data/uchar.h-data: New file.
11198         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11199         * conform/data/arpa/inet.h-data: Likewise.
11200         * conform/data/assert.h-data: Likewise.
11201         * conform/data/complex.h-data: Likewise.
11202         * conform/data/cpio.h-data: Likewise.
11203         * conform/data/ctype.h-data: Likewise.
11204         * conform/data/dirent.h-data: Likewise.
11205         * conform/data/dlfcn.h-data: Likewise.
11206         * conform/data/errno.h-data: Likewise.
11207         * conform/data/fcntl.h-data: Likewise.
11208         * conform/data/float.h-data: Likewise.
11209         * conform/data/fmtmsg.h-data: Likewise.
11210         * conform/data/fnmatch.h-data: Likewise.
11211         * conform/data/ftw.h-data: Likewise.
11212         * conform/data/glob.h-data: Likewise.
11213         * conform/data/grp.h-data: Likewise.
11214         * conform/data/iconv.h-data: Likewise.
11215         * conform/data/inttypes.h-data: Likewise.
11216         * conform/data/langinfo.h-data: Likewise.
11217         * conform/data/libgen.h-data: Likewise.
11218         * conform/data/limits.h-data: Likewise.
11219         * conform/data/locale.h-data: Likewise.
11220         * conform/data/math.h-data: Likewise.
11221         * conform/data/monetary.h-data: Likewise.
11222         * conform/data/mqueue.h-data: Likewise.
11223         * conform/data/ndbm.h-data: Likewise.
11224         * conform/data/net/if.h-data: Likewise.
11225         * conform/data/netdb.h-data: Likewise.
11226         * conform/data/netinet/in.h-data: Likewise.
11227         * conform/data/nl_types.h-data: Likewise.
11228         * conform/data/poll.h-data: Likewise.
11229         * conform/data/pthread.h-data: Likewise.
11230         * conform/data/pwd.h-data: Likewise.
11231         * conform/data/regex.h-data: Likewise.
11232         * conform/data/sched.h-data: Likewise.
11233         * conform/data/search.h-data: Likewise.
11234         * conform/data/semaphore.h-data: Likewise.
11235         * conform/data/setjmp.h-data: Likewise.
11236         * conform/data/signal.h-data: Likewise.
11237         * conform/data/spawn.h-data: Likewise.
11238         * conform/data/stdarg.h-data: Likewise.
11239         * conform/data/stdio.h-data: Likewise.
11240         * conform/data/stdlib.h-data: Likewise.
11241         * conform/data/string.h-data: Likewise.
11242         * conform/data/strings.h-data: Likewise.
11243         * conform/data/stropts.h-data: Likewise.
11244         * conform/data/sys/ipc.h-data: Likewise.
11245         * conform/data/sys/mman.h-data: Likewise.
11246         * conform/data/sys/msg.h-data: Likewise.
11247         * conform/data/sys/resource.h-data: Likewise.
11248         * conform/data/sys/select.h-data: Likewise.
11249         * conform/data/sys/sem.h-data: Likewise.
11250         * conform/data/sys/shm.h-data: Likewise.
11251         * conform/data/sys/socket.h-data: Likewise.
11252         * conform/data/sys/stat.h-data: Likewise.
11253         * conform/data/sys/statvfs.h-data: Likewise.
11254         * conform/data/sys/time.h-data: Likewise.
11255         * conform/data/sys/timeb.h-data: Likewise.
11256         * conform/data/sys/times.h-data: Likewise.
11257         * conform/data/sys/types.h-data: Likewise.
11258         * conform/data/sys/uio.h-data: Likewise.
11259         * conform/data/sys/un.h-data: Likewise.
11260         * conform/data/sys/utsname.h-data: Likewise.
11261         * conform/data/sys/wait.h-data: Likewise.
11262         * conform/data/syslog.h-data: Likewise.
11263         * conform/data/tar.h-data: Likewise.
11264         * conform/data/termios.h-data: Likewise.
11265         * conform/data/utime.h-data: Likewise.
11266         * conform/data/utmpx.h-data: Likewise.
11267         * conform/data/varargs.h-data: Likewise.
11268         * conform/data/wchar.h-data: Likewise.
11269         * conform/data/wctype.h-data: Likewise.
11270         * conform/data/wordexp.h-data: Likewise.
11271
11272         * include/stropts.h: New file.
11273         * include/uchar.h: New file.
11274         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11275         * include/assert.h: Likewise.
11276         * include/ctype.h: Likewise.
11277         * include/dirent.h: Likewise.
11278         * include/dlfcn.h: Likewise.
11279         * include/fcntl.h: Likewise.
11280         * include/fnmatch.h: Likewise.
11281         * include/glob.h: Likewise.
11282         * include/grp.h: Likewise.
11283         * include/libio.h: Likewise.
11284         * include/locale.h: Likewise.
11285         * include/math.h: Likewise.
11286         * include/net/if.h: Likewise.
11287         * include/netdb.h: Likewise.
11288         * include/netinet/in.h: Likewise.
11289         * include/pthread.h: Likewise.
11290         * include/pwd.h: Likewise.
11291         * include/regex.h: Likewise.
11292         * include/sched.h: Likewise.
11293         * include/search.h: Likewise.
11294         * include/setjmp.h: Likewise.
11295         * include/signal.h: Likewise.
11296         * include/stdio.h: Likewise.
11297         * include/stdlib.h: Likewise.
11298         * include/string.h: Likewise.
11299         * include/sys/cdefs.h: Likewise.
11300         * include/sys/mman.h: Likewise.
11301         * include/sys/msg.h: Likewise.
11302         * include/sys/resource.h: Likewise.
11303         * include/sys/select.h: Likewise.
11304         * include/sys/socket.h: Likewise.
11305         * include/sys/stat.h: Likewise.
11306         * include/sys/statvfs.h: Likewise.
11307         * include/sys/time.h: Likewise.
11308         * include/sys/times.h: Likewise.
11309         * include/sys/uio.h: Likewise.
11310         * include/sys/utsname.h: Likewise.
11311         * include/sys/wait.h: Likewise.
11312         * include/termios.h: Likewise.
11313         * include/time.h: Likewise.
11314         * include/ulimit.h: Likewise.
11315         * include/unistd.h: Likewise.
11316         * include/utime.h: Likewise.
11317         * include/wchar.h: Likewise.
11318         * include/wctype.h: Likewise.
11319         * include/wordexp.h: Likewise.
11320
11321         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11322
11323         * time/time.h: TIME_UTC must be a macro.
11324         Make timespec_get available for ISO C11 only as well.
11325
11326 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11327
11328         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11329         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11330
11331 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11332
11333         * configure.in: Use -o not -a in test for unsupported multi-arch.
11334
11335 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11336
11337         * manual/texinfo.tex: Update to version 2012-01-19.16.
11338
11339 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11340
11341         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11342
11343 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11344
11345         [BZ #13738]
11346         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11347         * manual/fdl-1.3.texi: New file.
11348         * manual/fdl-1.1.texi: File removed.
11349
11350         [BZ #13738]
11351         * manual/libc.texinfo (FDL_VERSION): New @set.
11352         Use it for mention of FDL in cover text.
11353         (Documentation License): Use it in @include file name.
11354
11355 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11356             Roland McGrath  <roland@hack.frob.com>
11357
11358         [BZ #5461]
11359         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11360         not LONG_LONG_MAX and LONG_LONG_MIN.
11361         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11362         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11363         name.
11364         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11365
11366 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11367
11368         [BZ #2547]
11369         [BZ #11365]
11370         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11371         manipulate bits before adding and subtracting TWO23[sx].
11372         * math/libm-test.inc (nearbyint_test): Add more tests.
11373
11374 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11375
11376         [BZ #2548]
11377         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11378         bits before adding and subtracting TWO23[sx].
11379         * math/libm-test.inc (rint_test): Add more tests.
11380         (rint_test_tonearest): Likewise.
11381         (rint_test_towardzero): Likewise.
11382         (rint_test_downward): Likewise.
11383         (rint_test_upward: Likewise.
11384
11385 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11386
11387         [BZ #10110]
11388         * include/stdc-predef.h: New file.  Extracted from features.h.
11389         * include/features.h: Include stdc-predef.h.
11390         * Makefile (headers): Add stdc-predef.h.
11391         * CONFORMANCE (Compiler limitations): Update.
11392
11393 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11394
11395         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11396
11397 2012-02-21  David S. Miller  <davem@davemloft.net>
11398
11399         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11400         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11401
11402 2012-02-20  David S. Miller  <davem@davemloft.net>
11403
11404         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11405         using a normal save/restore sequence, rather than allocating a
11406         dummy stack frame just to store a frame pointer and restore.
11407         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11408
11409 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11410
11411         * manual/install.texi: Fix stray word in line-wrapped comment.
11412
11413 2012-02-20  David S. Miller  <davem@davemloft.net>
11414
11415         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11416         both binutils and gcc support GOTDATA.
11417
11418         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11419         "rd %pc" in the PIC register setup sequences.
11420
11421         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11422         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11423         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11424         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11425         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11426         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11427         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11428         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11429         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11430         (SYSCALL_ERROR_HANDLER): Likewise.
11431         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11432         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11433         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11434         (SYSCALL_ERROR_HANDLER): Likewise.
11435
11436         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11437         (HAVE_GCC_GOTDATA): New.
11438         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11439         relocation support in both binutils and gcc.
11440         * sysdeps/sparc/elf/configure: Regenerate.
11441
11442         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11443         * sysdeps/sparc/sparc32/elf/configure: Delete.
11444         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11445         * sysdeps/sparc/sparc64/elf/configure: Delete.
11446         * sysdeps/sparc/elf/configure.in: New file.
11447         * sysdeps/sparc/elf/configure: Generate.
11448
11449         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11450         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11451         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11452         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11453         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11454
11455 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11456
11457         * manual/install.texi: Do not mention specific glibc version
11458         numbers.
11459         * manual/libc.texinfo (VERSION, UPDATED): Update.
11460         (@copying): Use @copyright{} and range of years.
11461
11462 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11463
11464         [BZ #13695]
11465         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11466         [crti.S not in sysdirs] (generated): Do not append.
11467         [crti.S not in sysdirs] (omit-deps): Likewise.
11468         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11469         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11470         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11471         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11472         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11473         Likewise.
11474         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11475         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11476         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11477         * csu/defs.awk: Remove file.
11478         * sysdeps/generic/initfini.c: Likewise.
11479         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11480         variable.
11481         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11482         Likewise.
11483
11484 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11485
11486         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11487         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11488         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11489         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11490         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11491         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11492         <bits/epoll.h>.
11493         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11494         (__EPOLL_PACKED): Define to empty if not defined by
11495         <bits/epoll.h>.
11496         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11497         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11498         bits/epoll.h.
11499
11500 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11501
11502         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11503         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11504         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11505         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11506         <bits/timerfd.h>.
11507         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11508         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11509         bits/timerfd.h.
11510
11511 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11512
11513         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11514         in C locale.
11515         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11516         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11517         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11518         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11519
11520 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11521
11522         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11523         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11524
11525 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11526
11527         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11528         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11529         defined.
11530         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11531         Likewise.
11532         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11533         entry for 2.16.
11534
11535 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11536
11537         * math/w_acos.c: Use non-signaling floating-point comparisons.
11538         * math/w_acosf.c: Likewise.
11539         * math/w_acosh.c: Likewise.
11540         * math/w_acoshf.c: Likewise.
11541         * math/w_acoshl.c: Likewise.
11542         * math/w_acosl.c: Likewise.
11543         * math/w_asin.c: Likewise.
11544         * math/w_asinf.c: Likewise.
11545         * math/w_asinl.c: Likewise.
11546         * math/w_atanh.c: Likewise.
11547         * math/w_atanhf.c: Likewise.
11548         * math/w_atanhl.c: Likewise.
11549         * math/w_exp2.c: Likewise.
11550         * math/w_exp2f.c: Likewise.
11551         * math/w_exp2l.c: Likewise.
11552         * math/w_j0.c: Likewise.
11553         * math/w_j0f.c: Likewise.
11554         * math/w_j0l.c: Likewise.
11555         * math/w_j1.c: Likewise.
11556         * math/w_j1f.c: Likewise.
11557         * math/w_j1l.c: Likewise.
11558         * math/w_jn.c: Likewise.
11559         * math/w_jnf.c: Likewise.
11560         * math/w_log.c: Likewise.
11561         * math/w_log10.c: Likewise.
11562         * math/w_log10f.c: Likewise.
11563         * math/w_log10l.c: Likewise.
11564         * math/w_log2.c: Likewise.
11565         * math/w_log2f.c: Likewise.
11566         * math/w_log2l.c: Likewise.
11567         * math/w_logf.c: Likewise.
11568         * math/w_logl.c: Likewise.
11569         * math/w_sqrt.c: Likewise.
11570         * math/w_sqrtf.c: Likewise.
11571         * math/w_sqrtl.c: Likewise.
11572         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11573         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11574         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11575         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11576         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11577
11578 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11579
11580         [BZ #9739]
11581         * manual/string.texi (strnlen): Use correct parameter name in
11582         equivalent expression.
11583
11584 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11585
11586         [BZ #11174]
11587         * manual/users.texi (seteuid): Consistently use neweuid for
11588         argument name.
11589
11590 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11591
11592         [BZ #13704]
11593         * manual/nss.texi (Services in the NSS configuration): Correct
11594         list of services in example configuration file.
11595
11596 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11597
11598         [BZ #11322]
11599         * manual/arith.texi: Remove statements about negative zero
11600         behaving identically to zero.
11601
11602 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11603
11604         [BZ #5993]
11605         * manual/install.texi: Do not document upgrading from libc5.
11606
11607 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11608
11609         [BZ #4596]
11610         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11611
11612 2012-02-18  David S. Miller  <davem@davemloft.net>
11613
11614         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11615         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11616         %o7 across the call.
11617         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11618         instead.
11619         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11620         SETUP_PIC_REG_LEAF.
11621         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11622         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11623         * sysdeps/sparc/crtn.S: Likewise.
11624
11625 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11626
11627         * aout/Makefile: Remove.
11628
11629 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11630
11631         [BZ #13058]
11632         * manual/examples/argp-ex1.c (main): Format definition in GNU
11633         style.
11634         * manual/examples/argp-ex2.c (main): Likewise.
11635         * manual/examples/argp-ex3.c (main): Likewise.
11636         * manual/examples/argp-ex4.c (main): Likewise.
11637         * manual/examples/longopt.c (main): Use new-style prototype
11638         definition.
11639         * manual/examples/strncat.c (main): Specify return type and use
11640         (void) for arguments.
11641         * manual/examples/subopt.c (main): Use char **argv argument.
11642
11643 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11644
11645         [BZ #5077]
11646         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11647         rounding modes.
11648
11649 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11650
11651         [BZ #6907]
11652         * manual/string.texi (strchr): Change when strchrnul is
11653         recommended.
11654
11655 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11656
11657         [BZ #174]
11658         * manual/locale.texi (setlocale): Document LOCPATH.
11659
11660 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11661
11662         [BZ #10210]
11663         * manual/process.texi (execle): Move @dots{} before last argument.
11664
11665 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11666
11667         [BZ #12047]
11668         * manual/charset.texi (Generic Charset Conversion): Fix typo
11669         (LC_TYPE -> LC_CTYPE).
11670
11671 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11672
11673         [BZ #5805]
11674         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11675         (scalbnf): Likewise.
11676         (scalbnl): Likewise.
11677         (scalbln): Likewise.
11678         (scalblnf): Likewise.
11679         (scalblnl): Likewise.
11680         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11681         (vwarnx): Likewise.
11682         (verr): Likewise.
11683         (verrx): Likewise.
11684         * manual/filesys.texi (telldir): Use braces around return type.
11685         * manual/llio.texi (mmap): Add space after comma.
11686         (mmap64): Likewise.
11687         * manual/math.texi (jn): Use @var{} on parameter names.
11688         (jnf): Likewise.
11689         (jnl): Likewise.
11690         (yn): Likewise.
11691         (ynf): Likewise.
11692         (ynl): Likewise.
11693         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11694         line.
11695         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11696         "...".
11697         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11698         (sched_get_priority_max): Likewise.
11699         * manual/signal.texi (sigvec): Add space after comma.
11700         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11701         names.
11702         (if_indextoname): Likewise.
11703         (if_freenameindex): Likewise.
11704         (sendto): Use ',' instead of '.' in prototype.
11705         * manual/startup.texi (syscall): Use @dots{} instead of literal
11706         "...".
11707         * manual/stdio.texi (__fpending): Separate initial words of
11708         paragraph from @deftypefun line.
11709         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11710         "...".
11711         (vsyslog): Use @var{} on parameter names.
11712         * manual/terminal.texi (stty): Use @var{} on parameter names.
11713         * manual/users.texi (getutmp): Use @var{} on parameter names.
11714         (getutmpx): Likewise.
11715
11716 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11717
11718         [BZ #6884]
11719         * manual/stdio.texi (fopen): Fix typos in description of
11720         ",ccs=STRING".
11721
11722 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11723
11724         [BZ #4026]
11725         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11726         get clock_id definition.
11727
11728 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11729
11730         [BZ #4822]
11731         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11732         (madvise): Cast every argument to void on its own.
11733
11734 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11735
11736         [BZ #9902]
11737         * manual/startup.texi (Exit Status): Fix typo.
11738
11739 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11740
11741         [BZ #10140]
11742         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11743         * manual/examples/argp-ex2.c: Likewise.
11744         * manual/examples/argp-ex3.c: Likewise.
11745
11746 2012-02-16  Richard Henderson  <rth@redhat.com>
11747
11748         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11749         * sysdeps/s390/s390-32/initfini.c: Remove.
11750         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11751         * sysdeps/s390/s390-64/initfini.c: Remove.
11752
11753 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11754
11755         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11756         compiler output for sysdeps/generic/initfini.c.
11757         * sysdeps/sh/elf/initfini.c: Remove file.
11758
11759 2012-02-16  David S. Miller  <davem@davemloft.net>
11760
11761         [BZ #11494]
11762         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11763
11764         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11765         * sysdeps/sparc/crti.S: New file.
11766         * sysdeps/sparc/crtn.S: New file.
11767         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11768         * sysdeps/sparc/sparc64/Makefile: Likewise.
11769
11770 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11771
11772         [BZ #3335]
11773         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11774
11775 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11776
11777         [BZ #4822]
11778         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11779
11780         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11781         (write, read, close): Likewise.
11782         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11783
11784 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11785
11786         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11787         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11788         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11789         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11790         <bits/signalfd.h>.
11791         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11792         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11793         bits/signalfd.h.
11794
11795 2012-02-14  Marek Polacek  <polacek@redhat.com>
11796
11797         * sysdeps/x86_64/crti.S: New file.
11798         * sysdeps/x86_64/crtn.S: New file.
11799         * sysdeps/x86_64/elf/initfini.c: Remove file.
11800
11801 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11802
11803         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11804         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11805         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11806         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11807         <bits/inotify.h>.
11808         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11809         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11810         bits/inotify.h.
11811
11812 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11813
11814         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11815         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11816         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11817         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11818         <bits/eventfd.h>.
11819         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11820         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11821         bits/eventfd.h.
11822
11823 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11824
11825         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11826         __feraiseexcept instead of feraiseexcept.
11827
11828         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11829         nanosleep invocations.
11830         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11831         strings, and add error checking for a nanosleep invocations.
11832
11833 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11834
11835         Replace FSF snail mail address with URLs, as per GNU coding standards.
11836         Most of the snail mail addresses were wrong anyway, and omitting
11837         them makes the source code easier to maintain.  Almost all of the
11838         changes are to license notices and to locale LC_IDENTIFICATION
11839         addresses, except for this one:
11840         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11841         not its snail mail address.
11842
11843 2012-02-09  Richard Henderson  <rth@twiddle.net>
11844
11845         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11846         of kernel-features.h.
11847
11848         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11849
11850 2012-02-08  Marek Polacek  <polacek@redhat.com>
11851
11852         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11853         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11854         * sysdeps/gnu/_G_config.h: Likewise.
11855         * sysdeps/generic/_G_config.h: Likewise.
11856
11857 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11858
11859         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11860         tests.
11861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11862
11863         * sysdeps/powerpc/powerpc32/crti.S: New file.
11864         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11865         * sysdeps/powerpc/powerpc64/crti.S: New file.
11866         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11867
11868         * Makeconfig (have-initfini): Don't set.
11869         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11870         * configure.in (nopic_initfini): Don't substitute.
11871         * config.h.in (HAVE_INITFINI): Don't #undef.
11872         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11873         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11874
11875 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11876
11877         Support crti.S and crtn.S provided directly by architectures.
11878         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11879         [crti.S in sysdirs] (omit-deps): Likewise.
11880         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11881         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11882         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11883         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11884         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11885         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11886         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11887         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11888         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11889         compiler output for sysdeps/generic/initfini.c.
11890         * sysdeps/i386/elf/Makefile: Remove file.
11891         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11892
11893 2012-02-07  Marek Polacek  <polacek@redhat.com>
11894
11895         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11896         * sysdeps/gnu/_G_config.h: Likewise.
11897         * sysdeps/mach/hurd/_G_config.h: Likewise.
11898
11899 2012-02-07  Marek Polacek  <polacek@redhat.com>
11900
11901         * math/Makefile (tests): Add tst-CMPLX2.
11902         * math/tst-CMPLX2.c: New file.
11903
11904 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11905
11906         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11907
11908         * math/libm-test.inc (jn_test): Add missing L suffix.
11909
11910 2012-02-06  Marek Polacek  <polacek@redhat.com>
11911
11912         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11913         * sysdeps/i386/fpu/e_powf.S: Likewise.
11914         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11915         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11916         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11917         * sysdeps/i386/fpu/e_pow.S: Likewise.
11918         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11919         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11920         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11921         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11922         * sysdeps/i386/fpu/e_log2.S: Likewise.
11923         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11924         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11925         * sysdeps/i386/fpu/e_powl.S: Likewise.
11926         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11927         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11928         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11929         * sysdeps/i386/fpu/e_logl.S: Likewise.
11930         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11931         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11932         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11933         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11934         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11935         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11936         * sysdeps/i386/fpu/e_log.S: Likewise.
11937         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11938         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11939         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11940         * sysdeps/i386/fpu/e_logf.S: Likewise.
11941         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11942         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11943         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11944         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11945         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11946         * sysdeps/i386/fpu/e_log10.S: Likewise.
11947         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11948         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11949         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11950         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11951         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11952         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11953         * sysdeps/i386/asm-syntax.h: Likewise.
11954         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11955         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11956         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11957         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11958         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11959         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11960         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11961         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11962         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11963         * sysdeps/powerpc/sysdep.h: Likewise.
11964         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11965         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11966
11967 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11968
11969         [BZ #411]
11970         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11971
11972 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11973
11974         * sysdeps/i386/sysdep.h: Include <features.h>.
11975         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11976         version.
11977
11978 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11979
11980         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11981         Define.
11982         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11983         LOAD_PIC_REG_STR.
11984
11985 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11986
11987         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11988         (SETUP_PIC_REG): Use GET_PC_THUNK.
11989         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11990         macro.
11991
11992 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11993
11994         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11995         for non-PIC compilation.
11996         (SETUP_PIC_REG): Add .p2align directive.
11997         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11998         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11999         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12000         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12001         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12002         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12003         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12004         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12005         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12006         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12007         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12008         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12009         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12010         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12011         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12012         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12013         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12014         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12015         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12016         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12017         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12018         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12019         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12020         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12021         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12022         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12023         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12024         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12025         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12026         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12027         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12028         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12029         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12030         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12031         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12032         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12033         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12034         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12035         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12036         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12037         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12038
12039 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12040
12041         * math/tst-CMPLX.c: Include <stdio.h>.
12042
12043 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12044
12045         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12046         float.
12047         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12048         * sysdeps/sparc/bits/mathdef.h: Likewise.
12049
12050 2012-01-31  Marek Polacek  <polacek@redhat.com>
12051
12052         * libio/libio.h: Don't define _PARAMS.
12053         * locale/programs/config.h: Don't define PARAMS.
12054         * stdlib/strtol_l.c: Likewise.
12055         (__strtol_l): Remove PARAMS from the prototype.
12056
12057 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12058
12059         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12060         names.  Just use the correct names.  Remove unnecessary wrapper
12061         functions.
12062         * malloc/arena.c: Likewise.
12063         * malloc/hooks.c: Likewise.
12064
12065         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12066         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12067         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12068
12069 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12070
12071         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12072         into tail calls.
12073         (update_get_addr): New function.
12074         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12075         GET_ADDR_MODULE parameter.
12076
12077 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12078
12079         * crypt/cert.c: Remove __STDC__ conditionals.
12080         * crypt/crypt-entry.c: Likewise.
12081         * crypt/crypt_util.c: Likewise.
12082         * libio/filedoalloc.c: Likewise.
12083         * libio/fileops.c: Likewise.
12084         * libio/genops.c: Likewise.
12085         * libio/iofclose.c: Likewise.
12086         * libio/iofdopen.c: Likewise.
12087         * libio/iofopen.c: Likewise.
12088         * libio/iofopen64.c: Likewise.
12089         * libio/iogetdelim.c: Likewise.
12090         * libio/iopopen.c: Likewise.
12091         * libio/obprintf.c: Likewise.
12092         * libio/oldfileops.c: Likewise.
12093         * libio/oldiofclose.c: Likewise.
12094         * libio/oldiofdopen.c: Likewise.
12095         * libio/oldiofopen.c: Likewise.
12096         * libio/oldiopopen.c: Likewise.
12097         * libio/wfiledoalloc.c: Likewise.
12098         * libio/wgenops.c: Likewise.
12099         * locale/programs/xmalloc.c: Likewise.
12100         * misc/syslog.c: Likewise.
12101         * stdio-common/xbug.c: Likewise.
12102         * string/memchr.c: Likewise.
12103         * string/memcmp.c: Likewise.
12104         * string/memrchr.c: Likewise.
12105         * string/rawmemchr.c: Likewise.
12106         * sysdeps/posix/getcwd.c: Likewise.
12107         * time/strftime_l.c: Likewise.
12108
12109 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12110
12111         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12112         * config.make.in (config-cflags-sse2avx): Define.
12113         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12114         Fix typo.
12115
12116 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12117
12118         * scripts/config.guess: Update from upstream config git repository.
12119         * scripts/config.sub: Likewise.
12120
12121 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12122
12123         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12124         (EM_NUM): Update.
12125         (R_TILEPRO_*, R_TILEGX_*): New macros.
12126
12127         * scripts/firstversions.awk: Fix bug in version range handling.
12128
12129         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12130
12131         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12132
12133         * include/sys/epoll.h: New file.
12134         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12135         libc_hidden_def.
12136
12137 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12138
12139         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12140         Avoid unnecessary __WORDSIZE == 64 test.
12141         (fmaxf): Use VEX format if possible.
12142         (fmax): Likewise.
12143         (fminf): Likewise.
12144         (fmin): Likewise.
12145
12146         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12147         * math/math_private.h: Remove libc_fegetround* and
12148         libc_fesetround*.
12149         * sysdeps/i386/configure.in: Check for -msse2avx.
12150         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12151         also if SSE2AVX is defined.
12152         Remove libc_fegetround* and libc_fesetround*.
12153         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12154         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12155         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12156         of HAS_YMM_USABLE.
12157         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12158         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12159         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12160         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12161         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12162
12163         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12164
12165 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12166
12167         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12168         size is not set.
12169         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12170
12171 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12172
12173         [BZ #13618]
12174         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12175         relocation.
12176         * Makeconfig (libm): Define.
12177         * elf/Makefile: Add rules to build and run tst-relsort1.
12178         * elf/tst-relsort1.c: New file.
12179         * elf/tst-relsort1mod1.c: New file.
12180         * elf/tst-relsort1mod2.c: New file.
12181
12182 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12183
12184         * math/s_ldexp.c: Remove __STDC__ conditionals.
12185         * math/s_ldexpf.c: Likewise.
12186         * math/s_ldexpl.c: Likewise.
12187         * math/s_nextafter.c: Likewise.
12188         * math/s_nexttowardf.c: Likewise.
12189         * math/s_significand.c: Likewise.
12190         * math/s_significandf.c: Likewise.
12191         * math/s_significandl.c: Likewise.
12192         * math/w_jnl.c: Likewise.
12193         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12194         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12195         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12196         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12197         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12198         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12199         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12200         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12201         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12202         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12203         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12204         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12205         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12206         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12207         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12208         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12209         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12210         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12211         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12212         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12213         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12214         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12215         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12216         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12217         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12218         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12219         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12220         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12221         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12222         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12223         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12224         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12225         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12226         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12227         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12228         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12229         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12230         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12231         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12232         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12233         * sysdeps/ieee754/k_standard.c: Likewise.
12234         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12236         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12237         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12238         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12241         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12242         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12243         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12244         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12245         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12246         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12247         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12248         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12249         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12250         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12251         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12252         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12253         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12255         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12256         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12257         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12258         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12259         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12260         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12261         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12262         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12263         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12265         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12266         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12269         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12270         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12271         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12272         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12273         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12274         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12275         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12276         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12277         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12278         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12281         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12282         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12283         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12284         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12285         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12286         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12287         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12288         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12289         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12290         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12291         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12292         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12293         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12294         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12295         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12296         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12297         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12298         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12299         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12300         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12301         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12302         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12303         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12304         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12305         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12306         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12307         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12308         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12309         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12310         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12311         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12312         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12313         * sysdeps/ieee754/s_matherr.c: Likewise.
12314         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12315         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12316         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12317         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12318
12319 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12320
12321         * crypt/md5.h: Remove __STDC__ conditionals.
12322         * libio/libioP.h: Likewise.
12323         * locale/programs/config.h: Likewise.
12324         * sysdeps/generic/sysdep.h: Likewise.
12325         * sysdeps/i386/asm-syntax.h: Likewise.
12326         * sysdeps/s390/asm-syntax.h: Likewise.
12327         * sysdeps/unix/sysdep.h: Likewise.
12328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12330
12331 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12332
12333         * libio/libio.h: Remove __STDC__ conditionals.
12334         * malloc/obstack.h: Likewise.
12335         * math/complex.h: Likewise.
12336         * math/math.h: Likewise.
12337         * sysdeps/generic/_G_config.h: Likewise.
12338         * sysdeps/gnu/_G_config.h: Likewise.
12339         * sysdeps/mach/hurd/_G_config.h: Likewise.
12340         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12341         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12342         * sysdeps/sparc/bits/mathdef.h: Likewise.
12343
12344 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12345
12346         [BZ #13583]
12347         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12348         Clean up HAS_* macros.
12349         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12350         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12351         possible.
12352         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12353         HAS_AVX.
12354         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12355         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12356         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12357         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12358         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12359
12360 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12361
12362         * elf/tst-unique3.cc (gets): Remove declaration.
12363         * elf/tst-unique3lib.cc (gets): Likewise.
12364         * elf/tst-unique3lib2.cc (gets): Likewise.
12365         * elf/tst-unique4.cc (gets): Likewise.
12366
12367 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12368
12369         * include/stdio.h: Add C++ protection.  Add gets declarations and
12370         definitions.
12371         * debug/tst-chk1.c: Don't declare gets here.
12372         * stdio-common/tst-gets.c: Likewise.
12373
12374 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12375
12376         * posix/glob: Remove directory.
12377
12378 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12379
12380         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12381
12382 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12383
12384         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12385         of the non-standard EPFNOSUPPORT.
12386
12387 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12388
12389         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12390         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12391         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12392
12393 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12394
12395         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12396
12397 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12398
12399         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12400         transient errors.
12401         * nscd/grpcache.c (cache_addgr): Likewise.
12402         * nscd/hstcache.c (cache_addhst): Likewise.
12403         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12404         * nscd/pwdcache.c (cache_addpw): Likewise.
12405         * nscd/servicescache.c (cache_addserv): Likewise.
12406
12407 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12408
12409         * malloc/malloc.c: Various cleanups.
12410         * malloc/hooks.c: Likewise.
12411
12412         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12413         * stdlib/bug-fmtmsg1.c: New file.
12414
12415         * stdlib/fmtmsg.c (init): Add missing unlock.
12416         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12417
12418 2012-01-12  Marek Polacek  <polacek@redhat.com>
12419
12420         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12421         and _GNU_SOURCE.
12422
12423 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12424
12425         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12426         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12427         macro to ensure uniqueness of label name.
12428         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12429         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12430
12431 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12432
12433         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12434
12435         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12436         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12437         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12438         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12439
12440 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12441
12442         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12443
12444         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12445         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12446         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12447
12448         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12449
12450         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12451         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12452         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12453         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12454
12455         * math/bits/math-finite.h: Add ldexp support.
12456
12457 2012-01-10  Marek Polacek  <polacek@redhat.com>
12458
12459         * locale/programs/localedef.h (show_archive_content): Add noreturn
12460         attribute.
12461
12462 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12463
12464         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12465
12466 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12467
12468         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12469
12470         * io/Makefile (headers): Add bits/poll2.h.
12471
12472 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12473
12474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12475         typo #include statement.
12476
12477 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12478
12479         * include/sys/cdefs.h: Define __attribute_alloc_size.
12480         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12481         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12482         * elf/pldd.c: Likewise.
12483         * iconv/iconv_charmap.c: Likewise.
12484         * iconv/iconvconfig.c: Likewise.
12485         * iconv/strtab.c: Likewise.
12486         * locale/programs/locale.c: Likewise.
12487         * locale/programs/localedef.h: Likewise.
12488         * locale/programs/simple-hash.c: Likewise.
12489         * nscd/nscd.h: Likewise.
12490         * nss/makedb.c: Likewise.
12491         * sysdeps/generic/ldconfig.h: Likewise.
12492         * locale/programs/localedef.c: Remove xmalloc prototype.
12493         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12494
12495 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12496
12497         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12498         appropriate.
12499
12500 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12501
12502         * math/Makefile (tests): Add tst-CMPLX.
12503         * math/tst-CMPLX.c: New file.
12504
12505         * math/complex.h (CMPLXL): Fix typo.
12506
12507         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12508         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12509         GLIBC_2.16.
12510         * debug/tst-chk1.c: Add poll and ppoll tests.
12511         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12512         * include/sys/poll.h: Add hidden proto for ppoll.
12513         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12514         * sysdeps/mach/hurd/ppoll.c: Likewise.
12515         * io/ppoll.c: Likewise.
12516         * debug/poll_chk.c: New file.
12517         * debug/ppoll_chk.c: New file.
12518         * include/bits/poll2.h: New file.
12519         * io/bits/poll2.h: New file.
12520
12521         [BZ #1350]
12522         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12523
12524         * configure.in: static is always set to yes.  Remove.
12525         * config.make.in: Don't set build-static.
12526         * Makeconfig: Remove use of build-static.
12527         * dlfcn/Makefile: Likewise.
12528         * elf/Makefile: Likewise.
12529         * math/Makefile: Likewise.
12530         * misc/Makefile: Likewise.
12531         * nptl/Makefile: Likewise.
12532         * sysdeps/mach/hurd/Makefile: Likewise.
12533
12534         * configure.in: PWD_P is not used anymore.
12535         * config.make.in: Remove PWD_P entry.
12536
12537         * configure.in: Remove last remnants of RANLIB.
12538         No need to check for signed size_t anymore.
12539         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12540         and IA-64.
12541         Remove __builtin_expect test because we require at least gcc 3.4.
12542         * aclocal.m4: Likewise.
12543
12544         * wcsmbs/mbrtoc16.c: Implement using towc function.
12545         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12546         * wcsmbs/wcsmbsload.c: Likewise.
12547         * iconv/gconv_simple.c: Likewise.
12548         * iconv/gconv_int.h: Likewise.
12549         * iconv/gconv_builtin.h: Likewise.
12550         * iconv/iconv_prog.c: Remove CHAR16 handling.
12551
12552         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12553
12554         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12555
12556         * configure.in: Remove --with-elf and --enable-bounded options.
12557         Dont set base_machine for ia64.  More non-ELF conditions removed.
12558         Remove testing and setting of leading underscore information.
12559         * config.make.in (build-bounded): Set to no.
12560         * config.h.in: Remove NO_UNDERSCORES entry.
12561         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12562         them.
12563         * csu/start.c: Remove !NO_UNDERSCORE code.
12564         * locale/localeinfo.h: Likewise.
12565         * sysdeps/generic/machine-gmon.h: Likewise.
12566         * sysdeps/generic/sysdep.h: Likewise.
12567         * sysdeps/i386/sysdep.h: Likewise.
12568         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12569         * sysdeps/mach/sysdep.h: Likewise.
12570         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12571         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12572         * sysdeps/sh/sysdep.h: Likewise.
12573         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12574         * sysdeps/unix/i386/sysdep.S: Likewise.
12575         * sysdeps/unix/sparc/start.c: Likewise.
12576         * sysdeps/unix/sparc/sysdep.S: Likewise.
12577         * sysdeps/unix/sparc/sysdep.h: Likewise.
12578         * sysdeps/unix/start.c: Likewise.
12579         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12580         * sysdeps/x86_64/sysdep.h: Likewise.
12581
12582 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12583
12584         [BZ #13553]
12585         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12586         for non-gcc.
12587         * argp/argp-fmtstream.h: Use const instead __const.
12588         * argp/argp.h: Likewise.
12589         * assert/assert.h: Likewise.
12590         * bits/fenv.h: Likewise.
12591         * bits/sched.h: Likewise.
12592         * bits/sigset.h: Likewise.
12593         * bits/sigthread.h: Likewise.
12594         * catgets/nl_types.h: Likewise.
12595         * conform/data/pthread.h-data: Likewise.
12596         * crypt/crypt-private.h: Likewise.
12597         * crypt/crypt.h: Likewise.
12598         * crypt/crypt_util.c: Likewise.
12599         * ctype/ctype.h: Likewise.
12600         * debug/execinfo.h: Likewise.
12601         * debug/mbsnrtowcs_chk.c: Likewise.
12602         * debug/mbsrtowcs_chk.c: Likewise.
12603         * debug/wcsnrtombs_chk.c: Likewise.
12604         * debug/wcsrtombs_chk.c: Likewise.
12605         * debug/wcstombs_chk.c: Likewise.
12606         * dirent/dirent.h: Likewise.
12607         * dlfcn/dlfcn.h: Likewise.
12608         * elf/neededtest4.c: Likewise.
12609         * grp/grp.h: Likewise.
12610         * gshadow/gshadow.h: Likewise.
12611         * iconv/gconv.h: Likewise.
12612         * iconv/gconv_int.h: Likewise.
12613         * iconv/gconv_simple.c: Likewise.
12614         * iconv/iconv.h: Likewise.
12615         * iconv/loop.c: Likewise.
12616         * iconv/skeleton.c: Likewise.
12617         * include/aio.h: Likewise.
12618         * include/aliases.h: Likewise.
12619         * include/argz.h: Likewise.
12620         * include/arpa/inet.h: Likewise.
12621         * include/assert.h: Likewise.
12622         * include/dirent.h: Likewise.
12623         * include/dlfcn.h: Likewise.
12624         * include/execinfo.h: Likewise.
12625         * include/fcntl.h: Likewise.
12626         * include/fenv.h: Likewise.
12627         * include/glob.h: Likewise.
12628         * include/grp.h: Likewise.
12629         * include/libintl.h: Likewise.
12630         * include/mntent.h: Likewise.
12631         * include/netdb.h: Likewise.
12632         * include/pwd.h: Likewise.
12633         * include/rpc/netdb.h: Likewise.
12634         * include/sched.h: Likewise.
12635         * include/search.h: Likewise.
12636         * include/shadow.h: Likewise.
12637         * include/signal.h: Likewise.
12638         * include/stdio.h: Likewise.
12639         * include/stdlib.h: Likewise.
12640         * include/string.h: Likewise.
12641         * include/sys/socket.h: Likewise.
12642         * include/sys/stat.h: Likewise.
12643         * include/sys/statfs.h: Likewise.
12644         * include/sys/statvfs.h: Likewise.
12645         * include/sys/syslog.h: Likewise.
12646         * include/sys/time.h: Likewise.
12647         * include/sys/uio.h: Likewise.
12648         * include/time.h: Likewise.
12649         * include/unistd.h: Likewise.
12650         * include/utmp.h: Likewise.
12651         * include/wchar.h: Likewise.
12652         * include/wctype.h: Likewise.
12653         * inet/aliases.h: Likewise.
12654         * inet/arpa/inet.h: Likewise.
12655         * inet/netinet/ether.h: Likewise.
12656         * inet/netinet/in.h: Likewise.
12657         * intl/libintl.h: Likewise.
12658         * io/bits/fcntl2.h: Likewise.
12659         * io/fcntl.h: Likewise.
12660         * io/ftw.h: Likewise.
12661         * io/sys/poll.h: Likewise.
12662         * io/sys/stat.h: Likewise.
12663         * io/sys/statfs.h: Likewise.
12664         * io/sys/statvfs.h: Likewise.
12665         * io/utime.h: Likewise.
12666         * libio/bits/stdio.h: Likewise.
12667         * libio/bits/stdio2.h: Likewise.
12668         * libio/libio.h: Likewise.
12669         * libio/libioP.h: Likewise.
12670         * libio/stdio.h: Likewise.
12671         * locale/lc-ctype.c: Likewise.
12672         * locale/locale.h: Likewise.
12673         * login/utmp.h: Likewise.
12674         * malloc/arena.c: Likewise.
12675         * malloc/malloc.c: Likewise.
12676         * malloc/malloc.h: Likewise.
12677         * malloc/mcheck.c: Likewise.
12678         * malloc/mtrace.c: Likewise.
12679         * math/bits/mathcalls.h: Likewise.
12680         * math/fenv.h: Likewise.
12681         * math/math_private.h: Likewise.
12682         * misc/bits/error.h: Likewise.
12683         * misc/bits/syslog.h: Likewise.
12684         * misc/err.h: Likewise.
12685         * misc/error.h: Likewise.
12686         * misc/fstab.h: Likewise.
12687         * misc/mntent.h: Likewise.
12688         * misc/regexp.h: Likewise.
12689         * misc/search.h: Likewise.
12690         * misc/sgtty.h: Likewise.
12691         * misc/sys/mman.h: Likewise.
12692         * misc/sys/syslog.h: Likewise.
12693         * misc/sys/uio.h: Likewise.
12694         * misc/sys/xattr.h: Likewise.
12695         * misc/ttyent.h: Likewise.
12696         * nis/rpcsvc/ypclnt.h: Likewise.
12697         * nss/nss.h: Likewise.
12698         * posix/bits/unistd.h: Likewise.
12699         * posix/fnmatch.h: Likewise.
12700         * posix/glob.h: Likewise.
12701         * posix/sched.h: Likewise.
12702         * posix/spawn.h: Likewise.
12703         * posix/sys/wait.h: Likewise.
12704         * posix/unistd.h: Likewise.
12705         * posix/wordexp.h: Likewise.
12706         * pwd/pwd.h: Likewise.
12707         * resolv/netdb.h: Likewise.
12708         * resource/sys/resource.h: Likewise.
12709         * rt/aio.h: Likewise.
12710         * rt/bits/mqueue2.h: Likewise.
12711         * rt/mqueue.h: Likewise.
12712         * shadow/shadow.h: Likewise.
12713         * signal/signal.h: Likewise.
12714         * socket/send.c: Likewise.
12715         * socket/sendto.c: Likewise.
12716         * socket/sys/socket.h: Likewise.
12717         * stdio-common/printf.h: Likewise.
12718         * stdlib/bits/stdlib.h: Likewise.
12719         * stdlib/fmtmsg.h: Likewise.
12720         * stdlib/monetary.h: Likewise.
12721         * stdlib/stdlib.h: Likewise.
12722         * stdlib/ucontext.h: Likewise.
12723         * streams/stropts.h: Likewise.
12724         * string/argz.h: Likewise.
12725         * string/bits/string2.h: Likewise.
12726         * string/string.h: Likewise.
12727         * string/strings.h: Likewise.
12728         * sunrpc/rpc/auth.h: Likewise.
12729         * sunrpc/rpc/auth_des.h: Likewise.
12730         * sunrpc/rpc/clnt.h: Likewise.
12731         * sunrpc/rpc/netdb.h: Likewise.
12732         * sunrpc/rpc/pmap_clnt.h: Likewise.
12733         * sunrpc/rpc/xdr.h: Likewise.
12734         * sysdeps/generic/inttypes.h: Likewise.
12735         * sysdeps/generic/net/if.h: Likewise.
12736         * sysdeps/generic/sys/swap.h: Likewise.
12737         * sysdeps/gnu/net/if.h: Likewise.
12738         * sysdeps/gnu/utmpx.h: Likewise.
12739         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12740         * sysdeps/i386/i486/bits/string.h: Likewise.
12741         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12742         * sysdeps/s390/bits/string.h: Likewise.
12743         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12744         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12745         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12746         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12747         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12748         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12749         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12750         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12751         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12752         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12753         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12754         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12755         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12756         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12757         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12758         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12759         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12760         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12761         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12762         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12763         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12764         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12765         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12766         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12767         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12768         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12769         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12770         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12771         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12772         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12773         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12774         * sysvipc/sys/ipc.h: Likewise.
12775         * sysvipc/sys/msg.h: Likewise.
12776         * sysvipc/sys/sem.h: Likewise.
12777         * sysvipc/sys/shm.h: Likewise.
12778         * termios/termios.h: Likewise.
12779         * time/sys/time.h: Likewise.
12780         * time/time.h: Likewise.
12781         * wcsmbs/bits/wchar2.h: Likewise.
12782         * wcsmbs/uchar.h: Likewise.
12783         * wcsmbs/wchar.h: Likewise.
12784         * wctype/wctype.h: Likewise.
12785
12786         [BZ #13551]
12787         * Makeconfig: Remove all but ELF support including AIX support.
12788         * Makerules: Likewise.
12789         * config.h.in: Likewise.
12790         * config.make.in: Likewise.
12791         * configure: Likewise.
12792         * configure.in: Likewise.
12793         * csu/Makefile: Likewise.
12794         * csu/version.c: Likewise.
12795         * debug/Makefile: Likewise.
12796         * dlfcn/Makefile: Likewise.
12797         * elf/Makefile: Likewise.
12798         * extra-lib.mk: Likewise.
12799         * iconv/Makefile: Likewise.
12800         * include/libc-symbols.h: Likewise.
12801         * include/shlib-compat.h: Likewise.
12802         * resolv/Makefile: Likewise.
12803         * resolv/res_libc.c: Likewise.
12804         * rt/Makefile: Likewise.
12805         * sysdeps/i386/asm-syntax.h: Likewise.
12806         * sysdeps/i386/sysdep.h: Likewise.
12807         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12808         * sysdeps/mach/sysdep.h: Likewise.
12809         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12810         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12811         * sysdeps/s390/asm-syntax.h: Likewise.
12812         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12813         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12814         * sysdeps/sh/sysdep.h: Likewise.
12815         * sysdeps/unix/sparc/sysdep.h: Likewise.
12816         * sysdeps/wordsize-32/divdi3.c: Likewise.
12817         * sysdeps/x86_64/sysdep.h: Likewise.
12818
12819         * argp/Versions: Remove _argp_unlock_xxx.
12820
12821         [BZ #13559]
12822         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12823         * abilist/libBrokenLocale.abilist: Likewise.
12824         * abilist/libanl.abilist: Likewise.
12825         * abilist/libc.abilist: Likewise.
12826         * abilist/libcrypt.abilist: Likewise.
12827         * abilist/libdl.abilist: Likewise.
12828         * abilist/libm.abilist: Likewise.
12829         * abilist/libnsl.abilist: Likewise.
12830         * abilist/libpthread.abilist: Likewise.
12831         * abilist/libresolv.abilist: Likewise.
12832         * abilist/librt.abilist: Likewise.
12833         * abilist/libthread_db.abilist: Likewise.
12834         * abilist/libutil.abilist: Likewise.
12835         * abilist/libnss_db.abilist: New file.
12836
12837         * scripts/abilist.awk: Add support for indirect functions.
12838
12839         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12840
12841         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12842
12843         * shlib-versions: Remove entries for ports architectures.
12844
12845         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12846         files in ports.
12847         * elf/stackguard-macros.h: Remove support for IA-64.
12848         * elf/tst-auditmod1.c: Likewise.
12849         * sysdeps/generic/ldsodefs.h: Likewise.
12850
12851         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12852         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12853         configure files.
12854
12855         [BZ #13552]
12856         * configure.in: Remove --enable-omitfp support.
12857         * FAQ.in: Adjust.
12858         * config.make.in: Likewise.
12859         * Makeconfig: Likewise.
12860         * manual/install.texi: Likewise.
12861
12862         In case anyone cares, the IA-64 architecture could move to ports.
12863         * sysdeps/ia64/*: Removed.
12864         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12865         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12866
12867         [BZ #13555]
12868         * configure.in: Remove entries for unsupported architectures.
12869
12870         [BZ #13533]
12871         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12872         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12873         routines.
12874         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12875         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12876         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12877         fall back to using wcrtomb.
12878         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12879         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12880         renaming.
12881         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12882         * wcsmbs/tst-c16c32-1.c: New file.
12883
12884         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12885         local variable.
12886
12887         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12888
12889         * elf/tst-unique3.cc: Add explicit declaration of gets.
12890         * elf/tst-unique3lib.cc: Likewise.
12891         * elf/tst-unique3lib2.cc: Likewise.
12892         * elf/tst-unique4.cc: Likewise.
12893
12894         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12895
12896 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12897
12898         [BZ #13566]
12899         * assert/assert.h (static_assert): Don't define for C++.
12900         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12901         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12902
12903 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12904
12905         * iconv/loop.c (single loop): Fix assertion in storing of
12906         remaining bytes.
12907
12908         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12909
12910 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12911
12912         * posix/getconf.c: Update copyright year.
12913         * nss/getent.c: Likewise.
12914         * nss/makedb.c: Likewise.
12915         * iconv/iconvconfig.c: Likewise.
12916         * iconv/iconv_prog.c: Likewise.
12917         * elf/ldconfig.c: Likewise.
12918         * elf/pldd.c: Likewise.
12919         * elf/sotruss.ksh: Likewise.
12920         * catgets/gencat.c: Likewise.
12921         * csu/version.c: Likewise.
12922         * elf/ldd.bash.in: Likewise.
12923         * elf/sprof.c (print_version): Likewise.
12924         * locale/programs/locale.c: Likewise.
12925         * locale/programs/localedef.c: Likewise.
12926         * login/programs/pt_chown.c: Likewise.
12927         * nscd/nscd.c (print_version): Likewise.
12928         * debug/xtrace.sh: Likewise.
12929         * malloc/memusage.sh: Likewise.
12930         * malloc/mtrace.pl: Likewise.
12931         * debug/catchsegv.sh: Likewise.
12932
12933 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12934
12935         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12936         pure attribute.
12937
12938 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12939
12940         [BZ #13533]
12941         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12942         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12943         transformations.
12944         * iconv/gconv_int.h: Likewise.
12945         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12946         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12947         from libc for GLIBC_2.16.
12948         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12949         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12950         * wcsmbs/uchar.h: Really define mbstate_t.
12951         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12952         * wcsmbs/c16rtomb.c: New file.
12953         * wcsmbs/mbrtoc16.c: New file.
12954         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12955         for C/POSIX locale.
12956         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12957         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12958
12959         * wcsmbs/wchar.h: Add missing __restrict.
12960
12961 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12962
12963         [BZ #13532]
12964         * time/Makefile (routines): Add timespec_get.
12965         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12966         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12967         timespec for ISO C11.
12968         * time/timespec_get.c: New file.
12969         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12970         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12971
12972         [BZ #13531]
12973         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12974         * stdlib/stdlib.h: Declare aligned_alloc.
12975         * Versions.def: Add GLIBC_2.16 for libc.
12976         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12977
12978         [BZ 13527]
12979         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12980         ISO C11.
12981
12982         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12983         code.
12984
12985         [BZ #13528]
12986         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12987
12988         [BZ #13529]
12989         * assert/assert.h (static_assert): Define.
12990
12991         * version.h: Update for 2.16 development version.
12992
12993         [BZ #13526]
12994         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12995         _ISOC11_SOURCE.
12996
12997         * version.h (RELEASE): Bump for 2.15 release.
12998         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12999
13000         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13001         Patch by Marek Polacek <mpolacek@redhat.com>.
13002
13003         * bits/byteswap.h: Protect long long constants with __extension__.
13004         * sysdeps/i386/bits/byteswap.h: Likewise.
13005         * sysdeps/ia64/bits/byteswap.h: Likewise.
13006         * sysdeps/s390/bits/byteswap.h: Likewise.
13007         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13008
13009 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13010
13011         [BZ #13540]
13012         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13013         destination buffer.
13014         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13015
13016 2011-12-23  Marek Polacek  <polacek@redhat.com>
13017
13018         * elf/dl-addr.c (determine_info): Add inline keyword.
13019         * elf/tst-auditmod4b.c (check_avx): Likewise.
13020         * elf/tst-auditmod6b.c (check_avx): Likewise.
13021         * elf/tst-auditmod6c.c (check_avx): Likewise.
13022         * elf/tst-auditmod7b.c (check_avx): Likewise.
13023
13024 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13025
13026         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13027         !__SSE_MATH__.
13028
13029 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13030
13031         [BZ #13540]
13032         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13033         processing for last bytes.
13034
13035 2011-08-06  Bruno Haible  <bruno@clisp.org>
13036
13037         [BZ #13061]
13038         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13039         U+0385, not to U+1FEE.
13040
13041         [BZ #13062]
13042         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13043         entry for U+00A5 U+0301.
13044
13045 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13046
13047         [BZ #13166]
13048         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13049         buffer for the output is too small.
13050
13051         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13052         optimization.
13053
13054         [BZ #13185]
13055         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13056         SSE flags if possible.
13057
13058 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13059
13060         [BZ #13540]
13061         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13062         processing for last bytes.
13063
13064 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13065
13066         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13067         (syscall-list-default-options, syscall-list-default-condition)
13068         (syscall-list-includes): Define.
13069         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13070         list of ABIs and options and #if conditions for each ABI.  Do not
13071         handle common syscalls between ABIs specially.
13072         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13073         Remove.
13074         (syscall-list-variants, syscall-list-32bit-options)
13075         (syscall-list-32bit-condition, syscall-list-64bit-options)
13076         (syscall-list-64bit-condition): Define.
13077         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): 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/sparc/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         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13087         Remove.
13088         (syscall-list-variants, syscall-list-32bit-options)
13089         (syscall-list-32bit-condition, syscall-list-64bit-options)
13090         (syscall-list-64bit-condition): Define.
13091
13092 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13093
13094         * locale/iso-639.def: Add brx entry.
13095
13096         [BZ #13328]
13097         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13098         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13099
13100         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13101         __feraiseexcept_renamed.
13102
13103 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13104
13105         [BZ #13538]
13106         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13107         EPOLLET with unsigned values.
13108         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13109         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13110
13111         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13112         to large cancellation.
13113         * math/s_cacoshf.c: Likewise.
13114         * math/s_cacoshl.c: Likewise.
13115
13116 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13117
13118         [BZ #13305]
13119         [BZ #12786]
13120         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13121         * math/s_cacoshf.c: Likewise.
13122         * math/s_cacoshl.c: Likewise.
13123
13124 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13125
13126         [BZ #13439]
13127         * iconv/gconv.h: Define __GCONV_SWAP.
13128         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13129         * iconvdata/utf-16.c: Likewise.
13130         * iconvdata/utf-32.c: Likewise.
13131
13132 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13133
13134         [BZ #13524]
13135         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13136         numerator after shifting it by one limb.
13137
13138 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13139
13140         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13141         under [__USE_EXTERN_INLINES].
13142
13143 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13144
13145         [BZ #13446]
13146         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13147
13148 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13149
13150         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13151         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13152         optimized code.
13153         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13154         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13155         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13156         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13157         for strncasecmp/strncasecmp_l compilation.
13158         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13159         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13160
13161 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13162
13163         [BZ #13484]
13164         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13165         of __asm__.
13166
13167 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13168
13169         [BZ #13506]
13170         * time/tzfile.c (__tzfile_read): Check values from file header.
13171
13172 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13173
13174         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13175         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13176         * powerpc/powerpc32/dl-start.S: Likewise.
13177         * powerpc/powerpc32/elf/start.S: Likewise.
13178         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13179         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13180         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13181         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13182         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13183         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13184         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13185         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13186         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13187         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13188         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13189         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13190         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13191         * powerpc/powerpc32/memset.S: Likewise.
13192         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13193         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13194         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13195         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13196         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13197         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13198         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13199         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13200         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13201         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13202         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13203         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13204         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13205
13206 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13207
13208         * math/libm-test.inc: Added more nearbyint tests.
13209         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13210         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13211         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13212         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13213
13214 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13215
13216         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13217         FD_CLOEXEC.
13218
13219 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13220
13221         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13222         Add wcscpy-ssse3 wcscpy-c.
13223         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13224         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13225         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13226         * sysdeps/x86_64/wcschr.S: New file.
13227         * sysdeps/x86_64/wcsrchr.S: New file.
13228         * string/test-strcmp.c: Remove checking of wcscmp function for
13229         wrong alignments.
13230         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13231         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13232         wcsrchr-sse2 wcsrchr-c.
13233         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13234         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13235         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13236         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13237         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13238         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13239         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13240         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13241         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13242         * wcsmbc/wcschr.c (WCSCHR): New macro.
13243
13244 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13245
13246         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13247         * wcsmbs/test-wcsrchr.c: New file.
13248         * string/test-strrchr.c: Add wcsrchr support.
13249         (WIDE): New macro.
13250         * wcsmbs/test-wcscpy.c: New file.
13251         * string/test-strcpy.c: Add wcscpy support.
13252         (WIDE): New macro.
13253
13254 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13255
13256         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13257         the inner loop.
13258
13259 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13260
13261         [BZ #13472]
13262         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13263
13264 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13265
13266         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13267         Minor optimizations.
13268
13269         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13270         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13271         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13272
13273 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13274
13275         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13276         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13277         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13278         for gcc to avoid warnings.
13279         * inet/Makefile (tests): Add tst-checks.
13280         * inet/tst-checks.c: New file.
13281
13282         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13283         warning.
13284
13285         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13286         __wmemcmp_sse2.
13287
13288         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13289         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13290
13291         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13292
13293 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13294
13295         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13296         problem.
13297
13298         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13299
13300 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13301
13302         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13303         conditional on GCC version.
13304         (__arch_compare_and_exchange_val_8_acq)
13305         (__arch_compare_and_exchange_val_16_acq)
13306         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13307         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13308         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13309
13310 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13311
13312         * sysdeps/sh/backtrace.c: New file.
13313
13314 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13315
13316         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13317         parenthesis.
13318
13319 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13320
13321         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13322         falling back to utime.
13323
13324 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13325
13326         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13327         expectations for float.
13328
13329 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13330
13331         * locale/weight.h (findidx): Add parameter len.
13332         * locale/weightwc.h (findidx): Likewise.
13333         * posix/fnmatch_loop.c (FCT): Adjust caller.
13334         * posix/regcomp.c (build_equiv_class): Likewise.
13335         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13336         * posix/regexec.c (check_node_accept_bytes): Likewise.
13337         * string/strcoll_l.c (STRCOLL): Likewise.
13338         * string/strxfrm_l.c (STRXFRM): Likewise.
13339
13340 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13341
13342         * Makefile.in: Remove CVSOPT handling.
13343         * configure.in: Remove use of AC_REVISION.
13344         * iconvdata/Makefile (distribute): No need to filter out CVS.
13345         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13346         handling.
13347
13348 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13349
13350         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13351         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13352         [USE_AS_STRNCASECMP_L]: Likewise.
13353         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13354         NO_TLS_DIRECT_SEG_REFS.
13355         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13356         Fix argument offsets for non-PIC.
13357         [USE_AS_STRNCASECMP_L]: Likewise.
13358         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13359         NO_TLS_DIRECT_SEG_REFS.
13360
13361 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13362
13363         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13364         O_CLOEXEC.
13365         * locale/loadlocale.c (_nl_load_locale): Likewise.
13366
13367 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13368
13369         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13370         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13371         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13372         (SYSCALL_GETTIME): Set errno on error.
13373
13374         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13375         count references to noai6ai_cached.
13376
13377 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13378
13379         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13380
13381         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13382         FD_CLOEXEC for /proc/self/maps.
13383
13384         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13385         FD_CLOEXEC for /proc/meminfo.
13386
13387         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13388         gai.conf.
13389
13390         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13391         FD_CLOEXEC for given file.
13392
13393         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13394
13395         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13396         FD_CLOEXEC for /etc/hosts.
13397         (_gethtent): Likewise.
13398
13399         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13400
13401         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13402         cancellation and set FD_CLOEXEC for /etc/netgroup.
13403
13404         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13405         reading /etc/publickey.
13406
13407         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13408         allow cancellation when reading /etc/group.
13409
13410         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13411         cancellation.
13412         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13413
13414         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13415         when using data file.
13416
13417         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13418
13419         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13420         (write_nis_obj): Use "c" and "e" in fopen.
13421
13422         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13423
13424         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13425
13426         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13427
13428         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13429
13430         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13431         locale.alias.
13432
13433         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13434
13435         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13436
13437         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13438
13439         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13440         file parsing and set FD_CLOEXEC.
13441
13442 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13443
13444         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13445
13446 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13447
13448         * malloc/arena.c (arena_get2): Don't call reused_arena when
13449         _int_new_arena failed.
13450
13451 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13452
13453         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13454         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13455         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13456         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13457         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13458         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13459         to compile strcasecmp and strncasecmp.
13460         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13461         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13462
13463         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13464
13465 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13466
13467         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13468         locale-defines.sym to gen-as-const-headers.
13469         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13470         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13471         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13472         to compile strcasecmp and strncasecmp.
13473         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13474         strcasecmp_l and strncasecmp_l.
13475         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13476         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13477         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13478         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13479         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13480         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13481         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13482         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13483         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13484         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13485         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13486
13487 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13488
13489         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13490         result of SYSDEP_GETTIME_CPU to retval.
13491         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13492         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13493
13494         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13495         variable.
13496
13497         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13498         mantissa words.
13499         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13500
13501         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13502         from unused variable.
13503
13504         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13505         DWARF definitions.
13506         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13507         for assembling.
13508
13509         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13510         over namespaces.
13511
13512         * sunrpc/rpc_prot.c (rejected): Fix case value.
13513
13514         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13515         unsigned long long int to avoid warnings in shift.
13516
13517         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13518         of use of trans.
13519         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13520         variable tmp.
13521
13522         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13523         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13524         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13525
13526         * nis/nis_table.c (nis_list): Use variable of correct type for
13527         result of __follow_path call.
13528
13529 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13530
13531         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13532         of math functions ceil, trunc, floor, round, and sqrt, when
13533         avaliable on the platform.
13534         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13535         name clash.
13536         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13537         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13538         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13539
13540 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13541
13542         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13543         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13544
13545 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13546
13547         * include/unistd.h: Fix __readlink return type.
13548         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13549
13550 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13551
13552         * stdlib/ucontext.h: Undo last change for makecontext.
13553
13554 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13555
13556         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13557
13558         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13559         * setjmp/setjmp.h: Mark functions as non-leaf.
13560         * setjmp/bits/setjmp2.h: Likewise.
13561         * stdlib/ucontext.h: Likewise.
13562
13563 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13564
13565         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13566         (reused_arena): Don't check arena limit.
13567         (arena_get2): Atomically check arena limit.
13568
13569 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13570
13571         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13572         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13573
13574         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13575         instructions.
13576
13577 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13578
13579         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13580         handler when locking.
13581
13582         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13583         Fix size of allocated buffer.
13584
13585 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13586
13587         [BZ #10103]
13588         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13589         declarations for long double functions.
13590         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13591
13592         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13593
13594 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13595
13596         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13597         installed.
13598
13599         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13600         is disabled.
13601
13602 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13603
13604         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13605
13606 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13607
13608         * include/alloca.h (stackinfo_alloca_round): Define.
13609         (extend_alloca): Use it.
13610         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13611         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13612         here.
13613
13614         * scripts/check-local-headers.sh: Ignore libaudit.h.
13615
13616         * nscd/Makefile (extra-objs): Make recursively expanded.
13617
13618 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13619
13620         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13621         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13622
13623         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13624         * posix/tst-rfc3484-2.c: Likewise.
13625         * posix/tst-rfc3484-3.c: Likewise.
13626
13627         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13628         process_vm_writev.
13629         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13630         process_vm_writev.
13631         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13632         process_vm_writev from libc using GLIBC_2.15 version.
13633
13634         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13635
13636 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13637
13638         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13639         stack usage.
13640
13641 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13642
13643         [BZ #13367]
13644         * nss/getent.c (initgroups_keys): Show error message in case no group
13645         names are given.
13646
13647         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13648         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13649         __bump_nl_timestamp.
13650         * nscd/connections (nscd_init): When host database is served open
13651         netlink socket and request notification about configuration changes.
13652         (main_loop_poll): Track netlink file descriptor and bump timestamp
13653         in case data becomes available.
13654         (main_loop_epoll): Likewise.
13655         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13656         (database_pers_head): Add extra_data fileds.
13657         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13658         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13659         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13660         Adjust caller.
13661         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13662         in6ai data, call __free_in6ai.
13663         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13664         Add -DHAVE_NETLINK.
13665         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13666         interface information.  Reuse previous data if netlink timestamp
13667         is not changed.
13668         (__bump_nl_timestamp): New function.
13669         (__free_in6ai): New function.
13670
13671 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13672
13673         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13674         close_not_cancel_no_status here.
13675         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13676
13677 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13678
13679         [BZ #13276]
13680         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13681         return value.
13682
13683         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13684         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13685         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13686
13687 2011-07-03  Andreas Jaeger  <aj@suse.de>
13688
13689         [BZ #10709]
13690         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13691         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13692         * math/libm-test.inc (sin_test): Add test case.
13693
13694 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13695
13696         [BZ #13337]
13697         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13698         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13699
13700         * elf/chroot_canon.c (chroot_canon): Cleanups.
13701
13702         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13703
13704         [BZ #13335]
13705         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13706         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13707
13708         * string/test-strchr.c: Make usable for strchrnul testing.
13709         * string/test-strchrnul.c: New file.
13710         * string/Makefile (strop-tests): Add strchrnul.
13711
13712         * po/it.po: Update from translation team.
13713         * po/es.po: Likewise.
13714
13715 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13716
13717         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13718         the three constants needed as parameters.  Drop the others.
13719         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13720         __m128i_strloadu_tolower.
13721         Create and initialize variable zero and use it in all the places
13722         where _mm_setzero_si128 was used.
13723
13724         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13725         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13726         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13727         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13728         anymore.
13729         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13730         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13731         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13732         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13733         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13734         __mpranred, __mptan.
13735         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13736         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13737         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13738         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13739         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13740         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13741         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13742         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13743         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13744
13745 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13746
13747         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13748         redefine if SHARED.
13749         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13750
13751         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13752         wide char related routines to wcsmbs subdir.
13753
13754 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13755
13756         [BZ #13344]
13757         * misc/sys/cdefs.h (__THROWNL): Define.
13758         * posix/unistd.h: Use __THREADNL instead of __THREAD
13759         for memory synchronization functions.
13760
13761 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13762
13763         [BZ #13349]
13764         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13765         doesn't exist.
13766         * manual/stdio.texi (Obstack Streams): Node removed.
13767
13768 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13769
13770         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13771         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13772         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13773
13774         * math/math_private.h (math_force_eval): Allow non-addressable
13775         arguments.
13776         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13777
13778 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13779
13780         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13781         file is not needed.
13782
13783         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13784         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13785         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13786         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13787         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13788         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13789         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13790         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13791         Add AVX variants.
13792         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13793         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13794         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13795         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13796         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13797         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13798         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13799         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13800         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13801         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13802         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13803         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13804         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13805         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13806         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13807         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13808         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13809         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13810         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13811
13812         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13813         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13814
13815         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13816         place.  Use VEX encoding when compiling for AVX.
13817
13818 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13819
13820         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13821         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13822
13823         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13824
13825 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13826
13827         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13828         useless if() expression.
13829         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13830         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13831         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13832         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13833         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13834         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13835         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13836         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13837         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13838         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13839         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13840         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13841         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13842         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13843         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13844         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13845         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13846         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13847         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13848
13849         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13850
13851 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13852
13853         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13854         condition.
13855         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13856
13857 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13858
13859         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13860         .text section.  Avoid duplicate constants.
13861         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13862         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13863         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13864         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13865         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13866         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13867         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13868         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13869         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13870         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13871         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13872         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13873         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13874         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13875         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13876         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13877         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13878         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13879         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13880         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13881         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13882         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13883         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13884         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13885         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13886         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13887         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13888         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13889         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13890         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13891         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13892         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13893         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13894         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13895         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13896         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13897         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13898         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13899         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13900         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13901         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13902         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13903         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13904         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13905         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13906
13907 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13908
13909         * sysdeps/x86_64/dla.h: Move to ...
13910         * sysdeps/x86_64/fpu/dla.h: ...here.
13911         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13912         situations.  Use __builtin_fma only for gcc 4.6 and up.
13913
13914         * config.make.in: Add have-mfma4 entry.
13915         * configure.in: Substitute libc_cv_cc_fma4.
13916         * math/Makefile (dbl-only-routines): Add sincostab.
13917         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13918         Use __sincostab not sincos.
13919         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13920         name is a macro.
13921         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13922         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13923         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13924         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13925         using __copysign.
13926         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13927         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13928         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13929         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13930         and __inv.
13931         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13932         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13933         __copysign.
13934         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13935         define aliases when function name is a macro.
13936         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13937         sysdeps/ieee754/dbl-64/sincos.tbl.
13938         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13939         fma4-enabled routines.
13940         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13941         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13942         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13943         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13944         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13945         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13946         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13947         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13948         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13949         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13950         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13951         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13952         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13953         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13954         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13955         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13956         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13957         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13958         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13959         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13960         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13961         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13962         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13963         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13964         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13965         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13966         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13967         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13968         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13969         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13970
13971         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13972         rename.
13973         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13974         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13975         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13976         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13977         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13978         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13979         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13980         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13981
13982 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13983
13984         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13985
13986 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13987
13988         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13989
13990         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13991         prediction.
13992         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13993
13994         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13995         Remove unused variable magic_bits.
13996         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13997
13998         * string/strnlen.c: Define and use STRNLEN macro.
13999         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14000         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14001         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14002         * wcsmbs/wcslen.c: Define and use WCSLEN.
14003         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14004         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14005         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14006         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14007         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14008         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14009         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14010
14011 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14012
14013         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14014         strnlen-sse2-no-bsf.
14015         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14016         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14017         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14018         Add strnlen support.
14019         (USE_AS_STRNLEN): New macro.
14020         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14021         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14022         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14023         * sysdeps/x86_64/wcslen.S: New file.
14024
14025 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14026
14027         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14028         XMM-moves are used for copying on small sizes.
14029
14030 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14031
14032         * wcsmbs/Makefile (strop-tests): Add wcschr.
14033         * wcsmbs/test-wcschr.c: New file.
14034         * string/test-strchr.c: Update.
14035         Add wcschr support.
14036         (WIDE): New macro.
14037
14038 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14039
14040         * wcsmbs/Makefile (strop-tests): Add wcslen.
14041         * wcsmbs/test-wcslen.c: New file.
14042         * string/test-strlen.c: Update.
14043         Add wcslen support.
14044         (WIDE): New macro.
14045
14046 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14047
14048         * po/it.po: Update from translation team.
14049
14050 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14051
14052         * sysdeps/x86_64/wcscmp.S: Update.
14053         Fix wrong comparison semantics.
14054         wcscmp shall use signed comparison not unsigned.
14055         Don't use substraction to avoid overflow bug.
14056         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14057         * wcsmbc/wcscmp.c: Likewise.
14058         * string/test-strcmp.c: Likewise.
14059         Add new tests to check cases with negative values.
14060
14061 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14062
14063         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14064         * sysdeps/x86_64/dla.h: ...here.  New file.
14065         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14066         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14067         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14068         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14069         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14070         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14071         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14072         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14073         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14074
14075 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14076
14077         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14078         __ynl_finite aliases.
14079
14080 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14081
14082         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14083
14084         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14085         define DLA_FMA.
14086         [DLA_FMA] (EMULV): Use DLA_FMA.
14087         [DLA_FMA] (MUL12): Use EMULV.
14088         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14089         that are not needed.
14090         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14091         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14092         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14093         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14094         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14095         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14096         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14097
14098 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14099
14100         * math/s_nan.c: Undef __nan.
14101         * math/s_nanf.c: Undef __nanf.
14102         * math/s_nanl.c: Undef __nanl.
14103         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14104         "math_private.h".
14105
14106 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14107
14108         * math/s_catan.c: Add branch predictions.
14109         * math/s_catanf.c: Likewise.
14110         * math/s_catanh.c: Likewise.
14111         * math/s_catanhf.c: Likewise.
14112         * math/s_catanhl.c: Likewise.
14113         * math/s_catanl.c: Likewise.
14114         * math/s_cexp.c: Likewise.
14115         * math/s_cexpf.c: Likewise.
14116         * math/s_cexpl.c: Likewise.
14117         * math/s_clog.c: Likewise.
14118         * math/s_clog10.c: Likewise.
14119         * math/s_clog10f.c: Likewise.
14120         * math/s_clog10l.c: Likewise.
14121         * math/s_clogf.c: Likewise.
14122         * math/s_clogl.c: Likewise.
14123         * math/s_csqrt.c: Likewise.
14124         * math/s_csqrtf.c: Likewise.
14125         * math/s_csqrtl.c: Likewise.
14126         * math/s_ctanf.c: Likewise.
14127         * math/s_ctanh.c: Likewise.
14128         * math/s_ctanhf.c: Likewise.
14129         * math/s_ctanhl.c: Likewise.
14130         * math/s_ctanl.c: Likewise.
14131
14132         * math/math_private.h: Define __nan, __nanf, __nanl.
14133         * math/s_cacosh.c: Include <math_private.h>.
14134         * math/s_cacoshl.c: Likewise.
14135         * math/s_casinh.c: Likewise.
14136         * math/s_casinhf.c: Likewise.
14137         * math/s_casinhl.c: Likewise.
14138         * math/s_ccos.c: Rely entire on ccosh.
14139         * math/s_ccosf.c: Rely entire on ccoshf.
14140         * math/s_ccosl.c: Rely entirely on ccoshl.
14141         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14142         Remove tests for FE_INVALID.
14143         * math/s_ccoshf.c: Likewise.
14144         * math/s_ccoshl.c: Likewise.
14145         * math/s_csin.c: Likewise.
14146         * math/s_csinf.c: Likewise.
14147         * math/s_csinh.c Likewise.
14148         * math/s_csinhf.c: Likewise.
14149         * math/s_csinhl.c: Likewise.
14150         * math/s_csinl.c: Likewise.
14151         * math/s_ctan.c: Likewise.
14152         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14153         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14154         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14155
14156 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14157
14158         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14159         compilation problems.
14160
14161         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14162         __builtin_expect.
14163
14164 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14165
14166         * sysdeps/i386/configure.in: Test for -mfma4 option.
14167         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14168         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14169         COMMON_CPUID_INDEX_80000001.
14170         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14171         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14172         use it if FMA3 is not supported.
14173         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14174
14175         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14176         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14177
14178 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14179
14180         [BZ #12892]
14181         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14182         it would create a cycle with a link time dependency.
14183
14184 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14185
14186         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14187         instruction.
14188         * string/Makefile (strop-tests): Add rawmemchr.
14189         * string/test-rawmemchr.c: New file.
14190
14191         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14192         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14193         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14194         when compiling str{,n}casecmp and when AVX is available.  Hook up
14195         new optimized code in initializers.
14196
14197 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14198
14199         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14200         __feraiseexcept instead of feraiseexcept.
14201
14202 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14203
14204         * math/math_private.h: Define defaults for libc_fetestexcept and
14205         libc_feupdateenv.
14206         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14207         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14208         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14209         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14210         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14211         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14212         libc_fetestexcept and libc_feupdateenv.
14213
14214         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14215         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14216         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14217         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14218         libc_feholdexcept_setround.
14219
14220         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14221         Add s_nearbyint-c and s_nearbyintf-c.
14222         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14223         nearbyintf inlines.
14224         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14225         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14226         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14227         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14228
14229         * math/math_private.h: Define defaults for libc_fegetround,
14230         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14231         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14232         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14233         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14234         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14235         standard functions.
14236         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14237         Remove comments and hacks for old compiler versions.
14238         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14239         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14240         libc_feholdexceptl.
14241
14242 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14243
14244         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14245         (__feraiseexcept_renamed): Add __NTH.
14246         (feraiseexcept): Add __NTH.  Rename local variables to fix
14247         namespace violations.
14248
14249 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14250
14251         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14252
14253         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14254
14255         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14256         recently added interfaces.
14257         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14258
14259         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14260         about macro parameter expansion.
14261
14262         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14263         __NO_MATH_INLINES is defined.  Cleanups.
14264
14265         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14266         and __floorf is target has SSE4.1.
14267         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14268         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14269         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14270         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14271
14272         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14273         name.
14274         (floorf): Likewise.
14275
14276         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14277
14278 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14279
14280         * misc/sys/cdefs.h: Fix last change.
14281
14282         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14283         database lookup.
14284
14285 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14286
14287         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14288
14289         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14290         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14291         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14292         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14293         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14294         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14295         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14296         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14297         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14298         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14299         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14300         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14301         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14302         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14303         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14304         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14305         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14306         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14307         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14308         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14309         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14310         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14311
14312         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14313         ceil, ceilf, floor, floorf.
14314
14315         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14316         Perform IRELATIVE relocations last.
14317
14318         * elf/do-rel.h: Add another parameter nrelative, replacing the
14319         local variable with the same name.  Change name of the function
14320         to end in Rel or Rela (uppercase).
14321         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14322         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14323         elf_dynamic_do_##reloc function.
14324
14325 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14326
14327         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14328         is sufficient, at least on modern CPUs.
14329
14330         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14331
14332         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14333         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14334
14335         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14336         __expl_finite.
14337         * math/bits/math-finite.h: Add entries for exp.
14338         * math/e_expl.c: Add __*_finite alias.
14339         * sysdeps/i386/fpu/e_exp.S: Likewise.
14340         * sysdeps/i386/fpu/e_expf.S: Likewise.
14341         * sysdeps/i386/fpu/e_expl.c: Likewise.
14342         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14343         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14344         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14345         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14346         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14347         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14348         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14349
14350         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14351         is sufficient, at least on modern CPUs.
14352
14353         * ctype/ctype-info.c (__ctype_init): Define.
14354         * include/ctype.h (__ctype_init): Declare.
14355         (__ctype_b_loc): The variable is always initialized.
14356         (__ctype_toupper_loc): Likewise.
14357         (__ctype_tolower_loc): Likewise.
14358         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14359         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14360
14361 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14362
14363         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14364
14365         * configure.in: Also look in $cxxmachine/include for C++ system
14366         headers.
14367
14368 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14369
14370         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14371         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14372         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14373         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14374         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14375         (USE_AS_WMEMCMP): New macro.
14376         Fixing indents.
14377         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14378         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14379         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14380         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14381         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14382         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14383         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14384         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14385         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14386         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14387         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14388         (USE_AS_WMEMCMP): New macro.
14389         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14390         * sysdeps/string/test-memcmp.c: Update.
14391         Fix simple_wmemcmp.
14392         Add new tests.
14393         * wcsmbs/wmemcmp.c: Update.
14394         (WMEMCMP): New macro.
14395         Fix overflow bug.
14396
14397 2011-10-12  Andreas Jaeger  <aj@suse.de>
14398
14399         [BZ #13268]
14400         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14401
14402 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14403
14404         * libio/iofwide.c (do_length): Avoid warning.
14405
14406         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14407
14408 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14409
14410         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14411
14412         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14413         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14414         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14415         * sysdeps/i386/i686/fpu/e_log.S: New file.
14416         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14417         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14418
14419         * ctype/ctype.h: Add support for inlined isXXX functions when
14420         compiling C++ code.
14421
14422 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14423
14424         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14425
14426         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14427
14428 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14429
14430         [BZ #13291]
14431         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14432
14433 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14434
14435         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14436         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14437         feraiseexcept.
14438
14439         * sysdeps/x86_64/memrchr.S: Check for zero size.
14440
14441         * string/stratcliff.c: Add memrchr tests.
14442
14443 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14444
14445         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14446         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14447         rawmemchr-sse2 rawmemchr-sse2-bsf.
14448         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14449         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14450         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14451         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14452         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14453         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14454         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14455         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14456         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14457         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14458         * string/memrchr.c (MEMRCHR): New macro.
14459
14460 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14461
14462         Add integration with gcc's -ffinite-math-only and optimize wrapper
14463         functions in libm.
14464         * Versions.def: Define GLIBC_2.15 version for libm.
14465         * math/Makefile (headers): Add bits/math-finite.h.
14466         * math/bits/math-finite.h: New file.
14467         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14468         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14469         * math/e_acoshl.c: Add __*_finite alias.
14470         * math/e_acosl.c: Likewise.
14471         * math/e_asinl.c: Likewise.
14472         * math/e_atan2l.c: Likewise.
14473         * math/e_atanhl.c: Likewise.
14474         * math/e_coshl.c: Likewise.
14475         * math/e_exp10.c: Likewise.
14476         * math/e_exp10f.c: Likewise.
14477         * math/e_exp10l.c: Likewise.
14478         * math/e_exp2l.c: Likewise.
14479         * math/e_fmodl.c: Likewise.
14480         * math/e_gammal_r.c: Likewise.
14481         * math/e_hypotl.c: Likewise.
14482         * math/e_j0l.c: Likewise.
14483         * math/e_j1l.c: Likewise.
14484         * math/e_jnl.c: Likewise.
14485         * math/e_lgammal_r.c: Likewise.
14486         * math/e_log10l.c: Likewise.
14487         * math/e_log2l.c: Likewise.
14488         * math/e_logl.c: Likewise.
14489         * math/e_powl.c: Likewise.
14490         * math/e_sinhl.c: Likewise.
14491         * math/e_sqrtl.c: Likewise.
14492         * math/e_scalb.c: Completely rewritten and optimized.
14493         * math/e_scalbf.c: Likewise.
14494         * math/e_scalbl.c: Likewise.
14495         * math/w_acos.c: Likewise.
14496         * math/w_acosf.c: Likewise.
14497         * math/w_acosl.c: Likewise.
14498         * math/w_acosh.c: Likewise.
14499         * math/w_acoshf.c: Likewise.
14500         * math/w_acoshl.c: Likewise.
14501         * math/w_asin.c: Likewise.
14502         * math/w_asinf.c: Likewise.
14503         * math/w_asinl.c: Likewise.
14504         * math/w_atan2.c: Likewise.
14505         * math/w_atan2f.c: Likewise.
14506         * math/w_atan2l.c: Likewise.
14507         * math/w_atanh.c: Likewise.
14508         * math/w_atanhf.c: Likewise.
14509         * math/w_atanhl.c: Likewise.
14510         * math/w_exp10.c: Likewise.
14511         * math/w_exp10f.c: Likewise.
14512         * math/w_exp10l.c: Likewise.
14513         * math/w_fmod.c: Likewise.
14514         * math/w_fmodf.c: Likewise.
14515         * math/w_fmodl.c: Likewise.
14516         * math/w_j0.c: Likewise.
14517         * math/w_j0f.c: Likewise.
14518         * math/w_j0l.c: Likewise.
14519         * math/w_j1.c: Likewise.
14520         * math/w_j1f.c: Likewise.
14521         * math/w_j1l.c: Likewise.
14522         * math/w_jn.c: Likewise.
14523         * math/w_jnf.c: Likewise.
14524         * math/w_log.c: Likewise.
14525         * math/w_logf.c: Likewise.
14526         * math/w_logl.c: Likewise.
14527         * math/w_log10.c: Likewise.
14528         * math/w_log10f.c: Likewise.
14529         * math/w_log10l.c: Likewise.
14530         * math/w_log2.c: Likewise.
14531         * math/w_log2f.c: Likewise.
14532         * math/w_log2l.c: Likewise.
14533         * math/w_pow.c: Likewise.
14534         * math/w_powf.c: Likewise.
14535         * math/w_powl.c: Likewise.
14536         * math/w_remainder.c: Likewise.
14537         * math/w_remainderf.c: Likewise.
14538         * math/w_remainderl.c: Likewise.
14539         * math/w_scalb.c: Likewise.
14540         * math/w_scalbf.c: Likewise.
14541         * math/w_scalbl.c: Likewise.
14542         * math/w_sqrt.c: Likewise.
14543         * math/w_sqrtf.c: Likewise.
14544         * math/w_sqrtl.c: Likewise.
14545         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14546         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14547         used.
14548         * math/math_private.h: Declare __kernel_standard_f.
14549         * math/w_cosh.c: Remove cruft and optimize a bit.
14550         * math/w_coshf.c: Likewise.
14551         * math/w_coshl.c: Likewise.
14552         * math/w_exp2.c: Likewise.
14553         * math/w_exp2f.c: Likewise.
14554         * math/w_exp2l.c: Likewise.
14555         * math/w_hypot.c: Likewise.
14556         * math/w_hypotf.c: Likewise.
14557         * math/w_hypotl.c: Likewise.
14558         * math/w_lgamma.c: Likewise.
14559         * math/w_lgamma_r.c: Likewise.
14560         * math/w_lgammaf.c: Likewise.
14561         * math/w_lgammaf_r.c: Likewise.
14562         * math/w_lgammal.c: Likewise.
14563         * math/w_lgammal_r.c: Likewise.
14564         * math/w_sinh.c: Likewise.
14565         * math/w_sinhf.c: Likewise.
14566         * math/w_sinhl.c: Likewise.
14567         * math/w_tgamma.c: Likewise.
14568         * math/w_tgammaf.c: Likewise.
14569         * math/w_tgammal.c: Likewise.
14570         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14571         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14572         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14573         Minor optimizations.  Pretty printing.  Remove cruft.
14574         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14575         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14576         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14577         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14578         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14579         * sysdeps/i386/fpu/e_asin.S: Likewise.
14580         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14581         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14582         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14583         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14584         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14585         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14586         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14587         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14588         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14589         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14590         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14591         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14592         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14593         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14594         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14595         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14596         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14597         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14598         * sysdeps/i386/fpu/e_log.S: Likewise.
14599         * sysdeps/i386/fpu/e_log10.S: Likewise.
14600         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14601         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14602         * sysdeps/i386/fpu/e_log2.S: Likewise.
14603         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14604         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14605         * sysdeps/i386/fpu/e_logf.S: Likewise.
14606         * sysdeps/i386/fpu/e_logl.S: Likewise.
14607         * sysdeps/i386/fpu/e_pow.S: Likewise.
14608         * sysdeps/i386/fpu/e_powf.S: Likewise.
14609         * sysdeps/i386/fpu/e_powl.S: Likewise.
14610         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14611         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14612         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14613         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14614         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14615         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14616         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14617         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14618         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14619         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14620         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14621         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14622         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14623         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14624         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14625         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14626         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14627         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14628         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14629         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14630         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14631         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14632         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14633         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14634         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14635         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14636         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14637         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14638         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14639         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14640         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14641         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14642         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14643         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14644         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14645         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14646         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14647         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14648         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14649         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14650         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14651         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14652         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14653         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14654         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14655         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14656         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14657         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14658         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14659         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14660         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14661         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14662         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14663         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14664         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14665         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14666         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14667         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14668         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14669         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14670         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14671         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14672         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14673         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14674         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14675         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14676         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14677         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14678         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14679         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14680         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14681         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14682         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14683         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14684         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14685         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14686         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14687         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14688         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14689         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14690         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14691         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14692         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14693         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14694         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14695         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14696         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14697         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14698         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14699         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14700         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14701         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14702         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14703         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14704         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14705         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14706         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14707         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14708         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14709         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14710         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14711         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14712         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14713         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14714         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14715         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14716         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14717         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14718         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14719         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14720         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14721         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14722         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14723         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14724         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14725         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14726         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14727         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14728         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14729         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14730         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14731         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14732         (__isnanf): Likewise.
14733         (__isinf_ns): Likewise.
14734         (__isinf_nsf): Likewise.
14735         (__finite): Likewise.
14736         (__finitef): Likewise.
14737         (__ieee754_sqrt): Define as macro.
14738         (__ieee754_sqrtf): Define as macro.
14739         (__ieee754_sqrtl): Define as macro.
14740         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14741         inlined copy.
14742         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14743         __FINITE_MATH_ONLY__ consistent.
14744         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14745
14746 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14747
14748         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14749         of rawmemchr.
14750
14751         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14752
14753 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14754
14755         * po/ja.po: Update from translation team.
14756
14757 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14758
14759         * locale/programs/locarchive.c (prepare_address_space): New function.
14760         (create_archive, enlarge_archive, open_archive): Use it.
14761
14762         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14763         inside [SHARED], where it is used.
14764
14765         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14766
14767         * nss/getent.c (netgroup_keys): Remove unused variable.
14768         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14769
14770 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14771
14772         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14773         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14774         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14775         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14776         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14777         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14778         * math/Makefile (libm-calls): Add s_isinf_ns.
14779         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14780         * math/multc3.c: Likewise.
14781         * math/s_casin.c: Likewise.
14782         * math/s_casinf.c: Likewise.
14783         * math/s_casinl.c: Likewise.
14784         * math/s_ccos.c: Likewise.
14785         * math/s_ccosf.c: Likewise.
14786         * math/s_ccosl.c: Likewise.
14787         * math/s_ctan.c: Likewise.
14788         * math/s_ctanf.c: Likewise.
14789         * math/s_ctanh.c: Likewise.
14790         * math/s_ctanhf.c: Likewise.
14791         * math/s_ctanhl.c: Likewise.
14792         * math/s_ctanl.c: Likewise.
14793         * math/w_fmod.c: Likewise.
14794         * math/w_fmodf.c: Likewise.
14795         * math/w_fmodl.c: Likewise.
14796         * math/w_remainder.c: Likewise.
14797         * math/w_remainderf.c: Likewise.
14798         * math/w_remainderl.c: Likewise.
14799         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14800         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14801         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14802         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14803         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14804         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14805         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14806         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14807
14808         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14809         of the number.
14810         * stdio-common/printf_fphex.c: Likewise.
14811         * stdio-common/printf_size.c: Likewise.
14812
14813         * math/e_exp10.c: Include math_private.h using <...> not "...".
14814         * math/e_exp10f.c: Likewise.
14815         * math/e_exp10l.c: Likewise.
14816         * math/e_exp2l.c: Likewise.
14817         * math/e_j0l.c: Likewise.
14818         * math/e_j1l.c: Likewise.
14819         * math/e_jnl.c: Likewise.
14820         * math/e_lgammal_r.c: Likewise.
14821         * math/e_rem_pio2l.c: Likewise.
14822         * math/e_scalb.c: Likewise.
14823         * math/e_scalbf.c: Likewise.
14824         * math/e_scalbl.c: Likewise.
14825         * math/k_cosl.c: Likewise.
14826         * math/k_sinl.c: Likewise.
14827         * math/k_tanl.c: Likewise.
14828         * math/s_cacoshf.c: Likewise.
14829         * math/s_catan.c: Likewise.
14830         * math/s_catanf.c: Likewise.
14831         * math/s_catanh.c: Likewise.
14832         * math/s_catanhf.c: Likewise.
14833         * math/s_catanhl.c: Likewise.
14834         * math/s_catanl.c: Likewise.
14835         * math/s_ccosh.c: Likewise.
14836         * math/s_ccoshf.c: Likewise.
14837         * math/s_ccoshl.c: Likewise.
14838         * math/s_cexp.c: Likewise.
14839         * math/s_cexpf.c: Likewise.
14840         * math/s_cexpl.c: Likewise.
14841         * math/s_clog.c: Likewise.
14842         * math/s_clog10.c: Likewise.
14843         * math/s_clog10f.c: Likewise.
14844         * math/s_clog10l.c: Likewise.
14845         * math/s_clogf.c: Likewise.
14846         * math/s_clogl.c: Likewise.
14847         * math/s_csin.c: Likewise.
14848         * math/s_csinf.c: Likewise.
14849         * math/s_csinh.c: Likewise.
14850         * math/s_csinhf.c: Likewise.
14851         * math/s_csinhl.c: Likewise.
14852         * math/s_csinl.c: Likewise.
14853         * math/s_csqrt.c: Likewise.
14854         * math/s_csqrtf.c: Likewise.
14855         * math/s_csqrtl.c: Likewise.
14856         * math/s_ctan.c: Likewise.
14857         * math/s_ctanf.c: Likewise.
14858         * math/s_ctanh.c: Likewise.
14859         * math/s_ctanhf.c: Likewise.
14860         * math/s_ctanhl.c: Likewise.
14861         * math/s_ctanl.c: Likewise.
14862         * math/s_ldexp.c: Likewise.
14863         * math/s_ldexpf.c: Likewise.
14864         * math/s_ldexpl.c: Likewise.
14865         * math/s_significand.c: Likewise.
14866         * math/s_significandf.c: Likewise.
14867         * math/s_significandl.c: Likewise.
14868         * math/w_acos.c: Likewise.
14869         * math/w_acosf.c: Likewise.
14870         * math/w_acosh.c: Likewise.
14871         * math/w_acoshf.c: Likewise.
14872         * math/w_acoshl.c: Likewise.
14873         * math/w_acosl.c: Likewise.
14874         * math/w_asin.c: Likewise.
14875         * math/w_asinf.c: Likewise.
14876         * math/w_asinl.c: Likewise.
14877         * math/w_atan2.c: Likewise.
14878         * math/w_atan2f.c: Likewise.
14879         * math/w_atan2l.c: Likewise.
14880         * math/w_atanh.c: Likewise.
14881         * math/w_atanhf.c: Likewise.
14882         * math/w_atanhl.c: Likewise.
14883         * math/w_cosh.c: Likewise.
14884         * math/w_coshf.c: Likewise.
14885         * math/w_coshl.c: Likewise.
14886         * math/w_dremf.c: Likewise.
14887         * math/w_exp10.c: Likewise.
14888         * math/w_exp10f.c: Likewise.
14889         * math/w_exp10l.c: Likewise.
14890         * math/w_exp2.c: Likewise.
14891         * math/w_exp2f.c: Likewise.
14892         * math/w_fmod.c: Likewise.
14893         * math/w_fmodf.c: Likewise.
14894         * math/w_fmodl.c: Likewise.
14895         * math/w_hypot.c: Likewise.
14896         * math/w_hypotf.c: Likewise.
14897         * math/w_hypotl.c: Likewise.
14898         * math/w_j0.c: Likewise.
14899         * math/w_j0f.c: Likewise.
14900         * math/w_j0l.c: Likewise.
14901         * math/w_j1.c: Likewise.
14902         * math/w_j1f.c: Likewise.
14903         * math/w_j1l.c: Likewise.
14904         * math/w_jn.c: Likewise.
14905         * math/w_jnf.c: Likewise.
14906         * math/w_jnl.c: Likewise.
14907         * math/w_lgamma.c: Likewise.
14908         * math/w_lgamma_r.c: Likewise.
14909         * math/w_lgammaf.c: Likewise.
14910         * math/w_lgammaf_r.c: Likewise.
14911         * math/w_lgammal.c: Likewise.
14912         * math/w_lgammal_r.c: Likewise.
14913         * math/w_log.c: Likewise.
14914         * math/w_log10.c: Likewise.
14915         * math/w_log10f.c: Likewise.
14916         * math/w_log10l.c: Likewise.
14917         * math/w_log2.c: Likewise.
14918         * math/w_log2f.c: Likewise.
14919         * math/w_log2l.c: Likewise.
14920         * math/w_logf.c: Likewise.
14921         * math/w_logl.c: Likewise.
14922         * math/w_pow.c: Likewise.
14923         * math/w_powf.c: Likewise.
14924         * math/w_powl.c: Likewise.
14925         * math/w_remainder.c: Likewise.
14926         * math/w_remainderf.c: Likewise.
14927         * math/w_remainderl.c: Likewise.
14928         * math/w_scalb.c: Likewise.
14929         * math/w_scalbf.c: Likewise.
14930         * math/w_scalbl.c: Likewise.
14931         * math/w_sinh.c: Likewise.
14932         * math/w_sinhf.c: Likewise.
14933         * math/w_sinhl.c: Likewise.
14934         * math/w_sqrt.c: Likewise.
14935         * math/w_sqrtf.c: Likewise.
14936         * math/w_sqrtl.c: Likewise.
14937         * math/w_tgamma.c: Likewise.
14938         * math/w_tgammaf.c: Likewise.
14939         * math/w_tgammal.c: Likewise.
14940
14941         * po/ja.po: Update from translation team.
14942
14943 2011-09-29  Andreas Jaeger  <aj@suse.de>
14944
14945         [BZ #13179]
14946         * sunrpc/netname.c (netname2host): Fix logic.
14947
14948         [BZ #6779]
14949         [BZ #6783]
14950         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14951         correctly.
14952         * math/w_remainder.c (__remainder): Likewise.
14953         * math/w_remainderf.c (__remainderf): Likewise.
14954         * math/libm-test.inc (remainder_test): Add test cases.
14955
14956 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14957
14958         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14959         sdiv_qrnnd.
14960
14961 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14962
14963         * string/test-memcmp.c: Avoid unncessary #defines.
14964         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14965
14966 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14967
14968         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14969         Use new sse2 version for core i3 - i7 as it's faster
14970         than sse42 version.
14971         (bit_Prefer_PMINUB_for_stringop): New.
14972         * sysdeps/x86_64/rawmemchr.S: Update.
14973         Replace with faster SSE2 version.
14974         * sysdeps/x86_64/memrchr.S: New file.
14975         * sysdeps/x86_64/memchr.S: Update.
14976         Replace with faster SSE2 version.
14977
14978 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14979
14980         * elf/dl-load.c (lose): Add cast to avoid warning.
14981
14982 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14983
14984         * po/ca.po: Update from translation team.
14985
14986         * inet/getnetgrent_r.c: Hook up nscd.
14987         * nscd/Makefile (routines): Add nscd_netgroup.
14988         (nscd-modules): Add netgroupcache.
14989         (CFLAGS-netgroupcache.c): Define.
14990         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14991         (cache_search): Add const to second parameter.
14992         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14993         INNETGR.
14994         (dbs): Add netgrdb entry.
14995         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14996         (verify_persistent_db): Handle netgrdb.
14997         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14998         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14999         GETFDNETGR.
15000         (netgroup_response_header): Define.
15001         (innetgroup_response_header): Define.
15002         (datahead): Add netgroup_response_header and innetgroup_response_header
15003         elements.
15004         * nscd/nscd.conf: Add entries for netgroup cache.
15005         * nscd/nscd.h (dbtype): Add netgrdb.
15006         (_PATH_NSCD_NETGROUP_DB): Define.
15007         (netgroup_iov_disabled): Declare.
15008         (xmalloc, xcalloc, xrealloc): Move declarations here.
15009         (cache_search): Adjust prototype.
15010         Add netgroup-related prototypes.
15011         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15012         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15013         (__nscd_innetgr): Declare.
15014         * nscd/selinux.c (perms): Use access_vector_t as element type and
15015         add netgroup-related initializers.
15016         * nscd/netgroupcache.c: New file.
15017         * nscd/nscd_netgroup.c: New file.
15018         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15019         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15020         For four parameters use innetgr.
15021         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15022         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15023         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15024         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15025
15026         * nscd/connections.c (register_traced_file): Don't register file
15027         for disabled databases.
15028
15029 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15030
15031         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15032
15033         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15034         from tree and freeing node.
15035
15036 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15037
15038         * nss/nsswitch.c (__nss_database_lookup): Handle
15039         nss_parse_service_list out of memory case.
15040
15041 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15042
15043         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15044         out of memory case.
15045
15046 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15047
15048         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15049         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15050         pass it down.
15051         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15052         elf_machine_rela, elf_machine_lazy_rel.
15053         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15054         (ELF_DYNAMIC_DO_REL): Likewise.
15055         (ELF_DYNAMIC_DO_RELA): Likewise.
15056         (ELF_DYNAMIC_RELOCATE): Likewise.
15057         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15058         to ELF_DYNAMIC_DO_REL.
15059         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15060         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15061         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15062         elf_machine_rela.
15063         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15064         skip_ifunc, don't call ifunc function if non-zero.
15065         (elf_machine_rela): Likewise.
15066         (elf_machine_lazy_rel): Likewise.
15067         (elf_machine_lazy_rela): Likewise.
15068         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15069         (elf_machine_lazy_rel): Likewise.
15070         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15071         Likewise.
15072         (elf_machine_lazy_rel): Likewise.
15073         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15074         Likewise.
15075         (elf_machine_lazy_rel): Likewise.
15076         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15077         (elf_machine_lazy_rel): Likewise.
15078         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15079         (elf_machine_lazy_rel): Likewise.
15080         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15081         (elf_machine_lazy_rel): Likewise.
15082         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15083         (elf_machine_lazy_rel): Likewise.
15084         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15085         (elf_machine_lazy_rel): Likewise.
15086         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15087         (elf_machine_lazy_rel): Likewise.
15088
15089 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15090
15091         * nss/nss_files/files-init.c (_nss_files_init): Use static
15092         initialization for all the *_traced_file variables.
15093
15094 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15095
15096         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15097
15098 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15099
15100         [BZ #13226]
15101         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15102
15103 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15104
15105         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15106         Reread the line before reparsing it.
15107
15108 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15109
15110         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15111
15112 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15113             Maxim Kuvyrkov  <maxim@codesourcery.com>
15114             Joseph Myers  <joseph@codesourcery.com>
15115
15116         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15117         if needed for __stack_chk_guard.
15118
15119 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15120
15121         * sysdeps/posix/spawni.c (script_execute): Always define it.
15122         It will be optimized away if unused.
15123         (maybe_script_execute): New function.
15124         (__spawni): Call it.
15125
15126         * Makerules: Don't include tls.make.
15127         (config-tls): Always set to thread.
15128         * tls.make.c: File removed.
15129
15130 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15131
15132         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15133         * config.make.in (CPPFLAGS-config): New substituted variable.
15134
15135 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15136
15137         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15138
15139         [BZ #13192]
15140         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15141         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15142
15143 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15144
15145         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15146         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15147         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15148         (CALL_FAIL): Likewise.
15149         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15150         (CALL_FAIL): Macro removed.
15151         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15152
15153 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15154
15155         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15156         for __FINITE_MATH_ONLY__ == 1.
15157
15158 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15159
15160         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15161         __ieee754_sqrt instead of sqrt.
15162         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15163         __ieee754_sqrtf instead of sqrtf.
15164         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15165         __floorf instead of floorf.
15166         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15167         __floorf, __truncf instead of floorf, truncf.
15168
15169 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15170
15171         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15172
15173         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15174         __extern_always_inline.
15175         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15176         32-bit.
15177
15178 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15179
15180         * elf/rtld.c (dl_main): Also relocate in dependency order when
15181         doing symbol dependency testing.
15182
15183 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15184
15185         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15186         Always define `refsym'.
15187
15188 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15189
15190         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15191         (__FD_ELT): Renamed from __FDELT.
15192         * misc/bits/select2.h (__FD_ELT): Likewise.
15193         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15194         __FD_MASK instead of __FDELT, __FDMASK.
15195         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15196         Likewise.
15197         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15198         Likewise.
15199
15200         * elf/Makefile (gen-ldd): Fix pattern.
15201
15202         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15203         (init_tls): Likewise.
15204
15205 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15206
15207         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15208
15209 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15210
15211         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15212         `struct cmsghdr *' instead of `void *'.
15213         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15214         Likewise.
15215
15216 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15217
15218         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15219         if non-absolute.
15220         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15221         ldd_rewrite_script.
15222
15223 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15224
15225         * configure.in: Remove --with-tls option.
15226         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15227         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15228         out in case it is missing.
15229         * sysdeps/ia64/elf/configure.in: Likewise.
15230         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15231         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15232         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15233         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15234         * sysdeps/sh/elf/configure.in: Likewise.
15235         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15236         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15237         * sysdeps/x86_64/elf/configure.in: Likewise.
15238         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15239         * sysdeps/mach/hurd/tls.h: Likewise.
15240
15241         [BZ #13067]
15242         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15243
15244         [BZ #13090]
15245         * configure.in: Fix use of AC_INIT.
15246
15247         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15248
15249 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15250
15251         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15252         __set_errno.
15253         * malloc/hooks.c: Likewise.
15254
15255         [BZ #11929]
15256         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15257         variables statically.
15258         (narenas): Initialize.
15259         (list_lock): Initialize.
15260         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15261         initializtion of main_arena and list_lock.  Small cleanups.
15262         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15263         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15264         Add initializers to main_arena and mp_.
15265         (malloc_state): Remove pagesize member.  Change all users to use
15266         GLRO(dl_pagesize).
15267
15268         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15269         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15270         is always initialized.
15271
15272         * malloc/malloc.c: Removed unused configurations and dead code.
15273         * malloc/arena.c: Likewise.
15274         * malloc/hooks.c: Likewise.
15275         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15276
15277         * include/tls.h: Removed.  USE___THREAD must always be defined.
15278         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15279         * elf/dl-libc.c: Likewise.
15280         * elf/dl-tsd.c: Likewise.
15281         * include/errno.h: Likewise.
15282         * include/netdb.h: Likewise.
15283         * include/resolv.h: Likewise.
15284         * inet/herrno-loc.c: Likewise.
15285         * inet/herrno.c: Likewise.
15286         * malloc/arena.c: Likewise.
15287         * malloc/hooks.c: Likewise.
15288         * malloc/malloc.c: Likewise.
15289         * resolv/res-state.c: Likewise.
15290         * resolv/res_libc.c: Likewise.
15291         * sysdeps/i386/dl-machine.h: Likewise.
15292         * sysdeps/ia64/dl-machine.h: Likewise.
15293         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15294         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15295         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15296         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15297         * sysdeps/sh/dl-machine.h: Likewise.
15298         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15299         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15300         * sysdeps/unix/i386/sysdep.S: Likewise.
15301         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15302         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15303         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15304         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15305         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15306         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15307         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15308         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15309         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15310         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15311         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15312         * sysdeps/x86_64/dl-machine.h: Likewise.
15313         * tls.make.c: Likewise.
15314
15315         * configure.in: Remove --with-__thread option.  Make tests for
15316         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15317         tls_model attribute fail if no support is available.  Remove
15318         USE_IN_LIBIO.
15319         * Makeconfig: Adjust for dropped configure option.  All features are
15320         now mandatory.
15321         * Makerules: Likewise.
15322         * Versions.def: Likewise.
15323         * argp/argp-fmtstream.c: Likewise.
15324         * argp/argp-fmtstream.h: Likewise.
15325         * argp/argp-help.c: Likewise.
15326         * assert/assert.c: Likewise.
15327         * config.h.in: Likewise.
15328         * config.make.in: Likewise.
15329         * configure: Likewise.
15330         * configure.in: Likewise.
15331         * csu/Versions: Likewise.
15332         * csu/init.c: Likewise.
15333         * elf/tst-audit2.c: Likewise.
15334         * elf/tst-tls10.c: Likewise.
15335         * elf/tst-tls10.h: Likewise.
15336         * elf/tst-tls11.c: Likewise.
15337         * elf/tst-tls12.c: Likewise.
15338         * elf/tst-tls14.c: Likewise.
15339         * elf/tst-tlsmod11.c: Likewise.
15340         * elf/tst-tlsmod12.c: Likewise.
15341         * elf/tst-tlsmod13.c: Likewise.
15342         * elf/tst-tlsmod13a.c: Likewise.
15343         * elf/tst-tlsmod14a.c: Likewise.
15344         * elf/tst-tlsmod15b.c: Likewise.
15345         * elf/tst-tlsmod16a.c: Likewise.
15346         * elf/tst-tlsmod16b.c: Likewise.
15347         * elf/tst-tlsmod7.c: Likewise.
15348         * elf/tst-tlsmod8.c: Likewise.
15349         * elf/tst-tlsmod9.c: Likewise.
15350         * gmon/gmon.c: Likewise.
15351         * grp/fgetgrent_r.c: Likewise.
15352         * grp/putgrent.c: Likewise.
15353         * hurd/fopenport.c: Likewise.
15354         * include/libc-symbols.h: Likewise.
15355         * include/tls.h: Likewise.
15356         * intl/gettextP.h: Likewise.
15357         * intl/loadinfo.h: Likewise.
15358         * locale/global-locale.c: Likewise.
15359         * locale/localeinfo.h: Likewise.
15360         * mach/devstream.c: Likewise.
15361         * malloc/arena.c: Likewise.
15362         * malloc/set-freeres.c: Likewise.
15363         * misc/err.c: Likewise.
15364         * misc/getttyent.c: Likewise.
15365         * misc/mntent_r.c: Likewise.
15366         * posix/getopt.c: Likewise.
15367         * posix/wordexp.c: Likewise.
15368         * pwd/fgetpwent_r.c: Likewise.
15369         * resolv/Versions: Likewise.
15370         * resolv/res_hconf.c: Likewise.
15371         * shadow/fgetspent_r.c: Likewise.
15372         * shadow/putspent.c: Likewise.
15373         * stdio-common/printf_fphex.c: Likewise.
15374         * stdio-common/tmpfile.c: Likewise.
15375         * stdlib/abort.c: Likewise.
15376         * stdlib/fmtmsg.c: Likewise.
15377         * sunrpc/auth_unix.c: Likewise.
15378         * sunrpc/clnt_perr.c: Likewise.
15379         * sunrpc/clnt_tcp.c: Likewise.
15380         * sunrpc/clnt_udp.c: Likewise.
15381         * sunrpc/clnt_unix.c: Likewise.
15382         * sunrpc/openchild.c: Likewise.
15383         * sunrpc/svc_simple.c: Likewise.
15384         * sunrpc/svc_tcp.c: Likewise.
15385         * sunrpc/svc_udp.c: Likewise.
15386         * sunrpc/svc_unix.c: Likewise.
15387         * sunrpc/xdr.c: Likewise.
15388         * sunrpc/xdr_array.c: Likewise.
15389         * sunrpc/xdr_rec.c: Likewise.
15390         * sunrpc/xdr_ref.c: Likewise.
15391         * sunrpc/xdr_stdio.c: Likewise.
15392
15393 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15394
15395         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15396
15397 2011-07-03  Andreas Jaeger  <aj@suse.de>
15398
15399         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15400         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15401         regenerate with gen-libm-tests.pl.
15402
15403 2010-05-12  Petr Baudis  <pasky@suse.cz>
15404
15405         [BZ #11589]
15406         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15407         around j0() zero points by switching to j1().
15408         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15409         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15410         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15411         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15412
15413 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15414
15415         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15416         instead of 0.
15417         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15418         instead of 0.                              .
15419         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15420         Patch in part by Pavel Roskin <proski@gnu.org>.
15421
15422         [BZ #13138]
15423         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15424         realloc.
15425         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15426         Free memory block if necessary.
15427
15428         [BZ #12847]
15429         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15430         be NULL.  Don't lock in this case.
15431
15432 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15433
15434         * elf/elf.h (ELFOSABI_GNU): New macro.
15435         (ELFOSABI_LINUX): Define to that.
15436
15437 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15438
15439         * string/strncat.c (strncat): Undef the symbol in case it has been
15440         defined in bits/string.h.
15441
15442 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15443
15444         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15445
15446         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15447         link map.
15448
15449 2011-08-17  Andreas Jaeger  <aj@suse.de>
15450
15451         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15452
15453 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15454             Ian Lance Taylor  <iant@google.com>
15455
15456         * math/libm-test.inc (lround_test): New testcase.
15457         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15458
15459 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15460
15461         * Makefile: Remove support for automatic cvs check-ins.
15462         * Makerules: Likewise.
15463         * config.make.in: Likewise.
15464         * configure.in: Likewise.
15465         * intl/Makefile: Likewise.
15466         * locale/Makefile: Likewise.
15467         * po/Makefile: Likewise.
15468         * posix/Makefile: Likewise.
15469         * sysdeps/gnu/Makefile: Likewise.
15470         * sysdeps/mach/hurd/Makefile: Likewise.
15471         * sysdeps/sparc/sparc32/Makefile: Likewise.
15472
15473         [BZ #13118]
15474         * posix/Makefile (bug-regex32-ENV): Define.
15475         Patch by John Stanley <jpsinthemix@verizon.net>.
15476
15477         * misc/Makefile (headers): Add bits/select2.h.
15478         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15479         * misc/bits/select2.h: New file.
15480         * include/bits/select2.h: New file.
15481         * debug/Makefile (routines): Add fdelt_chk.
15482         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15483         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15484         FD_ISSET.
15485         * debug/fdelt_chk.c: New file.
15486
15487         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15488         * wcsmbs/test-wmemcmp.c: Likewise.
15489         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15490         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15491
15492 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15493
15494         * string/Makefile (strop-tests): Add memcmp.
15495         * string/test-wmemcmp.c: New file.
15496         * string/test-memcmp.c: Add wmemcmp support.
15497
15498 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15499
15500         [BZ #13153]
15501         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15502         2011-07-19 change.
15503
15504         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15505         garbage value in a __mach_port_mod_refs call in the cases of the
15506         task-self and thread-self ports.
15507
15508 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15509
15510         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15511
15512 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15513
15514         * elf/dl-load.c (lose): Check for non-null L.
15515
15516 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15517
15518         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15519
15520         * elf/dl-libc.c (dlerror_run): Pass back error code from
15521         dl_catch_error.
15522
15523         [BZ #13123]
15524         * elf/dl-load.c (lose): Free l_origin if it is valid.
15525
15526         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15527         names.
15528         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15529         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15530         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15531         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15532         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15533         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15534
15535 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15536
15537         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15538         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15539         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15540         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15541         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15542         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15543         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15544         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15545         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15546         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15547
15548 2011-08-15  Alan Modra  <amodra@gmail.com>
15549
15550         [BZ #13092]
15551         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15552         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15553         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15554         ppc_mcount to static-only-routines.
15555         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15556         __mcount_internal.
15557         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15558         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15559
15560 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15561
15562         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15563         for finite and infinity parameters.
15564
15565 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15566
15567         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15568         and add nop instructions for throughput optimization.
15569         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15570
15571 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15572
15573         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15574         aligned copy for power7 with vector-scalar instructions.
15575         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15576
15577 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15578
15579         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15580         AVX check.
15581
15582 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15583
15584         [BZ #13144]
15585         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15586         last change.
15587
15588 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15589
15590         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15591         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15592         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15593         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15594         clock_gettime.
15595
15596 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15597
15598         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15599         Forgot to demangle the pointer.
15600
15601         * sysdeps/i386/sysdep.h: Define atom_text_section.
15602         * sysdeps/x86_64/sysdep.h: Likewise.
15603         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15604         section with atom_text_section.
15605         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15606         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15607         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15608         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15609         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15610
15611         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15612         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15613         already be defined.  Change to take two parameters and don't assign
15614         result to variable.  Adjust all users.
15615         Define INTERNAL_GETTIME if not already defined.
15616         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15617         call.
15618         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15619         HAVE_CLOCK_GETTIME_VSYSCALL.
15620         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15621
15622         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15623         gettimeofday vsyscall, just use time.
15624
15625 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15626
15627         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15628         <errno.h>.
15629
15630 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15631
15632         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15633         syscall on x86-64.
15634         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15635         syscall.
15636         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15637         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15638         syscall if possible.
15639
15640 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15641
15642         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15643         e_ident.  Don't pass to find_mapsXX.
15644         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15645
15646 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15647
15648         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15649         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15650         * sysdeps/x86_64/multiarch/strchr.S: Update.
15651         Check bit_slow_BSF bit.
15652         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15653         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15654         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15655
15656 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15657
15658         [BZ #13134]
15659         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15660         before glibc 2.15.
15661         (tryshell): Define.
15662         (__spawni): Change last parameter to be flag.  Test
15663         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15664         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15665         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15666         * posix/spawni.c: Likewise.
15667         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15668         * posix/spawnp.c: Likewise.  Change normal version to use
15669         SPAWN_XFLAGS_USE_PATH.
15670         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15671         SPAWN_XFLAGS_TRY_SHELL.
15672
15673         [BZ #13150]
15674         * posix/glob.h: Remove gcc 1.x support.
15675
15676         [BZ #13068]
15677         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15678
15679 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15680
15681         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15682         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15683         strrchr-sse2-bsf
15684         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15685         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15686         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15687         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15688         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15689         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15690
15691 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15692
15693         * sysdeps/x86_64/wcscmp.S: New file.
15694
15695         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15696         wcscmp-c wcscmp-sse2
15697         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15698         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15699         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15700         * wcsmbs/wcscmp.c: Allow renaming.
15701
15702 2011-09-05  David S. Miller  <davem@davemloft.net>
15703
15704         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15705         stack slot, rather than the struct return pointer slot.
15706         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15707         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15708         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15709         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15710
15711 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15712
15713         * po/ja.po: Update from translation team.
15714
15715         [BZ #13144]
15716         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15717         kernel in 64-bit binaries.
15718
15719 2011-09-01  David S. Miller  <davem@davemloft.net>
15720
15721         * elf/elf.h (HWCAP_SPARC_*): Move to..
15722         * sysdeps/sparc/sysdep.h: this new file and add new values.
15723         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15724         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15725         _DL_HWCAP_COUNT to 24.
15726         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15727         entries.
15728         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15729         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15730         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15731         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15732         instead of magic constants.
15733         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15734
15735 2011-08-31  David S. Miller  <davem@davemloft.net>
15736
15737         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15738         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15739         Reimplement to do errno handling inline.
15740         (SYSCALL_ERROR_HANDLER): New macro.
15741         (__SYSCALL_STRING): Do not do errno handling in asm.
15742         (__CLONE_SYSCALL_STRING): Delete.
15743         (__INTERNAL_SYSCALL_STRING): Delete.
15744         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15745         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15746         (PSEUDO): Reimplement to do errno handling inline.
15747         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15748         (SYSCALL_ERROR_HANDLER): New macro.
15749         (__SYSCALL_STRING): Do not do errno handling in asm.
15750         (__CLONE_SYSCALL_STRING): Delete.
15751         (__INTERNAL_SYSCALL_STRING): Delete.
15752         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15753         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15754         i386.
15755         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15756         (inline_syscall*): Add 'err' argument.
15757         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15758         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15759         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15760         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15761
15762         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15763         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15764
15765 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15766
15767         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15768
15769 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15770
15771         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15772         directive.
15773
15774 2011-08-24  David S. Miller  <davem@davemloft.net>
15775
15776         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15777
15778 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15779
15780         * elf/Makefile: Add rules to build and run unload8 test.
15781         * elf/unload8.c: New file.
15782         * elf/unload8mod1.c: New file.
15783         * elf/unload8mod1x.c: New file.
15784         * elf/unload8mod2.c: New file.
15785         * elf/unload8mod3.c: New file.
15786
15787         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15788         it wasn't used.
15789
15790 2011-08-23  David S. Miller  <davem@davemloft.net>
15791
15792         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15793         subtract stack bias.
15794         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15795         %sp not %fp in calculations.
15796         (_JMPBUF_UNWINDS_ADJ): Likewise.
15797
15798         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15799         (aio_suspend): Call it to force an exception region around the
15800         AIO_MISC_WAIT() invocation.
15801
15802 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15803
15804         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15805         backslash.
15806
15807 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15808
15809         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15810         protection macro.
15811         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15812         and <dl-machine.h>.
15813         (Elf64_FuncDesc): Remove.
15814
15815 2011-08-22  David S. Miller  <davem@davemloft.net>
15816
15817         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15818         sigaltstack check, add missing cfi directives.
15819         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15820         missing cfi directives, and sigaltstack handling.
15821
15822 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15823
15824         [BZ #11724]
15825         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15826         object is seen twice.
15827         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15828
15829         * elf/Makefile (distribute): Add tst-initorder2.c.
15830         (tests): Add tst-initorder2.
15831         (modules-names): Add tst-initorder2a tst-initorder2b
15832         tst-initorder2c tst-initorder2d.  Add rules to build them.
15833         ($(objpfx)tst-initorder2.out): New rule.
15834         * elf/tst-initorder2.c: New file.
15835         * elf/tst-initorder2.exp: New file.
15836
15837 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15838
15839         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15840
15841         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15842         dependencies back to end of function.
15843
15844         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15845         $(elfobjdir)/ld.so.
15846
15847 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15848
15849         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15850         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15851         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15852         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15853         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15854         of __vdso_gettimeofday.
15855         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15856         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15857         attribute_hidden.
15858         (_libc_vdso_platform_setup): Remove initialization of
15859         __vdso_gettimeofday and __vdso_time.
15860
15861 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15862
15863         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15864         and fgetc_unlocked.
15865         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15866         getc_unlocked.
15867
15868         * elf/dl-open.c (add_to_global): Report additions to the global scope
15869         for LD_DEBUG=scopes.
15870         (dl_open_worker): Also print scope of newly loaded dependencies.
15871         (_dl_show_scope): Indicate if there is no scope.
15872
15873         [BZ #13114]
15874         * stdio-common/Makefile (tests): Add bug24.
15875         * stdio-common/bug24.c: New file.
15876
15877 2011-08-19  Andreas Jaeger  <aj@suse.de>
15878
15879         [BZ #13114]
15880         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15881         non-existant file when using close-on-exec mode.
15882
15883 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15884
15885         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15886         the very first instruction.
15887
15888         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15889         the CFI state in the end.
15890         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15891         inclusion of dl-trampoline.h.
15892         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15893
15894 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15895
15896         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15897         expectations for long double.
15898
15899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15900         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15901
15902 2011-08-14  David S. Miller  <davem@davemloft.net>
15903
15904         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15905         artificual limit depends upon the system page size.
15906
15907 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15908
15909         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15910         * resolv/Makefile: Define CFLAGS-libresolv.
15911
15912 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15913
15914         * nss/makedb.c (compute_tables): Make variables used in nested
15915         function static.
15916
15917 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15918
15919         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15920         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15921         if buffer was too small.
15922
15923         * elf/pldd.c (main): Attach to all threads in the process.
15924         Rewrite /proc handling to use *at functions.
15925
15926 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15927
15928         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15929         specifies first scope to show.
15930         (dl_open_worker): Update callers.  Move printing scope of new
15931         object to before the relocation.
15932         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15933         * sysdeps/generic/ldsodefs.h: Update declaration.
15934
15935         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15936         string for the scope number.
15937
15938 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15939
15940         * nscd/servicescache.c (cache_addserv): Make sure written is always
15941         initialized.
15942
15943 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15944
15945         * sysdeps/i386/i486/bits/atomic.h
15946         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15947         statement expression, so as to suppress "set but not used" warning.
15948         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15949
15950         * string/strncat.c (STRNCAT): Use prototype definition.
15951
15952         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15953         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15954         -Iprograms here.
15955         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15956         (localedef-modules): Add localedef.
15957         (locale-modules): Add locale.
15958
15959         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15960         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15961         to avoid a warning.
15962
15963 2011-08-14  David S. Miller  <davem@davemloft.net>
15964
15965         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15966         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15967
15968 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15969
15970         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15971         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15972         * elf/rtld.c (dl_main): Set l_name of vDSO.
15973         Call _dl_show_scope when DL_DEBUG_SCOPES.
15974         (process_dl_debug): Recognize scopes flag and also set it for all.
15975         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15976         Declare _dl_show_scope.
15977
15978         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15979         (do_dlopen): Pass caller_dlopen to dl_open.
15980         (__libc_dlopen_mode): Initialize caller_dlopen.
15981
15982         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15983         of libc.  Make tolower call locale-independent.  Optimize a bit by
15984         using isdigit instead of isalnum.
15985         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15986
15987 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15988
15989         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15990         was a dependency or dynamically loaded.
15991
15992 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15993
15994         * intl/l10nflist.c: Allow architecture-specific pop function.
15995         * sysdeps/x86_64/l10nflist.c: New file.
15996
15997         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15998         classification.
15999
16000 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16001
16002         * include/dirent.h: Add libc_hidden_proto for scandirat and
16003         scandirat64.  Don't declare __scandirat64.
16004         * dirent/scandirat.c: Add libc_hidden_def.
16005         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16006         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16007
16008 2011-08-10  David S. Miller  <davem@davemloft.net>
16009
16010         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16011         enum.
16012         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16013         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16014         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16015
16016 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16017
16018         * Versions.def [libc]: Add GLIBC_2.15.
16019         * dirent/Makefile (routines): Add scandirat and scandirat64.
16020         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16021         GLIBC_2.15.
16022         * dirent/dirent.h: Declare scandirat and scandirat64.
16023         * dirent/scandirat.c: New file.
16024         * dirent/scandirat64.c: New file.
16025         * sysdeps/wordsize-64/scandirat.c: New file.
16026         * sysdeps/wordsize-64/scandirat64.c: New file.
16027         * dirent/opendir.c: Define opendirat.
16028         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16029         using scandirat.
16030         * dirent/scandir64.c: Adjust for scandir.c change.
16031         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16032         __scandirat64, and __scandir_cancel_handler.
16033         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16034         additional parameter and use openat instead of open (outside of ld.so).
16035         Add new __opendir as wrapper around __opendirat.
16036         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16037         here without requiring old scandirat implementation.
16038
16039 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16040
16041         * dirent/scandir.c (cancel_handler): Renamed to
16042         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16043         defined.  Adjust users.
16044         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16045         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16046
16047 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16048
16049         * string/test-string.h (IMPL): Use __STRING to expand name and then
16050         stringify it.
16051
16052         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16053         of cleanups.
16054
16055 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16056
16057         * string/Makefile: Update.
16058         (strop-tests): Append strncat.
16059         * string/test-wcscmp.c: New file.
16060         New comprehensive test for wcscmp.
16061         * string/test-strcmp.c: Update.
16062         (WIDE): New define.
16063
16064 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16065
16066         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16067         line.
16068
16069 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16070
16071         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16072         encoding to ACE if AI_IDN.
16073
16074 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16075
16076         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16077         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16078
16079 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16080
16081         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16082         Fix overflow bug in strncat.
16083         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16084
16085         * string/test-strncat.c: Update.
16086         Add new tests for checking overflow bugs.
16087
16088 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16089
16090         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16091         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16092         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16093         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16094         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16095         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16096         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16097         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16098         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16099
16100         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16101         (USE_AS_STRCAT): Define.
16102         Add strcat and strncat support.
16103         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16104
16105 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16106
16107         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16108         __n bigger than INT_MAX+1.
16109         (__strncmp_g): Likewise.
16110
16111 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16112
16113         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16114         * libio/stido.h: Likewise.
16115
16116         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16117         (AF_NFC): Define.
16118         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16119         (AF_NFC): Define.
16120
16121         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16122         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16123         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16124         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16125         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16126
16127         [BZ #13021]
16128         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16129         installed.
16130
16131         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16132         typo.
16133         (_dl_x86_64_save_sse): Likewise.
16134
16135 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16136
16137         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16138         OSXSAVE.
16139         (_dl_x86_64_save_sse): Likewise.
16140
16141         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16142
16143         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16144
16145 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16146
16147         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16148         change.
16149         (_dl_x86_64_save_sse): Use correct AVX check.
16150
16151 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16152
16153         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16154         bug in strncpy/strncat.
16155         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16156
16157 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16158
16159         * string/tester.c (test_strcat): Add tests for different alignments
16160         of source and destination.
16161         (test_strncat): Likewise.
16162
16163 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16164
16165         [BZ #12852]
16166         * posix/glob.c (glob): Check passed in values before using them in
16167         expressions to avoid some overflows.
16168         (glob_in_dir): Likewise.
16169
16170         [BZ #13007]
16171         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16172         check for AVX enablement so that we don't crash with old kernels and
16173         new hardware.
16174         * elf/tst-audit4.c: Add same checks here.
16175         * elf/tst-audit6.c: Likewise.
16176
16177         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16178
16179 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16180
16181         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16182
16183 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16184
16185         * po/cs.po: Update from translation team.
16186         * po/bg.po: Likewise.
16187
16188 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16189
16190         * misc/sys/cdefs.h: Add support for const attribute.
16191         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16192         to gnu_dev_{major,minor,makedev} functions.
16193
16194 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16195
16196         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16197
16198 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16199
16200         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16201         strlen results.
16202
16203 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16204
16205         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16206         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16207         register in order to avoid conflicts with the soft frame pointer
16208         being held in r11 when necessary.
16209         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16210         (INTERNAL_VSYSCALL_NCS): Likewise.
16211
16212 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16213
16214         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16215         * elf/dl-fini.c (_dl_fini): Adjust caller.
16216         * elf/dl-close.c (_dl_close_worker): Likewise.
16217         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16218
16219 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16220
16221         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16222         "aux_cache->nlibs < 0".
16223
16224         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16225         in the reload-count case.
16226
16227 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16228
16229         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16230         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16231         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16232         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16233         * sysdeps/x86_64/multiarch/strcat.S: New file.
16234         * sysdeps/x86_64/multiarch/strncat.S: New file.
16235         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16236         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16237         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16238         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16239         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16240         (USE_AS_STRCAT): Define.
16241         Add strcat and strncat support.
16242         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16243         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16244         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16245         * string/strncat.c: Update.
16246         (USE_AS_STRNCAT): Define.
16247         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16248         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16249         and i7.
16250         * sysdeps/x86_64/multiarch/init-arch.h
16251         (bit_Prefer_PMINUB_for_stringop): New.
16252         (index_Prefer_PMINUB_for_stringop): Likewise.
16253         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16254         bit_Prefer_PMINUB_for_stringop.
16255
16256 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16257
16258         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16259         buffer64.
16260         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16261         of casting of buffer.
16262         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16263         buffer32 and buffer64.
16264         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16265         writes instead of casting of buffer.
16266         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16267         buffer32.
16268         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16269         casting of buffer.
16270
16271 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16272
16273         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16274
16275 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16276
16277         * nscd/nscd.c (termination_handler): Don't do anything for a database
16278         if it has not yet been initialized.
16279
16280 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16281
16282         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16283
16284 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16285
16286         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16287
16288 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16289
16290         * po/nl.po: Update from translation team.
16291         * po/sv.po: Likewise.
16292
16293 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16294
16295         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16296         now disallowed by GCC.
16297
16298         * configure.in (use-default-link): Default to yes if a test -shared
16299         link meets our qualifications.
16300         * configure: Regenerated.
16301
16302         * config.make.in (output-format): New variable.
16303         * configure.in: Check for ld --print-output-format support.
16304         * configure: Regenerated.
16305         * Makerules ($(common-objpfx)format.lds)
16306         [$(output-format) != unknown]: Just use $(output-format),
16307         instead of the linker-script munging.
16308
16309 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16310
16311         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16312         of $(common-objpfx)shlib.lds.
16313         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16314
16315         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16316         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16317
16318         * configure.in (-z relro check): Adjust test code to add a large
16319         writable data section after it.
16320         * configure: Regenerated.
16321
16322 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16323
16324         * configure.in (-z relro check): Fix test code to make the variable
16325         truly const.
16326         * configure: Regenerated.
16327
16328 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16329
16330         * nscd/nscd.h (struct traced_file): Define.
16331         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16332         elements.  Add traced_files.
16333         (inotify_fd): Declare.
16334         (register_traced_file): Declare.
16335         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16336         (inotify_fd): Export.
16337         (resolv_conf_descr): Remove.
16338         (nscd_init): Move inotify descriptor creation to main.
16339         Don't register files for notification here.
16340         (register_traced_file): New function.
16341         (invalidate_cache): Don't use reset_res to determine whether to call
16342         res_init, go through the list of registered files.
16343         (main_loop_poll): The inotify descriptors are now stored in the
16344         structures for the traced files.
16345         (main_loop_epoll): Likewise
16346         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16347         to __nss_disable_nscd.
16348         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16349         for a database anymore.  Check the records for all the registered
16350         files instead.
16351         * nss/Makefile (libnss_files-routines): Add files-init.
16352         (libnss_db-routines): Add db-init.
16353         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16354         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16355         * nss/nss_db/db-init.c: New file.
16356         * nss/nss_files/files-init.c: New file.
16357         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16358         __nss_lookup_function.
16359         (__nss_lookup_function): Call nss_load_library.
16360         (nss_load_all_libraries): New function.
16361         (__nss_disable_nscd): Take parameter with callback function for files
16362         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16363         used for the cached services.
16364         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16365         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16366         options for features to all the files in nscd.
16367
16368         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16369
16370 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16371
16372         * csu/elf-init.c (__libc_csu_init): Comment typo.
16373
16374 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16375
16376         * po/pl.po: Update from translation team.
16377         * po/ja.po: Likewise.
16378         * po/ru.po: Likewise.
16379         * po/ko.po: Likewise.
16380         * po/fr.po: Likewise.
16381
16382 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16383
16384         * configure.in (.ctors/.dtors header and trailer check):
16385         Use an empirical test on a built program.
16386         * configure: Regenerated.
16387
16388         * configure.in (-z relro check): Use an empirical test on a built DSO.
16389         Detect, but do not require, on ia64.
16390         * configure: Regenerated.
16391
16392         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16393         Update tests that use readelf to use $READELF instead.
16394         * configure: Regenerated.
16395
16396 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16397
16398         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16399         if the result is not used.
16400
16401 2011-07-05  Andreas Jaeger  <aj@suse.de>
16402
16403         [BZ#9696]
16404         * stdlib/tst-strtod.c: Add testcase.
16405
16406 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16407
16408         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16409         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16410         The latter has a higher limit.  Take additional parameter to pass to
16411         the new function.
16412         (__pathconf): Pass file to __statfs_link_max.
16413         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16414         __statfs_link_max.
16415         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16416         __statfs_link_max.
16417
16418         [BZ #12868]
16419         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16420         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16421         Handle Lustre.
16422         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16423         (__statfs_filesize_max): Likewise.
16424         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16425
16426 2011-07-05  Andreas Jaeger  <aj@suse.de>
16427
16428         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16429
16430 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16431
16432         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16433         `status' variable.
16434         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16435         Likewise.
16436
16437 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16438
16439         * Makefile (strop-tests): Add strncat.
16440         * string/test-strncat.c: New file.
16441
16442 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16443
16444         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16445
16446 2011-06-21  Andreas Jaeger  <aj@suse.de>
16447
16448         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16449         Copy rule from iconvdata/Makefile.
16450
16451 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16452
16453         [BZ #12922]
16454         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16455         but no long options are defined, just return 'W'.
16456
16457 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16458
16459         [BZ #9696]
16460         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16461
16462 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16463
16464         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16465         netgroups to read.
16466         (innetgr): Likewise.
16467
16468 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16469
16470         * config.make.in (install_root): Default to $(DESTDIR).
16471
16472 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16473
16474         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16475
16476 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16477
16478         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16479
16480         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16481         containing directory rather than embedding absolute directory names.
16482
16483         * scripts/check-local-headers.sh: Rewritten using awk.
16484         Match by word, not by line.  Print error messages for matches.
16485         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16486
16487         * Makerules [shlib-lds-flags empty]:
16488         ($(common-objpfx)libc_pic.opts): New target.
16489         ($(common-objpfx)libc_pic.os.clean): New target.
16490         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16491
16492         * config.make.in (OBJCOPY): New variable.
16493         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16494         * configure: Regenerated.
16495
16496         * config.make.in (use-default-link): New variable.
16497         * configure.in (use_default_link): Grok --with-default-link to set it.
16498         * configure: Regenerated.
16499         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16500         (shlib-lds, shlib-lds-flags): Define to empty.
16501
16502         * Makerules (shlib-lds): New variable.
16503         (shlib-lds-flags): New variable.
16504         (build-shlib, build-moduile, build-module-asneeded): Use it.
16505         ($(common-objpfx)libc.so): Use $(shlib-lds).
16506         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16507         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16508
16509         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16510         DT_FLAGS/DT_FLAGS_1 with zero flags.
16511
16512         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16513         linker script munging.
16514
16515 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16516
16517         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16518         as 128-bit value.
16519         * crypt/sha512.c (sha512_process_block): Perform total addition using
16520         128-bit if possible.
16521         (__sha512_finish_ctx): Likewise.
16522         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16523         as 64-bit value.
16524         * crypt/sha256.c (SWAP64): Define.
16525         (sha256_process_block): Perform total addition using 64-bit if
16526         possible.
16527         (__sha256_finish_ctx): Likewise.
16528
16529 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16530
16531         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16532         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16533         * nscd/hstcache.c (cache_addhst): Likewise.
16534         * nscd/grpcache.c (cache_addgr): Likewise.
16535         * nscd/aicache.c (addhstaiX): Likewise
16536         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16537
16538 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16539
16540         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16541         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16542         * nscd/hstcache.c (cache_addhst): Likewise.
16543         * nscd/grpcache.c (cache_addgr): Likewise.
16544         * nscd/aicache.c (addhstaiX): Likewise
16545
16546 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16547
16548         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16549         domain only when needed.
16550
16551 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16552
16553         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16554         is always restored.
16555
16556 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16557
16558         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16559         are re-adding the entry.
16560         * nscd/servicescache.c (cache_addserv): Likewise.
16561
16562 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16563
16564         * sysdeps/generic/dl-irel.h: fix protection against multiple
16565         inclusions.
16566         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16567
16568 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16569
16570         [BZ #12935]
16571         * malloc/memusage.sh: Fix quoting in message.
16572         * debug/xtrace.sh: Likewise.
16573
16574         * configure.in: Remove support for --experimental-malloc option, make
16575         it the default.
16576         * config.make.in: Likewise.
16577         * malloc/Makefile: Likewise.
16578
16579 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16580
16581         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16582         two-byte characters.
16583
16584 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16585
16586         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16587         AC_CACHE_CHECK invocation.
16588         * configure: Regenerated.
16589
16590         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16591
16592 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16593
16594         [BZ #12350]
16595         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16596         bit from old_res_options.
16597
16598         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16599
16600         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16601         value type for setfct.
16602
16603 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16604
16605         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16606         __gettimeofday instead of gettimeofday.
16607
16608 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16609
16610         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16611
16612 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16613
16614         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16615
16616         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16617         info.
16618
16619 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16620
16621         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16622         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16623         strcpy-sse2-unaligned strncpy-sse2-unaligned
16624         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16625         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16626         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16627         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16628         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16629         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16630         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16631         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16632         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16633         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16634         (STRCPY): Support SSE2 and SSSE3 versions.
16635
16636 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16637
16638         [BZ #12874]
16639         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16640         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16641         kernels which artificially limit size of requests.
16642
16643 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16644
16645         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16646         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16647         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16648         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16649         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16650         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16651         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16652         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16653         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16654         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16655         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16656         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16657         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16658         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16659         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16660         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16661         Enable unaligned load optimization for Intel Core i3, i5 and i7
16662         processors.
16663         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16664         Define.
16665         (index_Fast_Unaligned_Load): Define.
16666         (HAS_FAST_UNALIGNED_LOAD): Define.
16667
16668 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16669
16670         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16671
16672 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16673
16674         [BZ #12907]
16675         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16676         until it is clear that the information is realy needed.
16677         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16678
16679 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16680
16681         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16682
16683 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16684
16685         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16686         /sys/devices/system/cpu/online if it is usable.
16687
16688         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16689         reading the information from the /proc filesystem to once a second.
16690
16691 2011-06-21  Andreas Jaeger  <aj@suse.de>
16692
16693         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16694         NULL after inclusion of kernel headers.
16695
16696 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16697
16698         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16699         calls to internal_setent.
16700
16701         [BZ #12885]
16702         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16703         addresses using gethostbyname4_r ignore IPv4 addresses.
16704
16705         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16706         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16707
16708         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16709
16710 2011-06-20  David S. Miller  <davem@davemloft.net>
16711
16712         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16713         inclusions.
16714         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16715
16716         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16717         (elf_irel): Use it.
16718         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16719         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16720         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16721         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16722         * sysdeps/x86_64/dl-irel.h: Likewise.
16723
16724         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16725         * elf/dl-sym.c: Likewise.
16726
16727 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16728
16729         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16730         need to dereference resplen2.
16731
16732 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16733
16734         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16735
16736 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16737
16738         * Makeconfig: Define vardbdir and inst_vardbdir.
16739         * nss/Makefile: Add rules to install db-Makefile.
16740
16741         * nss/nss_db/db-XXX.c: Cleanup.
16742
16743         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16744         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16745         GLIBC_PRIVATE.
16746         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16747         * nss/makedb.c: Implement -g option to specify that value strings
16748         are generated and should not be added to table iterated over for
16749         get*ent calls.
16750         * nss/nss_db/db-initgroups.c: New file.
16751
16752         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16753         interface.
16754
16755         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16756         (internal_getgrouplist): Adjust to name change.
16757         Update use_initgroups_entry if this is not the first call.
16758         * nss/databases.def: Add initgroups entry.
16759
16760         * nss/makedb.c (compute_tables): Check result of multiple hash table
16761         sizes to minimize maximum chain length.
16762
16763 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16764
16765         * Versions.def: Add entry for libnss_db.
16766         * shlib-versions: Likewise.
16767         * nss/Makefile: Add rules to build libnss_db.
16768         * nss/Versions: Add libnss_db information.  Organize libnss_files
16769         entries better.
16770         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16771         makedb progra.  Some minor improvements to generate smaller files.
16772         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16773         here from...
16774         * nss/makedb.c: ...here.
16775         Improve database format to be smaller and require less memory at
16776         runtime.
16777         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16778         db anymore.
16779         * nss/nss_db/db-netgrp.c: Likewise.
16780         * nss/nss_db/db-open.c: Likewise.
16781         * nss/nss_files/flies-XXX.x: Adjust comments.
16782         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16783         * nss/nss_files/files-grp.c: Likewise.
16784         * nss/nss_files/files-hosts.c: Likewise.
16785         * nss/nss_files/files-network.c: Likewise.
16786         * nss/nss_files/files-proto.c: Likewise.
16787         * nss/nss_files/files-pwd.c: Likewise.
16788         * nss/nss_files/files-rpc.c: Likewise.
16789         * nss/nss_files/files-service.c: Likewise.
16790         * nss/nss_files/files-sgrp.c: Likewise.
16791         * nss/nss_files/files-spwd.c: Likewise.
16792         * nss/nss_db/db-alias.c: Removed.
16793         * nss/nss_db/dummy-db.h: Removed.
16794
16795 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16796
16797         * nss/makedb.c: Rewritten to not use database library.
16798         * nss/Makefile: Update to build new makedb program.
16799
16800 2011-06-14  Andreas Jaeger  <aj@suse.de>
16801
16802         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16803         memset declaration.
16804
16805 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16806
16807         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16808         tmpbuf.
16809
16810 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16811
16812         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16813         * elf/Makefile ($(objpfx)ld.so): Likewise.
16814
16815         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16816         Don't list ld.so twice in dependencies.
16817
16818         * posix/bug-regex31.c: Include <stdlib.h>.
16819
16820         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16821
16822         * nis/nss_compat/compat-spwd.c
16823         (getspent_next_nss_netgr): Remove unused variable.
16824         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16825
16826         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16827         nonmembers" output to use the right array.
16828
16829         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16830
16831         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16832
16833         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16834         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16835         * catgets/gencat.c (read_input_file): Likewise.
16836         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16837
16838         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16839         variable definition inside #if's controlling its use.
16840
16841         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16842
16843         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16844
16845         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16846
16847         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16848         unreachable code.
16849
16850         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16851
16852         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16853         * configure: Regenerated.
16854
16855         * Makerules: Revert last change.
16856         * elf/Makefile: Likewise.
16857
16858 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16859
16860         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16861         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16862         (reloc-link): Likewise.
16863
16864 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16865
16866         * elf/Makefile: Add rules to build pldd.
16867         * elf/pldd.c: New file.
16868         * elf/pldd-xx.c: New file.
16869
16870 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16871
16872         * version.h: Update for 2.15 development version.
16873
16874 2011-06-07  David S. Miller  <davem@davemloft.net>
16875
16876         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16877         ifuncs.
16878         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16879         elf_machine_lazy_rel): Likewise.
16880         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16881         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16882         elf_machine_lazy_rel): Likewise.
16883         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16884         dl_hwcap via passed in argument.
16885         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16886         Likewise.
16887
16888 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16889
16890         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16891
16892 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16893
16894         [BZ #12849]
16895         * manual/fdl-1.1.texi: New file, verbatim from:
16896         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16897         * manual/lgpl-2.1.texi: New file, verbatim from:
16898         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16899         * manual/Makefile (licenses): New variable, list those new file names.
16900         (texis): Use it.
16901         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16902
16903         * manual/fdl.texi: File removed.
16904         * manual/lesser.texi: File removed.
16905         * manual/libc.texinfo (Copying, Documentation License):
16906         Use new @include file names, put @appendix directive before @include.
16907
16908 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16909
16910         [BZ #12841]
16911         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16912         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16913         (mq_open): Add __NTH.
16914
16915 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16916
16917         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16918         Assume Intel Core i3/i5/i7 processor if AVX is available.
16919
16920 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16921
16922         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16923         typo.
16924
16925 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16926
16927         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16928         memory.  Use alloca_account.  Fix memory leak when retrying.
16929
16930 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16931
16932         * version.h (RELEASE): Bump for 2.14 release.
16933         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16934
16935         * config.make.in (RANLIB): Remove entry.
16936
16937 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16938
16939         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16940         (libc.pot): Work around missing support for .ksh extension in xgettext.
16941
16942         [BZ #12684]
16943         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16944         if both request failed.
16945         (send_dg): In case of server errors clear resplen or *resplen2.
16946
16947         [BZ #12454]
16948         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16949         when there are multiple maps.
16950         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16951         (_dl_fini): Remove test here.
16952
16953         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16954
16955 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16956
16957         [BZ #12350]
16958         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16959         bit from old_res_options.
16960         (gaih_inet): Likewise.
16961
16962         [BZ #11099]
16963         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16964         as signed.
16965
16966         * resolv/res_init.c (res_setoptions): Make the code more compact.
16967
16968         [BZ #11558]
16969         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16970         set RES_USEVC.
16971
16972         [BZ #11634]
16973         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16974
16975         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16976
16977         [BZ #11781]
16978         * malloc/malloc.h: Declare malloc hook variables as volatile.
16979
16980         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16981         in last patch.
16982
16983         [BZ #11799]
16984         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16985         raise in the comment.
16986         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16987         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16988         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16989
16990 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16991
16992         [BZ #12811]
16993         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16994         grow the buffers more if it already has to be sufficient.
16995         (build_wcs_upper_buffer): Likewise.
16996         * posix/regexec.c (check_matching): Likewise.
16997         (clean_state_log_if_needed): Likewise.
16998         (extend_buffers): Don't enlarge buffers beyond size of the input
16999         buffer.
17000         Patches mostly by Emil Wojak <emil@wojak.eu>.
17001         * posix/bug-regex32.c: New file.
17002         * posix/Makefile (tests): Add bug-regex32.
17003
17004         * locale/findlocale.c (_nl_find_locale): Return right away if
17005         _nl_explode_name failed.
17006         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17007
17008         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17009
17010         * debug/xtrace.sh: Unify messages.
17011         * malloc/memusage.sh: Likewise.
17012
17013         [BZ #12813]
17014         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17015         time symbol from vDSO.  Substitute with vsyscall if not available.
17016         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17017         __vdso_time.
17018
17019         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17020         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17021         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17022         Add sendmmsg and internal_sendmmsg.
17023         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17024         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17025         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17026
17027         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17028         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17029         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17030
17031 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17032
17033         [BZ #12813]
17034         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17035         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17036         available.
17037         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17038         __vdso_getcpu.
17039
17040         [BZ #12814]
17041         * iconvdata/Makefile (tests): Add bug-iconv9.
17042         * iconvdata/bug-iconv9.c: New file.
17043
17044 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17045
17046         [BZ #12814]
17047         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17048
17049 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17050
17051         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17052         (struct user_regs_struct): Change intcs field back to cs.
17053
17054 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17055
17056         * po/ja.po: Update from translation team.
17057
17058 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17059
17060         [BZ #12795]
17061         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17062         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17063
17064 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17065
17066         * stdlib/longlong.h: Update from GCC.
17067
17068 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17069
17070         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17071         parameter name.
17072         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17073         Add parameter name.
17074         (__sysconf): Pass it down.
17075
17076 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17077
17078         [BZ #12671]
17079         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17080         some situations.
17081         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17082         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17083         add in in __libc_use_alloca calls.  Adjust callers.
17084         (glob): Use malloc in some situations.
17085
17086         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17087         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17088         pltexit.
17089
17090 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17091
17092         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17093         and CLOCK_BOOTTIME_ALARM.
17094
17095         [BZ #12782]
17096         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17097         is returned.
17098
17099         * string/_strerror.c (__strerror_r): Print negative errors as signed
17100         numbers.
17101
17102         [BZ #12777]
17103         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17104         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17105         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17106
17107         * configure.in: Fix typo in redirection and correct removal of test
17108         files in two cases.
17109
17110         [BZ #12788]
17111         * locale/setlocale.c (new_composite_name): Fix test to check for
17112         identical name of all categories.
17113
17114         [BZ #12792]
17115         * libio/filedoalloc.c (local_isatty): New function.
17116         (_IO_file_doallocate): Use local_isatty.
17117         * stdio-common/perror.c (perror): In case a new stream is used
17118         forward the stream error.
17119         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17120         error flag.
17121
17122 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17123
17124         [BZ #11869]
17125         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17126         alloca.
17127         * include/alloca.h (extend_alloca_account): Define.
17128
17129         [BZ #11857]
17130         * posix/regex.h: Fix comments with documentation of user-accessible
17131         fields after compilation and describe correct free'ing of pattern
17132         after re_compile_pattern.
17133         Patch by Reuben Thomas <rrt@sc3d.org>.
17134
17135 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17136
17137         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17138         and -mno-altivec to prevent the compiler from using Altivec and/or
17139         VSX instructions when the corresponding registers are not available.
17140
17141 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17142
17143         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17144
17145 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17146
17147         * libio/freopen.c (freopen): Use __dup2, not dup2.
17148         * libio/freopen64.c (freopen64): Likewise.
17149
17150 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17151
17152         [BZ #12775]
17153         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17154         * math/Makefile (tests): Add test-powl.
17155         (CFLAGS-test-powl.c): Define.
17156         * math/test-powl.c: New file.
17157
17158 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17159
17160         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17161
17162 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17163
17164         [BZ #11837]
17165         * iconvdata/gb18030.c: Update to GB18020-2005.
17166
17167 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17168
17169         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17170         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17171         Patch by Aharon Robbins <arnold@skeeve.com>.
17172
17173         [BZ #11892]
17174         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17175         on the stack.
17176
17177         [BZ #11895]
17178         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17179         through underflows.
17180
17181         [BZ #12766]
17182         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17183         point to strings before performing equality test for error_one_per_line
17184         mode.
17185
17186         [BZ #11697]
17187         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17188
17189         [BZ #11820]
17190         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17191         (struct user_fpregs_struct): Avoid __uint*_t types.
17192
17193         [BZ #6420]
17194         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17195         symbol info.  Use it instead of calling _dl_addr locally.
17196         (lock_and_info): New function.
17197         (tr_freehook): Call lock_and_info and pass symbol info as additional
17198         parameter to tr_where.
17199         (tr_mallochook): Likewise.
17200         (tr_reallochook): Likewise.
17201         (tr_memalignhook): Likewise.
17202
17203         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17204         used and couldn't be at all thread-safe.
17205
17206 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17207
17208         * libio/freopen.c (freopen): Don't close old file descriptor
17209         before the new one is opened.  Instead dup the new file descriptor
17210         to the old one after the new stream is created.
17211         * libio/freopen64.c (freopen64): Likewise.
17212         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17213         * libio/fileops.c (_IO_new_file_close_it): Handle new
17214         _IO_FLAGS2_NOCLOSE flag.
17215         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17216         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17217         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17218         _IO_FLAGS2_NOCLOSE flag.
17219         * include/unistd.h: Add hidden_proto for dup3.
17220         Define __have_dup3.
17221         * io/dup3.c: Define hidden symbol.
17222         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17223
17224         [BZ #7101]
17225         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17226         when an incomplete long option is used.
17227         * posix/tst-getopt_long1.c: New file.
17228         * posix/Makefile (tests): Add tst-getopt_long1.
17229
17230         [BZ #10138]
17231         * scripts/config.guess: Update from autoconf-2.68.
17232         * scripts/config.sub: Likewise.
17233
17234         [BZ #10157]
17235         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17236         tests into ...
17237         (has_cpuclock): ...this.  New function.
17238         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17239         macro here based on has_cpuclock code.
17240
17241         [BZ #10149]
17242         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17243         First byte (not low byte) is now always NUL.
17244         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17245
17246         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17247         Use non-cancelable interfaces.
17248
17249         [BZ #9809]
17250         * locale/iso-639.def: Add entry for Sorani.
17251
17252         [BZ #11901]
17253         * include/stdlib.h: Move include protection to the right place.
17254         Define abort_msg_s.  Declare __abort_msg with it.
17255         * stdlib/abort.c (__abort_msg): Adjust type.
17256         * assert/assert.c (__assert_fail_base): New function.  Majority
17257         of code from __assert_fail.  Allocate memory for __abort_msg with
17258         mmap.
17259         (__assert_fail): Now call __assert_fail_base.
17260         * assert/assert-perr.c: Remove bulk of implementation.  Use
17261         __assert_fail_base.
17262         * include/assert.hL Declare __assert_fail_base.
17263         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17264         mmap.
17265         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17266
17267 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17268
17269         [BZ #11952]
17270         [BZ #12453]
17271         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17272         until all modules are registered in the DTV.
17273         * elf/Makefile: Add rules to build and run tst-tls19.
17274         * elf/tst-tls19.c: New file.
17275         * elf/tst-tls19mod1.c: New file.
17276         * elf/tst-tls19mod2.c: New file.
17277         * elf/tst-tls19mod3.c: New file.
17278         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17279
17280         [BZ #12083]
17281         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17282         correctly.
17283
17284         [BZ #12601]
17285         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17286         two-byte sequence errors.
17287         * iconvdata/Makefile (tests): Add bug-iconv8.
17288         * iconvdata/bug-iconv8.c: New file.
17289
17290         [BZ #12626]
17291         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17292         buf2 definition.
17293
17294         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17295
17296         [BZ #12432]
17297         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17298         (dummy_getcfa): New function.
17299         (init): Get _Unwind_GetCFA address, use dummy if not found.
17300         (backtrace_helper): In recursion check, also check whether CFA changes.
17301         (__backtrace): Completely initialize arg.
17302
17303         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17304         storing incomplete byte sequence in state object.  Avoid testing for
17305         guaranteed too small input if we know there is enough data available.
17306
17307 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17308
17309         * Makeconfig (+link-pie): Indent.
17310         * Rules (binaries-pie): Define if $(have-fpie) and
17311         $(build-shared).
17312         (binaries-shared): Also filter out $(binaries-pie).
17313         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17314         * nscd/Makefile (others-pie): Add nscd.
17315         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17316         ($(objpfx)nscd): Remove command override.
17317         * login/Makefile (others-pie): Add pt_chown.
17318         ($(objpfx)pt_chown): Remove command override.
17319         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17320         remove command overrides.
17321
17322 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17323
17324         * libio/tst_putwc.c: Fix error messages.
17325
17326         [BZ #12724]
17327         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17328         currently writing and seek to current position when not.
17329         * libio/Makefile (tests): Add bug-fclose1.
17330         * libio/bug-fclose1.c: New file.
17331
17332 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17333
17334         [BZ #12511]
17335         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17336         don't set DF_1_NODELETE here.
17337         (do_lookup_x): When entering new entry test for copy relocation
17338         and if necessary set DF_1_NODELETE flag.
17339         * elf/tst-unique4.cc: New file.
17340         * elf/tst-unique4.h: New file.
17341         * elf/tst-unique4lib.cc: New file.
17342         * elf/Makefile: Add rules to build and run tst-unique4.
17343         Patch by Piotr Bury <pbury@goahead.com>.
17344
17345 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17346
17347         [BZ #12052]
17348         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17349
17350         [BZ #12625]
17351         * misc/mntent_r.c (addmntent): Flush the stream after the output
17352
17353         [BZ #12393]
17354         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17355         (is_trusted_path_normalize): Skip initial colon.  Append slash
17356         to empty buffer.  Duplicate is_trusted_path code but allow
17357         constructed patch to be prefix.
17358         (is_dst): Allow $ORIGIN followed by /.
17359         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17360         Correct testing of result of is_trusted_path_normalize
17361         (decompose_rpath): Fix warning.
17362
17363 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17364
17365         [BZ #11257]
17366         * grp/initgroups.c (internal_getgrouplist): When we found the service
17367         list through the initgroups entry in nsswitch.conf do not always
17368         continue on a successful lookup.  Don't always use the
17369         __nss_group_database value if it is set.
17370         * nss/nsswitch.conf (initgroups): Change action for successful db
17371         lookup to continue for compatibility.
17372
17373 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17374
17375         [BZ #11532]
17376         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17377         and CP774 modules.
17378         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17379         and CP774 modules.
17380         * iconvdata/tst-tables.sh: Likewise.
17381         * iconvdata/cp770.c: New file.
17382         * iconvdata/cp771.c: New file.
17383         * iconvdata/cp772.c: New file.
17384         * iconvdata/cp773.c: New file.
17385         * iconvdata/cp774.c: New file.
17386         * iconvdata/testdata/CP770: New file.
17387         * iconvdata/testdata/CP770..UTF8: New file.
17388         * iconvdata/testdata/CP771: New file.
17389         * iconvdata/testdata/CP771..UTF8: New file.
17390         * iconvdata/testdata/CP772: New file.
17391         * iconvdata/testdata/CP772..UTF8: New file.
17392         * iconvdata/testdata/CP773: New file.
17393         * iconvdata/testdata/CP773..UTF8: New file.
17394         * iconvdata/testdata/CP774: New file.
17395         * iconvdata/testdata/CP774..UTF8: New file.
17396
17397         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17398         END CHARMAP line.
17399         * iconvdata/gen-8bit-gap.sh: Likewise.
17400         * iconvdata/gen-8bit.sh: Likewise.
17401
17402         * locale/iso-639.def: Add ary entry.
17403
17404         [BZ #11258]
17405         * locale/C-translit.h.in: Add U20A1 transliteration.
17406
17407         [BZ #12178]
17408         * locale/iso-639.def: Add wae entry.
17409         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17410
17411         [BZ #12545]
17412         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17413         for n.
17414
17415         [BZ #12711]
17416         * locale/C-translit.h.in: Add entry for U20B9.
17417         Patch by pravin.d.s@gmail.com.
17418
17419 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17420
17421         [BZ #12713]
17422         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17423         ENAMETOOLONG use generic getcwd.
17424         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17425         in rtld.  Use *stat64.
17426         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17427         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17428         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17429         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17430         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17431         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17432         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17433         __fstatat64 macros.
17434         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17435         * dirent/rewinddir.c: Add libc_hidden_def.
17436         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17437         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17438
17439         * include/dirent.h (__alloc_dir): Add flags parameter.
17440         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17441         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17442         __alloc_dir.
17443         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17444         from fdopendir if O_CLOEXEC is already set.
17445
17446 2011-03-15  Alan Modra  <amodra@gmail.com>
17447
17448         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17449         l_tls_firstbyte_offset non-zero.  Save padding offset in
17450         l_tls_firstbyte_offset for later use.
17451         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17452         freeing static tls block.
17453
17454 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17455
17456         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17457         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17458         being defined by the kernel headers.
17459
17460 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17461
17462         [BZ #12734]
17463         * resolv/resolv.h: Define RES_NOTLDQUERY.
17464         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17465         no-tld-query and set RES_NOTLDQUERY.
17466         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17467         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17468         modern BIND to search name as TLD unless forbidden.
17469
17470 2011-05-07  Petr Baudis  <pasky@suse.cz>
17471             Ulrich Drepper  <drepper@gmail.com>
17472
17473         [BZ #12393]
17474         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17475         (is_trusted_path): ...to here.
17476         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17477         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17478         using is_trusted_path_normalize() in setuid scripts.
17479
17480 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17481
17482         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17483         __BEGIN/__END_DECLS.
17484
17485 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17486
17487         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17488         NSS_STATUS_NOTFOUND if no record was found.
17489
17490 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17491
17492         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17493         (headers-not-in-tirpc): Remove rpc/netdb.h
17494         * resolv/netdb.h: Revert last change.
17495
17496 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17497
17498         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17499         circular dependency between libgcc.a and libc.a.
17500
17501 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17502
17503         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17504         * nis/Makefile: Don't install rpcsvc/*.
17505         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17506         instead of <rpc/types.h>.
17507         (MAXHOSTNAMELEN): Define.
17508
17509 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17510
17511         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17512
17513 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17514
17515         [BZ #12714]
17516         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17517         gethostbyname4_r when IPv6 results are possible.
17518
17519 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17520
17521         [BZ #12723]
17522         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17523         _PC_PIPE_BUF handling.
17524
17525 2011-04-30  Bruno Haible  <bruno@clisp.org>
17526
17527         [BZ #12717]
17528         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17529         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17530         to 'int'.
17531         * inet/getnameinfo.c (getnameinfo): Likewise.
17532
17533 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17534
17535         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17536         to groups setting in database lookup.
17537         * nss/nsswitch.conf: Add initgroups entry.
17538
17539 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17540
17541         [BZ #12685]
17542         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17543         mode string.
17544         Patch by Eric Blake <eblake@redhat.com>.
17545
17546 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17547
17548         * sunrpc/Makefile (need-export-routines): Add svc_run.
17549         (routines): Remove svc_run.
17550         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17551         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17552         * sunrpc/svc_run.c (svc_run): Likewise.
17553         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17554
17555 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17556
17557         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17558         problem in reallocation in last patch.
17559
17560 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17561
17562         * sunrpc/Makefile: Move inclusion of Rules.
17563
17564 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17565
17566         * nss/nss_files/files-initgroups.c: New file.
17567         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17568         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17569         _nss_files_initgroups_dyn.
17570
17571 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17572
17573         * elf/elf.h (R_ARM_IRELATIVE): Define.
17574
17575 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17576
17577         * po/ru.po: Update from translation team.
17578
17579 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17580
17581         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17582         dependencies.
17583
17584 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17585
17586         [BZ #12653]
17587         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17588         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17589         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17590         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17591         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17592
17593 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17594
17595         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17596         differing bytes.
17597         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17598         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17599         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17600
17601 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17602
17603         [BZ #12420]
17604         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17605         storing it.
17606         * stdlib/bug-getcontext.c: New file.
17607         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17608
17609 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17610
17611         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17612         instructions into .machine "z9-109".
17613         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17614         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17615
17616 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17617
17618         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17619         between environment variables and auxiliary vector.
17620
17621 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17622
17623         * Makefile: Add rules to build linkobj/libc.so.
17624         * include/libc-symbols.h: Define libc_hidden_nolink.
17625         * include/rpc/auth.h: Mark functions which are to be hidden.
17626         * include/rpc/auth_des.h: Likewise.
17627         * include/rpc/auth_unix.h: Likewise.
17628         * include/rpc/clnt.h: Likewise.
17629         * include/rpc/des_crypt.h: Likewise.
17630         * include/rpc/key_prot.h: Likewise.
17631         * include/rpc/pmap_clnt.h: Likewise.
17632         * include/rpc/pmap_prot.h: Likewise.
17633         * include/rpc/pmap_rmt.h: Likewise.
17634         * include/rpc/rpc_msg.h: Likewise.
17635         * include/rpc/svc.h: Likewise.
17636         * include/rpc/svc_auth.h: Likewise.
17637         * include/rpc/xdr.h: Likewise.
17638         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17639         * nss/Makefile: Likewise.
17640         * sunrpc/Makefile: Don't install headers.  Build library with normal
17641         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17642         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17643         for the compat linking library.  Remove use of INTDEF/INTUSE.
17644         * sunrpc/auth_none.c: Likewise.
17645         * sunrpc/auth_unix.c: Likewise.
17646         * sunrpc/authdes_prot.c: Likewise.
17647         * sunrpc/authuxprot.c: Likewise.
17648         * sunrpc/clnt_gen.c: Likewise.
17649         * sunrpc/clnt_perr.c: Likewise.
17650         * sunrpc/clnt_raw.c: Likewise.
17651         * sunrpc/clnt_simp.c: Likewise.
17652         * sunrpc/clnt_tcp.c: Likewise.
17653         * sunrpc/clnt_udp.c: Likewise.
17654         * sunrpc/clnt_unix.c: Likewise.
17655         * sunrpc/des_crypt.c: Likewise.
17656         * sunrpc/des_soft.c: Likewise.
17657         * sunrpc/get_myaddr.c: Likewise.
17658         * sunrpc/key_call.c: Likewise.
17659         * sunrpc/key_prot.c: Likewise.
17660         * sunrpc/netname.c: Likewise.
17661         * sunrpc/pm_getmaps.c: Likewise.
17662         * sunrpc/pm_getport.c: Likewise.
17663         * sunrpc/pmap_clnt.c: Likewise.
17664         * sunrpc/pmap_prot.c: Likewise.
17665         * sunrpc/pmap_prot2.c: Likewise.
17666         * sunrpc/pmap_rmt.c: Likewise.
17667         * sunrpc/publickey.c: Likewise.
17668         * sunrpc/rpc_cmsg.c: Likewise.
17669         * sunrpc/rpc_common.c: Likewise.
17670         * sunrpc/rpc_dtable.c: Likewise.
17671         * sunrpc/rpc_prot.c: Likewise.
17672         * sunrpc/rpc_thread.c: Likewise.
17673         * sunrpc/rtime.c: Likewise.
17674         * sunrpc/svc.c: Likewise.
17675         * sunrpc/svc_auth.c: Likewise.
17676         * sunrpc/svc_authux.c: Likewise.
17677         * sunrpc/svc_raw.c: Likewise.
17678         * sunrpc/svc_run.c: Likewise.
17679         * sunrpc/svc_simple.c: Likewise.
17680         * sunrpc/svc_tcp.c: Likewise.
17681         * sunrpc/svc_udp.c: Likewise.
17682         * sunrpc/svc_unix.c: Likewise.
17683         * sunrpc/svcauth_des.c: Likewise.
17684         * sunrpc/xcrypt.c: Likewise.
17685         * sunrpc/xdr.c: Likewise.
17686         * sunrpc/xdr_array.c: Likewise.
17687         * sunrpc/xdr_float.c: Likewise.
17688         * sunrpc/xdr_intXX_t.c: Likewise.
17689         * sunrpc/xdr_mem.c: Likewise.
17690         * sunrpc/xdr_rec.c: Likewise.
17691         * sunrpc/xdr_ref.c: Likewise.
17692         * sunrpc/xdr_sizeof.c: Likewise.
17693         * sunrpc/xdr_stdio.c: Likewise.
17694
17695 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17696
17697         [BZ #12650]
17698         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17699         * sysdeps/ia64/dl-tls.h: Likewise.
17700         * sysdeps/powerpc/dl-tls.h: Likewise.
17701         * sysdeps/s390/dl-tls.h: Likewise.
17702         * sysdeps/sh/dl-tls.h: Likewise.
17703         * sysdeps/sparc/dl-tls.h: Likewise.
17704         * sysdeps/x86_64/dl-tls.h: Likewise.
17705         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17706
17707 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17708
17709         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17710         rpath element also skip the following colon.
17711         (expand_dynamic_string_token): Add is_path parameter and pass
17712         down to DL_DST_REQUIRED and _dl_dst_substitute.
17713         (decompose_rpath): Call expand_dynamic_string_token with
17714         non-zero is_path.  Ignore empty rpaths.
17715         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17716         with zero is_path.
17717
17718 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17719
17720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17721         Make cancelable.
17722
17723 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17724
17725         [BZ #12655]
17726         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17727         Patch by Filipe David Manana <fdmanana@apache.org>.
17728
17729 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17730
17731         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17732         Maintain aligned stack.
17733         (CHECK_RSP): Remove unused macro.
17734
17735 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17736
17737         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17738         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17739
17740 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17741
17742         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17743
17744         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17745
17746 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17747
17748         [BZ #12518]
17749         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17750         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17751         * sysdeps/x86_64/memmove.c: New file.
17752         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17753         (memcpy): Renamed to ...
17754         (__new_memcpy): This.
17755         (memcpy): Provide GLIBC_2_14 memcpy.
17756         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17757         (memcpy): Provide GLIBC_2_2_5 memcpy.
17758
17759 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17760
17761         [BZ #12631]
17762         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17763
17764 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17765
17766         * misc/syncfs.c: New file.
17767         * misc/Makefile (routines): Add syncfs.
17768         * posix/unistd.h: Declare syncfs.
17769         * sysdeps/unix/syscalls.list: Add syncfs.
17770
17771 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17772
17773         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17774         open_by_handle_at.
17775         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17776         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17777         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17778         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17779         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17780         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17781         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17782
17783 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17784
17785         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17786         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17787         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17788         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17789         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17790         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17791         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17792
17793         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17794         sync_file_range.c with -fexceptions.
17795         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17796         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17797         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17798         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17799         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17800         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17801         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17802         sync_file_range as cancellation point
17803         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17804         now a wrapper around __call_sync_file_range with cancellation handling.
17805         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17806         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17807         function name to __call_sync_file_range.
17808         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17809         Add call_sync_file_range.
17810
17811 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17812
17813         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17814         bits/timex.h.
17815
17816 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17817
17818         * iconv/iconv.h: Fix typo in comment.
17819         * io/fcntl.h: Likewise.
17820         * libio/stdio.h: Likewise.
17821         * posix/spawn.h: Likewise.
17822         * posix/unistd.h: Likewise.
17823         * stdlib/stdlib.h: Likewise.
17824         * time/time.h: Likewise.
17825         * wcsmbs/wchar.h: Likewise.
17826
17827         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17828         open_by_handle): Add.
17829         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17830         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17831         Augment a few comments.
17832         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17833         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17834         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17835         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17836         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17837         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17838         open_by_handle.
17839
17840         * io/fcntl.h (AT_EMPTY_PATH): Define.
17841
17842 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17843
17844         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17845         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17846         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17847         to...
17848         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17849         * Versions.def: Add GLIBC_2.14.
17850         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17851         Export.
17852
17853 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17854
17855         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17856         round counter.
17857         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17858
17859 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17860
17861         [BZ #12597]
17862         * string/test-strncmp.c (do_page_test): New function.
17863         (check2): Likewise.
17864         (test_main): Call check2.
17865         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17866
17867 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17868
17869         [BZ #12587]
17870         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17871         Handle cache information in CPU leaf 4.
17872         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17873
17874 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17875
17876         [BZ #12583]
17877         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17878         character representation.
17879         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17880
17881 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17882
17883         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17884         END(__isnan) to END(__isnanf) to match function entry point/label
17885         EALIGN(__isnanf,...).
17886
17887 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17888
17889         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17890
17891 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17892
17893         [BZ #12510]
17894         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17895         copy from the symbol referenced in the relocation to initialize the
17896         used variable.
17897         Patch by Piotr Bury <pbury@goahead.com>.
17898         * elf/Makefile: Add rules to build and tst-unique3.
17899         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17900         * elf/tst-unique3.cc: New file.
17901         * elf/tst-unique3.h: New file.
17902         * elf/tst-unique3lib.cc: New file.
17903         * elf/tst-unique3lib2.cc: New file.
17904
17905         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17906
17907 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17908
17909         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17910         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17911         to _start.
17912
17913 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17914
17915         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17916         to-be-loaded object along a path to loader is ld.so.
17917
17918 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17919             Ulrich Drepper  <drepper@gmail.com>
17920
17921         * sysdeps/x86_64/memset.S: After aligning destination, code
17922         branches to different locations depending on the value of
17923         misalignment, when multiarch is enabled. Fix this.
17924
17925 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17926
17927         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17928         Set _x86_64_preferred_memory_instruction for AMD processsors.
17929         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17930         Set bit_Prefer_SSE_for_memop for AMD processors.
17931
17932 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17933
17934         * libio/fmemopen.c (fmemopen): Optimize a bit.
17935
17936 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17937
17938         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17939
17940 2011-03-03  Roland McGrath  <roland@redhat.com>
17941
17942         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17943
17944 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17945
17946         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17947         __bzero_ultra1 instead of __memset_ultra1.
17948
17949 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17950             Ulrich Drepper  <drepper@gmail.com>
17951
17952         [BZ #12509]
17953         * include/link.h (struct link_map): Add l_orig_initfini.
17954         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17955         returning unsuccessfully.
17956         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17957         close of a file loaded at startup, restore the original l_initfini
17958         list.
17959         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17960         list, store the pointer.
17961         * elf/Makefile ($(objpfx)noload-mem): New rule.
17962         (noload-ENV): Define.
17963         (tests): Add $(objpfx)noload-mem.
17964         * elf/noload.c: Include <memcheck.h>.
17965         (main): Call mtrace.  Close all opened handles.
17966
17967 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17968
17969         [BZ #12454]
17970         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17971         dependencies are missing.
17972
17973 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17974
17975         Fix __if_freereq crash: Unlike the generic version which uses free,
17976         Hurd needs munmap.
17977         * sysdeps/mach/hurd/ifreq.h: New file.
17978
17979 2011-01-27  Petr Baudis  <pasky@suse.cz>
17980             Ulrich Drepper  <drepper@gmail.com>
17981
17982         [BZ 12445]#
17983         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17984         to extend_alloca().
17985         * stdio-common/bug23.c: New file.
17986         * stdio-common/Makefile (tests): Add bug23.
17987
17988 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17989             Ulrich Drepper  <drepper@gmail.com>
17990
17991         [BZ #12489]
17992         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17993         before performing relro protection.  At old place add assertion
17994         to make sure nothing changed.
17995
17996 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17997             Glauber de Oliveira Costa  <glommer@gmail.com>
17998
17999         * elf/elf.h: Add new ARM TLS relocs.
18000
18001 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18002
18003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18004         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18005         cast from r3.
18006         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18007         'tests' variable.
18008         * sysdeps/wordsize-64/tst-writev.c: New file.
18009
18010 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18011
18012         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18013         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18014         insns in _dl_start to prevent a TOC reference before relocs are
18015         resolved.
18016
18017 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18018
18019         [BZ #12469]
18020         * Makeconfig: Remove RANLIB definition.
18021         * Makerules: Don't use RANLIB.
18022         * aclocal.m4: Remove ranlib test.
18023         * configure.in: No need to check for ranlib.
18024         * elf/rtld-Rules: Don't use RANLIB.
18025
18026 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18027
18028         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18029         protection macro.
18030         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18031         inclusion protection macro.
18032
18033         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18034         SIGRTMIN and SIGRTMAX and print information in that case only when
18035         SIGRTMIN is defined.
18036
18037 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18038
18039         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18040         arginfo fn returning -1.
18041
18042         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18043         and thousands string is zero terminated.
18044
18045 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18046
18047         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18048         sysdeps/unix/sysv/linux/bits/socket.h.
18049
18050 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18051
18052         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18053         (__CPU_COUNT): Remove old macros.
18054         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18055         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18056         (__CPU_ALLOC, __CPU_FREE): Add macros.
18057         (__sched_cpualloc, __sched_cpufree): Add declarations.
18058
18059 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18060
18061         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18062         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18063         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18064         (readdhstai): Return value of addhstaiX call.
18065         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18066         (addgrbyX): Return value returned by cache_addgr.
18067         (readdgrbyname): Return value returned by addgrbyX.
18068         (readdgrbygid): Likewise.
18069         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18070         (addpwbyX): Return value returned by cache_addpw.
18071         (readdpwbyname): Return value returned by addhstbyX.
18072         (readdpwbyuid): Likewise.
18073         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18074         (addservbyX): Return value returned by cache_addserv.
18075         (readdservbyname): Return value returned by addservbyX:
18076         (readdservbyport): Likewise.
18077         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18078         (addhstbyX): Return value returned by cache_addhst.
18079         (readdhstbyname): Return value returned by addhstbyX.
18080         (readdhstbyaddr): Likewise.
18081         (readdhstbynamev6): Likewise.
18082         (readdhstbyaddrv6): Likewise.
18083         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18084         (readdinitgroups): Return value returned by addinitgroupsX.
18085         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18086         (prune_cache): Keep track of timeout value of re-added entries.
18087         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18088         * nscd/nscd.h: Adjust prototypes of readd* functions.
18089
18090 2011-02-04  Roland McGrath  <roland@redhat.com>
18091
18092         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18093         (nis_stats): Likewise.
18094         * nis/nis_modify.c (nis_modify): Likewise.
18095         * nis/nis_remove.c (nis_remove): Likewise.
18096         * nis/nis_add.c (nis_add): Likewise.
18097
18098         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18099
18100         * posix/fnmatch_loop.c: Add some consts.
18101
18102         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18103
18104 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18105
18106         [BZ #12460]
18107         * config.make.in (config-cflags-novzeroupper): Define.
18108         * configure.in: Substitute libc_cv_cc_novzeroupper.
18109         * elf/Makefile (AVX-CFLAGS): Define.
18110         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18111         (CFLAGS-tst-auditmod4a.c): Likewise.
18112         (CFLAGS-tst-auditmod4b.c): Likewise.
18113         (CFLAGS-tst-auditmod6b.c): Likewise.
18114         (CFLAGS-tst-auditmod6c.c): Likewise.
18115         (CFLAGS-tst-auditmod7b.c): Likewise.
18116         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18117
18118 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18119
18120         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18121         function to the callback.
18122         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18123
18124 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18125
18126         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18127         of errno.
18128
18129 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18130
18131         [BZ #11724]
18132         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18133         of constructors.
18134         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18135         of destructors.
18136         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18137
18138         [BZ #11724]
18139         * elf/Makefile: Add rules to build and run new test.
18140         * elf/tst-initorder.c: New file.
18141         * elf/tst-initorder.exp: New file.
18142         * elf/tst-initordera1.c: New file.
18143         * elf/tst-initordera2.c: New file.
18144         * elf/tst-initordera3.c: New file.
18145         * elf/tst-initordera4.c: New file.
18146         * elf/tst-initorderb1.c: New file.
18147         * elf/tst-initorderb2.c: New file.
18148         * elf/tst-order-a1.c: New file.
18149         * elf/tst-order-a2.c: New file.
18150         * elf/tst-order-a3.c: New file.
18151         * elf/tst-order-a4.c: New file.
18152         * elf/tst-order-b1.c: New file.
18153         * elf/tst-order-b2.c: New file.
18154         * elf/tst-order-main.c: New file.
18155         New test case by George Gensure <werkt0@gmail.com>.
18156
18157 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18158
18159         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18160         decoding ACE if AI_CANONIDN.
18161
18162 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18163
18164         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18165
18166 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18167
18168         * version.h (RELEASE): Bump for 2.13 release.
18169         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18170
18171         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18172
18173         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18174         MADV_NOHUGEPAGE.
18175         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18176         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18177         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18178         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18179         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18180         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18181
18182         * posix/getconf.c: Update copyright year.
18183         * catgets/gencat.c: Likewise.
18184         * csu/version.c: Likewise.
18185         * debug/catchsegv.sh: Likewise.
18186         * debug/xtrace.sh: Likewise.
18187         * elf/ldconfig.c: Likewise.
18188         * elf/ldd.bash.in: Likewise.
18189         * elf/sprof.c (print_version): Likewise.
18190         * iconv/iconv_prog.c: Likewise.
18191         * iconv/iconvconfig.c: Likewise.
18192         * locale/programs/locale.c: Likewise.
18193         * locale/programs/localedef.c: Likewise.
18194         * malloc/memusage.sh: Likewise.
18195         * malloc/mtrace.pl: Likewise.
18196         * nscd/nscd.c (print_version): Likewise.
18197         * nss/getent.c: Likewise.
18198
18199         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18200         PF_CAIF, and PF_ALG.
18201         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18202
18203 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18204
18205         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18206         (modules-names): Use them.
18207         (ifunc-test-modules, ifunc-pie-tests): Define.
18208         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18209         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18210         (test-extras): Likewise.
18211         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18212         $(compile-command.c).
18213         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18214         (all-built-dso): Define.
18215         (check-textrel.out, check-execstack.out): Depend on it.
18216
18217         * configure.in: Don't override --enable-multi-arch.
18218
18219 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18220
18221         [BZ #6812]
18222         * nscd/hstcache.c (tryagain): Define.
18223         (cache_addhst): Return tryagain not notfound for temporary errors.
18224         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18225         failed.
18226
18227 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18228
18229         [BZ #10563]
18230         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18231         to make the syscall.
18232         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18233
18234         [BZ #12378]
18235         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18236         and fall back to matching as normal character if the string ends before
18237         the matching ']' is found.  This is what POSIX requires.
18238         * posix/testfnm.c: Adjust test result.
18239         * posix/globtest.sh: Adjust test result.  Add new test.
18240         * posix/tst-fnmatch.input: Likewise.
18241         * posix/tst-fnmatch2.c: Add new test.
18242
18243 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18244
18245         * elf/Makefile (check-execstack): Revert last change.  Depend on
18246         check-execstack.h.
18247         (check-execstack.h): New target.
18248         (generated): Add check-execstack.h.
18249         * elf/check-execstack.c: Include "check-execstack.h".
18250         (main): Revert last change.
18251         (handle_file): Return zero if GNU_STACK is absent and
18252         DEFAULT_STACK_PERMS doesn't include PF_X.
18253
18254 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18255
18256         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18257         in child fails because the descriptor is already closed.
18258         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18259         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18260         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18261
18262         [BZ #12397]
18263         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18264         syscall.
18265
18266         [BZ #10484]
18267         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18268         temporary buffer used to handle multi lookups locally.
18269         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18270
18271 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18272
18273         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18274         loader is ld.so.
18275
18276 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18277
18278         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18279         alignment for SSE2.
18280
18281 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18282
18283         [BZ #12394]
18284         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18285         characters.  When rounding increased number of integer digits recompute
18286         number of groups.
18287         * stdio-common/tst-grouping.c: New file.
18288         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18289
18290 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18291
18292         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18293         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18294
18295         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18296         void.
18297         * bits/select.h: Likewise.
18298
18299 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18300
18301         * po/ja.po: Update from translation team.
18302
18303 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18304
18305         [BZ #11155]
18306         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18307         implementation just like for lxstat, fxstatat, et al.
18308
18309 2010-12-27  Jim Meyering  <meyering@redhat.com>
18310
18311         [BZ #12348]
18312         * posix/regexec.c (build_trtable): Return failure indication upon
18313         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18314
18315 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18316
18317         [BZ #12201]
18318         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18319         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18320         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18321         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18322
18323         [BZ #12207]
18324         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18325
18326         [BZ #12204]
18327         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18328         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18329
18330 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18331
18332         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18333         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18334         script has SORT_BY_INIT_PRIORITY.
18335         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18336         NO_CTORS_DTORS_SECTIONS is defined.
18337         * elf/soinit.c: Likewise.
18338         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18339         NO_CTORS_DTORS_SECTIONS is defined.
18340         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18341         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18342         * sysdeps/sh/init-first.c: Likewise.
18343         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18344
18345 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18346
18347         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18348         always use the slow path.
18349
18350 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18351
18352         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18353         similar rule which adds the sysdep directories to the header search in
18354         order to pick up the correct platform stackinfo.h.
18355         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18356         perform test if it is, otherwise return successfully without testing.
18357         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18358         DEFAULT_STACK_PERMS define in stackinfo.h.
18359         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18360         defined in stackinfo.h.
18361         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18362         DEFAULT_STACK_PERMS defined in stackinfo.h.
18363         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18364         * sysdeps/ia64/stackinfo.h: Likewise.
18365         * sysdeps/s390/stackinfo.h: Likewise.
18366         * sysdeps/sh/stackinfo.h: Likewise.
18367         * sysdeps/sparc/stackinfo.h: Likewise.
18368         * sysdeps/x86_64/stackinfo.h: Likewise.
18369         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18370         PF_X for powerpc64.  Retain PF_X for powerpc32.
18371
18372 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18373
18374         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18375         accurately.
18376         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18377         GETDENTS_64BIT_ALIGNED.
18378
18379 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18380
18381         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18382
18383 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18384
18385         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18386         _GNU_SOURCE.
18387
18388         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18389         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18390         Remove __restrict.
18391         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18392         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18393
18394 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18395
18396         [BZ #11655]
18397         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18398         are initialized.
18399
18400 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18401
18402         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18403
18404 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18405
18406         * po/it.po: Update from translation team.
18407
18408 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18409
18410         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18411         unused codes.
18412
18413 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18414
18415         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18416
18417 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18418
18419         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18420         specially.
18421         (gaih_getanswer_slice): Likewise.
18422
18423 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18424
18425         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18426
18427 2010-05-31  Petr Baudis  <pasky@suse.cz>
18428
18429         [BZ #11149]
18430         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18431         silently even in the chroot mode.
18432
18433 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18434
18435         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18436         last patch a bit.  Pretty printing
18437
18438 2010-05-31  Petr Baudis <pasky@suse.cz>
18439
18440         [BZ #10085]
18441         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18442         initialization of skip_initgroups_dyn.
18443
18444 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18445
18446         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18447         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18448
18449 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18450
18451         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18452
18453 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18454
18455         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18456         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18457         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18458         ($(objpfx)tst-fnmatch-mem): New rule.
18459         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18460         * posix/tst-fnmatch.c (main): Call mtrace.
18461
18462 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18463
18464         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18465         Support Intel processor model 6 and model 0x2c.
18466
18467 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18468
18469         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18470           signed comparison.
18471
18472 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18473
18474         [BZ #12205]
18475         * string/test-strncasecmp.c (check_result): New function.
18476         (do_one_test): Use it.
18477         (check1): New function.
18478         (test_main): Use it.
18479         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18480         Support strcasecmp and strncasecmp.
18481
18482 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18483
18484         [BZ #12194]
18485         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18486         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18487
18488 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18489
18490         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18491         IFUNC support.
18492         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18493         memset-x86-64.
18494         * sysdeps/x86_64/multiarch/bzero.S: New file.
18495         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18496         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18497         * sysdeps/x86_64/multiarch/memset.S: New file.
18498         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18499         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18500         Set bit_Prefer_SSE_for_memop for Intel processors.
18501         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18502         Define.
18503         (index_Prefer_SSE_for_memop): Define.
18504         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18505
18506 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18507
18508         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18509         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18510
18511 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18512
18513         [BZ #12191]
18514         * sysdeps/i386/i686/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
18519         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18520         (__x86_64_raw_data_cache_size_half): Likewise.
18521         (__x86_64_raw_shared_cache_size): Likewise.
18522         (__x86_64_raw_shared_cache_size_half): Likewise.
18523         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18524         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18525         and __x86_64_raw_shared_cache_size_half.  Round
18526         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18527         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18528         to multiple of 256 bytes.
18529
18530 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18531
18532         [BZ #12167]
18533         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18534         of inacessible symlinks.  Verify result of symlink before returning it.
18535         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18536         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18537
18538 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18539
18540         * math/math.h (isinf): Fix typo in comment.
18541
18542 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18543
18544         * po/da.po: Update from translation team.
18545
18546 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18547
18548         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18549         is added to the list.
18550
18551 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18552             Ulrich Drepper  <drepper@gmail.com>
18553
18554         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18555         the global list here.  Move code to...
18556         (_dl_add_to_namespace_list): ...here.  New function.
18557         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18558         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18559         * elf/dl-load.c (lose): Don't remove the element from the list.
18560         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18561         (_dl_map_object): Likewise.
18562
18563 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18564
18565         [BZ #12159]
18566         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18567         into all bytes of SSE register.
18568         Patch by Richard Li <richardpku@gmail.com>.
18569
18570 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18571
18572         [BZ #12140]
18573         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18574         perturbing.
18575
18576 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18577
18578         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18579         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18580         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18581         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18583         submachine.
18584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18585
18586 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18587
18588         * include/dlfcn.h (__RTLD_SECURE): Define.
18589         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18590         mode & __RTLD_SECURE instead.
18591         (open_path): Rename preloaded parameter to secure.
18592         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18593         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18594         * elf/dl-deps.c (openaux): Likewise.
18595         * elf/rtld.c (struct map_args): Remove is_preloaded.
18596         (map_doit): Don't use it.
18597         (dl_main): Likewise.
18598         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18599         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18600
18601 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18602
18603         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18604         (sysd-rules-targets): Remove duplicates.
18605         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18606         rtld-%.$o dependency.
18607
18608 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18609
18610         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18611         _dl_map_object do it.
18612
18613 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18614
18615         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18616         fast fma builtins, define the macros in the C99 standard.
18617         (FP_FAST_FMAF): Likewise.
18618         (FP_FAST_FMAL): Likewise.
18619         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18620
18621         * bits/mathdef.h: Update copyright year.
18622         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18623
18624 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18625
18626         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18627         builtins, define the macros in the C99 standard.
18628         (FP_FAST_FMAF): Likewise.
18629         (FP_FAST_FMAL): Likewise.
18630         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18631         multiply/add.
18632         (FP_FAST_FMAF): Likewise.
18633
18634 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18635
18636         [BZ #3268]
18637         * math/libm-test.inc (fma_test): Some new testcases.
18638         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18639         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18640         y and infinite z.  Do multiplication by C already in long double.
18641         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18642         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18643         y and infinite z.  Do bitwise or of inexact bit into u.d.
18644         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18645         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18646         * sysdeps/i386/fpu/s_fma.S: Removed.
18647         * sysdeps/i386/fpu/s_fmal.S: Removed.
18648
18649 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18650
18651         [BZ #3268]
18652         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18653         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18654         computation is not scheduled after fetestexcept.  Fix value
18655         of minimum denormal long double.
18656
18657 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18658
18659         [BZ #3268]
18660         * math/libm-test.inc (fma_test): Add some more tests.
18661         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18662         correctly.
18663
18664 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18665
18666         * scripts/data/localplt-s390-linux-gnu.data: New file.
18667         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18668
18669 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18670
18671         [BZ #3268]
18672         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18673         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18674         instead of dbl-64.
18675         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18676         inlines.
18677         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18678         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18679         if one of x and y is very large and the other is subnormal.
18680         * sysdeps/s390/fpu/s_fmaf.c: New file.
18681         * sysdeps/s390/fpu/s_fma.c: New file.
18682         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18683         * sysdeps/powerpc/fpu/s_fma.S: New file.
18684         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18685         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18686         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18687
18688 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18689
18690         [BZ #3268]
18691         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18692         fma tests.
18693         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18694         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18695         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18696         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18697         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18698         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18699         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18700
18701 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18702
18703         [BZ #12078]
18704         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18705         * posix/bug-regex31.input: Add test case.
18706
18707 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18708
18709         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18710         * posix/bug-regex31.input: New file.
18711
18712         [BZ #12078]
18713         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18714         (parse_sub_exp): Fix last change, use postorder.
18715
18716         * posix/bug-regex31.c: New file.
18717         * posix/Makefile: Add rules to build and run bug-regex31.
18718
18719         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18720
18721         [BZ #12078]
18722         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18723
18724         [BZ #12108]
18725         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18726         to have entries in sys_siglist.
18727
18728         [BZ #12093]
18729         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18730         be NULL.
18731
18732 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18733
18734         [BZ #3268]
18735         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18736         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18737         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18738         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18739         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18740         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18741         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18742         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18743         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18744         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18745         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18746         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18747         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18748         * math/ftestexcept.c (fetestexcept): Likewise.
18749         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18750         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18751         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18752         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18753         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18754         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18755         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18756
18757 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18758
18759         [BZ #12107]
18760         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18761         newline.
18762
18763 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18764
18765         * string/bug-strstr1.c: New file.
18766         * string/Makefile: Add rules to build and run bug-strstr1.
18767
18768 2010-10-05  Eric Blake  <eblake@redhat.com>
18769
18770         [BZ #12092]
18771         * string/str-two-way.h (two_way_long_needle): Always clear memory
18772         when skipping input due to the shift table.
18773
18774 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18775
18776         [BZ #12005]
18777         * malloc/mcheck.c: Handle large requests.
18778
18779         [BZ #12077]
18780         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18781         for strncmp and strncasecmp.
18782         * string/stratcliff.c: Add tests for strcmp and strncmp.
18783         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18784
18785 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18786
18787         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18788         __set_fpscr.
18789
18790 2010-09-30  Andreas Jaeger  <aj@suse.de>
18791
18792         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18793         (CGROUP_SUPER_MAGIC): Define.
18794         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18795         Handle btrfs and cgroup file systems.
18796         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18797         Likewise.
18798
18799 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18800
18801         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18802         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18803
18804 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18805
18806         [BZ #12067]
18807         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18808         trying to locate the ELF header.
18809
18810 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18811
18812         [BZ #11611]
18813         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18814         Mask out sign-bit copies when constructing f_fsid.
18815
18816 2010-09-24  Petr Baudis <pasky@suse.cz>
18817
18818         * debug/stack_chk_fail_local.c: Add missing licence exception.
18819         * debug/warning-nop.c: Likewise.
18820
18821 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18822
18823         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18824         implementing getdents64 using getdents syscall, set d_type if
18825         __ASSUME_GETDENTS32_D_TYPE.
18826
18827 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18828
18829         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18830         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18831
18832 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18833
18834         [BZ #12037]
18835         * posix/unistd.h: Undo change of feature selection for ftruncate from
18836         2010-01-11.
18837
18838 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18839
18840         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18841         detection.
18842
18843 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18844
18845         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18846         fanotify_mark.
18847         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18848
18849 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18850
18851         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18852         variables after CHECK_SP call.
18853         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18854
18855 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18856             Ulrich Drepper  <drepper@redhat.com>
18857
18858         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18859         re-relocationg ld.so.
18860         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18861         _dl_init_paths call.
18862         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18863         here anymore.
18864
18865 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18866
18867         * resolv/res_init.c (__res_vinit): Count the default server we added.
18868
18869 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18870             Ulrich Drepper  <drepper@redhat.com>
18871
18872         [BZ #11968]
18873         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18874         (____longjmp_chk): Use %ebx for saving value across system call.
18875         Add unwind info.
18876
18877 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18878
18879         * manual/Makefile: Don't mix pattern rules with normal rules.
18880
18881 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18882
18883         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18884         operation.
18885         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18886         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18887         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18888         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18889         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18890         Likewise.
18891
18892 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18893
18894         [BZ #11979]
18895         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18896         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18897
18898 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18899
18900         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18901         * sysdeps/x86_64/addmul_1.S: Likewise.
18902         * sysdeps/x86_64/lshift.S: Likewise.
18903         * sysdeps/x86_64/mul_1.S: Likewise.
18904         * sysdeps/x86_64/rshift.S: Likewise.
18905         * sysdeps/x86_64/sub_n.S: Likewise.
18906         * sysdeps/x86_64/submul_1.S: Likewise.
18907
18908 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18909
18910         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18911         Define __sched_param instead of SCHED_* and sched_param when
18912         <bits/sched.h> is included with __need_schedparam defined.
18913         * bits/sched.h [__need_schedparam]
18914         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18915         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18916         (__defined_schedparam): Define to 1.
18917         (__sched_param): New structure, identical to sched_param.
18918         (__need_schedparam): Undefine.
18919
18920 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18921
18922         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18923         (epoll_create1): Declare.
18924
18925         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18926
18927 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18928
18929         [BZ #7066]
18930         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18931         shifting retval into place.
18932
18933 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18934
18935         * nis/rpcsvc/nis.h: Update copyright notice.
18936         * nis/rpcsvc/nis.x: Likewise.
18937         * nis/rpcsvc/nis_callback.h: Likewise.
18938         * nis/rpcsvc/nis_callback.x: Likewise.
18939         * nis/rpcsvc/nis_object.x: Likewise.
18940         * nis/rpcsvc/nis_tags.h: Likewise.
18941         * nis/rpcsvc/yp.h: Likewise.
18942         * nis/rpcsvc/yp.x: Likewise.
18943         * nis/rpcsvc/ypupd.h: Likewise.
18944         * nis/yp_xdr.c: Likewise.
18945         * nis/ypupdate_xdr.c: Likewise.
18946
18947         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18948         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18949         (pmap_getport): Use __libc_rpc_getport.
18950         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18951         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18952         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18953
18954 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18955
18956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18957         fanotify_mark.
18958
18959 2010-08-27  Roland McGrath  <roland@redhat.com>
18960
18961         * sysdeps/i386/i686/multiarch/Makefile
18962         (CFLAGS-varshift.c): New variable.
18963
18964 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18965
18966         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18967         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18968
18969         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18970
18971         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18972
18973 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18974
18975         * sysdeps/x86_64/strlen.S: Unroll the loop.
18976         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18977         strlen-sse2 strlen-sse2-bsf.
18978         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18979         __strlen_no_bsf if bit_Slow_BSF is set.
18980         (__strlen_sse42): Removed.
18981         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18982         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18983
18984 2010-08-25  Roland McGrath  <roland@redhat.com>
18985
18986         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18987         * sysdeps/x86_64/multiarch/varshift.c: New file.
18988         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18989         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18990         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18991         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18992
18993 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18994
18995         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18996         strlen-sse2 strlen-sse2-bsf.
18997         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18998         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18999         (__strlen_sse2): Removed.
19000         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19001         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19002         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19003         bit_Slow_BSF for Atom.
19004         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19005         (index_Slow_BSF): Define.
19006         (HAS_SLOW_BSF): Define.
19007
19008 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19009
19010         [BZ #10851]
19011         * resolv/res_init.c (__res_vinit): When no server address at all
19012         is given default to loopback.
19013
19014 2010-08-24  Roland McGrath  <roland@redhat.com>
19015
19016         * configure.in: Remove config-name.h generation.
19017         * configure: Regenerated.
19018         * config-name.in: File removed.
19019         * scripts/config-uname.sh: New file.
19020         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19021         ($(objdir)config-name.h): New target.
19022
19023         * sunrpc/rpc_parse.h: Avoid nested comment.
19024
19025 2010-08-24  Richard Henderson  <rth@redhat.com>
19026             Ulrich Drepper  <drepper@redhat.com>
19027             H.J. Lu  <hongjiu.lu@intel.com>
19028
19029         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19030         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19031         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19032         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19033         _mm_alignr_epi8 with _mm_loadu_si128.
19034         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19035         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19036         (__m128i_shift_right): Removed.
19037         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19038         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19039         * sysdeps/x86_64/multiarch/varshift.h: New file.
19040         * sysdeps/x86_64/multiarch/varshift.S: New file.
19041
19042 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19043
19044         * configure.in: Move assembler checks to before sysdep dir checking.
19045
19046 2010-08-20  Petr Baudis  <pasky@suse.cz>
19047
19048         * LICENSES: Sync the sunrpc license.
19049
19050 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19051
19052         * sunrpc/auth_des.c: Update copyright notice once again.
19053         * sunrpc/auth_none.c: Likewise.
19054         * sunrpc/auth_unix.c: Likewise.
19055         * sunrpc/authdes_prot.c: Likewise.
19056         * sunrpc/authuxprot.c: Likewise.
19057         * sunrpc/bindrsvprt.c: Likewise.
19058         * sunrpc/clnt_gen.c: Likewise.
19059         * sunrpc/clnt_perr.c: Likewise.
19060         * sunrpc/clnt_raw.c: Likewise.
19061         * sunrpc/clnt_simp.c: Likewise.
19062         * sunrpc/clnt_tcp.c: Likewise.
19063         * sunrpc/clnt_udp.c: Likewise.
19064         * sunrpc/clnt_unix.c: Likewise.
19065         * sunrpc/des_crypt.c: Likewise.
19066         * sunrpc/des_soft.c: Likewise.
19067         * sunrpc/get_myaddr.c: Likewise.
19068         * sunrpc/getrpcport.c: Likewise.
19069         * sunrpc/key_call.c: Likewise.
19070         * sunrpc/key_prot.c: Likewise.
19071         * sunrpc/openchild.c: Likewise.
19072         * sunrpc/pm_getmaps.c: Likewise.
19073         * sunrpc/pm_getport.c: Likewise.
19074         * sunrpc/pmap_clnt.c: Likewise.
19075         * sunrpc/pmap_prot.c: Likewise.
19076         * sunrpc/pmap_prot2.c: Likewise.
19077         * sunrpc/pmap_rmt.c: Likewise.
19078         * sunrpc/rpc/auth.h: Likewise.
19079         * sunrpc/rpc/auth_unix.h: Likewise.
19080         * sunrpc/rpc/clnt.h: Likewise.
19081         * sunrpc/rpc/des_crypt.h: Likewise.
19082         * sunrpc/rpc/key_prot.h: Likewise.
19083         * sunrpc/rpc/netdb.h: Likewise.
19084         * sunrpc/rpc/pmap_clnt.h: Likewise.
19085         * sunrpc/rpc/pmap_prot.h: Likewise.
19086         * sunrpc/rpc/pmap_rmt.h: Likewise.
19087         * sunrpc/rpc/rpc.h: Likewise.
19088         * sunrpc/rpc/rpc_des.h: Likewise.
19089         * sunrpc/rpc/rpc_msg.h: Likewise.
19090         * sunrpc/rpc/svc.h: Likewise.
19091         * sunrpc/rpc/svc_auth.h: Likewise.
19092         * sunrpc/rpc/types.h: Likewise.
19093         * sunrpc/rpc/xdr.h: Likewise.
19094         * sunrpc/rpc_clntout.c: Likewise.
19095         * sunrpc/rpc_cmsg.c: Likewise.
19096         * sunrpc/rpc_common.c: Likewise.
19097         * sunrpc/rpc_cout.c: Likewise.
19098         * sunrpc/rpc_dtable.c: Likewise.
19099         * sunrpc/rpc_hout.c: Likewise.
19100         * sunrpc/rpc_main.c: Likewise.
19101         * sunrpc/rpc_parse.c: Likewise.
19102         * sunrpc/rpc_parse.h: Likewise.
19103         * sunrpc/rpc_prot.c: Likewise.
19104         * sunrpc/rpc_sample.c: Likewise.
19105         * sunrpc/rpc_scan.c: Likewise.
19106         * sunrpc/rpc_scan.h: Likewise.
19107         * sunrpc/rpc_svcout.c: Likewise.
19108         * sunrpc/rpc_tblout.c: Likewise.
19109         * sunrpc/rpc_util.c: Likewise.
19110         * sunrpc/rpc_util.h: Likewise.
19111         * sunrpc/rpcinfo.c: Likewise.
19112         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19113         * sunrpc/rpcsvc/key_prot.x: Likewise.
19114         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19115         * sunrpc/rpcsvc/mount.x: Likewise.
19116         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19117         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19118         * sunrpc/rpcsvc/rex.x: Likewise.
19119         * sunrpc/rpcsvc/rstat.x: Likewise.
19120         * sunrpc/rpcsvc/rusers.x: Likewise.
19121         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19122         * sunrpc/rpcsvc/spray.x: Likewise.
19123         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19124         * sunrpc/rtime.c: Likewise.
19125         * sunrpc/svc.c: Likewise.
19126         * sunrpc/svc_auth.c: Likewise.
19127         * sunrpc/svc_authux.c: Likewise.
19128         * sunrpc/svc_raw.c: Likewise.
19129         * sunrpc/svc_run.c: Likewise.
19130         * sunrpc/svc_simple.c: Likewise.
19131         * sunrpc/svc_tcp.c: Likewise.
19132         * sunrpc/svc_udp.c: Likewise.
19133         * sunrpc/svc_unix.c: Likewise.
19134         * sunrpc/svcauth_des.c: Likewise.
19135         * sunrpc/xcrypt.c: Likewise.
19136         * sunrpc/xdr.c: Likewise.
19137         * sunrpc/xdr_array.c: Likewise.
19138         * sunrpc/xdr_float.c: Likewise.
19139         * sunrpc/xdr_mem.c: Likewise.
19140         * sunrpc/xdr_rec.c: Likewise.
19141         * sunrpc/xdr_ref.c: Likewise.
19142         * sunrpc/xdr_sizeof.c: Likewise.
19143         * sunrpc/xdr_stdio.c: Likewise.
19144
19145         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19146         handling.
19147
19148 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19149
19150         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19151
19152 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19153
19154         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19155         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19156         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19157         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19158         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19159         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19160         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19161         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19162         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19163         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19164         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19165         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19166         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19167         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19168
19169 2010-07-26  Anton Blanchard  <anton@samba.org>
19170
19171         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19172         * malloc/arena.c (heap_trim): Likewise.
19173
19174 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19175
19176         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19177         here.  Not...
19178         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19179         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19180
19181 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19182
19183         * sysdeps/i386/elf/Makefile: New file.
19184
19185 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19186
19187         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19188         from fanotify_init.
19189         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19190         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19191
19192 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19193
19194         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19195         of strncasecmp_l.
19196         * sysdeps/multiarch/strcmp.S: Likewise.
19197
19198 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19199
19200         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19201         strncase_l-nonascii.
19202         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19203         Add strncase_l-ssse3.
19204         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19205         * sysdeps/x86_64/strcmp.S: Likewise.
19206         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19207         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19208         * sysdeps/x86_64/strncase.S: New file.
19209         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19210         * sysdeps/x86_64/strncase_l.S: New file.
19211         * string/Makefile (strop-tests): Add strncasecmp.
19212         * string/test-strncasecmp.c: New file.
19213
19214         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19215         warning.
19216
19217         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19218         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19219
19220 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19221
19222         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19223
19224 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19225
19226         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19227         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19228         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19229
19230 2010-05-01  Alan Modra  <amodra@gmail.com>
19231
19232         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19233         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19234         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19235         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19236         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19237         tidying.  Don't tail-call __sigjmp_save for static lib.
19238         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19239         save location.
19240         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19241         (CALL_MCOUNT): Add eh info, and nop after bl.
19242         (TAIL_CALL_SYSCALL_ERROR): New macro.
19243         (PSEUDO_RET): Use it.
19244         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19245         Correct save location of integer regs and cr.
19246         (_dl_profile_resolve): Correct cr save location.  Delete nops
19247         after bl when SHARED.  Reduce cfi size a little by better
19248         placement of cfi directives.
19249         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19250         make a stack frame.  Instead use parm save area as a temp.
19251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19252         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19254         Don't make a stack frame for parent, use parm save area.
19255         Increase child stack frame to 112 bytes.  Don't save unused reg,
19256         and adjust reg usage.  Set up cfi on error recovery and
19257         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19259         (__makecontext): Add dummy nop after jump to exit.
19260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19261         Use correct parm save area and cr save, reduce stack frame.
19262         Correct cfi for possible PSEUDO_RET frame setup.
19263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19264         Branch to local label emitted by PSEUDO_RET rather than
19265         __syscall_error.
19266
19267 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19268
19269         [BZ #11904]
19270         * locale/programs/locale.c (print_assignment): New function.
19271         (show_locale_vars): Use it.
19272
19273 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19274
19275         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19276         field.
19277         (struct statfs64): Likewise.
19278         (_STATFS_F_FLAGS): Define.
19279         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19280         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19281         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19282         (ST_VALID): Define locally.
19283         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19284         __statvfs_getflags, use the provided value.
19285         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19286         __ASSUME_STATFS_F_FLAGS.
19287
19288         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19289
19290         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19291         Add sys/fanotify.h.
19292         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19293         fanotify_mask for GLIBC_2.13.
19294         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19295         fanotify_init and fanotify_mark.
19296         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19297         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19298
19299         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19300         Add prlimit.
19301         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19302         prlimit64 for GLIBC_2.13.
19303         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19304         prlimit64.
19305         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19306         syscall.
19307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19308         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19309         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19310         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19311         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19312         add prlimit alias.
19313         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19314
19315         [BZ #11903]
19316         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19317         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19318
19319         * nss/Makefile: Add rules to build and run tst-nss-test1.
19320         * shlib-versions: Add entry for libnss_test1.
19321         * nss/nss_test1.c: New file.
19322         * nss/tst-nss-test1.c: New file.
19323
19324         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19325         (__nss_configure_lookup): Set appropriate entry in
19326         __nss_configure_lookup to true.
19327         * nss/nsswitch.h: Define enum with indeces of databases in
19328         databases and __nss_database_custom arrays.  Declare
19329         __nss_database_custom.
19330         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19331         to avoid using nscd when custom rules are installed.
19332         * nss/getXXbyYY_r.c: Likewise.
19333         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19334
19335         * nss/nss_files/files-parse.c: Whitespace fixes.
19336
19337 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19338
19339         [BZ #11883]
19340         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19341         * posix/fnmatch_loop.c: Likewise.
19342
19343 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19344
19345         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19346         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19347         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19348         * Versions.def [GLIBC_2.13]: Add.
19349
19350 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19351
19352         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19353         Also fail if tpwd after pwuid call is NULL.
19354
19355 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19356
19357         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19358         when converting to ms.
19359
19360 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19361
19362         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19363         EOPNOTSUPP errors with ENOTTY.
19364         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19365         EOPNOTSUPP errors with ENOTTY.
19366
19367 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19368
19369         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19370         Add strcasecmp_l-ssse3.
19371         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19372         strcasecmp.
19373         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19374         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19375         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19376
19377 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19378
19379         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19380
19381         * string/Makefile (strop-tests): Add strcasecmp.
19382         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19383         strcasecmp_l-nonascii.
19384         (gen-as-const-headers): Add locale-defines.sym.
19385         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19386         * sysdeps/x86_64/strcasecmp.S: New file.
19387         * sysdeps/x86_64/strcasecmp_l.S: New file.
19388         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19389         * sysdeps/x86_64/locale-defines.sym: New file.
19390         * string/test-strcasecmp.c: New file.
19391
19392         * string/test-strcasestr.c: Test both ends of the range of characters.
19393         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19394
19395 2010-07-29  Roland McGrath  <roland@redhat.com>
19396
19397         [BZ #11856]
19398         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19399
19400 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19401
19402         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19403         for ld.so.
19404
19405 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19406
19407         * manual/memory.texi (Malloc Tunable Parameters): Document
19408         M_PERTURB.
19409
19410 2010-07-26  Roland McGrath  <roland@redhat.com>
19411
19412         [BZ #11840]
19413         * configure.in (-fgnu89-inline check): Set and substitute
19414         gnu89_inline, not libc_cv_gnu89_inline.
19415         * configure: Regenerated.
19416         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19417
19418 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19419
19420         * string/test-strnlen.c: New file.
19421         * string/Makefile (strop-tests): Add strnlen.
19422         * string/tester.c (test_strnlen): Add a few more test cases.
19423         * string/tst-strlen.c: Better error reporting.
19424
19425         * sysdeps/x86_64/strnlen.S: New file.
19426
19427 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19428
19429         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19430         lower-latency instructions.
19431
19432 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19433
19434         * string/test-strcasestr.c: New file.
19435         * string/test-strstr.c: New file.
19436         * string/Makefile (strop-tests): Add strstr and strcasestr.
19437         * string/str-two-way.h: Don't undefine MAX.
19438         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19439
19440 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19441
19442         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19443         strcasestr-nonascii.
19444         (CFLAGS-strcasestr-nonascii.c): Define.
19445         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19446         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19447         Remove unused attribute.
19448
19449 2010-07-20  Roland McGrath  <roland@redhat.com>
19450
19451         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19452         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19453         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19454         like LD_HWCAP_MASK can disable hwcaps.
19455
19456 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19457
19458         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19459
19460 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19461
19462         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19463         call in strcasestr.
19464         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19465         __strcasestr_sse42_nonascii.
19466         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19467         strcasestr-nonascii.c.
19468         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19469
19470 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19471
19472         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19473         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19474         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19475         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19476
19477 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19478
19479         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19480         fcntl.
19481
19482 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19483
19484         [BZ #11577]
19485         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19486         dl_signal_cerror.
19487
19488 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19489
19490         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19491         _PC_PIPE_BUF using F_GETPIPE_SZ.
19492
19493 2010-07-05  Roland McGrath  <roland@redhat.com>
19494
19495         * manual/arith.texi (Rounding Functions): Fix rint description
19496         implicit in round description.
19497
19498 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19499
19500         * elf/Makefile: Fix linking for a few tests to make recent linker
19501         happy.
19502
19503 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19504
19505         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19506         $(common-objpfx)libc_nonshared.a.
19507
19508 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19509
19510         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19511         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19512         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19513         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19514         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19515         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19516         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19517         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19532         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19533         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19534         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19535         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19536         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19537         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19538         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19539         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19540         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19541         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19542         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19543         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19558
19559 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19560
19561         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19562         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19563         * string/memmove.c (memmove): Renamed to ...
19564         (MEMMOVE): ...this.  Default to memmove.
19565         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19566         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19567         (END_CHK): Define.
19568         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19569         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19570         mempcpy-ssse3-back memmove-ssse3-back.
19571         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19572         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19573         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19574         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19575         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19576         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19577         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19578         * sysdeps/x86_64/multiarch/memmove.c: New file.
19579         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19580         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19581         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19582         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19583         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19584         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19585         Define.
19586         (index_Fast_Copy_Backward): Define.
19587         (HAS_ARCH_FEATURE): Define.
19588         (HAS_FAST_REP_STRING): Define.
19589         (HAS_FAST_COPY_BACKWARD): Define.
19590
19591 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19592
19593         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19594         Restore proper fallback handling.
19595
19596 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19597
19598         [BZ #11701]
19599         * posix/group_member.c (__group_member): Correct checking loop.
19600
19601         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19602         OOM in getpwuid_r correctly.  Return error number when the caller
19603         should return, otherwise -1.
19604         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19605         call returning > 0 value.
19606         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19607
19608 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19609
19610         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19611         libc_nonshared.a from targets in modules-names.
19612
19613 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19614
19615         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19616         requires it.
19617
19618 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19619
19620         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19621         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19622         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19623         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19624
19625 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19626
19627         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19628
19629 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19630
19631         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19632         and F_GETPIPE_SZ.
19633         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19634         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19635         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19636         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19637         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19638         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19639
19640 2010-06-14  Roland McGrath  <roland@redhat.com>
19641
19642         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19643
19644 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19645
19646         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19647         __REDIRECT followed by __THROW.
19648         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19649         * posix/getopt.h (getopt): Likewise.
19650
19651 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19652
19653         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19654         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19655         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19656         in AT_FLAGS.
19657         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19658         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19659
19660 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19661
19662         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19663
19664 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19665
19666         [BZ #11640]
19667         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19668         Properly check family and model.
19669
19670 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19671
19672         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19673
19674 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19675
19676         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19677
19678 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19679
19680         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19681         symbol reference.
19682
19683 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19684
19685         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19686         symbol reference.
19687
19688 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19689
19690         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19691         and internal_recvmmsg.
19692         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19693         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19694         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19695         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19696
19697         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19698         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19699         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19700
19701 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19702
19703         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19704
19705 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19706
19707         POWER7 optimizations.
19708         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19709         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19710
19711 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19712
19713         * version.h: Update for 2.13 development version.
19714
19715 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19716
19717         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19718         exceptions.  Return 0.
19719
19720 2010-05-07  Roland McGrath  <roland@redhat.com>
19721
19722         * elf/ldconfig.c (main): Add a const.
19723
19724 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19725
19726         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19727         (args_options): Add no-idn option.
19728         (ahosts_keys_int): Add idn_flags to ai_flags.
19729         (parse_option): Handle 'i' option to clear idn_flags.
19730
19731         * malloc/malloc.c (_int_free): Possible race in the most recently
19732         added check.  Only act on the data if no current modification
19733         happened.
19734
19735 See ChangeLog.17 for earlier changes.