Name space hygeine for madvise.
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2
3         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
4         * misc/madvise.c (madvise): Renamed to __madvise.
5         Make madvise a weak alias.
6         * include/sys/mman.h: Declare __madvise.
7         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
8         * sysdeps/unix/syscalls.list
9         (madvise): Make __madvise the strong name, and madvise a weak alias.
10         * sysdeps/unix/sysv/linux/syscalls.list
11         (madvise, mmap): Remove redundant entries.
12         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
13         * malloc/malloc.c (mtrim): Likewise.
14         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
15
16 2012-10-03  Roland McGrath  <roland@hack.frob.com>
17
18         * sysdeps/mach/hurd/dl-cache.c: File removed.
19         * config.h.in (USE_LDCONFIG): New #undef.
20         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
21         * configure: Regenerated.
22         * elf/Makefile (dl-routines): Add dl-cache only under
23         [$(use-ldconfig) = yes].
24         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
25         cache on [USE_LDCONFIG].
26         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
27         [USE_LDCONFIG].
28         * elf/rtld.c (dl_main): Likewise.
29
30 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
31
32         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
33         _SC_LEVEL4_CACHE_LINESIZE.
34
35 2012-10-03  Roland McGrath  <roland@hack.frob.com>
36
37         * sysdeps/unix/bsd/confstr.h: File removed.
38
39 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
40
41         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
42         sys/sdt-config.h.
43
44 2012-10-02  Roland McGrath  <roland@hack.frob.com>
45
46         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
47         Make 'mapoff' field ElfW(Off) rather than off_t.
48
49 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50
51         * nscd/Makefile: Remove nscd-cflags and all its users.
52         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
53         (CFLAGS-nonlib): Add compiler flags for nscd modules.
54
55         [BZ #10631]
56         * malloc.c (malloc_printerr): Clarify error message.
57
58 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
59
60         [BZ #14648]
61         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62         Set bit_FMA_Usable if FMA is supported.
63         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
64         macro.
65         (bit_FMA4_Usable): Updated.
66         (index_FMA_Usable): New macro.
67         (CPUID_FMA): Likewise
68         (HAS_FMA): Defined with bit_FMA_Usable.
69
70 2012-10-01  Roland McGrath  <roland@hack.frob.com>
71
72         * bits/types.h (__swblk_t): Type removed.
73         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
74         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
75         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76         (__SWBLK_T_TYPE): Likewise.
77         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
78         (__SWBLK_T_TYPE): Likewise.
79         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
80         (__SWBLK_T_TYPE): Likewise.
81         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
82         (__SWBLK_T_TYPE): Likewise.
83
84 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
85             Honza Horak <hhorak@redhat.com>
86
87         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
88         (xdr_mapname): Use YPMAXMAP as maxsize.
89         (xdr_peername): Use YPMAXPEER as maxsize.
90         (xdr_keydat): Use YPAXRECORD as maxsize.
91         (xdr_valdat): Use YPMAXRECORD as maxsize.
92
93 2012-10-01  Roland McGrath  <roland@hack.frob.com>
94
95         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
96
97         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
98         * csu/init-first.c: ... here.
99         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
100         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
101         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
102         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
103         * sysdeps/i386/init-first.c: File removed.
104         * sysdeps/sh/init-first.c: File removed.
105
106 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
107
108         [BZ #14645]
109         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
110         if x * y might underflow to zero and z is zero.
111         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
112         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
113         * math/libm-test.inc (min_subnorm_value): New variable.
114         (fma_test): Add more tests.
115         (fma_test_towardzero): Likewise.
116         (fma_test_downward): Likewise
117         (fma_test_upward): Likewise.
118         (initialize): Set min_subnorm_value.
119
120 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
121
122         [BZ #14638]
123         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
124         0 + 0.
125         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
126         mode for addition resulting in exact zero.
127         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
128         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
129         exact 0 + 0.
130         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
131         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
132         * math/libm-test.inc (fma_test): Add more tests.
133         (fma_test_towardzero): New function.
134         (fma_test_downward): Likewise.
135         (fma_test_upward): Likewise.
136         (main): Call the new functions.
137
138 2012-09-28  David S. Miller  <davem@davemloft.net>
139
140         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
141
142 2012-09-28  Roland McGrath  <roland@hack.frob.com>
143
144         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
145         instead of SIGALRM.
146
147         * sysdeps/gnu/_G_config.h: Moved to ...
148         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
149         * sysdeps/mach/hurd/_G_config.h: Moved to ...
150         * sysdeps/generic/_G_config.h: ... here.
151
152         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
153
154         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
155
156         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
157         Conditionalize target on [libnss_test1.so-version].
158
159         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
160
161         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
162         (elfobjdir): Move out of conditionals.
163
164         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
165         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
166         (__nss_lookup_function): Conditionalize label remove_from_tree on
167         [!DO_STATIC_NSS || SHARED], matching its only use.
168
169 2012-09-28  David S. Miller  <davem@davemloft.net>
170
171         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
172         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
173         file.
174         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
175         sysdep_routines.
176         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
177         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
178         when HWCAP_SPARC_CRYPTO is present.
179
180 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
181
182         * io/tst-mknodat.c: Create a FIFO instead of a socket.
183
184 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
185
186         [BZ #6530]
187         * stdio-common/vfprintf.c (process_string_arg): Revert
188         2000-07-22 change.
189
190 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
191
192         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
193         for testcase.
194         * stdio-common/tst-sprintf.c: Include <locale.h>
195         (main): Test sprintf's handling of incomplete multibyte
196         characters.
197
198 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
199
200         * elf/dl-runtime.c (VERSYMIDX): Removed.
201         * elf/dl-version.c (VERSYMIDX): Likewise.
202         * elf/do-rel.h (VERSYMIDX): Likewise.
203         (VALIDX): Likewise.
204         * elf/dynamic-link.h (VERSYMIDX): Likewise.
205         * elf/rtld.c (VALIDX): Likewise.
206         (ADDRIDX): Likewise.
207         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
208         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
209         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
210         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
211         (VALIDX): Likewise.
212         (ADDRIDX): Likewise.
213
214 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
215
216         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
217
218 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
219
220         [BZ #11438]
221         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
222         to global scope.
223         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
224         addresses are in the same scope as 192.0.2/24.
225         * posix/gai.conf: Document new scope table defaults.
226
227 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
228
229         [BZ #5298]
230         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
231         for ftell.  Compute offsets from write pointers instead.
232         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
233
234 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
235
236         [BZ #14543]
237         * libio/Makefile (tests): New test case tst-fseek.
238         * libio/tst-fseek.c: New test case to verify that fseek/ftell
239         combination works in wide mode.
240         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
241         state when the external buffer state changes.
242
243 2012-09-27  David S. Miller  <davem@davemloft.net>
244
245         [BZ #14376]
246         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
247         pass reloc->r_addend in as the 'high' argument to
248         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
249
250         * sysdeps/sparc/fpu/libm-test-ulps: Update.
251
252 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
253
254         * rt/tst-aio2.c: Include <pthread.h>.
255         * rt/tst-aio3.c: Likewise.
256
257 2012-09-27  Steve Ellcey  <sellcey@mips.com>
258
259         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
260
261 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
262
263         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
264         contents on [SHARED].
265
266 2012-09-26  Marek Polacek  <polacek@redhat.com>
267
268         [BZ #14530]
269         [BZ #13741]
270         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
271         for C++ and GCC <4.3 as well as for non GCC compilers.
272
273 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
274
275         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
276
277 2012-09-25  Roland McGrath  <roland@hack.frob.com>
278
279         * Makefile.in (all, install): Declare with .PHONY.
280         Reported by Michael Hope <michael.hope@linaro.org>.
281
282 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
283
284         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
285         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
286         system header.
287         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
288         Likewise.
289         (sydep_routines): Add the new and the internal functions.
290         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
291         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
293         (GLIBC_2.17): Add the new function.
294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
295         (GLIBC_2.17): Likewise.
296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
297         (GLIBC_2.17): Likewise.
298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
299         (GLIBC_2.17): Likewise.
300         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
301
302 2012-09-25  Alan Modra  <amodra@gmail.com>
303
304         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
305         Add release barrier before setting once_control to say
306         initialisation is done.  Add hints on lwarx.  Use macro in
307         place of isync.
308         (clear_once_control): Add release barrier.
309
310 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
311
312         [BZ #13629]
313         * math/s_clog.c (__clog): Handle more values close to |z| = 1
314         specially.
315         * math/s_clog10.c (__clog10): Likewise.
316         * math/s_clog10f.c (__clog10f): Likewise.
317         * math/s_clog10l.c (__clog10l): Likewise.
318         * math/s_clogf.c (__clogf): Likewise.
319         * math/s_clogl.c (__clogl): Likewise.
320         * math/Makefile (libm-calls): Add x2y2m1.
321         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
322         (__x2y2m1): Likewise.
323         (__x2y2m1l): Likewise.
324         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
325         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
326         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
327         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
328         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
329         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
330         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
331         * sysdeps/i386/fpu/libm-test-ulps: Update.
332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
333
334         [BZ #14621]
335         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
336         int as type of variable DEPTH.
337         (glob): Use size_t instead of int as type of variables NEWCOUNT
338         and OLD_PATHC.
339
340 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
341
342         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
343         Add s_sincosf-sse2.
344         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
345         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
346         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
347         macros for using routine as __sincosf_ia32.
348         Use macro for function declaration and weak_alias.
349         * sysdeps/i386/fpu/libm-test-ulps: Update.
350
351         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
352         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
353
354         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
355         subnormal argument.
356         * math/s_cexpf.c (__cexpf): Likewise.
357         * math/s_csinf.c (__csinf): Likewise.
358         * math/s_csinhf.c (__csinhf): Likewise.
359         * math/s_ctanf.c (__ctanf): Likewise.
360         * math/s_ctanhf.c (__ctanhf): Likewise.
361         * math/s_ccosh.c (__ccoshf): Likewise.
362         * math/s_cexp.c (__cexpl): Likewise.
363         * math/s_csin.c (__csin): Likewise.
364         * math/s_csinh.c (__csinh): Likewise.
365         * math/s_ctan.c (__ctan): Likewise.
366         * math/s_ctanh.c (ctanh): Likewise.
367         * math/s_ccoshl.c (__ccoshl): Likewise.
368         * math/s_cexpl.c (__cexpl): Likewise.
369         * math/s_csinl.c (__csinl): Likewise.
370         * math/s_csinhl.c (__csinhl): Likewise.
371         * math/s_ctanl.c (__ctanl): Likewise.
372         * math/s_ctanhl.c (__ctanhl): Likewise.
373
374 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
375
376         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
377         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
378         (_IO_off_t): Define to __off_t, not _G_off_t.
379         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
380         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
381         (_IO_wint_t): Define to wint_t, not _G_wint_t.
382         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
383         type of __dummy and __dummy2 fields.
384         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
385         (_G_ssize_t): Likewise.
386         (_G_off_t): Likewise.
387         (_G_pid_t): Likewise.
388         (_G_uid_t): Likewise.
389         (_G_wchar_t): Likewise.
390         (_G_wint_t): Likewise.
391         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
392         (_G_ssize_t): Likewise.
393         (_G_off_t): Likewise.
394         (_G_pid_t): Likewise.
395         (_G_uid_t): Likewise.
396         (_G_wchar_t): Likewise.
397         (_G_wint_t): Likewise.
398         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
399         (_G_ssize_t): Likewise.
400         (_G_off_t): Likewise.
401         (_G_pid_t): Likewise.
402         (_G_uid_t): Likewise.
403         (_G_wchar_t): Likewise.
404         (_G_wint_t): Likewise.
405
406 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
407
408         * malloc/arena.c: Include malloc-sysdep.h.
409         (shrink_heap): Use check_may_shrink_heap to decide if madvise
410         is sufficient to shrink the heap or an unmap is needed.
411         * sysdeps/generic/malloc-sysdep.h: New file.  Define
412         new function check_may_shrink_heap.
413         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
414         new function check_may_shrink_heap.
415
416 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
417
418         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
419         comments.
420
421 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
422
423         * catgets/test-gencat.sh: Add "set -e".
424         * elf/tst-pathopt.sh: Likewise.
425         * grp/tst_fgetgrent.sh: Likewise.
426         * iconvdata/run-iconv-test.sh: Likewise.
427         * intl/tst-gettext.sh: Likewise.
428         * intl/tst-gettext2.sh: Likewise.
429         * intl/tst-gettext4.sh: Likewise.
430         * intl/tst-gettext6.sh: Likewise.
431         * intl/tst-translit.sh: Likewise.
432         * io/ftwtest-sh: Likewise.
433         * libio/test-freopen.sh: Likewise.
434         * malloc/tst-mtrace.sh: Likewise.
435         * posix/globtest.sh: Likewise.
436         * posix/tst-getconf.sh: Likewise.
437         * posix/wordexp-tst.sh: Likewise.
438         * stdio-common/tst-printf.sh: Likewise.
439         * stdio-common/tst-unbputc.sh: Likewise.
440         * stdlib/tst-fmtmsg.sh: Likewise.
441         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
442         * catgets/Makefile: Do not specify -e option when running
443         testsuite shell scripts.
444         * elf/Makefile: Likewise.
445         * grp/Makefile: Likewise.
446         * iconvdata/Makefile: Likewise.
447         * intl/Makefile: Likewise.
448         * io/Makefile: Likewise.
449         * libio/Makefile: Likewise.
450         * malloc/Makefile: Likewise.
451         * posix/Makefile: Likewise.
452         * stdio-common/Makefile: Likewise.
453         * stdlib/Makefile: Likewise.
454         * sysdeps/x86_64/Makefile: Likewise.
455
456         * io/ftwtest-sh: Add copyright header.
457         * posix/globtest.sh: Likewise.
458         * posix/tst-getconf.sh: Likewise.
459         * posix/wordexp-tst.sh: Likewise.
460         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
461
462 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
463
464         [BZ #13679]
465         * Makeconfig (+link): Defined as $(+link-static) if
466         $(build-shared) isn't yes.
467         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
468         isn't yes.
469         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
470
471         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
472
473         [BZ #14562]
474         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
475         new chunk size with MALLOC_ALIGN_MASK.
476
477 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
478
479         [BZ #5044]
480         * stdio-common/printf_fphex.c: Include <stdbool.h> and
481         <rounding-mode.h>.
482         (__printf_fphex): Determine rounding using get_rounding_mode and
483         round_away.
484         * stdio-common/tst-printf-round.c (struct hex_test): New
485         structure.
486         (hex_tests): New variable.
487         (test_hex_in_one_mode): New function.
488         (do_test): Also run tests for hex float output.
489
490 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
491
492         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
493         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
494         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
495         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
496         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
497         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
498         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
499         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
500
501 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
502
503         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
504         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
505         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
506         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
507
508 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
509
510         [BZ #14579]
511         * elf/rtld.c (dl_main): Limit the check for self loading to normal
512         mode only.
513         * elf/tst-rtld-load-self.sh: New test.
514         * elf/Makefile: Run it.
515
516 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
517
518         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
519         (tst-writev-ENV): Remove.
520         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
521
522 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
523
524         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
525
526 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
527
528         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
529         unconditional.
530         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
531         Likewise.
532         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
533         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
534         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
535         Likewise.
536
537 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
538
539         [BZ #14587]
540         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
541         * config.make.in (have-cpp-asm-debuginfo): Removed.
542         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
543         * configure: Regenerated.
544
545 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
546
547         [BZ #5044]
548         * stdio-common/printf_fp.c: Include <stdbool.h> and
549         <rounding-mode.h>.
550         (___printf_fp): Determine rounding using get_rounding_mode and
551         round_away.
552         * stdio-common/tst-printf-round.c: New file.
553         * stdio-common/Makefile (tests): Add tst-printf-round.
554         (link-libm): New variable.
555         ($(objpfx)tst-printf-round): Depend in $(link-libm).
556
557 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
558
559         [BZ #14576]
560         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
561         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
562         Likewise.
563         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
564         Likewise.
565
566 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
567
568         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
569         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
570         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
571         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
572
573 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
574
575         [BZ #14518]
576         * include/rounding-mode.h: New file.
577         * sysdeps/generic/get-rounding-mode.h: Likewise.
578         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
579         * stdlib/strtod_l.c: Include <rounding-mode.h>.
580         (MAX_VALUE): New macro.
581         (MIN_VALUE): Likewise.
582         (overflow_value): New function.
583         (underflow_value): Likewise.
584         (round_and_return): Use overflow_value and underflow_value to
585         determine return values in overflow and underflow cases.  Use
586         round_away to determine rounding depending on rounding mode.
587         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
588         determine return values in overflow and underflow cases.
589         * stdlib/tst-strtod-round.c: Include <fenv.h>.
590         (struct test_results): New structure.
591         (struct test): Use struct test_results to store expected results
592         for all rounding modes.
593         (TEST): Include expected results for all rounding modes.
594         (test_in_one_mode): New function.
595         (do_test): Use test_in_one_mode to compute and check results.
596         Check results for all rounding modes.
597         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
598         $(link-libm).
599
600 2012-12-09  Allan McRae  <allan@archlinux.org>
601
602         * sysdeps/i386/fpu/libm-test-ulps: Update
603
604 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
605
606         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
607         (_G_int32_t): Likewise.
608         (_G_uint16_t): Likewise.
609         (_G_uint32_t): Likewise.
610         (_G_HAVE_BOOL): Likewise.
611         (_G_HAVE_ATEXIT): Likewise.
612         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
613         (_G_HAVE_IO_FILE_OPEN): Likewise.
614         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
615         (_G_int32_t): Likewise.
616         (_G_uint16_t): Likewise.
617         (_G_uint32_t): Likewise.
618         (_G_HAVE_BOOL): Likewise.
619         (_G_HAVE_ATEXIT): Likewise.
620         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
621         (_G_HAVE_IO_FILE_OPEN): Likewise.
622         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
623         (_G_int32_t): Likewise.
624         (_G_uint16_t): Likewise.
625         (_G_uint32_t): Likewise.
626         (_G_HAVE_BOOL): Likewise.
627         (_G_HAVE_ATEXIT): Likewise.
628         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
629         (_G_HAVE_IO_FILE_OPEN): Likewise.
630
631 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
632
633         * csu/libc-tls.c: Update copyright years.
634
635 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
636
637         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
638         [!_G_USING_THUNKS]: Remove conditional code.
639         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
640         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
641
642         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
643         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
644         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
645         (_G_VTABLE_LABEL_PREFIX): Likewise.
646         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
647         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
648         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
649         (_G_VTABLE_LABEL_PREFIX): Likewise.
650         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
651         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
652         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
653         (_G_VTABLE_LABEL_PREFIX): Likewise.
654         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
655
656 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
657
658         * libio/Makefile: Include ../Makeconfig before tests.
659         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
660         only if $(build-shared) is yes.
661
662         * iconv/gconv_db.c: Update copyright years.
663
664 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
665
666         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
667         unwind info if defined PIC. Fix special cases description.
668         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
669
670         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
671         DP_HI_MASK entry.
672         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
673
674 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
675
676         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
677
678         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
679         is NULL.
680
681         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
682         (LDLIBS-tst-chk4): This.
683         (LDFLAGS-tst-chk5): Renamed to ...
684         (LDLIBS-tst-chk5): This.
685         (LDFLAGS-tst-chk6): Renamed to ...
686         (LDLIBS-tst-chk6): This.
687         (LDFLAGS-tst-lfschk4): Renamed to ...
688         (LDLIBS-tst-lfschk4): This.
689         (LDFLAGS-tst-lfschk5): Renamed to ...
690         (LDLIBS-tst-lfschk5): This.
691         (LDFLAGS-tst-lfschk6): Renamed to ...
692         (LDLIBS-tst-lfschk6): This.
693
694         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
695         on $(common-objpfx)soversions.mk.
696
697 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
698
699         [BZ #10014]
700         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
701         example host name.
702
703 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
704
705         * malloc/arena.c (arena_get_retry): New function that gets
706         another arena for the caller to try its request on.
707         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
708         current arena cannot fulfill the request.
709         (__libc_memalign): Likewise.
710         (__libc_memalign): Likewise.
711         (__libc_pvalloc): Likewise.
712         (__libc_calloc): Likewise.
713
714 2012-09-05  John Tobey  <john.tobey@gmail.com>
715
716         [BZ #13542]
717         * manual/arith.texi (Operations on Complex): Fix description
718         of carg branch cut.
719
720 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
721
722         [BZ #10014]
723         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
724         host name.
725
726         [BZ #10038]
727         * manual/memory.texi (Memory): Make order of menu items match
728         order of sections.
729
730 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
731
732         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
733         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
734         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
735
736 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
737
738         * csu/libc-tls.c (static_dtv): Renamed to ...
739         (_dl_static_dtv): This.  Make it global.
740         (_dl_initial_dtv): Removed.
741         (__libc_setup_tls): Updated.
742         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
743         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
744         DL_INITIAL_DTV.
745
746 2012-09-06  Petr Machata  <pmachata@redhat.com>
747
748         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
749         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
750         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
751         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
752
753 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
754
755         [BZ #14545]
756         * csu/libc-tls.c (_dl_initial_dtv): New variable.
757         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
758         freeing dtv[-1].
759
760 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
761
762         [BZ #14544]
763         * Makeconfig (link-static-before-libc): Replace $(+prector)
764         with $(+prectorT).
765         (link-static-after-libc): Replace $(+postctor) with
766         $(+postctorT).
767         (link-bounded): Replace $(+prector)/$(+postctor) with
768         $(+prectorT)/$(+postctorT).
769         (+prectorT): New macro.
770         (+postctorT): Likewise.
771
772 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
773
774         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
775         (round_str): Handle values above the maximum for IBM long double
776         as inexact.
777         * stdlib/tst-strtod-round.c (tests): Regenerated.
778
779 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
780
781         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
782         assembler flag.
783         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
784         zarch_nohighgprs around the zarch optimized routines.
785         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
786         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
787         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
788         for zarch.
789
790 2012-09-05  David S. Miller  <davem@davemloft.net>
791
792         * sysdeps/sparc/fpu/libm-test-ulps: Update.
793
794         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
795         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
796         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
797         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
798         entries.
799
800 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
801
802         * malloc/arena.c: Fold copyright years.
803         * malloc/mcheck.c, malloc/memusage.c: Likewise.
804
805 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
806
807         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
808
809 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
810
811         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
812
813 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
814
815         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
816         change internal state upon failure.
817
818 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
819
820         * malloc/mcheck.c (mcheck_check_all): Fix typo.
821         * malloc/memusage.c (mmap): Likewise.
822         (mmap64, mremap): Likewise.  Adjust name in comment.
823
824 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
825
826         * libio/fileops.c: Fix typos in comments.
827         * libio/oldfileops.c: Likewise.
828         * libio/wfileops.c: Likewise.
829
830 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
831
832         [BZ #1349]
833         * malloc/Makefile (tests): Add tst-malloc-usable test case.
834         (tst-malloc-usable-ENV): Set environment for test case.
835         * malloc/hooks.c (malloc_check_get_size): New function to get
836         requested size.
837         * malloc/malloc.c (musable): Use malloc_check_get_size.
838         * malloc/tst-malloc-usable.c: New test case.
839
840 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
841
842         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
843
844 2012-09-05  Allan McRae  <allan@archlinux.org>
845
846         [BZ #13966]
847         * configure.in (CXX_SYSINCLUDES): Use compiler output to
848         determine header location.
849         * configure: Regenerated.
850
851 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
852
853         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
854         float format.
855         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
856         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
857         format.
858         (test): Regenerate.
859
860 2012-09-04  David S. Miller  <davem@davemloft.net>
861
862         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
863         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
864         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
865
866 2012-09-04  Florian Weimer  <fweimer@redhat.com>
867
868         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
869         failures.
870
871         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
872
873 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
874
875         [BZ #9914]
876         * libio/iogetdelim.c: Include <limits.h>.
877         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
878         + len + 1 would overflow.
879
880 2012-09-03  Andreas Jaeger  <aj@suse.de>
881
882         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
883         * sysdeps/i386/fpu/libm-test-ulps: Update.
884
885 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
886
887         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
888         Add s_sinf-sse2, s_conf-sse2.
889
890         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
891         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
892         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
893         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
894
895         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
896         for using routine as __sinf_ia32.
897         Use macro for function declaration and weak_alias.
898         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
899         for using routine as __cosf_ia32.
900         Use macro for function declaration and weak_alias.
901
902         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
903         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
904
905         * sysdeps/x86_64/fpu/s_sinf.S: New file.
906         * sysdeps/x86_64/fpu/s_cosf.S: New file.
907         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
908
909         * math/libm-test.inc (cos_test): Add more test cases.
910         (sin_test): Likewise.
911         (sincos_test): Likewise.
912
913 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
914
915         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
916         (IFUNC_RESOLVE): Make pointers to the specialized implementations
917         hidden.
918         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
919
920 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
921
922         [BZ #14538]
923         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
924         first element of the GOT.
925         (elf_machine_load_address): Return the difference between
926         the runtime address of _DYNAMIC and elf_machine_dynamic ().
927
928 2012-09-01  Allan McRae  <allan@archlinux.org>
929
930         [BZ #13412]
931         * configure.in (AWK): Require gawk version 3.0 or later.
932         * configure: Regenerated.
933
934 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
935
936         * sysdeps/unix/sysv/linux/kernel-features.h
937         (__ASSUME_POSIX_CPU_TIMERS): Remove.
938         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
939         [__NR_clock_getres]: Make code unconditional.
940         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
941         (clock_getcpuclockid): Remove code left unreachable by removal of
942         conditionals.
943         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
944         code unconditional.
945         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
946         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
947         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
948         Make code unconditional.
949         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
950         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
951         * sysdeps/unix/sysv/linux/clock_settime.c
952         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
953         conditional code.
954         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
955         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
956
957 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
958
959         [BZ #14476]
960         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
961         scripts/test-installation.pl.
962
963         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
964         and $ld_so_version if it is set.
965
966 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
967
968         [BZ #14516]
969         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
970         failure if reading from procfs failed.
971         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
972
973 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
974
975         * sysdeps/unix/sysv/linux/kernel-features.h
976         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
977         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
978         Remove conditional code.
979         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
980         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
981         Remove conditional code.
982         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
983         * sysdeps/unix/sysv/linux/i386/fxstat.c
984         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
985         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
986         * sysdeps/unix/sysv/linux/i386/fxstatat.c
987         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
988         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
989         * sysdeps/unix/sysv/linux/i386/lxstat.c
990         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
991         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
992         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
993         Remove conditional code.
994         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
995         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
996         Remove conditional code.
997         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
998         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
999         <kernel-features.h>.
1000         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1001         Remove.
1002         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1003         Remove conditional code.
1004         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1005         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1006         Remove conditional.
1007
1008 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1009
1010         [BZ #5400]
1011         * NEWS: Add fixed bug number.
1012
1013 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1014
1015         [BZ #14519]
1016         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1017         underflowing exponent in case of negative sign.
1018         * stdlib/tst-strtod-round-data: Add more tests.
1019         * stdlib/tst-strtod-round.c (tests): Regenerated.
1020
1021         [BZ #3479]
1022         * stdlib/strtod_l.c (NDIG): Remove.
1023         (HEXNDIG): Likewise.
1024         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1025         smallest representable value.
1026         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1027         lie within an exact representation of 1/2 ulp of the result.
1028         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1029         unconditionally.
1030         (TENS_P9_IDX): Define unconditionally.
1031         (TENS_P9_SIZE): Likewise.
1032         (TENS_P10_IDX): Likewise.
1033         (TENS_P10_SIZE): Likewise.
1034         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1035         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1036         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1037         entries for 10^2^13 and 10^2^14.
1038         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1039         (TENS_P13_IDX): Define.
1040         (TENS_P13_SIZE): Likewise.
1041         (TENS_P14_IDX): Likewise.
1042         (TENS_P14_SIZE): Likewise.
1043         (_fpioconst_pow10): Change array size to
1044         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1045         unconditional.
1046         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1047         1024]: Add entries for 10^2^13 and 10^2^14.
1048         [LAST_POW10 > _LAST_POW10]: Remove #error.
1049         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1050         (_fpioconst_pow10): Change array size to
1051         FPIOCONST_POW10_ARRAY_SIZE.
1052         * stdlib/gen-fpioconst.c: New file.
1053         * stdlib/gen-tst-strtod-round.c: Likewise.
1054         * stdlib/tst-strtod-round-data: Likewise.
1055         * stdlib/tst-strtod-round.c: Likewise.
1056         * stdlib/Makefile (tests): Add tst-strtod-round.
1057
1058         [BZ #14459]
1059         * stdlib/strtod_l.c: Include <stdint.h>.
1060         (NDEBUG): Do not define.
1061         (round_and_return): Change EXPONENT parameter to type intmax_t.
1062         Rearrange calculations to avoid internal overflow possibilities.
1063         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1064         Rearrange calculations to avoid internal overflow possibilities.
1065         Assert that number fits inside MPNSIZE limbs.
1066         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1067         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1068         calculations and add assertions to avoid internal overflow
1069         possibilities.  Add casts to avoid signed/unsigned operations.
1070         * stdlib/tst-strtod-overflow.c: New file.
1071         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1072
1073 2012-08-25  Marek Polacek  <polacek@redhat.com>
1074
1075         * time/time.h: Fix some typos in comments.
1076
1077 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1078
1079         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1080         * posix/tst-rfc3484-2.c: Likewise.
1081         * posix/tst-rfc3484-3.c: Likewise.
1082
1083 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1084
1085         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1086         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1087
1088 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1089
1090         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1091         #include of fxstatat64.c.
1092
1093 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1094
1095         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1096         * shadow/getspent_r.c: Likewise.
1097         * shadow/getspnam.c: Likewise.
1098         * shadow/getspnam_r.c: Likewise.
1099         * gshadow/getsgent.c: Likewise.
1100         * gshadow/getsgent_r.c: Likewise.
1101         * gshadow/getsgnam.c: Likewise.
1102         * gshadow/getsgnam_r.c: Likewise.
1103         * inet/getnetbyad.c: Likewise.
1104         * inet/getnetbyad_r.c: Likewise.
1105         * inet/getnetbynm.c: Likewise.
1106         * inet/getnetbynm_r.c: Likewise.
1107         * inet/getnetent.c: Likewise.
1108         * inet/getnetent_r.c: Likewise.
1109         * inet/getproto.c: Likewise.
1110         * inet/getproto_r.c: Likewise.
1111         * inet/getprtent.c: Likewise.
1112         * inet/getprtent_r.c: Likewise.
1113         * inet/getprtname.c: Likewise.
1114         * inet/getprtname_r.c: Likewise.
1115         * inet/getrpcbyname.c: Likewise.
1116         * inet/getrpcbyname_r.c: Likewise.
1117         * inet/getrpcbynumber.c: Likewise.
1118         * inet/getrpcbynumber_r.c: Likewise.
1119         * inet/getrpcent.c: Likewise.
1120         * inet/getrpcent_r.c: Likewise.
1121         * inet/getaliasent.c: Likewise.
1122         * inet/getaliasent_r.c: Likewise.
1123         * inet/getaliasname.c: Likewise.
1124         * inet/getaliasname_r.c: Likewise.
1125         * nscd/getgrgid_r.c: Likewise.
1126         * nscd/getgrnam_r.c: Likewise.
1127         * nscd/gethstbyad_r.c: Likewise.
1128         * nscd/gethstbynm3_r.c: Likewise.
1129         * nscd/getpwnam_r.c: Likewise.
1130         * nscd/getpwuid_r.c: Likewise.
1131         * nscd/getsrvbynm_r.c: Likewise.
1132         * nscd/getsrvbypt_r.c: Likewise.
1133         * nscd/gai.c: Likewise.
1134
1135         * configure.in (build_nscd): New substituted variable, set
1136         by --disable-build-nscd and defaults to $use_nscd.
1137         * configure: Regenerated.
1138         * config.make.in (build-nscd): New substituted variable.
1139         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1140         Change conditional to require [$(build-nscd) = yes] as well.
1141         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1142
1143         [BZ# 13696]
1144         * configure.in (use_nscd): New substituted variable, set by
1145         --disable-nscd.  If enabled, define USE_NSCD.
1146         * configure: Regenerated.
1147         * config.h.in: Add USE_NSCD.
1148         * config.make.in (use-nscd): New substituted variable.
1149         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1150         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1151         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1152         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1153         (CFLAGS-getgrnam_r.c): Likewise.
1154         (CFLAGS-initgroups.c): Likewise.
1155         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1156         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1157         Variables removed.
1158         * inet/getnetgrent_r.c
1159         (nscd_setnetgrent): New function, broken out of ...
1160         (setnetgrent): ... here.  Call it.
1161         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1162         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1163         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1164         * nscd/Makefile (routines, aux): Move definitions after include of
1165         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1166         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1167         Conditionalize on [USE_NSCD].
1168         (is_nscd, nscd_init_cb): Likewise.
1169         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1170         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1171         * nss/nss_db/db-init.c: Likewise.
1172         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1173         [USE_NSCD].
1174         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1175         (make_request): Use it.
1176         (cache_valid_p): New function.
1177         (__check_pf): Use it.
1178         * NEWS: Add item for --disable-nscd.
1179
1180 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1181
1182         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1183         to support sed >= 4.2.1-20-ga9bf076.
1184         * configure: Regenerated.
1185
1186 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1187
1188         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1189         Conditionalize whole body on [IREL].
1190
1191 2012-08-22  Jeff Law <law@redhat.com>
1192
1193         [BZ #14505]
1194         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1195         if the family is PF_UNSPEC.
1196
1197 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1198
1199         * Makerules (lib-version): Rename from V.
1200         (install-lib-nosubdir): Change V to lib-version.
1201
1202 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1203
1204         [BZ #14252]
1205         * powerpc32/power6/wcschr.c: New file.
1206         * powerpc32/power6/wcscpy.c: New file.
1207         * powerpc32/power6/wcsrchr.c: New file.
1208         * powerpc64/power6/wcschr.c: New file.
1209         * powerpc64/power6/wcscpy.c: New file.
1210         * powerpc64/power6/wcsrchr.c: New file.
1211
1212 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1213
1214         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1215         (two_way_short_needle): Use it.
1216         * string/strstr.c (AVAILABLE1_USES_J): Define.
1217         * string/strcasestr.c: Likewise.
1218
1219         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1220         array references.
1221         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1222
1223         [BZ #11607]
1224         * NEWS: Add an entry.
1225         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1226         define their defaults.
1227         (two_way_short_needle): Detect end-of-string on-the-fly.
1228         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1229         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1230         * string/bug-strcasestr1.c: New test.
1231         * string/Makefile: Run it.
1232
1233 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1234
1235         [BZ #11607]
1236         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1237         the first character.
1238
1239 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1240
1241         * csu/elf-init.c (__libc_csu_irel): Function removed.
1242         * csu/libc-start.c (apply_irel): New function.
1243         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1244
1245 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1246
1247         * sysdeps/unix/sysv/linux/kernel-features.h
1248         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1249         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1250         <kernel-features.h>.
1251         [__NR_fadvise64_64]: Make code unconditional.
1252         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1253         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1254         !__NR_fadvise64_64)]: Likewise.
1255         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1256         !__NR_fadvise64_64))]: Likewise.
1257         [__NR_fadvise64]: Make code unconditional.
1258         [!__NR_fadvise64]: Remove conditional code.
1259         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1260         <kernel-features.h>.
1261         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1262         unconditional.
1263         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1264         conditional code.
1265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1266         not include <kernel-features.h>.
1267         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1268         unconditional.
1269         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1270         conditional code.
1271         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1272         include <kernel-features.h>.
1273         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1274         unconditional.
1275         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1276         conditional code.
1277
1278 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1279
1280         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1281         slight instruction rearrangements per scrollpipe analysis.
1282         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1283
1284 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1285
1286         * manual/syslog.texi (syslog; vsyslog, closelog):
1287         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1288         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1289
1290         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1291         DSOCAPS to match condition on defining it.
1292
1293 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1294
1295         * sysdeps/unix/sysv/linux/kernel-features.h
1296         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1298         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1299         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1301         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1302         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1304         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1305         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1306
1307         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1308         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1309
1310         * sysdeps/unix/sysv/linux/kernel-features.h
1311         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1312         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1313         unconditional.
1314         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1315         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1316         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1317         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1318         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1319         Make code unconditional.
1320         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1321         (__mmap64) [!__NR_mmap2]: Likewise.
1322         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1323         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1324         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1325         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1326         [__NR_mmap2]: Make code unconditional.
1327         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1328         (__mmap64) [!__NR_mmap2]: Likewise.
1329
1330 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1331
1332         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1333
1334 2012-08-18  Andreas Jaeger  <aj@suse.de>
1335
1336         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1337
1338 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1339
1340         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1341         * include/unistd.h (__have_sock_cloexec): Likewise.
1342         (__have_pipe2): Likewise.
1343         (__have_dup3): Likewise.
1344
1345 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1346
1347         [BZ #9685]
1348         * include/unistd.h (__have_pipe2): Change define into an extern int.
1349         (__have_dup3): Likewise.
1350         * socket/have_sock_cloexec.c: Include fcntl.h.
1351         (__have_pipe2): New variable.
1352         (__have_dup3): Likewise.
1353
1354 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1355
1356         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1357
1358 2012-08-17  Marek Polacek  <polacek@redhat.com>
1359
1360         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1361         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1362
1363 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1364
1365         * configure.in: Add AC_SUBST for sysheaders.
1366         * configure: Regenerated.
1367         * config.make.in (sysheaders): New substituted variable.
1368
1369         * sysdeps/unix/mkfifo.c: Moved ...
1370         * sysdeps/posix/mkfifo.c: ... here.
1371         * sysdeps/unix/mkfifoat.c: Moved ...
1372         * sysdeps/posix/mkfifoat.c: ... here.
1373
1374         * sysdeps/unix/utime.c: Moved ...
1375         * sysdeps/posix/utime.c: ... here.
1376
1377         * sysdeps/unix/time.c: Moved ...
1378         * sysdeps/posix/time.c: ... here.
1379         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1380         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1381
1382         * sysdeps/unix/nice.c: Moved ...
1383         * sysdeps/posix/nice.c: ... here.
1384
1385         * sysdeps/unix/alarm.c: Moved ...
1386         * sysdeps/posix/alarm.c: ... here.
1387
1388         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1389
1390 2012-08-17  Jeff Law <law@redhat.com>
1391
1392         * intl/Makefile (codeset_mo): New variable.
1393         ($(codeset_mo)): New target.
1394         (tst-codeset.out): Depend on that.  Remove explicit rule.
1395         (tst-gettext3.out, tst-gettext5.out): Likewise.
1396         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1397         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1398         * intl/tst-codeset.sh: Remove.
1399         * intl/tst-gettext3.sh: Likewise.
1400         * intl/tst-gettext5.sh: Likewise.
1401
1402 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1403
1404         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1405         * sysdeps/unix/syscalls.list: ... here.
1406
1407         * sysdeps/posix/getaddrinfo.c
1408         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1409         (gaiconf_init, gaiconf_reload): Use them.
1410         [!_STATBUF_ST_NSEC]
1411         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1412         Define using time_t rather than struct timespec.
1413
1414         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1415         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1416         Macros removed.
1417         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1418         [!NO_THREADS].
1419         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1420         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1421         Likewise.
1422
1423         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1424         __libc_cleanup_push argument.
1425
1426         * bits/param.h: New file.
1427         * misc/sys/param.h: New file.
1428         * include/sys/param.h: New file.
1429         * misc/Makefile (headers): Add bits/param.h.
1430         * sysdeps/generic/sys/param.h: File removed.
1431         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1432         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1433         * sysdeps/mach/hurd/bits/param.h: New file.
1434         * sysdeps/mach/hurd/sys/param.h: New file.
1435
1436         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1437         last change.
1438
1439         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1440         [_IO_MTSAFE_IO].
1441         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1442         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1443         New macros.
1444
1445         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1446         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1447         rather than -D_IO_MTSAFE_IO conditionally.
1448         * stdio-common/Makefile (CPPFLAGS): Likewise.
1449         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1450         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1451         Use $(libio-mtsafe).
1452         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1453         of -D_IO_MTSAFE_IO.
1454         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1455         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1456         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1457         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1458         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1459         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1460         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1461         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1462         (CFLAGS-fread_u_chk.c): Likewise.
1463         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1464         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1465         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1466         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1467         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1468         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1469         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1470         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1471         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1472
1473         * libio/Makefile: Test [$(libc-reentrant) = yes]
1474         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1475
1476         * Makeconfig
1477         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1478         * sysdeps/pthread/configure: File removed.
1479         * sysdeps/pthread/Makeconfig: New file.
1480         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1481         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1482
1483 2012-08-16  Gary Benson  <gbenson@redhat.com>
1484
1485         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1486         unmapping the first object in a namespace.
1487
1488 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1489
1490         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1491         (__internal_setnetgrent): ... this.  Add internal_function to
1492         definition.  Add libc_hidden_def.
1493         (setnetgrent): Update caller.
1494         (internal_endnetgrent): Renamed to ...
1495         (__internal_endnetgrent): ... this.  Add internal_function to
1496         definition.  Add libc_hidden_def.
1497         (endnetgrent): Update caller.
1498         (internal_getnetgrent_r): Renamed to ...
1499         (__internal_getnetgrent_r): ... this.  Add internal_function to
1500         definition.  Add libc_hidden_def.
1501         (__getnetgrent_r): Update caller.
1502         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1503
1504 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1505
1506         * stdlib/longlong.h: Update from GCC.
1507
1508 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1509
1510         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1511         on _QL, which is set by umul_ppmm but never used.
1512         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1513         variables, which are set by GMP macros but never used.
1514         * stdio-common/_itowa.c (_itowa): Likewise.
1515         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1516         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1517
1518 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1519
1520         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1521         struct La_sh_regs is not constant.
1522         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1523         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1524         and struct La_sparc64_regs are not constant.
1525
1526 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1527
1528         * sysdeps/unix/sysv/linux/kernel-features.h
1529         (__ASSUME_POSIX_TIMERS): Remove.
1530         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1531         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1532         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1533         Make code unconditional.
1534         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1535         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1536         Make code unconditional.
1537         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1538         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1539         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1540         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1541         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1542         Make code unconditional.
1543         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1544         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1545         (__libc_missing_posix_timers): Remove.
1546
1547 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1548
1549         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1550         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1551
1552         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1553
1554         * elf/dl-sym.c: Include <stdlib.h>.
1555
1556         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1557         constants, which avoids warnings in 32-bit builds.
1558
1559         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1560         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1561
1562         * misc/lseek.c: File moved to ...
1563         * io/lseek.c: ... here.
1564
1565         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1566
1567         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1568         shifting LEN more than 31 bits at once.
1569
1570 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1571
1572         [BZ #14195]
1573         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1574         segmentation fault for a case of two empty input strings.
1575         * string/test-strncasecmp.c (check1): Renamed to...
1576         (bz12205): ...this.
1577         (bz14195): Add new testcase for two empty input strings and N > 0.
1578         (test_main): Call new testcase, adapt for renamed function.
1579
1580 2012-08-15  Andreas Jaeger  <aj@suse.de>
1581
1582         [BZ #14090]
1583         * crypt/md5test2.c: New test, based on test supplied by Serge
1584         Belyshev <belyshev@depni.sinp.msu.ru>.
1585         * crypt/Makefile (xtests): Add md5test-giant..
1586         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1587
1588 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1589
1590         [BZ #14090]
1591         * crypt/md5.c (md5_process_block): Don't assume the buffer
1592         length is less than 2**32.
1593         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1594         length is less than 2**64.
1595
1596 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1597
1598         * string/str-two-way.h: Include <sys/param.h>.
1599         (MAX): Macro removed.
1600
1601         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1602         Move #define and #undef of memmove to just before and after
1603         including <string.h>.
1604
1605         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1606         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1607         and after including <string.h>.  Move declarations of
1608         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1609         to before #include "string/memmove.c".
1610
1611         * include/dirent.h: Declare __getdirentries.
1612
1613         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1614         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1615
1616 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1617
1618         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1619         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1620         * sysdeps/i386/configure: Regenerated.
1621         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1622         STABS_CURRENT_FILE, and STABS_FUN.
1623         (END): Remove call to STABS_FUN_END.
1624         (STABS_CURRENT_FILE1): Delete.
1625         (STABS_CURRENT_FILE): Likewise.
1626         (STABS_FUN): Likewise.
1627         (STABS_FUN_END): Likewise.
1628         (STABS_FUN2): Likewise.
1629         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1630         * sysdeps/x86_64/configure: Regenerated.
1631
1632 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1633
1634         * elf/dl-open.c: Include <atomic.h>.
1635         * elf/dl-lookup.c: Likewise.
1636
1637 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1638
1639         * sysdeps/unix/sysv/linux/kernel-features.h
1640         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1641         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1642         unconditionally.
1643         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1644         unconditionally.
1645         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1646         condition on __ASSUME_CLONE_THREAD_FLAGS.
1647
1648 2012-08-14  Andreas Jaeger  <aj@suse.de>
1649
1650         * sysdeps/i386/fpu/libm-test-ulps: Update.
1651
1652 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1653
1654         * include/atomic.h (atomic_exchange_and_add): Split into ...
1655         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1656         New atomic macros.
1657
1658 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1659
1660         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1661
1662 2012-08-13  Jeff Law <law@redhat.com>
1663
1664         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1665         null byte in the output string.
1666
1667 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1668
1669         * sysdeps/unix/sysv/linux/kernel-features.h
1670         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1671         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1672         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1673         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1674         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1675         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1676         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1677
1678 2012-08-09  Jeff Law <law@redhat.com>
1679
1680         [BZ #13939]
1681         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1682         When avoid_arena is set, don't retry in the that arena.  Pick the
1683         next one, whatever it might be.
1684         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1685         (arena_lock): Pass in new parameter to arena_get2.
1686         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1687         arena_get2.
1688         (__libc_malloc): Unify retrying after main arena failure with
1689         __libc_memalign version.
1690         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1691
1692 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1693
1694         [BZ #14166]
1695         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1696         to __redirect_strstr.
1697         (__strstr_sse42): Use typeof __redirect_strstr.
1698         (__strstr_ia32): Likewise.
1699         (__libc_strstr): New prototype.
1700         (strstr): Renamed to ...
1701         (__libc_strstr): This.
1702         (strstr): New strong alias of __libc_strstr.
1703         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1704         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1705         __redirect_time.
1706         Include <time.h>.
1707         (__libc_time): New prototype.
1708         (time_ifunc): Replace time with __libc_time.
1709         (time): New strong alias and hidden definition of __libc_time.
1710         (__GI_time): Remove strong alias.
1711         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1712         Include <stddef.h>.
1713         (memmove): Redefined to __redirect_memmove.
1714         (__memmove_sse2): Use typeof __redirect_memmove.
1715         (__memmove_ssse3): Likewise.
1716         (__memmove_ssse3_back): Likewise.
1717         (__libc_memmove): New prototype.
1718         (memmove): Renamed to ...
1719         (__libc_memmove): This.
1720         (memmove): New strong alias of __libc_memmove.
1721
1722 2012-08-08  Mark Salter  <msalter@redhat.com>
1723
1724         * elf/elf.h
1725         (R_MN10300_TLS_GD): Define.
1726         (R_MN10300_TLS_LD): Likewise.
1727         (R_MN10300_TLS_LDO): Likewise.
1728         (R_MN10300_TLS_GOTIE): Likewise.
1729         (R_MN10300_TLS_IE): Likewise.
1730         (R_MN10300_TLS_LE): Likewise.
1731         (R_MN10300_TLS_DTPMOD): Likewise.
1732         (R_MN10300_TLS_DTPOFF): Likewise.
1733         (R_MN10300_TLS_TPOFF): Likewise.
1734         (R_MN10300_SYM_DIFF): Likewise.
1735         (R_MN10300_ALIGN): Likewise.
1736         (R_MN10300_NUM): Update.
1737
1738 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1739
1740         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1741         Remove.
1742
1743 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1744
1745         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1746
1747         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1748         sysdeps/unix -> sysdeps/posix move.
1749         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1750
1751 2012-08-07      Allan McRae     <allan@archlinux.org>
1752
1753         [BZ #14303]
1754         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1755         (SUNOS_CPP): Likewise.
1756         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1757         not found.
1758         (open_input): Call CPP using execvp.
1759
1760 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1761
1762         * sysdeps/unix/sysv/linux/kernel-features.h
1763         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1764         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1765         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1766         (__ASSUME_WAITID_SYSCALL): Likewise.
1767         * sysdeps/unix/sysv/linux/dl-execstack.c
1768         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1769         code unconditional.
1770         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1771         conditional code.
1772         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1773         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1774         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1775         code.
1776         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1777         unconditional.
1778         [__ASSUME_WAITID_SYSCALL]: Likewise.
1779         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1780
1781 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1782
1783         * sysdeps/unix/closedir.c: Renamed to ...
1784         * sysdeps/posix/closedir.c: ... here.
1785         * sysdeps/unix/dirfd.c: Renamed to ...
1786         * sysdeps/posix/dirfd.c: ... here.
1787         * sysdeps/unix/dirstream.h: Renamed to ...
1788         * sysdeps/posix/dirstream.h: ... here.
1789         * sysdeps/unix/fdopendir.c: Renamed to ...
1790         * sysdeps/posix/fdopendir.c: ... here.
1791         * sysdeps/unix/opendir.c: Renamed to ...
1792         * sysdeps/posix/opendir.c: ... here.
1793         * sysdeps/unix/readdir.c: Renamed to ...
1794         * sysdeps/posix/readdir.c: ... here.
1795         * sysdeps/unix/readdir_r.c: Renamed to ...
1796         * sysdeps/posix/readdir_r.c: ... here.
1797         * sysdeps/unix/rewinddir.c: Renamed to ...
1798         * sysdeps/posix/rewinddir.c: ... here.
1799         * sysdeps/unix/seekdir.c: Renamed to ...
1800         * sysdeps/posix/seekdir.c: ... here.
1801         * sysdeps/unix/telldir.c: Renamed to ...
1802         * sysdeps/posix/telldir.c: ... here.
1803         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1804         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1805         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1806         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1807
1808         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1809         * bits/fcntl.h: ... here.
1810
1811         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1812         not 0.
1813         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1814         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1815         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1816         (struct flock): Move l_start, l_len to the beginning.
1817         Use __pid_t for l_pid.
1818         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1819         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1820         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1821         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1822         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1823         [__USE_LARGEFILE64] (struct flock64): New type.
1824         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1825
1826         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1827         * bits/dirent.h: ... here.
1828
1829         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1830         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1831
1832 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1833
1834         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1835         Change from 2.6.0 to 2.6.16.
1836         * sysdeps/unix/sysv/linux/configure: Regenerated.
1837         * sysdeps/unix/sysv/linux/kernel-features.h
1838         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1839         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1840         version.
1841         (__ASSUME_UTIMES): Likewise.
1842         (__ASSUME_CLONE_STOPPED): Remove.
1843         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1844         architectures, not kernel version.
1845         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1846         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1847         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1848         (__ASSUME_WAITID_SYSCALL): Likewise.
1849         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1850         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1851         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1852         refer to older versions.
1853
1854 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1855
1856         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1857         Define alphasort64 as an alias.
1858         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1859         Define versionsort64 as an alias.
1860         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1861         Define scandir64 as an alias.
1862         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1863         Define scandirat64 as an alias.
1864         * dirent/alphasort64.c (alphasort64):
1865         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1866         * dirent/versionsort64.c: Likewise.
1867         * dirent/scandir64.c: Likewise.
1868         * dirent/scandirat64.c: Likewise.
1869         * sysdeps/wordsize-64/alphasort.c: File removed.
1870         * sysdeps/wordsize-64/alphasort64.c: File removed.
1871         * sysdeps/wordsize-64/scandir.c: File removed.
1872         * sysdeps/wordsize-64/scandir64.c: File removed.
1873         * sysdeps/wordsize-64/scandirat.c: File removed.
1874         * sysdeps/wordsize-64/scandirat64.c: File removed.
1875         * sysdeps/wordsize-64/versionsort.c: File removed.
1876         * sysdeps/wordsize-64/versionsort64.c: File removed.
1877         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1878         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1879         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1880         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1881         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1882         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1883         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1884         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1885
1886         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1887         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1888         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1889         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1890         [defined __arch64__ || defined __sparcv9]
1891         (__INO_T_MATCHES_INO64_T): New macro.
1892         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1893         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1894         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1895         * sysdeps/unix/sysv/linux/bits/dirent.h
1896         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1897         (_DIRENT_MATCHES_DIRENT64): New macro.
1898
1899         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1900         Define lockf64 as an alias.
1901         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1902         Define fseeko64 as an alias.
1903         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1904         Define ftello64 as an alias.
1905         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1906         Define _IO_fgetpos64 and fgetpos64 as aliases.
1907         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1908         Define _IO_fsetpos64 and fsetpos64 as aliases.
1909         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1910         Conditionalize body on this.
1911         * libio/fseeko64.c: Likewise.
1912         * libio/ftello64.c: Likewise.
1913         * libio/iofgetpos64.c: Likewise.
1914         * libio/iofsetpos64.c: Likewise.
1915         * sysdeps/wordsize-64/lockf.c: File removed.
1916         * sysdeps/wordsize-64/lockf64.c: File removed.
1917         * sysdeps/wordsize-64/fseeko.c: File removed.
1918         * sysdeps/wordsize-64/fseeko64.c: File removed.
1919         * sysdeps/wordsize-64/ftello.c: File removed.
1920         * sysdeps/wordsize-64/ftello64.c: File removed.
1921         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1922         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1923         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1924         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1925         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1926         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1927         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1928         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1929         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1930         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1931         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1932         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1933         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1934         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1935
1936         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1937         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1938         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1939         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1940         [defined __arch64__ || defined __sparcv9]
1941         (__OFF_T_MATCHES_OFF64_T): New macro.
1942         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1943         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1944         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1945         (__OFF_T_MATCHES_OFF64_T): New macro.
1946
1947 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1948
1949         * stdlib/secure-getenv.c (__secure_getenv): Replace
1950         GLIBC_2_16 with GLIBC_2_17.
1951
1952 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1953
1954         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1955         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1956
1957 2012-08-03  David S. Miller  <davem@davemloft.net>
1958
1959         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1960
1961 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1962
1963         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1964         Remove.
1965         (__ASSUME_CORRECT_SI_PID): Likewise.
1966         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1967         (__ASSUME_TMPFS_NAME): Likewise.
1968         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1969         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1970         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1971         (HAVE_AUX_SECURE): Make definition unconditional.
1972         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1973         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1974
1975 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1976
1977         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1978         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1979         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1980         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1981         __eloop_threshold instead of SYMLOOP_MAX.
1982
1983         * sysdeps/generic/eloop-threshold.h: New file.
1984         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1985         of MAXSYMLINKS.
1986         * elf/chroot_canon.c (chroot_canon): Likewise.
1987
1988 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1989
1990         [BZ #13717]
1991         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1992         Change to 2.6.0 everywhere.
1993         * sysdeps/unix/sysv/linux/configure: Regenerated.
1994         * sysdeps/unix/sysv/linux/kernel-features.h
1995         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1996         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1997         kernel versions.
1998         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1999         (__ASSUME_FUTEX_REQUEUE): Remove.
2000         (__ASSUME_STATFS64): Define unconditionally.
2001         (__ASSUME_AT_SECURE): Likewise.
2002         (__ASSUME_CORRECT_SI_PID): Likewise.
2003         (__ASSUME_TGKILL): Define without depending on kernel version for
2004         i386.
2005         (__ASSUME_UTIMES): Likewise.
2006         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2007         kernel version.
2008         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2009         (__ASSUME_TMPFS_NAME): Likewise.
2010         * README: Update reference to Linux kernel versions.
2011
2012 2012-08-02  Marek Polacek  <polacek@redhat.com>
2013
2014         [BZ# 14150]
2015         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2016         libc_cv_asm_type_prefix with %.
2017         * configure: Regenerated.
2018         * include/libc-symbols.h: Remove comment about
2019         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2020         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2021         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2022         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2023         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2024         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2025         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2026         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2027         * elf/tst-unique2mod1.c: Likewise.
2028         * elf/tst-unique1mod2.c: Likewise.
2029         * elf/tst-unique1mod1.c: Likewise.
2030         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2031         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2032         Replace ASM_TYPE_DIRECTIVE with .type.
2033         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2034         * sysdeps/i386/sysdep.h: Likewise.
2035         * sysdeps/x86_64/sysdep.h: Likewise.
2036         * sysdeps/sh/sysdep.h: Likewise.
2037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2038         Do not define ASM_TYPE_DIRECTIVE.
2039         * sysdeps/powerpc/sysdep.h: Likewise.
2040         * sysdeps/powerpc/powerpc32/sysdep.h:
2041         Replace ASM_TYPE_DIRECTIVE with .type.
2042         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2043         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2044         * sysdeps/i386/fpu/e_powf.S: Likewise.
2045         * sysdeps/i386/fpu/e_expl.S: Likewise.
2046         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2047         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2048         * sysdeps/i386/fpu/e_pow.S: Likewise.
2049         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2050         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2051         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2052         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2053         * sysdeps/i386/fpu/e_log2.S: Likewise.
2054         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2055         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2056         * sysdeps/i386/fpu/e_powl.S: Likewise.
2057         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2058         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2059         * sysdeps/i386/fpu/e_logl.S: Likewise.
2060         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2061         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2062         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2063         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2064         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2065         * sysdeps/i386/fpu/e_log.S: Likewise.
2066         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2067         * sysdeps/i386/fpu/e_logf.S: Likewise.
2068         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2069         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2070         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2071         * sysdeps/i386/fpu/e_log10.S: Likewise.
2072         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2073         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2074         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2075         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2076         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2077         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2078         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2079         * sysdeps/i386/i686/strtok.S: Likewise.
2080         * sysdeps/i386/i386-mcount.S: Likewise.
2081         * sysdeps/i386/strtok.S: Likewise.
2082         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2083         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2084         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2085         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2086         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2087         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2088         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2089         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2090         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2091         * sysdeps/x86_64/_mcount.S: Likewise.
2092         * sysdeps/x86_64/strtok.S: Likewise.
2093         * sysdeps/sh/_mcount.S: Likewise.
2094
2095 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2096
2097         * libio/iofopen.c: Include <fcntl.h>.
2098         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2099         (_IO_fopen64, fopen64): Define as aliases.
2100         * libio/iofopen64.c: Include <fcntl.h>.
2101         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2102         Conditionalize body on this.
2103         * sysdeps/wordsize-64/iofopen.c: File removed.
2104         * sysdeps/wordsize-64/iofopen64.c: File removed.
2105
2106 2012-08-01  Marek Polacek  <polacek@redhat.com>
2107
2108         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2109         Use dlfcn directly instead of a variable.
2110         (binfmt-subdir): Do not define.
2111         (dlfcn): Likewise.
2112
2113 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2114
2115         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2116         Remove all definitions.
2117         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2118         <kernel-features.h>.
2119         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2120         (miss_F_GETOWN_EX): Remove all definitions.
2121         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2122         macro definition.
2123         [!__ASSUME_FCNTL64]: Remove conditional code.
2124         [__ASSUME_FCNTL64]: Make code unconditional.
2125         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2126         <kernel-features.h>.
2127         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2128         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2129         (lockf64) [__NR_fcntl64]: Make code unconditional.
2130         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2131
2132         * sysdeps/unix/sysv/linux/kernel-features.h
2133         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2134         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2135         Make code unconditional.
2136         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2137         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2139         [__NR_vfork]: Make code unconditional.
2140         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2141         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2143         [__NR_vfork]: Make code unconditional.
2144         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2145         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2146
2147 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2148
2149         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2150         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2151
2152         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2153         Define mkstemp64 as an alias.
2154         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2155         Define mkstemps64 as an alias.
2156         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2157         Define mkostemp64 as an alias.
2158         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2159         Define mkostemps64 as an alias.
2160         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2161         Conditionalize body on this.
2162         * misc/mkostemp64.c: Likewise.
2163         * misc/mkostemps64.c: Likewise.
2164         * misc/mkstemps64.c: Likewise.
2165         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2166         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2167         * sysdeps/wordsize-64/mkostemp.c: File removed.
2168         * sysdeps/wordsize-64/mkstemp.c: File removed.
2169         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2170         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2171         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2172         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2173
2174         [BZ #14138]
2175         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2176         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2177         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2178         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2179
2180         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2181         compat_symbol macros from <shlib-compat.h> rather than the underlying
2182         default_symbol_version and symbol_version macros, so that DEFAULT
2183         lines in shlib-versions are respected.
2184         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2185
2186 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2187
2188         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2189         Declare with warn_unused_result.
2190         (setgid, setregid, setegid, setresgid): Likewise.
2191         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2192         Likewise.
2193         * WUR-REPORT: Remove set*id functions.
2194
2195 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2196
2197         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2198
2199 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2200
2201         * include/sys/socket.h (__libc_accept, __libc_accept4):
2202         Add attribute_hidden.
2203         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2204
2205         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2206         use of PTR_MANGLE.
2207         * inet/getnetgrent_r.c (setup): Likewise.
2208
2209         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2210
2211 2012-07-31  David S. Miller  <davem@davemloft.net>
2212
2213         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2214
2215 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2216
2217         [BZ #13629]
2218         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2219         value between 1.0 and 2.0 and smaller part has absolute value less
2220         than 1.0.
2221         * math/s_clog10.c (__clog10): Likewise.
2222         * math/s_clog10f.c (__clog10f): Likewise.
2223         * math/s_clog10l.c (__clog10l): Likewise.
2224         * math/s_clogf.c (__clogf): Likewise.
2225         * math/s_clogl.c (__clogl): Likewise.
2226         * math/libm-test.inc (clog_test): Add more tests.
2227         (clog10_test): Likewise.
2228         * sysdeps/i386/fpu/libm-test-ulps: Update.
2229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2230
2231 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2232
2233         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2234         Exit with zero in case no suitable GID is found, and write a
2235         message to standard error.
2236
2237 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2238
2239         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2240         rather than to 1.
2241         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2242         (MAXPATHLEN): Removed.
2243         (NOGROUP, NODEV): New macros.
2244         (setbit, clrbit, isset, isclr): New macros.
2245         (howmany, roundup, powerof2): New macros.
2246         (DEV_BSIZE): New macro.
2247
2248         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2249         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2250
2251         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2252         definition on [!__NO_LONG_DOUBLE_MATH].
2253
2254         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2255         PTR_MANGLE and PTR_DEMANGLE.
2256
2257         * socket/accept4.c (accept4): Rename to __libc_accept4.
2258         Define accept4 as a weak alias.
2259
2260         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2261         on [_DIRENT_HAVE_D_TYPE].
2262         * io/ftw.c (ftw_dir): Likewise.
2263
2264         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2265
2266         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2267
2268         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2269         Use the BSD numbers rather than the arbitrary ones we had.
2270         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2271         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2272         (SIGXCPU, SIGXFSZ): New macros.
2273         (_NSIG): Now 32.
2274
2275         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2276         initializer on [_LIBC_REENTRANT].
2277
2278         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2279         definitions inside [_POSIX_MAPPED_FILES].
2280
2281         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2282
2283         * dirent/opendir.c: Include <fcntl.h>.
2284
2285         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2286         (__libc_getspecific): Likewise.
2287         (__libc_key_create): Likewise.
2288
2289         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2290         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2291         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2292         (tmpfile64): Define as alias.
2293         * sysdeps/wordsize-64/tmpfile.c: File removed.
2294         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2295         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2296         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2297
2298         * stdio-common/vfscanf.c: Include <stdbool.h>.
2299         * nss/makedb.c: Likewise.
2300         * stdio-common/_i18n_number.h: Likewise.
2301         * argp/argp-help.c: Likewise.
2302         * posix/wordexp.c: Likewise.
2303         * sysdeps/posix/spawni.c: Likewise.
2304         * nss/nss_files/files-initgroups.c: Likewise.
2305         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2306         * nss/nss_files/files-initgroups.c: Likewise.
2307         * nss/nss_db/db-netgrp.c: Likewise.
2308         * nss/nss_db/db-initgroups.c: Likewise.
2309         * io/fchmodat.c: Include <sys/stat.h>.
2310
2311         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2312         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2313
2314         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2315         [HAVE_MMAP].
2316
2317         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2318         Add multiple inclusion protection.
2319
2320 2012-07-27  David S. Miller  <davem@davemloft.net>
2321
2322         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2323
2324 2012-07-27  Gary Benson  <gbenson@redhat.com>
2325
2326         [BZ #14298]
2327         * elf/rtld.c: Include <stap-probe.h>.
2328         (dl_main): Added static probes "init_start" and "init_complete".
2329         * elf/dl-load.c: Include <stap-probe.h>.
2330         (lose): Take new parameter "nsid".
2331         Added static probe "map_failed".
2332         (_dl_map_object_from_fd): Pass namespace id to lose.
2333         Added static probe "map_start".
2334         (open_verify): Pass namespace id to lose.
2335         * elf/dl-open.c: Include <stap-probe.h>.
2336         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2337         and "reloc_complete".
2338         * elf/dl-close.c: Include <stap-probe.h>.
2339         (_dl_close_worker): Added static probes "unmap_start" and
2340         "unmap_complete".
2341         * elf/rtld-debugger-interface.txt: New file documenting the above.
2342
2343 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2344
2345         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2346         rather than a string variable.
2347         * sunrpc/rpc_main.c (h_output): Likewise.
2348         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2349
2350 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2351
2352         * inet/check_native.c: New file.
2353
2354 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2355
2356         [BZ #13629]
2357         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2358         if larger part has absolute value 1.0.
2359         * math/s_clog10.c (__clog10): Likewise.
2360         * math/s_clog10f.c (__clog10f): Likewise.
2361         * math/s_clog10l.c (__clog10l): Likewise.
2362         * math/s_clogf.c (__clogf): Likewise.
2363         * math/s_clogl.c (__clogl): Likewise.
2364         * math/libm-test.inc (clog_test): Add more tests.
2365         (clog10_test): Likewise.
2366         * sysdeps/i386/fpu/libm-test-ulps: Update.
2367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2368
2369         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2370         (pltexit): Likewise.
2371         (La_regs): Likewise.
2372         (La_retval): Likewise.
2373         (int_retval): Likewise.
2374         Update #error for removed macros to refer only to definitions in
2375         tst-audit.h.
2376         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2377         macro.
2378         (pltexit): Likewise.
2379         (La_regs): Likewise.
2380         (La_retval): Likewise.
2381         (int_retval): Likewise.
2382         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2383         macro.
2384         (pltexit): Likewise.
2385         (La_regs): Likewise.
2386         (La_retval): Likewise.
2387         (int_retval): Likewise.
2388         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2389         macro.
2390         (pltexit): Likewise.
2391         (La_regs): Likewise.
2392         (La_retval): Likewise.
2393         (int_retval): Likewise.
2394         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2395         macro.
2396         (pltexit): Likewise.
2397         (La_regs): Likewise.
2398         (La_retval): Likewise.
2399         (int_retval): Likewise.
2400         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2401         macro.
2402         (pltexit): Likewise.
2403         (La_regs): Likewise.
2404         (La_retval): Likewise.
2405         (int_retval): Likewise.
2406         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2407         macro.
2408         (pltexit): Likewise.
2409         (La_regs): Likewise.
2410         (La_retval): Likewise.
2411         (int_retval): Likewise.
2412         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2413         macro definitions in tst-audit.h.
2414         * sysdeps/i386/tst-audit.h: New file.
2415         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2416         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2417         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2418         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2419         * sysdeps/sh/tst-audit.h: Likewise.
2420         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2421         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2422         * sysdeps/x86_64/tst-audit.h: Likewise.
2423
2424 2012-07-26  Andreas Jaeger  <aj@suse.de>
2425
2426         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2427         ptrace.
2428
2429         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2430         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2431         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2432         PTRACE_O_MASK.
2433         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2434         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2435         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2436
2437         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2438         value.
2439
2440         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2441         _sigsys.
2442         (si_call_addr, si_syscall, si_arch): Define new macro.
2443         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2444         _sigsys.
2445         (si_call_addr, si_syscall, si_arch): Define new marcro.
2446         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2447         _sigsys.
2448         (si_call_addr, si_syscall, si_arch): Define new macro.
2449         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2450         _sigsys.
2451         (si_call_addr, si_syscall, si_arch): Define new macro.
2452
2453 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2454
2455         [BZ #13717]
2456         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2457         Change to 2.4.21 where previously 2.4.1.
2458         * sysdeps/unix/sysv/linux/configure: Regenerated.
2459         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2460         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2461         Linux kernel version.
2462         (__ASSUME_STD_AUXV): Remove.
2463         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2464         kernel version.
2465         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2466         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2467         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2468         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2469         (__ASSUME_NETLINK_SUPPORT): Likewise.
2470         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2471         (__no_netlink_support): Remove conditional definition.
2472         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2473         Remove.
2474         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2475         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2476         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2477         (if_nameindex_ioctl): Remove.
2478         (if_nameindex_netlink): Do not handle __no_netlink_support.
2479         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2480         code.
2481         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2482         Remove conditional code.
2483         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2484         code.
2485         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2486         unconditional.
2487         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2488         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2489         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2490         Remove.
2491         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2492         [!__ASSUME_STD_AUXV]: Remove conditional code.
2493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2494         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2495         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2497         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2498         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2499         code.
2500         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2502         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2503         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2504         conditional code.
2505         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2507         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2508         code.
2509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2510         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2511         conditional code.
2512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2513         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2514         code unconditional.
2515         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2516         conditional code.
2517         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2518         unconditional.
2519         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2520         conditional code.
2521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2522         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2523         unconditional.
2524         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2525         conditional code.
2526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2527         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2528         code unconditional.
2529         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2530         conditional code.
2531         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2532         unconditional.
2533         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2534         conditional code.
2535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2536         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2537         code unconditional.
2538         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2539         conditional code.
2540         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2541         unconditional.
2542         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2543         conditional code.
2544
2545 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2546
2547         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2548         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2549         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2550         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2551         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2552         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2553         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2554         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2555         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2556         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2557         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2558         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2559         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2560         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2561         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2562         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2563         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2564         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2565         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2566         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2567         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2568         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2569         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2570
2571 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2572
2573         * Versions.def: Add GLIBC_2.17.
2574         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2575         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2576         Introduce __libc_secure_getenv.
2577         * stdlib/Versions (2.17): Add secure_getenv
2578         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2579         * stdlib/secure-getenv.c: Rename __secure_getenv to
2580         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2581         symbol __secure_getenv for GLIBC_2.0.
2582         * stdlib/tst-secure-getenv.c: New.
2583         * stdlib/Makefile (tests): Add testcase.
2584         * manual/startup.texi (Environment Access): Document
2585         secure_getenv.
2586         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2587         __libc_secure_getenv.
2588         * inet/ruserpass.c (ruserpass): Likewise.
2589         * malloc/mtrace.c (mtrace): Likewise.
2590         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2591         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2592         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2593         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2594         HAVE_SECURE_GETENV.
2595         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2596         __secure_getenv to __libc_secure_getenv.
2597         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2599         Likewise.
2600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2601         Likewise.
2602         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2603         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2604         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2605         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2606         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2607         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2608         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2609
2610 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2611
2612         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2613         (struct La_i86_retval): Likewise.
2614         (struct La_x86_64_regs): Likewise.
2615         (struct La_x86_64_retval): Likewise.
2616         (struct La_x32_regs): Likewise.
2617         (struct La_x32_retval): Likewise.
2618         (struct La_ppc32_regs): Likewise.
2619         (struct La_ppc32_retval): Likewise.
2620         (struct La_ppc64_regs): Likewise.
2621         (struct La_ppc64_retval): Likewise.
2622         (struct La_sh_regs): Likewise.
2623         (struct La_sh_retval): Likewise.
2624         (struct La_s390_32_regs): Likewise.
2625         (struct La_s390_32_retval): Likewise.
2626         (struct La_s390_64_regs): Likewise.
2627         (struct La_s390_64_retval): Likewise.
2628         (struct La_sparc32_regs): Likewise.
2629         (struct La_sparc32_retval): Likewise.
2630         (struct La_sparc64_regs): Likewise.
2631         (struct La_sparc64_retval): Likewise.
2632         (struct audit_ifaces): Remove architecture-specific pltenter and
2633         pltexit members.
2634         * sysdeps/i386/ldsodefs.h: New file.
2635         * sysdeps/powerpc/ldsodefs.h: Likewise.
2636         * sysdeps/s390/ldsodefs.h: Likewise.
2637         * sysdeps/sh/ldsodefs.h: Likewise.
2638         * sysdeps/sparc/ldsodefs.h: Likewise.
2639         * sysdeps/x86_64/ldsodefs.h: Likewise.
2640
2641 2012-07-25  Marek Polacek  <polacek@redhat.com>
2642
2643         [BZ #6808]
2644         * math/libm-test.inc (yn_test): Add another test.
2645         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2646         to ERANGE when the result is +-Inf.
2647         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2648         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2649         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2650         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2651
2652 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2653
2654         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2655         equal to 0.
2656         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2657         clock_t.
2658         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2659
2660 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2661
2662         * configure.in <sysdeps resolving>: Correct printing
2663         Implies_before.
2664         * configure: Regenerate.
2665
2666 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2667
2668         * math/w_ilogb.c: Include <limits.h>.
2669         * math/w_ilogbl.c: Likewise.
2670
2671 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2672
2673         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2674         va_copy.  Document allowing for unavailable va_copy only as
2675         pre-C99 compatibility.
2676         * manual/string.texi (Copying and Concatenation): Use va_copy
2677         instead of __va_copy in concat example.
2678
2679 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2680
2681         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2682         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2683         it if not null.
2684
2685         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2686         with O_NOLINK passed to __file_name_lookup.
2687
2688         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2689         with O_NOLINK passed to __file_name_lookup.
2690
2691         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2692         negative N or less than NGIDS.
2693
2694         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2695         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2696         enough.  Use memcpy instead of strncpy.
2697
2698 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2699
2700         * elf/Makefile (check-data): Remove.
2701         (localplt.data): New vpath directive.
2702         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2703         instead of $(check-data).
2704         * scripts/data/localplt-generic.data: Move to ...
2705         * sysdeps/generic/localplt.data: ... here.
2706         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2707         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2708         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2710         ... here.
2711         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2713         ... here.
2714         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2715         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2716         ... here.
2717         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2719         ... here.
2720         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2721         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2722         ... here.
2723         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2724         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2725         ... here.
2726
2727 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2728
2729         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2730         PPC32 and PPC64 files.
2731         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2732         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2733
2734 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2735
2736         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2737         __makecontext_ret to ...
2738         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2739         ... here and call exit if uc_link is NULL.  New file.
2740         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2741         __makecontext_ret.S.
2742         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2743         __makecontext_ret to ...
2744         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2745         ... here and call exit if uc_link is NULL.  New file.
2746         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2747         __makecontext_ret.S.
2748
2749 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2750
2751         * elf/elf.h (R_390_IRELATIVE): New definition.
2752         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2753         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2754         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2755         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2756         (elf_machine_lazy_rel): Likewise.
2757         * sysdeps/s390/dl-irel.h: New file.
2758         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2759         * sysdeps/s390/s390-64/memset.S: New asm code.
2760         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2761         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2762         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2763         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2764         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2765         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2766         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2767         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2768         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2769         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2770         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2771         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2772         * sysdeps/s390/s390-32/memset.S: New asm code.
2773         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2774
2775 2012-07-17  Marek Polacek  <polacek@redhat.com>
2776
2777         [BZ #14349]
2778         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2779         * sysdeps/s390/s390-64/configure.in: Likewise.
2780         * sysdeps/sparc/configure.in: Likewise.
2781         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2782         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2783         * sysdeps/i386/configure.in: Likewise.
2784         * sysdeps/x86_64/configure.in: Likewise.
2785         * sysdeps/sh/configure.in: Likewise.
2786         * sysdeps/s390/s390-32/configure: Regenerated.
2787         * sysdeps/s390/s390-64/configure: Likewise.
2788         * sysdeps/x86_64/configure: Likewise.
2789         * sysdeps/sh/configure: Likewise.
2790         * sysdeps/powerpc/powerpc64/configure: Likewise.
2791         * sysdeps/powerpc/powerpc32/configure: Likewise.
2792         * sysdeps/sparc/configure: Likwise.
2793         * sysdeps/i386/configure: Likewise.
2794
2795         * elf/dl-open.c: Comment fixes.
2796
2797 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2798
2799         * Makefile [CXX] (check-data): Remove.
2800         [CXX] (c++-types.data): New vpath directive.
2801         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2802         vpath.  Do not allow for C++ type data being missing.
2803         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2804         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2805         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2806         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2807         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2808         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2809         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2811         ... here.
2812         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2814         ... here.
2815         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2816         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2817         ... here.
2818         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2819         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2820         ... here.
2821         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2822         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2823         ... here.
2824         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2825         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2826         ... here.
2827         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2828         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2829         ... here.
2830         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2831         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2832
2833         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2834         definitions to architecture-specific files.
2835         (TLS_IE): Likewise.
2836         (TLS_LD): Likewise.
2837         (TLS_GD): Likewise.
2838         * sysdeps/i386/tls-macros.h: New file.
2839         * sysdeps/powerpc/tls-macros.h: Likewise.
2840         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2841         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2842         * sysdeps/sh/tls-macros.h: Likewise.
2843         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2844         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2845         * sysdeps/x86_64/tls-macros.h: Likewise.
2846
2847 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2848
2849         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2850         zero value for regular exit case.
2851
2852         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2853         (__start_context): Preserve zero value for regular exit case.
2854
2855 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2856             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2857
2858         * manual/setjmp.texi (setcontext): Clarify normal process
2859         termination when uc_link is the null pointer.
2860         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2861         exit call.
2862
2863 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2864
2865         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2866         preprocessor.  Test for each exception mask separately.
2867
2868 2012-07-16  Andreas Jaeger  <aj@suse.de>
2869
2870         * po/ru.po: Update from translation team.
2871
2872 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2873
2874         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2875         equal to 0.
2876         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2877         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2878         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2879         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2880         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2881
2882 2012-07-13  Andreas Jaeger  <aj@suse.de>
2883
2884         * po/fr.po: Update from translation team.
2885
2886 2012-07-12  Marek Polacek  <polacek@redhat.com>
2887
2888         [BZ #14173]
2889         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2890         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2891         loop condition.
2892
2893 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2894
2895         [BZ #13717]
2896         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2897         Change to 2.4.1 where previously 2.4.0.
2898         * sysdeps/unix/sysv/linux/configure: Regenerated.
2899         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2900         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2901         version.
2902         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2903         (__ASSUME_AT_CLKTCK): Remove.
2904         (__ASSUME_AT_PAGESIZE): Likewise.
2905         (__ASSUME_AT_XID): Likewise.
2906         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2907         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2908         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2909         unconditionally.
2910         (HAVE_AUX_PAGESIZE): Likewise.
2911         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2912         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2913         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2914
2915 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2916
2917         [BZ #14307]
2918         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2919         the temporary buffer used to invoke __gethostbyname2_r,
2920         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2921         host_data / struct gaih_addrtuple.
2922         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2923         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2924         header file nss/nsswitch.h.
2925         * nss/nsswitch.h (global scope): Add definition of implementation
2926         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2927         resolv/nss_dns/dns-host.c).
2928
2929 2012-07-11  Andreas Jaeger  <aj@suse.de>
2930
2931         * po/fr.po: Update from translation team.
2932
2933         * po/sv.po: Update from translation team
2934         * po/fr.po: Another update from translation team.
2935
2936 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2937
2938         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2939         for subnormals or multiply small sinh result by itself.
2940         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2941         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2942
2943 2012-07-11  David S. Miller  <davem@davemloft.net>
2944
2945         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2946
2947 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2948
2949         [BZ #14347]
2950         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2951         (INTERNAL_MARK): Shift it here.
2952
2953 2012-07-10  Marek Polacek  <polacek@redhat.com>
2954
2955         [BZ #14151]
2956         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2957         libc_cv_asm_global_directive with .globl.
2958         * configure: Regenerated.
2959         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2960         with .globl.
2961         * sysdeps/i386/configure: Regenerated.
2962         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2963         with .globl.
2964         * sysdeps/x86_64/configure: Regenerated.
2965         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2966         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2967         * elf/tst-unique2mod2.c: Likewise.
2968         * elf/tst-unique2mod1.c: Likewise.
2969         * elf/tst-unique1mod2.c: Likewise.
2970         * elf/tst-unique1mod1.c: Likewise.
2971         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2972         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2973         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2974         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2975         * sysdeps/mach/sysdep.h: Likewise.
2976         * sysdeps/i386/sysdep.h: Likewise.
2977         * sysdeps/i386/i386-mcount.S: Likewise.
2978         * sysdeps/x86_64/_mcount.S: Likewise.
2979         * sysdeps/x86_64/sysdep.h: Likewise.
2980         * sysdeps/sh/_mcount.S: Likewise.
2981         * sysdeps/sh/sysdep.h: Likewise.
2982         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2983         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2984         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2985         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2986         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2987         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2988         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2989         * locale/localeinfo.h: Likewise.
2990         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2991         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2992
2993 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2994
2995         [BZ #14336]
2996         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2997         system".
2998         * manual/message.texi (The Uniforum approach): Likewise.
2999         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3000         (glibc iconv Implementation): Likewise.
3001
3002 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3003
3004         [BZ #14337]
3005         * math/s_clog.c (__clog): Avoid scaling a value down where that
3006         could result in underflow.
3007         * math/s_clog10.c (__clog10): Likewise.
3008         * math/s_clog10f.c (__clog10f): Likewise.
3009         * math/s_clog10l.c (__clog10l): Likewise.
3010         * math/s_clogf.c (__clogf): Likewise.
3011         * math/s_clogl.c (__clogl): Likewise.
3012         * math/libm-test.inc (clog_test): Add more tests.
3013         (clog10_test): Likewise.
3014         * sysdeps/i386/fpu/libm-test-ulps: Update.
3015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3016
3017 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3018
3019         [BZ #14283]
3020         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3021         by 7 not 8 to examine high bit of fractional part.
3022
3023         [BZ #14042]
3024         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3025         for call to __mcount_internal.
3026         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3027         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3028         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3029
3030 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3031
3032         [BZ #14154]
3033         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3034         approximation for values within 0x1p-13f of an odd multiple of
3035         pi/4.
3036         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3037         exception.  Add more tests.
3038         * sysdeps/i386/fpu/libm-test-ulps: Update.
3039
3040         [BZ #6778]
3041         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3042         inputs and return -1 for them.  Do not check for +Inf in case not
3043         reachable for +Inf.
3044         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3045         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3046         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3047         and return -1 for them.  Do not check for +Inf in case not
3048         reachable for +Inf.
3049         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3050         define.
3051         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3052         and return -1 for them.  Do not check for +Inf in case not
3053         reachable for +Inf.
3054         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3055         spurious underflow.
3056         * sysdeps/i386/fpu/libm-test-ulps: Update.
3057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3058
3059 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3060
3061         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3062
3063 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3064
3065         [BZ #14157]
3066         [BZ #14331]
3067         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3068         could result in spurious underflow.  Scale down values above
3069         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3070         * math/s_csqrtf.c (__csqrtf): Likewise.
3071         * math/s_csqrtl.c (__csqrtl): Likewise.
3072         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3073         spurious underflow.
3074         * sysdeps/i386/fpu/libm-test-ulps: Update.
3075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3076
3077 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3078
3079         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3080         xopen-msg.sed.
3081         * catgets/xopen-msg.awk: New file.
3082         * catgets/xopen-msg.sed: Removed.
3083
3084         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3085         po2text.sed.
3086         * intl/po2test.awk: New file.
3087         * intl/po2test.sed: Removed.
3088
3089 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3090
3091         [BZ #14328]
3092         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3093         or multiply small sinh result by itself.
3094         * math/s_ctanf.c (__ctanf): Likewise.
3095         * math/s_ctanh.c (__ctanh): Likewise.
3096         * math/s_ctanhf.c (__ctanhf): Likewise.
3097         * math/s_ctanhl.c (__ctanhl): Likewise.
3098         * math/s_ctanl.c (__ctanl): Likewise.
3099         * math/libm-test.inc (ctan_test_tonearest): New function.
3100         (ctan_test_towardzero): Likewise.
3101         (ctan_test_downward): Likewise.
3102         (ctan_test_upward): Likewise.
3103         (ctanh_test_tonearest): Likewise.
3104         (ctanh_test_towardzero): Likewise.
3105         (ctanh_test_downward): Likewise.
3106         (ctanh_test_upward): Likewise.
3107         (main): Call these new functions.
3108         * sysdeps/i386/fpu/libm-test-ulps: Update.
3109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3110
3111 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3112
3113         * .gitignore: Delete /ports entry.
3114
3115 2012-07-03  Andreas Jaeger  <aj@suse.de>
3116
3117         * po/bg.po: Update from translation team.
3118         * po/cs.po: Likewise.
3119         * po/de.po: Likewise.
3120         * po/hr.po: Likewise.
3121         * po/nl.pl: Likewise.
3122         * po/pl.po: Likewise.
3123         * po/vi.po: Likewise.
3124
3125 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3126
3127         * Makeconfig [!+link] (+link-before-libc): New variable.
3128         [!+link] (+link-after-libc): Likewise.
3129         [!+link] (+link-tests): Likewise.
3130         [!+link] (+link): Define in terms of $(+link-before-libc) and
3131         $(+link-after-libc).
3132         [!+link-static] (+link-static-before-libc): New variable.
3133         [!+link-static] (+link-static-after-libc): Likewise.
3134         [!+link-static] (+link-static-tests): Likewise.
3135         [!+link-static] (+link-static): Define in terms of
3136         $(+link-static-before-libc) and $(+link-static-after-libc).
3137         [build-shared] (link-libc-before-gnulib): New variable.
3138         [build-shared] (link-libc-tests): Likewise.
3139         [build-shared] (link-libc): Define in terms of
3140         $(link-libc-before-gnulib).
3141         [!build-shared] (link-libc-tests): New variable.
3142         (link-libc-static-tests): New variable.
3143         [!gnulib] (gnulib-arch): New variable.
3144         [!gnulib] (gnulib-tests): Likewise.
3145         [!gnulib] (static-gnulib-arch): Likewise.
3146         [!gnulib] (static-gnulib-tests): Likewise.
3147         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3148         Define with "=" instead of ":=".
3149         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3150         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3151         * Rules (binaries-all-notests): New variable.
3152         (binaries-all-tests): Likewise.
3153         (binaries-static-notests): Likewise.
3154         (binaries-static-tests): Likewise.
3155         (binaries-all): Define using $(binaries-all-notests) and
3156         $(binaries-all-tests).
3157         (binaries-static): Define using $(binaries-static-notests) and
3158         $(binaries-static-tests).
3159         (binaries-shared-tests): New variable.
3160         (binaries-shared-notests): Likewise.
3161         (binaries-shared): Remove variable.
3162         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3163         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3164         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3165         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3166         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3167         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3168         * elf/Makefile (sln-modules): New variable.
3169         (extra-objs): Add $(sln-modules:=.o).
3170         (ldconfig-modules): Add static-stubs.
3171         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3172         * elf/static-stubs.c: New file.
3173
3174         [BZ #14283]
3175         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3176         by 7 not 8 to examine high bit of fractional part.  Use volatile
3177         variables when splitting into final array of floats if
3178         __FLT_EVAL_METHOD__ != 0.
3179         * math/libm-test.inc (cos_test): Add another test.
3180         (sin_test): Likewise.
3181         * sysdeps/i386/fpu/libm-test-ulps: Update.
3182
3183         [BZ #14273]
3184         * math/libm-test.inc (cosh_test): Add more tests.
3185
3186         * version.h (RELEASE): Set to "development".
3187         (VERSION): Set to "2.16.90".
3188
3189 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3190
3191         * NEWS: Update copyright. Remove last-updated date.
3192         Mention math library bug fixes and timezone data changes.
3193         * README: Mention GNU/Hurd, x32, and HPPA support status.
3194
3195 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3196
3197         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3198
3199 2012-06-27  Andreas Jaeger  <aj@suse.de>
3200
3201         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3202
3203 2012-06-25  Andreas Jaeger  <aj@suse.de>
3204
3205         * sysdeps/s390/fpu/libm-test-ulps: Update.
3206
3207 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3208             Thomas Schwinge  <thomas@codesourcery.com>
3209
3210         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3211         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3212         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3213         fanotify_mark.
3214
3215 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3216
3217         * sysdeps/mach/start.c: Remove file.
3218         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3219         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3220         * sysdeps/sh/init-first.c: Likewise.
3221
3222         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3223         registers for frame unwinding purposes, add CFI directives.
3224         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3225         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3226         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3227         Likewise.
3228
3229         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3230         __fortify_fail returning.
3231         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3232
3233         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3234         sysdeps/sh/____longjmp_chk.S.
3235         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3236         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3237         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3238         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3239
3240         * sysdeps/sh/abort-instr.h: New file.
3241         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3242         process in case exit returns.
3243
3244         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3245         initialize the GOT register before use.
3246
3247         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3248         calculation of ARGC > 4.
3249
3250         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3251         meaningful names to some local labels.
3252
3253 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3254             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3255
3256         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3257         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3258         (__arch_compare_and_exchange_val_16_acq): Likewise.
3259         (__arch_compare_and_exchange_val_32_acq): Likewise.
3260         (atomic_exchange_and_add): Fix gUSA sequence.
3261         (atomic_add): Likewise.
3262         (atomic_add_negative): Likewise.
3263         (atomic_add_zero): Likewise.
3264         (atomic_bit_test_set): Likewise.
3265
3266 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3267
3268         [BZ #13579]
3269         * include/link.h (struct link_map): Add l_free_initfini.
3270         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3271         l_initfini.
3272         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3273         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3274         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3275         set.
3276
3277 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3278
3279         * configure.in: Use AC_LANG_SOURCE.
3280         * configure: Regenerate.
3281
3282 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3283
3284         * configure.in (libc_cv_localstatedir): New substituted variable.
3285         * configure: Regenerated.
3286         * config.make.in (localstatedir): New variable, substituted from
3287         libc_cv_localstatedir.
3288         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3289         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3290         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3291         * sysdeps/gnu/configure: Regenerated.
3292
3293 2012-06-21  Jeff Law  <law@redhat.com>
3294
3295         [BZ #14277]
3296         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3297         free.  Simplify list management for _LIBC case.
3298
3299 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3300
3301         [BZ #14273]
3302         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3303         Clear sign bit of 64-bit integer value before comparing against
3304         overflow value.
3305
3306         * sysdeps/mach/configure: Regenerated.
3307
3308 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3309
3310         [BZ #14278]
3311         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3312
3313 2012-06-21  Jeff Law  <law@redhat.com>
3314
3315         [BZ #13882]
3316         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3317         uint16_t for elements in the "seen" array to avoid char overflows.
3318         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3319         * elf/dl-open.c (dl_open_worker): Likewise.
3320
3321 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3322
3323         * scripts/list-sources.sh: Scan PORTS for translations.
3324         * po/libc.pot: Regenerated.
3325
3326 2012-06-21  Andreas Jaeger  <aj@suse.de>
3327
3328         [BZ #12194]
3329         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3330         warning.
3331         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3332         * bits/byteswap-16.h (__bswap_16): Likewise.
3333         * bits/byteswap.h (__bswap_constant_16): Likewise.
3334
3335 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3336
3337         [BZ #14117]
3338         * sysdeps/i386/fpu_control.h: Removed.
3339         * sysdeps/x86_64/fpu_control.h: Moved to ...
3340         * sysdeps/x86/fpu_control.h: Here.
3341
3342         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3343         (_FPU_SETCW): Likewise.
3344
3345 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3346
3347         [BZ #14117]
3348         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3349         * sysdeps/x86/fpu/bits/mathinline.h: This.
3350         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3351
3352         [BZ #14050]
3353         [BZ #14117]
3354         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3355         functions if __x86_64__ is defined.
3356
3357 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3358
3359         * string/endian.h: Add !__ASSEMBLER__ condition for including
3360         conversion interfaces.
3361
3362 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3363
3364         [BZ #14241]
3365         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3366         of ABS(x) in calculating zero to negative powers other than odd
3367         integers.
3368         * math/libm-test.inc (pow_test): Add more tests.
3369
3370 2012-06-15  Andreas Jaeger  <aj@suse.de>
3371
3372         * manual/contrib.texi (Contributors): Update entry of Liubov
3373         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3374         Machado Filho.
3375
3376 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3377
3378         * string/string.h: Add __wur to GNU version of strerror_r.
3379
3380 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3381
3382         [BZ #14229]
3383         * string/Makefile (tests): Add tst-strtok_r.
3384         * string/tst-strtok_r.c: New file.
3385         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3386         RAX_LP/RDX_LP on SAVE_PTR.
3387
3388 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3389
3390         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3391
3392 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3393
3394         * libm_test.inc (csqrt_test): Allow more spurious underflow
3395         exceptions.
3396         (j0_test): Likewise.
3397         (j1_test): Likewise.
3398         (y0_test): Likewise.
3399         (y1_test): Likewise.
3400
3401 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3402
3403         * po/Makefile (libc.pot): Use UTF-8 charset.
3404
3405 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3406
3407         [BZ #14210]
3408         Suppress sign-conversion warning from FD_SET.
3409         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3410         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3411         not unsigned long int.
3412         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3413
3414 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3415
3416         [BZ #14050]
3417         [BZ #14117]
3418         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3419         __extern_always_inline instead of __extern_inline.
3420         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3421         (__signbit): Likewise.
3422         (__signbitl): Support C++ namespace.
3423         (lrintf): New inline function.
3424         (lrint): Likewise.
3425         (llrintf): Likewise.
3426         (llrint): Likewise.
3427         (fmaxf): Likewise.
3428         (fmax): Likewise.
3429         (fminf): Likewise.
3430         (fmin): Likewise.
3431         (rint): Likewise.
3432         (rintf): Likewise.
3433         (ceil): Likewise.
3434         (ceilf): Likewise.
3435         (floor): Likewise.
3436         (floorf): Likewise.
3437         (nearbyint): Likewise.
3438         (nearbyintf): Likewise.
3439
3440 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3441
3442         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3443         non-default versions.
3444
3445 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3446
3447         [BZ #14218]
3448         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3449
3450 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3451
3452         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3453         (FE_UPWARD, FE_DOWNWARD): Don't define.
3454         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3455         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3456
3457         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3458         reading it.
3459         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3460         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3461
3462 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3463
3464         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3465         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3466         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3467         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3468
3469 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3470
3471         [BZ #14117]
3472         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3473         * sysdeps/i386/fpu/Implies: New file.
3474         * sysdeps/x86_64/fpu/Implies: Likewise.
3475         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3476         * sysdeps/x86/fpu/bits/fenv.h: This.
3477
3478         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3479         __SSE_MATH__.
3480
3481 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3482
3483         [BZ #14134]
3484         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3485         character 0xffff that matches the last element of the
3486         conversion table.
3487
3488 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3489
3490         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3491         fmodl commit.
3492
3493 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3494
3495         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3496         values higher than 25.6283.
3497
3498 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3499
3500         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3501         subnormal exponent extraction and add some __builtin_expect.
3502         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3503         Fix for subnormal mantissa calculation.
3504
3505 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3506
3507         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3508         cpu2 is -1 and errno is not ENOSYS.
3509
3510 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3511
3512         [BZ #14117]
3513         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3514         * sysdeps/x86/bits/string.h: This.
3515         * sysdeps/x86_64/bits/string.h: Removed.
3516
3517         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3518         if not compiling for x86-64, but compiling for >= i486.
3519
3520         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3521         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3522
3523         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3524         New macro from Linux kernel 3.4.0.
3525         (FP_XSTATE_MAGIC2): Likewise.
3526         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3527         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3528         (struct _fpx_sw_bytes): New struct.
3529         (struct _xsave_hdr): Likewise.
3530         (struct _ymmh_state): Likewise.
3531         (struct _xstate): Likewise.
3532
3533         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3534         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3535         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3536         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3537         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3538         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3539
3540         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3541         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3542         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3543         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3544         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3545         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3546
3547 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3548
3549         [BZ #13743]
3550         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3551         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3552         (sysdep_headers): Include sys/platform/ppc.h.
3553         * sysdeps/powerpc/test-gettimebase.c: Test for
3554         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3555         * manual/Makefile (appendices): Include platform.texi.
3556         * manual/contrib.texi (Contributors): Update @node pointers.
3557         * manual/maint.texi (Maintenance): Likewise.
3558         (Platform): New node.
3559         * manual/platform.texi: New file.  Document the new features.
3560
3561 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3562             Jakub Jelinek  <jakub@redhat.com>
3563
3564         [BZ #14188]
3565         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3566         where __builtin_expect is unavailable.
3567
3568 2012-06-03  David S. Miller  <davem@davemloft.net>
3569
3570         * stdlib/longlong.h: Updated from GCC.
3571
3572 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3573
3574         [BZ #14042]
3575         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3576         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3577         __mcount_internal.
3578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3579         (GLIBC_2.16): Likewise.
3580
3581 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3582
3583         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3584
3585 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3586
3587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3588         (default-abi): New variable.
3589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3590         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3591         variable.
3592         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3593         Likewise.
3594         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3595         Likewise.
3596         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3597         Likewise.
3598
3599         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3600         definition.  Document in comment.
3601
3602 2012-06-01  David S. Miller  <davem@davemloft.net>
3603
3604         * stdlib/longlong.h: Updated from GCC.
3605
3606 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3607
3608         [BZ #14117]
3609         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3610         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3611         sys/debugreg.h sys/io.h here.
3612         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3613         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3614         sys/io.h.
3615         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3616         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3617         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3618         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3619         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3620         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3621
3622         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3623         Define only if __x86_64__ is defined.
3624
3625 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3626
3627         [BZ #14048]
3628         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3629         Use int64_t for variable i.
3630         * math/libm-test.inc (fmod_test): Add more tests.
3631
3632         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3633         z computation is not scheduled after fetestexcept.
3634         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3635         Use math_force_eval instead of asm to ensure calculation scheduled
3636         before exception test.
3637         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3638         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3639
3640 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3641
3642         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3643         computation is not scheduled after fetestexcept.
3644
3645 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3646
3647         [BZ #14117]
3648         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3649         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3650
3651 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3652
3653         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3654         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3655
3656 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3657
3658         [BZ #14117]
3659         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3660         <bits/wordsize.h>.
3661         (__WCHAR_MIN): Support __WORDSIZE == 64.
3662         (__WCHAR_MAX): Likewise.
3663
3664         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3665         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3666
3667         [BZ #14183]
3668         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3669         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3670
3671         [BZ #14117]
3672         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3673         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3674
3675         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3676         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3677
3678         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3679         Defined to 1 if __x86_64__ isn't defined.
3680         (_STAT_VER_LINUX_OLD): New.
3681         (st_atime): Remove duplicate.
3682         (st_mtime): Likewise.
3683         (st_ctime): Likewise.
3684
3685 2012-05-31  David S. Miller  <davem@davemloft.net>
3686
3687         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3688         entries.
3689
3690 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3691
3692         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3693         gen-libm-test.pl.
3694
3695         [BZ #14132]
3696         * elf/dl-reloc.c: Include <_itoa.h>.
3697         (_dl_reloc_bad_type): Remove use of INTUSE.
3698         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3699         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3700         * stdio-common/psiginfo.c (psiginfo): Likewise.
3701         * stdio-common/psignal.c (psignal): Likewise.
3702         * string/strsignal.c (strsignal): Likewise.
3703         * include/signal.h (_sys_siglist): Declare hidden proto.
3704         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3705         INTVARDEF with libc_hidden_data_def.
3706         * stdio-common/itoa-udigits.c: Likewise.
3707         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3708         (_itoa_lower_digits_internal): Remove declaration.
3709         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3710         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3711         (_sys_sigabbrev_internal): Remove aliases.
3712         (_sys_siglist): Define hidden alias.
3713
3714 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3715
3716         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3717         bits/sysctl.h.
3718
3719 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3720
3721         [BZ #14117]
3722         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3723         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3724
3725         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3726         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3727         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3728         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3729         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3730         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3731
3732         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3733         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3734         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3735
3736         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3737         with __addr.
3738         (insw): Likewise.
3739         (insl): Likewise.
3740         (outsb): Likewise.
3741         (outsw): Likewise.
3742         (outsl): Likewise.
3743
3744         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3745         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3746         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3747
3748         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3749         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3750         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3751         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3752         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3753         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3754
3755         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3756         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3757
3758         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3759         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3760
3761         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3762         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3763         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3764
3765         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3766         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3767         to ...
3768         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3769
3770         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3771         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3772         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3773
3774         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3775         for x86-64.
3776         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3777
3778 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3779
3780         * math/math.h (M_El): Use two more decimal places.
3781         (M_LOG2El): Likewise.
3782         (M_LOG10El): Likewise.
3783         (M_LN2l): Likewise.
3784         (M_LN10l): Likewise.
3785         (M_PIl): Likewise.
3786         (M_PI_2l): Likewise.
3787         (M_PI_4l): Likewise.
3788         (M_1_PIl): Likewise.
3789         (M_2_PIl): Likewise.
3790         (M_2_SQRTPIl): Likewise.
3791         (M_SQRT2l): Likewise.
3792         (M_SQRT1_2l): Likewise.
3793
3794 2012-05-31  David S. Miller  <davem@davemloft.net>
3795
3796         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3797         values between float registers.
3798         * sysdeps/sparc/sparc64/memset.S: Likewise.
3799         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3800
3801 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3802
3803         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3804         -D_FORTIFY_SOURCE=1.
3805         (CPPFLAGS-tst-longjmp_chk.c): Define.
3806         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3807         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3808         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3809         CFLAGS-tst-wchar-h.c.
3810
3811 2012-05-31  Marek Polacek  <polacek@redhat.com>
3812
3813         [BZ #14132]
3814         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3815         __endmntent_internal): Remove declaration.
3816         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3817         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3818         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3819
3820 2012-05-30  David S. Miller  <davem@davemloft.net>
3821
3822         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3823         (___Q_simulate_exceptions): Use real FP ops rather than writing
3824         into the %fsr.
3825         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3826         Likewise.
3827
3828 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3829
3830         [BZ #14117]
3831         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3832         * sysdeps/x86/bits/xtitypes.h: This.
3833
3834         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3835         * sysdeps/x86/bits/wordsize.h: This.
3836
3837         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3838         * sysdeps/x86/bits/huge_vall.h: This.
3839
3840         * sysdeps/i386/bits/select.h: Removed.
3841         * sysdeps/x86_64/bits/select.h: Renamed to ...
3842         * sysdeps/x86/bits/select.h: This.
3843
3844         * sysdeps/i386/bits/setjmp.h: Removed.
3845         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3846         * sysdeps/x86/bits/setjmp.h: This.
3847
3848         * sysdeps/i386/bits/mathdef.h: Removed.
3849         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3850         * sysdeps/x86/bits/mathdef.h: This.
3851
3852 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3853
3854         [BZ #14132]
3855         * include/sys/socket.h (__connect_internal)
3856         (__libc_sa_len_internal): Remove declaration.
3857         (__connect, __libc_sa_len): Declare hidden_proto.
3858         (SA_LEN): Remove use of INTUSE.
3859         * socket/connect.c: Add libc_hidden_def.
3860         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3861         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3862         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3863         alias.
3864         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3865         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3866         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3867         of adding _internal alias.
3868
3869 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3870
3871         [BZ #14117]
3872         * sysdeps/i386/bits/link.h: Removed.
3873         * sysdeps/i386/bits/linkmap.h: Likewise.
3874         * sysdeps/x86_64/bits/link.h: Renamed to ...
3875         * sysdeps/x86/bits/link.h: This.
3876         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3877         * sysdeps/x86/bits/linkmap.h: This.
3878
3879         * sysdeps/i386/bits/endian.h: Removed.
3880         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3881         * sysdeps/x86/bits/endian.h: This.
3882
3883         * sysdeps/i386/bits/byteswap.h: Removed.
3884         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3885         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3886         * sysdeps/x86/bits/byteswap.h: This.
3887         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3888         * sysdeps/x86/bits/byteswap-16.h: This.
3889         * sysdeps/i386/Implies: Add x86.
3890         * sysdeps/x86_64/Implies: Likewise.
3891
3892 2012-05-30  David S. Miller  <davem@davemloft.net>
3893
3894         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3895         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3896         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3897         (FP_TRAPPING_EXCEPTIONS): Define.
3898         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3899         (FP_TRAPPING_EXCEPTIONS): Define.
3900         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3901         subnormals only when inexact has been signalled or underflow
3902         exceptions are enabled.
3903         (_FP_PACK_CANONICAL): Likewise.
3904
3905 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3906
3907         [BZ #14183]
3908         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3909         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3910
3911 2012-05-30  Richard Henderson  <rth@twiddle.net>
3912
3913         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3914         with #ifndef NOT_IN_libc.
3915
3916         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3917         marked to avoid plt entry.
3918
3919 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3920
3921         [BZ #14112]
3922         * Makeconfig (default-abi): New macro.
3923         (abi-includes): Likewise.
3924         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3925         $(abi-$(default-abi)-lib-soname) for soname if defined.
3926         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3927         abi-variants.
3928         * Makefile (installed-stubs): Likewise.
3929         * include/stubs-biarch.h: Removed.
3930         * scripts/lib-names.awk: Only handle one library at a time.
3931         * scripts/soversions.awk: Remove WORDSIZE support.
3932         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3933         entries.
3934         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3935         Removed.
3936         (syscall-list-default-condition): Likewise.
3937         (syscall-list-default-condition): Likewise.
3938         (syscall-list-includes): Likewise.
3939         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3940         syscall-list-* with abi-*.  Handle undefined abi-variants.
3941         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3942         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3943         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3944         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3945         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3946         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3947         Removed.
3948         (syscall-list-32-options): Likewise.
3949         (syscall-list-32-condition): Likewise.
3950         (syscall-list-64-options): Likewise.
3951         (syscall-list-64-condition): Likewise.
3952         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3953         macro.
3954         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3955         Renamed to ...
3956         (abi-*): This.
3957         (abi-64-ld-soname): New macro.
3958         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3959         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3960         Renamed to ...
3961         (abi-*): This.
3962         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3963         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3964
3965 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3966
3967         * sysdeps/unix/sysv/linux/kernel-features.h
3968         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3969         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3970         include <kernel-features.h>.
3971         [!__NR_ftruncate64]: Remove conditional code.
3972         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3973         [__NR_ftruncate64]: Make code unconditional.
3974         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3975         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3976         include <kernel-features.h>.
3977         [!__NR_ftruncate64]: Remove conditional code.
3978         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3979         [__NR_ftruncate64]: Make code unconditional.
3980         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3982         include <kernel-features.h>.
3983         [!__NR_ftruncate64]: Remove conditional code.
3984         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3985         [__NR_ftruncate64]: Make code unconditional.
3986         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3988         include <kernel-features.h>.
3989         [!__NR_ftruncate64]: Remove conditional code.
3990         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3991         [__NR_ftruncate64]: Make code unconditional.
3992         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3993
3994         * configure.in (libc_cv_fpie): Weaken to a compile test using
3995         LIBC_TRY_CC_OPTION.
3996         * configure: Regenerated.
3997
3998 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3999
4000         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4001         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4002         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4003         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4004         Refreshed.
4005         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4006         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4007         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4008         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4009         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4010         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4011         Refreshed.
4012
4013 2012-05-27  David S. Miller  <davem@davemloft.net>
4014
4015         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4016         (___Q_zero): New.
4017         (__Q_simulate_exceptions): Return void.  Change to simulate
4018         exceptions by writing into the %fsr.
4019         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4020         (__Qp_handle_exceptions): Likewise.
4021         (numbers): Delete.
4022         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4023         __Qp_handle_exceptions.
4024         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4025         __Qp_handle_exceptions.
4026         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4027         as unused and give dummy FP_RND_NEAREST initializer.
4028         (FP_INHIBIT_RESULTS): Define.
4029         (___Q_simulate_exceptions): Update declaration.
4030         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4031         formatting.
4032         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4033         as unused and give dummy FP_RND_NEAREST initializer.
4034         (__Qp_handle_exceptions): Update declaration.
4035         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4036         formatting.
4037
4038 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4039
4040         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4041         the temporary FPU control word.
4042         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4043         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4044         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4045         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4046         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4047         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4048         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4049         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4050         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4051         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4052         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4053
4054 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4055
4056         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4057         fields.
4058
4059 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4060
4061         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4062         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4063         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4064         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4065         Likewise.
4066         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4067         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4068         Likewise.
4069
4070 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4071
4072         * po/h.po: Update from translation team.
4073
4074 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4075
4076         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4077
4078         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4079         handling of denormals.
4080         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4081         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4082         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4083         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4084         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4085         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4086         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4087         Likewise.
4088
4089 2012-05-26  Marek Polacek  <polacek@redhat.com>
4090
4091         [BZ #14152]
4092         * math/libm-test.inc (fma_test): Don't always expect underflow
4093         exception.
4094
4095 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4096
4097         [BZ #12416]
4098         * elf/tst-execstack.c: Include stackinfo.h.
4099         (do_test): Adjust test case to ensure that pthread_getattr_np
4100         behaviour remains the same after marking stack executable.
4101
4102 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4103
4104         * sysdeps/unix/sysv/linux/kernel-features.h
4105         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4106         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4107         kernel-features.h.
4108         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4109         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4110         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4111         kernel-features.h.
4112         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4113         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4114
4115 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4116
4117         * configure.in: Define the default includes to being none.
4118         * configure: Regenerated.
4119
4120 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4121
4122         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4123         * sysdeps/x86_64/setjmp.S: Likewise.
4124         * sysdeps/i386/bsd-setjmp.S: Likewise.
4125         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4126         * sysdeps/i386/setjmp.S: Likewise.
4127         * sysdeps/i386/__longjmp.S: Likewise.
4128         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4129         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4130
4131         * include/stap-probe.h: New file.
4132         * configure.in: Handle --enable-systemtap.
4133         * configure: Regenerated.
4134         * config.h.in (USE_STAP_PROBE): New #undef.
4135         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4136         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4137         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4138
4139 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4140
4141         [BZ #13717]
4142         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4143         to 2.4.0 where earlier.
4144         * sysdeps/unix/sysv/linux/configure: Regenerated.
4145         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4146         <kernel-features.h>.
4147         [__ASSUME_32BITUIDS]: Make code unconditional.
4148         [!__ASSUME_32BITUIDS]: Remove conditional code.
4149         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4150         <kernel-features.h>.
4151         [__ASSUME_32BITUIDS]: Make code unconditional.
4152         [!__ASSUME_32BITUIDS]: Remove conditional code.
4153         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4154         [__ASSUME_32BITUIDS]: Make code unconditional.
4155         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4156         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4157         <kernel-features.h>.
4158         [__ASSUME_32BITUIDS]: Make code unconditional.
4159         [!__ASSUME_32BITUIDS]: Remove conditional code.
4160         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4161         <kernel-features.h>.
4162         [__ASSUME_32BITUIDS]: Make code unconditional.
4163         [!__ASSUME_32BITUIDS]: Remove conditional code.
4164         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4165         <kernel-features.h>.
4166         [__ASSUME_32BITUIDS]: Make code unconditional.
4167         [!__ASSUME_32BITUIDS]: Remove conditional code.
4168         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4169         <kernel-features.h>.
4170         [__ASSUME_32BITUIDS]: Make code unconditional.
4171         [!__ASSUME_32BITUIDS]: Remove conditional code.
4172         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4173         <kernel-features.h>.
4174         [__ASSUME_32BITUIDS]: Make code unconditional.
4175         [!__ASSUME_32BITUIDS]: Remove conditional code.
4176         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4177         <kernel-features.h>.
4178         [__ASSUME_32BITUIDS]: Make code unconditional.
4179         [!__ASSUME_32BITUIDS]: Remove conditional code.
4180         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4181         <kernel-features.h>.
4182         [__ASSUME_32BITUIDS]: Make code unconditional.
4183         [!__ASSUME_32BITUIDS]: Remove conditional code.
4184         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4185         <kernel-features.h>.
4186         [__ASSUME_32BITUIDS]: Make code unconditional.
4187         [!__ASSUME_32BITUIDS]: Remove conditional code.
4188         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4189         <kernel-features.h>.
4190         [__ASSUME_32BITUIDS]: Make code unconditional.
4191         [!__ASSUME_32BITUIDS]: Remove conditional code.
4192         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4193         <kernel-features.h>.
4194         [__ASSUME_32BITUIDS]: Make code unconditional.
4195         [!__ASSUME_32BITUIDS]: Remove conditional code.
4196         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4197         <kernel-features.h>.
4198         [__NR_setresgid] (__setresgid): Do not declare.
4199         [__ASSUME_32BITUIDS]: Make code unconditional.
4200         [!__ASSUME_32BITUIDS]: Remove conditional code.
4201         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4202         <kernel-features.h>.
4203         [__NR_setresuid] (__setresuid): Do not declare.
4204         [__ASSUME_32BITUIDS]: Make code unconditional.
4205         [!__ASSUME_32BITUIDS]: Remove conditional code.
4206         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4207         <kernel-features.h>.
4208         [__ASSUME_32BITUIDS]: Make code unconditional.
4209         [!__ASSUME_32BITUIDS]: Remove conditional code.
4210         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4211         <kernel-features.h>.
4212         [__ASSUME_32BITUIDS]: Make code unconditional.
4213         [!__ASSUME_32BITUIDS]: Remove conditional code.
4214         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4215         <kernel-features.h>.
4216         [__ASSUME_32BITUIDS]: Make code unconditional.
4217         [!__ASSUME_32BITUIDS]: Remove conditional code.
4218         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4219         <kernel-features.h>.
4220         [__ASSUME_32BITUIDS]: Make code unconditional.
4221         [!__ASSUME_32BITUIDS]: Remove conditional code.
4222         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4223         <kernel-features.h>.
4224         [__ASSUME_32BITUIDS]: Make code unconditional.
4225         [!__ASSUME_32BITUIDS]: Remove conditional code.
4226         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4227         <kernel-features.h>.
4228         [__ASSUME_32BITUIDS]: Make code unconditional.
4229         [!__ASSUME_32BITUIDS]: Remove conditional code.
4230         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4231         <kernel-features.h>.
4232         [__ASSUME_32BITUIDS]: Make code unconditional.
4233         [!__ASSUME_32BITUIDS]: Remove conditional code.
4234         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4235         <kernel-features.h>.
4236         [__ASSUME_32BITUIDS]: Make code unconditional.
4237         [!__ASSUME_32BITUIDS]: Remove conditional code.
4238         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4239         <kernel-features.h>.
4240         [__ASSUME_32BITUIDS]: Make code unconditional.
4241         [!__ASSUME_32BITUIDS]: Remove conditional code.
4242         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4243         <kernel-features.h>.
4244         [__ASSUME_32BITUIDS]: Make code unconditional.
4245         [!__ASSUME_32BITUIDS]: Remove conditional code.
4246         * sysdeps/unix/sysv/linux/kernel-features.h
4247         (__ASSUME_SETRESUID_SYSCALL): Remove.
4248         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4249         (__ASSUME_32BITUIDS): Likewise.
4250         (__ASSUME_LDT_WORKS): Likewise.
4251         (__ASSUME_O_DIRECTORY): Likewise.
4252         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4253         architecture but not kernel version.
4254         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4255         (__ASSUME_MMAP2_SYSCALL): Likewise.
4256         (__ASSUME_STAT64_SYSCALL): Likewise.
4257         (__ASSUME_IPC64): Likewise.
4258         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4259         <kernel-features.h>.
4260         [__ASSUME_32BITUIDS]: Make code unconditional.
4261         [!__ASSUME_32BITUIDS]: Remove conditional code.
4262         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4263         <kernel-features.h>.
4264         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4265         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4266         132096]: Remove conditional code.
4267         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4268         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4269         <kernel-features.h>.
4270         [__ASSUME_32BITUIDS]: Make code unconditional.
4271         [!__ASSUME_32BITUIDS]: Remove conditional code.
4272         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4273         <kernel-features.h>.
4274         [__ASSUME_32BITUIDS]: Make code unconditional.
4275         [!__ASSUME_32BITUIDS]: Remove conditional code.
4276         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4277         <kernel-features.h>.
4278         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4279         unconditional.
4280         (__setresgid): Do not declare.
4281         [__ASSUME_32BITUIDS]: Make code unconditional.
4282         [!__ASSUME_32BITUIDS]: Remove conditional code.
4283         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4284         <kernel-features.h>.
4285         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4286         unconditional.
4287         (__setresuid): Do not declare.
4288         [__ASSUME_32BITUIDS]: Make code unconditional.
4289         [!__ASSUME_32BITUIDS]: Remove conditional code.
4290         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4291         <kernel-features.h>.
4292         [__ASSUME_32BITUIDS]: Make code unconditional.
4293         [!__ASSUME_32BITUIDS]: Remove conditional code.
4294         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4295         <kernel-features.h>.
4296         [__ASSUME_32BITUIDS]: Make code unconditional.
4297         [!__ASSUME_32BITUIDS]: Remove conditional code.
4298
4299 2012-05-25  Richard Henderson  <rth@twiddle.net>
4300
4301         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4302         dl_hwcap to ifunc resolver.
4303         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4304         elf_ifunc_invoke.
4305         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4306         dl_hwcap to ifunc resolver.
4307         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4308
4309 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4310
4311         [BZ #14153]
4312         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4313         for |x| <= 2**-26, not 2**-57.
4314         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4315         exception.
4316
4317 2012-05-24  Jeff Law  <law@redhat.com>
4318
4319         * stdio-common/Makefile (tests): Add bug25.
4320         * stdio-common/bug25.c: New test.
4321
4322 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4323
4324         [BZ #13576]
4325         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4326         multiple of MALLOC_ALIGNMENT in size.
4327         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4328
4329 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4330
4331         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4332         Require >= 256.
4333         (FILENAME_MAX): Use macro-int-constant.
4334         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4335         (_IOFBF): Use macro-int-constant.
4336         (_IOLBF): Likewise.
4337         (_IONBF): Likewise.
4338         (SEEK_CUR): Likewise.
4339         (SEEK_END): Likewise.
4340         (SEEK_SET): Likewise.
4341         (TMP_MAX): Likewise.
4342         (EOF): Use macro-int-constant.  Require < 0.
4343         (NULL): Use macro-constant.  Require == 0.
4344         (stdin): Require type to be FILE *.
4345         (stdout): Likewise.
4346         (stderr): Likewise.
4347         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4348         macro-int-constant.
4349         (EXIT_SUCCESS): Likewise.
4350         (NULL): Use macro-constant.  Require == 0.
4351         (RAND_MAX): Use macro-int-constant.
4352         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4353         [C99-based standards] (strtof): Require function.
4354         [C99-based standards] (strtold): Likewise.
4355         [C99-based standards] (strtoll): Likewise.
4356         [C99-based standards] (strtoull): Likewise.
4357         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4358         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4359         [ISO || ISO99 || ISO11] (math.h): Likewise.
4360         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4361         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4362         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4363
4364 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4365
4366         [BZ #14132]
4367         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4368         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4369         * intl/dgettext.c (DCGETTEXT): Likewise.
4370         * intl/gettext.c (DCGETTEXT): Likewise.
4371         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4372         * posix/regex_internal.h (gettext): Likewise.
4373         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4374         Remove declaration.
4375         * include/argz.h (__argz_count_internal)
4376         (__argz_stringify_internal): Remove declaration.
4377         (__argz_count, __argz_stringify): Declare hidden proto.
4378         * intl/dcgettext.c: Remove use of INTDEF.
4379         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4380         * string/argz-stringify.c: Likewise.
4381         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4382         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4383         Declare hidden proto.
4384         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4385         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4386         Declare hidden proto.
4387         * include/stdio.h (__asprintf_internal): Don't declare.
4388         (__asprintf): Don't define as macro.  Declare hidden proto.
4389         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4390         (__fsetlocking): Declare hidden proto.
4391         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4392         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4393         hidden proto.
4394         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4395         (_IO_setlinebuf): Remove use of INTUSE.
4396         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4397         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4398         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4399         Remove declaration.
4400         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4401         (_IO_do_flush): Remove use of INTUSE.
4402         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4403         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4404         (_IO_adjust_column, _IO_least_wmarker)
4405         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4406         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4407         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4408         (_IO_default_doallocate, _IO_wdefault_doallocate)
4409         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4410         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4411         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4412         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4413         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4414         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4415         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4416         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4417         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4418         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4419         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4420         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4421         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4422         proto.
4423         (_IO_flush_all_internal, _IO_adjust_column_internal)
4424         (_IO_default_uflow_internal, _IO_default_finish_internal)
4425         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4426         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4427         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4428         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4429         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4430         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4431         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4432         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4433         (_IO_file_close_internal, _IO_file_close_it_internal)
4434         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4435         (_IO_file_init_internal, _IO_file_attach_internal)
4436         (_IO_file_fopen_internal, _IO_file_read_internal)
4437         (_IO_file_sync_internal, _IO_file_seek_internal)
4438         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4439         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4440         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4441         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4442         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4443         (_IO_list_all_internal, _IO_link_in_internal)
4444         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4445         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4446         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4447         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4448         (_IO_do_write_internal, _IO_padn_internal)
4449         (_IO_getline_info_internal, _IO_getline_internal)
4450         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4451         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4452         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4453         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4454         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4455         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4456         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4457         with libc_hidden_ver, remove use of INTUSE.
4458         * libio/genops.c: Likewise.
4459         * libio/freopen.c: Likewise.
4460         * libio/freopen64.c: Likewise.
4461         * libio/iofclose.c: Likewise.
4462         * libio/iofdopen.c: Likewise.
4463         * libio/iofflush.c: Likewise.
4464         * libio/iofflush_u.c: Likewise.
4465         * libio/iofgets.c: Likewise.
4466         * libio/iofgets_u.c: Likewise.
4467         * libio/iofopen.c: Likewise.
4468         * libio/iofopncook.c: Likewise.
4469         * libio/iofread.c: Likewise.
4470         * libio/iofread_u.c: Likewise.
4471         * libio/ioftell.c: Likewise.
4472         * libio/iofwrite.c: Likewise.
4473         * libio/iogetline.c: Likewise.
4474         * libio/iogets.c: Likewise.
4475         * libio/iogetwline.c: Likewise.
4476         * libio/iopadn.c: Likewise.
4477         * libio/iopopen.c: Likewise.
4478         * libio/ioseekoff.c: Likewise.
4479         * libio/ioseekpos.c: Likewise.
4480         * libio/iosetbuffer.c: Likewise.
4481         * libio/iosetvbuf.c: Likewise.
4482         * libio/ioungetc.c: Likewise.
4483         * libio/ioungetwc.c: Likewise.
4484         * libio/iovdprintf.c: Likewise.
4485         * libio/iovsprintf.c: Likewise.
4486         * libio/iovsscanf.c: Likewise.
4487         * libio/memstream.c: Likewise.
4488         * libio/obprintf.c: Likewise.
4489         * libio/oldfileops.c: Likewise.
4490         * libio/oldiofclose.c: Likewise.
4491         * libio/oldiofdopen.c: Likewise.
4492         * libio/oldiofopen.c: Likewise.
4493         * libio/oldiopopen.c: Likewise.
4494         * libio/oldstdfiles.c: Likewise.
4495         * libio/putc.c: Likewise.
4496         * libio/setbuf.c: Likewise.
4497         * libio/setlinebuf.c: Likewise.
4498         * libio/stdfiles.c: Likewise.
4499         * libio/strops.c: Likewise.
4500         * libio/vasprintf.c: Likewise.
4501         * libio/vscanf.c: Likewise.
4502         * libio/vsnprintf.c: Likewise.
4503         * libio/vswprintf.c: Likewise.
4504         * libio/wfiledoalloc.c: Likewise.
4505         * libio/wfileops.c: Likewise.
4506         * libio/wgenops.c: Likewise.
4507         * libio/wmemstream.c: Likewise.
4508         * libio/wstrops.c: Likewise.
4509         * libio/__fpurge.c: Likewise.
4510         * libio/__fsetlocking.c: Likewise.
4511         * assert/assert.c: Likewise.
4512         * debug/fgets_chk.c: Likewise.
4513         * debug/fgets_u_chk.c: Likewise.
4514         * debug/fread_chk.c: Likewise.
4515         * debug/fread_u_chk.c: Likewise.
4516         * debug/gets_chk.c: Likewise.
4517         * debug/obprintf_chk.c: Likewise.
4518         * debug/vasprintf_chk.c: Likewise.
4519         * debug/vdprintf_chk.c: Likewise.
4520         * debug/vsnprintf_chk.c: Likewise.
4521         * debug/vsprintf_chk.c: Likewise.
4522         * malloc/mtrace.c: Likewise.
4523         * misc/error.c: Likewise.
4524         * misc/syslog.c: Likewise.
4525         * stdio-common/asprintf.c: Likewise.
4526         * stdio-common/fxprintf.c: Likewise.
4527         * stdio-common/getw.c: Likewise.
4528         * stdio-common/isoc99_fscanf.c: Likewise.
4529         * stdio-common/isoc99_scanf.c: Likewise.
4530         * stdio-common/isoc99_vfscanf.c: Likewise.
4531         * stdio-common/isoc99_vscanf.c: Likewise.
4532         * stdio-common/isoc99_vsscanf.c: Likewise.
4533         * stdio-common/printf-prs.c: Likewise.
4534         * stdio-common/printf_fp.c: Likewise.
4535         * stdio-common/printf_fphex.c: Likewise.
4536         * stdio-common/printf_size.c: Likewise.
4537         * stdio-common/putw.c: Likewise.
4538         * stdio-common/scanf.c: Likewise.
4539         * stdio-common/sprintf.c: Likewise.
4540         * stdio-common/tmpfile.c: Likewise.
4541         * stdio-common/vfprintf.c: Likewise.
4542         * stdio-common/vfscanf.c: Likewise.
4543         * stdlib/strfmon_l.c: Likewise.
4544         * sunrpc/openchild.c: Likewise.
4545         * sunrpc/xdr_stdio.c: Likewise.
4546         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4547         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4548
4549 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4550
4551         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4552
4553         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4554         in the third column, to generate for the shared library an IFUNC
4555         that uses _dl_vdso_vsym.
4556         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4557         * Makeconfig (object-suffixes-noshared): New variable.
4558
4559         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4560         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4561         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4562         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4563
4564         [BZ #14132]
4565         * include/sys/time.h (__gettimeofday): Remove macro.
4566         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4567         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4568         Remove INTDEF.
4569         (__gettimeofday): Add libc_hidden_def.
4570         (gettimeofday): Add libc_hidden_weak.
4571         * sysdeps/mach/gettimeofday.c: Likewise.
4572         * sysdeps/posix/gettimeofday.c: Likewise.
4573         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4574         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4575         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4576         (__gettimeofday_internal): Remove strong_alias.
4577         (__gettimeofday): Add libc_hidden_def.
4578         (gettimeofday): Add libc_hidden_weak.
4579         * sysdeps/unix/syscalls.list (gettimeofday):
4580         Remove __gettimeofday_internal alias.
4581
4582 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4583             H.J. Lu  <hongjiu.lu@intel.com>
4584
4585         [BZ #12495]
4586         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4587         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4588         (largebin_index_32_big): New.
4589         (largebin_index): Use it for 16-byte alignment.
4590         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4591         correction with front_misalign.
4592
4593 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4594
4595         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4596         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4597         Likewise.
4598         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4599         Likewise.
4600         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4601         Likewise.
4602         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4603         Likewise.
4604         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4605         Likewise.
4606         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4607         Likewise.
4608         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4609         Likewise.
4610         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4611         Likewise.
4612         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4613         Likewise.
4614         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4615         Likewise.
4616         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4617         Likewise.
4618         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4619         Likewise.
4620
4621         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4622         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4623
4624 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4625
4626         [BZ #10846]
4627         [BZ #14036]
4628         * math/libm-test.inc (exp_test): Add test from bug 14036.
4629         (pow_test): Add test from bug 10846.
4630
4631         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4632         and other flags.
4633         (special_function): Do not include flags in test name.
4634         (parse_args): Likewise.
4635         * sysdeps/i386/fpu/libm-test-ulps: Update.
4636         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4637         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4638         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4640
4641         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4642         exceptions.
4643         * math/libm-test.inc ("Philosophy"): Update comment about
4644         exception testing.
4645         (UNDERFLOW_EXCEPTION): New macro.
4646         (UNDERFLOW_EXCEPTION_OK): Likewise.
4647         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4648         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4649         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4650         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4651         (INVALID_EXCEPTION_OK): Update value.
4652         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4653         (OVERFLOW_EXCEPTION_OK): Likewise.
4654         (IGNORE_ZERO_INF_SIGN): Likewise.
4655         (test_exceptions): Handle underflow exceptions.
4656         (acos_test): Update for underflow exception expectations.
4657         (cexp_test): Likewise.
4658         (clog_test): Likewise.
4659         (clog10_test): Likewise.
4660         (csqrt_test): Likewise.
4661         (ctan_test): Likewise.
4662         (ctanh_test): Likewise.
4663         (exp_test): Likewise.
4664         (exp10_test): Likewise.
4665         (exp2_test): Likewise.
4666         (expm1_test): Likewise.
4667         (fma_test): Likewise.
4668         (j0_test): Likewise.
4669         (jn_test): Likewise.
4670         (nexttoward_test): Likewise.
4671         (pow_test): Likewise.
4672         (scalbn_test): Likewise.
4673         (scalbln_test): Likewise.
4674         (tan_test): Likewise.
4675         (y1_test): Likewise.
4676         * sysdeps/i386/fpu/libm-test-ulps: Update.
4677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4678
4679 2012-05-23  David S. Miller  <davem@davemloft.net>
4680
4681         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4682         (__libc_sigaction): Remove unused local variables.
4683
4684 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4685
4686         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4687
4688 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4689
4690         mktime: avoid signed integer overflow
4691         * time/mktime.c (__mktime_internal): Do not mishandle the case
4692         where diff == INT_MIN.
4693
4694         mktime: simplify computation of average
4695         * time/mktime.c (ranged_convert): Use new time_t_avg function
4696         instead of rolling our own (probably-slower) code.
4697
4698         mktime: do not assume signed right shift propagates sign bit
4699         * time/mktime.c (isdst_differ): New static function.
4700         (__mktime_internal): No need to normalize tm_isdst now.
4701         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4702         tm_isdst values.
4703
4704         mktime: merge another wrapv change from gnulib
4705         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4706         from some compilers.
4707
4708         mktime: remove incorrect attempt at unusual arithmetics
4709         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4710         The code didn't really work on such machines anyway.
4711         (TYPE_MINIMUM): Assume two's complement.
4712         (twos_complement_arithmetic): Verify that long_int and time_t
4713         are two's complement (or unsigned, in the latter case).
4714
4715         mktime: check signed shifts on long_int and time_t, too
4716         * time/mktime.c (SHR): Check that shifts work as desired
4717         on the types long_int and time_t too, as SHR is used on
4718         such types.
4719
4720         mktime: do not assume 'long' is wide enough
4721         * time/mktime.c (verify): Move decl up.
4722         (long_int): New type.
4723         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4724         to remove assumption in the code that 'long' is wide enough to
4725         store year values.  This assumption is not true on x32 and on
4726         some non-glibc platforms.
4727
4728         mktime: merge wrapv change from gnulib
4729         * time/mktime.c (WRAPV): New macro.
4730         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4731         (guess_time_tm, __mktime_internal): Do not assume that signed
4732         integer overflow wraps around; modern compilers generate code
4733         where this assumption is no longer valid.
4734
4735 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4736
4737         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4738         Replace "jmp L(pseudo_end)" with "ret".
4739         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4740         Likewise.
4741
4742 2012-05-23  Andreas Jaeger  <aj@suse.de>
4743
4744         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4745         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4746
4747 2012-05-23  Andreas Jaeger  <aj@suse.de>
4748             Maximilian Attems  <max@stro.at>
4749
4750         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4751         New macros.
4752
4753 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4754
4755         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4756         code so that pseudo_end is just ret and the stack pointer is
4757         correct also for static library in error case.
4758
4759 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4760
4761         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4762         move to syscalls.list.
4763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4767
4768         * manual/install.texi (Running make install): Do not mention Linux
4769         kernel version for which pt_chown is not needed.
4770         (Linux): Do not mention problems with nscd with 2.0 kernels.
4771         * INSTALL: Regenerated.
4772
4773 2012-05-23  Andreas Jaeger  <aj@suse.de>
4774
4775         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4776         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4777         macro.
4778         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4779         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4780         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4781         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4782         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4783         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4784         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4785         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4786         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4787         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4788         * sysdeps/unix/sysv/linux/bits/in.h
4789         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4790
4791 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4792
4793         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4794         (PREPARE_VERSION): Just use assert instead, it will be elided
4795         under [NDEBUG] anyway.
4796
4797 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4798
4799         * sysdeps/unix/sysv/linux/Makefile: Include
4800         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4801         (sysdep_routines): Remove sysctl.
4802         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4803         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4804         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4805         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4806         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4807
4808 2012-05-22  Andreas Jaeger  <aj@suse.de>
4809
4810         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4811         that pseudo_end is just ret and the stack pointer is correct also
4812         for static library in error case.
4813
4814 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4815
4816         [BZ #14122]
4817         * nss/nsswitch.c (defconfig_entries): New variable.
4818         (__nss_database_lookup): Don't leak defconfig entries.
4819         (nss_parse_service_list): Don't leak on error paths.
4820         (free_database_entries): New function.
4821         (free_defconfig): New function.
4822         (free_mem): Move common code to free_database_entries.
4823
4824 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4825
4826         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4827         Add arch_prctl.
4828         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4829
4830         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4831         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4832         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4833         New macro.
4834         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4835         (INTERNAL_SYSCALL_TYPES): Likewise.
4836         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4837         (LOAD_REGS_TYPES_[1-6]): Likewise.
4838         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4839         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4840
4841 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4842
4843         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4844         copysignl for GLIBC_2_0.
4845         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4846         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4847         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4848         logbl for GLIBC_2_0.
4849         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4850         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4851
4852 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4853
4854         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4855         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4856
4857         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4858         Use "neg %eax".
4859
4860         * time/mktime.c: Update copyright years.
4861
4862 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4863
4864         mktime: merge comment-quoting-style change from gnulib
4865         * time/mktime.c: Quote 'like this' in comments.
4866         The GNU coding standards suggest that we no longer quote `like this',
4867         as "`" and "'" are typically rendered asymmetrically nowadays.
4868         The typical gnulib style is to quote 'like this' when quoting
4869         code, and "like this" when quoting English.
4870
4871         * time/mktime.c (compile-command): Add "-I.".
4872
4873         mktime: merge mktime-internal.h change from gnulib
4874         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4875
4876         mktime: merge time_r change from gnulib
4877         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4878
4879         mktime: merge DEBUG change from gnulib
4880         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4881         case system <time.h> has a #define.
4882
4883         mktime: merge <sys/types.h> change from gnulib
4884         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4885         since <time.t> is now guaranteed to define time_t.
4886
4887         mktime: merge HAVE_CONFIG_H change from gnulib
4888         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4889
4890 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4891
4892         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4893         Use "neg %eax".
4894
4895         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4896         __rlim_t cast.
4897         (struct rusage): Use anonymous union to pad each field to
4898         __syscall_slong_t.
4899
4900 2012-05-21  David S. Miller  <davem@davemloft.net>
4901
4902         * Makefules (o-iterator): Remove .s cases.
4903         (compile-command.s): Delete.
4904         (COMPILE.s): Delete.
4905         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4906
4907 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4908
4909         * configure.in (libc_cv_predef_stack_protector): Only consider
4910         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4911         * configure: Regenerated.
4912
4913 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4914
4915         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4916         New macro.  Use R*LP on int and pointer.
4917         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4918         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4919         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4920         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4921
4922         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4923         [__WORDSIZE_TIME64_COMPAT32] instead of
4924         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4925         (struct utmp): Likewise.
4926         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4927         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4928         Renamed to ...
4929         (__WORDSIZE_TIME64_COMPAT32): This.
4930         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4931         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4932         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4933         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4934         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4935         (__WORDSIZE_TIME64_COMPAT32): New macro.
4936
4937 2012-05-21  Andreas Jaeger  <aj@suse.de>
4938
4939         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4940         only if [SHARED]. Add prototype for __wcschr_ia32.
4941
4942 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4943
4944         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4945         of %rbp unmolested in the jmp_buf while mangling the low bits.
4946         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4947         unmolested high bits of %rbp while demangling the low bits.
4948         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4949
4950 2012-05-21  Andreas Jaeger  <aj@suse.de>
4951
4952         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4953         * sunrpc/svc_simple.c: Use it for registerrpc.
4954         * sunrpc/xcrypt.c: Use it for passwd2des.
4955
4956         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4957
4958 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4959
4960         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4961         Don't define if [__SYSCALL_WORDSIZE != 32].
4962         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4963         New macro.
4964
4965 2012-05-21  Bruno Haible  <bruno@clisp.org>
4966             Andreas Jaeger  <aj@suse.de>
4967
4968         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4969         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4970         inptr and inend for must_buffer_ch.
4971         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4972         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4973         * stdio-common/Makefile (tests): Remove bug15.
4974         (bug15-ENV): Remove macro.
4975         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4976         anymore.
4977
4978 2012-05-19  Andreas Jaeger  <aj@suse.de>
4979             Roland McGrath  <roland@hack.frob.com>
4980
4981         * manual/contrib.texi: Completely rewritten. It contains now an
4982         alphabetical list of contributors and their contributions.
4983
4984 2012-05-21  Richard Henderson  <rth@twiddle.net>
4985
4986         * misc/getauxval.c (__getauxval): Use unsigned long int.
4987         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4988         (getauxval): Use unsigned long int.
4989
4990 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4991
4992         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4993
4994 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4995
4996         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4997         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4998         __alignof__ (long double).
4999
5000 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5001
5002         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5003
5004 2012-05-20  Richard Henderson  <rth@twiddle.net>
5005
5006         * misc/getauxval.c: New file.
5007         * misc/sys/auxv.h: New file.
5008         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5009         (routines): Add getauxval.
5010         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5011         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5012         * elf/dl-sysdep.c (_dl_auxv): Remove.
5013         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5014         * elf/dl-support.c (_dl_auxv): New variable.
5015         (_dl_aux_init): Initialize it.
5016         * manual/startup.texi (Auxiliary Vector): New node.
5017         * sysdeps/generic/bits/hwcap.h: New file.
5018         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5019         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5020         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5021         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5022         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5023         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5025         Update.
5026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5027         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5028         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5029         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5030         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5031         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5032         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5033         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5034
5035 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5036
5037         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5038
5039 2012-05-19  David S. Miller  <davem@davemloft.net>
5040
5041         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5042
5043 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5044
5045         [BZ #14123]
5046         * math/s_ccosh.c: Include <float.h>
5047         (__ccosh): Avoid internal overflow calculating sinh and cosh
5048         values before multiplying by sin and cos values.
5049         * math/s_ccoshf.c: Likewise.
5050         * math/s_ccoshl.c: Likewise.
5051         * math/s_csin.c: Likewise.
5052         * math/s_csinf.c: Likewise.
5053         * math/s_csinl.c: Likewise.
5054         * math/s_csinh.c: Likewise.
5055         * math/s_csinhf.c: Likewise.
5056         * math/s_csinhl.c: Likewise.
5057         * math/libm-test.inc (ccos_test): Add more tests.
5058         (ccosh_test): Likewise.
5059         (csin_test): Likewise.
5060         (csinh_test): Likewise.
5061         * sysdeps/i386/fpu/libm-test-ulps: Update.
5062         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5063
5064 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5065
5066         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5067         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5068
5069         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5070
5071 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5072
5073         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5074         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5075         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5076         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5077         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5078         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5079         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5080         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5081         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5082         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5083         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5084         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5085         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5086         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5087         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5088         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5089         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5090         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5091         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5092         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5093         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5094         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5095         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5096         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5097         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5098         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5099         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5100         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5101         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5102         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5103         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5104
5105 2012-05-18  Andreas Jaeger  <aj@suse.de>
5106
5107         * csu/.gitignore: Delete.
5108
5109 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5110
5111         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5112         (timex): Use __syscall_slong_t.
5113
5114 2012-05-18  Andreas Jaeger  <aj@suse.de>
5115             Carlos O'Donell  <carlos_odonell@mentor.com>
5116
5117         * manual/install.texi (Configuring and compiling): Update
5118         description about files modified in the source directory.
5119         * INSTALL: Regenerated.
5120
5121 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5122
5123         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5124         value.  Use "or" to set return value to -1.
5125         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5126         negate return value.
5127
5128 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5129
5130         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5131         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5132         failure if the compiler has Graphite support disabled.
5133         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5134         Likewise.
5135         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5136         CFLAGS-memmove.c): Likewise.
5137         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5138         Likewise.
5139
5140 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5141
5142         * sysdeps/x86_64/x32/_itoa.h: New file.
5143
5144         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5145         getdents system call only if kernel and user dirents have the
5146         same d_ino and d_off.
5147
5148         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5149         LLONG_MAX != LONG_MAX.
5150         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5151         (_fitoa_word): Likewise.
5152
5153         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5154         years.
5155         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5156         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5157         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5158
5159         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5160         include <bits/wordsize.h>.  Check __x86_64__ instead of
5161         __WORDSIZE.
5162         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5163         if __x86_64__ is defined.  Use anonymous union on fpstate.
5164
5165         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5166         anonymous union.
5167
5168 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5169
5170         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5171         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5172         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5173         Refer to _rtld_local_ro instead of _rtld_global_ro.
5174         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5175         Likewise.
5176         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5177         Likewise.
5178         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5179         Likewise.
5180         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5181         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5182         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5183
5184         * sysdeps/powerpc/powerpc32/dl-machine.c
5185         (__elf_machine_runtime_setup) [PROF]: Don't reference
5186         _dl_prof_resolve.
5187
5188 2012-05-18  Andreas Jaeger  <aj@suse.de>
5189
5190         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5191         function only available for GCCs before 3.4 since GCC 3.4
5192         introduced a builtin.
5193         (lrint): Likewise.
5194         (llrintf): Likewise.
5195         (llrint): Likewise.
5196         (fmaxf): Likewise.
5197         (fmax): Likewise.
5198         (fminf): Likewise.
5199         (fmin): Likewise.
5200         (rint): Likewise.
5201         (rintf): Likewise.
5202         (nearbyint): Likewise.
5203         (nearbyintf): Likewise.
5204         (ceil): Likewise.
5205         (ceilf): Likewise.
5206         (floor): Likewise.
5207         (floorf): Likewise.
5208
5209 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5210
5211         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5212         on both fields and cast pointer to __syscall_ulong_t.
5213
5214         * bits/types.h (__fsword_t): New type.
5215         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5216         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5217         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5218         (__FSWORD_T_TYPE): Likewise.
5219         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5220         (__FSWORD_T_TYPE): Likewise.
5221         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5222         (__FSWORD_T_TYPE): Likewise.
5223         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5224         (__FSWORD_T_TYPE): Likewise.
5225         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5226         __SWORD_TYPE with __fsword_t.
5227         (statfs64): Likewise.
5228
5229 2012-05-17  David S. Miller  <davem@davemloft.net>
5230
5231         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5232
5233 2012-05-17  Andreas Jaeger  <aj@suse.de>
5234
5235         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5236         warning.
5237
5238 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5239
5240         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5241
5242 2012-05-17  Andreas Jaeger  <aj@suse.de>
5243
5244         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5245         when it is used.
5246
5247 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5248
5249         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5250
5251 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5252
5253         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5254         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5255
5256 2012-05-17  Andreas Jaeger  <aj@suse.de>
5257             Carlos O'Donell  <carlos_odonell@mentor.com>
5258
5259         [BZ #14059]
5260         * sysdeps/x86_64/multiarch/init-arch.h
5261         (bit_YMM_Usable): Rename to...
5262         (bit_AVX_Usable): ... this.
5263         (bit_FMA4_Usable): New macro.
5264         (bit_XMM_state): New macro.
5265         (bit_YMM_state): New macro.
5266         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5267         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5268         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5269         (CPUID_OSXSAVE): New macro.
5270         (CPUID_AVX): New macro.
5271         (CPUID_FMA4): New macro.
5272         (index_YMM_Usable): Rename to...
5273         (index_AVX_Usable): ... this.
5274         (HAS_AVX): Use HAS_ARCH_FEATURE.
5275         (HAS_FMA4): Likewise.
5276         (HAS_YMM_USABLE): Remove.
5277         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5278         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5279         are present.
5280         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5281         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5282         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5283         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5284         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5285
5286 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5287
5288         * math/libm-test.c: Support platforms without multiple rounding modes.
5289         * math/bug-nextafter.c: Support platforms without FP exceptions.
5290         * math/bug-nexttoward.c: Likewise.
5291         * math/test-fenv.c: Likewise.
5292         * math/test-misc.c: Likewise.
5293         * stdlib/bug-getcontext.c: Likewise.
5294
5295 2012-05-17  Andreas Jaeger  <aj@suse.de>
5296
5297         * manual/examples/search.c (critter_cmp): Change signature to
5298         avoid warnings.
5299         * manual/string.texi (Collation Functions): Likewise.
5300
5301 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5302
5303         * bits/types.h: Fold copyright years.
5304         * bits/typesizes.h: Likewise.
5305         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5306         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5307         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5308         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5309         * time/time.h: Likewise.
5310
5311 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5312
5313         [BZ #208]
5314         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5315         in instead of returning them.  Return void.
5316         (__libc_mallinfo): Accumulate over all arenas.
5317         (__malloc_stats): Adjust for change in int_mallinfo interface.
5318
5319 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5320
5321         [BZ #10375]
5322         * configure.in (NM): Add AC_CHECK_TOOL for it.
5323         (libc_extra_cflags): New substituted variable.
5324         Check for -fstack-protector being used implicitly.
5325         * configure: Regenerated.
5326         * config.make.in (config-extra-cflags): New variable,
5327         gets @libc_extra_cflags@.
5328         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5329
5330         [BZ #10375]
5331         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5332         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5333         * configure: Regenerated.
5334         * config.make.in (CPPUNDEFS): New substituted variable.
5335         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5336         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5337         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5338
5339 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5340
5341         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5342         (mq_attr): Use __syscall_slong_t.
5343
5344 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5345
5346         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5347         Check __x86_64__ instead of __WORDSIZE.
5348         (_STAT_VER_LINUX): Likewise.
5349         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5350         __syscall_ulong_t and __syscall_slong_t.
5351         (stat64): Likewise.
5352
5353 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5354
5355         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5356
5357 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5358
5359         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5360
5361 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5362
5363         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5364         __syscall_ulong_t.
5365
5366         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5367         include <bits/wordsize.h>.  Check __x86_64__ instead of
5368         __WORDSIZE.
5369         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5370         defined.
5371         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5372
5373         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5374         include <bits/wordsize.h>.  Check __x86_64__ instead of
5375         __WORDSIZE.
5376         (user_regs_struct): Use "__extension__ unsigned long long"
5377         instead of "unsigned long" if __x86_64__ is defined.
5378         (user): Likewise.  Pad after pointer field if __ILP32__ is
5379         defined.
5380
5381 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5382
5383         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5384         versions 5 to 9.
5385         * configure: Regenerated.
5386         * manual/install.texi (texinfo): Increase version requirement to
5387         4.5 or later.
5388         * INSTALL: Regenerated.
5389
5390         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5391
5392 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5393
5394         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5395
5396         * sysdeps/x86_64/x32/ffs.c: New file.
5397
5398         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5399         __syscall_ulong_t.
5400         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5401         defined.  Use __syscall_ulong_t.
5402         (shminfo): Use __syscall_ulong_t.
5403         (shm_info): Likewise.
5404
5405         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5406         __syscall_ulong_t.
5407
5408         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5409         <bits/wordsize.h>.
5410         (msgqnum_t): Use __syscall_ulong_t.
5411         (msglen_t): Likewise.
5412         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5413         __syscall_ulong_t.
5414
5415         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5416         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5417
5418         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5419
5420         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5421         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5422
5423         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5424         __syscall_slong_t.
5425
5426         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5427         include <bits/wordsize.h>.  Check __x86_64__ instead of
5428         __WORDSIZE.
5429
5430         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5431         "unsigned long long int" if __x86_64__ is defined.
5432         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5433
5434         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5435         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5436         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5437
5438         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5439         <stdint.h>.
5440         (GET_PC): Cast to uintptr_t first.
5441         (GET_FRAME): Likewise.
5442         (GET_STACK): Likewise.
5443
5444         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5445         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5446         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5447         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5448         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5449         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5450         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5451         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5452         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5453         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5454         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5455         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5456         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5457         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5458         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5459         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5460         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5461         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5462         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5463         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5464         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5465         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5466         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5467         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5468         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5469         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5470         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5471         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5472         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5473
5474 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5475
5476         * Makerules (+depfiles): Also collect depfiles from .oS in
5477         $(extra-objs).
5478         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5479         .oS, $(libnldbl-routines)).
5480
5481         * Makerules (native-compile-mkdep-flags): Define.
5482         * sunrpc/Makefile (extra-objs): Add $(addprefix
5483         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5484         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5485         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5486         calling $(make-target-directory).
5487
5488 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5489
5490         * bits/types.h (__snseconds_t): Removed.
5491         * time/time.h (struct timespec): Replace __snseconds_t with
5492         __syscall_slong_t.
5493         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5494         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5495         Likewise.
5496         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5497         (__SNSECONDS_T_TYPE): Likewise.
5498         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5499         (__SNSECONDS_T_TYPE): Likewise.
5500         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5501         (__SNSECONDS_T_TYPE): Likewise.
5502
5503 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5504
5505         * sysdeps/mach/hurd/bits/typesizes.h
5506         (__SYSCALL_SLONG_TYPE): New macro.
5507         (__SYSCALL_ULONG_TYPE): Likewise.
5508
5509 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5510
5511         * bits/types.h (__syscall_slong_t): New type.
5512         (__syscall_ulong_t): Likewise.
5513
5514         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5515         (__SYSCALL_ULONG_TYPE): Likewise.
5516         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5517         (__SYSCALL_SLONG_TYPE): Likewise.
5518         (__SYSCALL_ULONG_TYPE): Likewise.
5519         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5520         (__SYSCALL_SLONG_TYPE): Likewise.
5521         (__SYSCALL_ULONG_TYPE): Likewise.
5522         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5523         (__SYSCALL_SLONG_TYPE): Likewise.
5524         (__SYSCALL_ULONG_TYPE): Likewise.
5525
5526 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5527
5528         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5529         Add sigaltstack-offsets.sym.
5530         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5531         <sigaltstack-offsets.h>.
5532         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5533         longjmp_msg pointer.
5534         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5535         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5536         signal stack.
5537         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5538
5539 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5540
5541         * elf/stackguard-macros.h: Remove file.
5542         * sysdeps/generic/stackguard-macros.h: New file.
5543         * sysdeps/i386/stackguard-macros.h: Likewise.
5544         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5545         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5546         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5547         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5548         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5549         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5550         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5551         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5552         <elf/stackguard-macros.h>.
5553
5554         [BZ #14109]
5555         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5556         __aligned__ in attribute.
5557         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5558         (gregset_t): Likewise.
5559
5560 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5561
5562         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5563         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5564         * sysdeps/x86_64/x32/Implies-after: New file.
5565
5566 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5567
5568         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5569         and access return value for _dl_profile_fixup.  Use R10_LP to
5570         load frame size.
5571
5572 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5573
5574         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5575
5576 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5577
5578         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5579         * sysdeps/x86_64/x32/sysdep.h: New file.
5580
5581 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5582
5583         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5584         * sysdeps/x86_64/setjmp.S: Likewise.
5585
5586 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5587
5588         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5589         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5590         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5591         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5592         remove unused global constant.
5593
5594 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5595
5596         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5597         include of <not-cancel.h>.
5598
5599 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5600
5601         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5602
5603 2012-05-15  Jeff Law  <law@redhat.com>
5604             Andreas Jaeger  <aj@suse.de>
5605
5606         [BZ #13594]
5607         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5608         out from...
5609         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5610         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5611         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5612         code changing __hst_map_handle.map.
5613
5614 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5615
5616         * configure.in (sysnames): Look for Implies-before and Implies-after
5617         files.
5618         * configure: Regenerated.
5619
5620 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5621
5622         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5623         8-byte data alignment with LP_SIZE alignment.
5624
5625 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5626
5627         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5628         into R10_LP.
5629
5630 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5631
5632         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5633
5634 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5635
5636         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5637         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5638         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5639         Likewise.
5640         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5641
5642 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5643
5644         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5645         (stackinfo_sub_sp): Likewise.
5646
5647 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5648
5649         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5650         RAX_LP.
5651
5652 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5653
5654         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5655         into R*_LP.
5656
5657 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5658
5659         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5660         sizes into R*_LP.
5661
5662 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5663
5664         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5665
5666 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5667
5668         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5669         into R11_LP and load __x86_64_shared_cache_size_half into
5670         R8_LP.
5671
5672 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5673
5674         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5675         R8_LP.
5676
5677 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5678
5679         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5680         logb for POWER7.
5681         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5682         logbf for POWER7.
5683         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5684         logbl for POWER7.
5685         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5686         powerpc32/power7/fpu/s_logb.c via #include.
5687         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5688         powerpc32/power7/fpu/s_logbf.c via #include.
5689         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5690         powerpc32/power7/fpu/s_logbl.c via #include.
5691
5692 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5693
5694         * README.libm: Remove file.
5695
5696 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5697
5698         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5699         count for x32.  Use R*_LP and omit operand-size suffix.
5700
5701 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5702
5703         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5704         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5705         * sysdeps/x86_64/x32/shlib-versions: New file.
5706
5707 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5708
5709         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5710         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5711         Use _dl_fatal_printf instead.
5712
5713 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5714
5715         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5716         set if not set by the user.  Do not allow for being unset.
5717         * sysdeps/unix/sysv/linux/configure: Regenerated.
5718
5719 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5720
5721         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5722         the `q' suffix from lea and replace .quad with ASM_ADDR.
5723
5724 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5725
5726         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5727         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5728         instead of $17.
5729         (PTR_DEMANGLE): Likewise.
5730
5731 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5732
5733         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5734         (LP_OP): Likewise.
5735         (ASM_ADDR): Likewise.
5736         (RAX_LP): Likewise.
5737         (RBP_LP): Likewise.
5738         (RBX_LP): Likewise.
5739         (RCX_LP): Likewise.
5740         (RDI_LP): Likewise.
5741         (RSI_LP): Likewise.
5742         (RSP_LP): Likewise.
5743         (R8_LP): Likewise.
5744         (R9_LP): Likewise.
5745         (R10_LP): Likewise.
5746         (R10_LP): Likewise.
5747         (R11_LP): Likewise.
5748         (R12_LP): Likewise.
5749         (R13_LP): Likewise.
5750         (R14_LP): Likewise.
5751         (R15_LP): Likewise.
5752
5753 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5754
5755         * sysdeps/x86_64/x32/dl-machine.h: New file.
5756
5757 2012-05-14  Andreas Jaeger  <aj@suse.de>
5758
5759         * manual/Makefile (subdir): Remove export of subdir.
5760         (all): Remove target.
5761         (.PHONY): Remove all from list.
5762         (mkinstalldirs): Remove.
5763         (.PHONY): Remove installdirs from list.
5764         ($(inst_infodir)/libc.info): Use make-target-directory.
5765         (installdirs): Remove.
5766         (subdir_%): Remove.
5767         (glibc-targets): Remove.
5768         (lib): Remove.
5769         (stubs): Remove.
5770         ($(objpfx)stubs ../po/manual.pot): Remove.
5771         ($(objpfx)stamp%): Remove.
5772         (make-target-directory): Remove.
5773         (subdir_install): Remove.
5774         (routines): Remove.
5775         (aux): Remove.
5776         (sources): Remove.
5777         (objects): Remove.
5778         (headers): Remove.
5779
5780         [BZ #13750]
5781         * manual/.gitignore: Remove, it's not needed anymore.
5782         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5783         all files in it.
5784         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5785         directory.
5786         (texis): Renamed to $(objpfx)texis.
5787         (texis-path): New, contains path to generated files.
5788         (chapters.%): Use texis-path for complete path, add extra argument
5789         libc-texinfo.sh.
5790         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5791         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5792         (summary,texi, stamp-summary): Use complete path of
5793         files. Generate files in build dir.
5794         (dir-add.texi): Build in build dir.
5795         (libm-err.texi,stamp-libm-err): Likewise.
5796         (version.texi, stamp-version): Likewise.
5797         (.%c.texi): Likewise.
5798         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5799         (mostlyclean): Remove target.
5800         (realclean): Remove target.
5801         (generated): Add new variable with contents from mostlyclean and
5802         realclean, remove entries duplicated in common-mostlyclean, add
5803         stamp-libm-err and stamp-version.
5804         (generated-dirs): Add libc directory.
5805         ($(inst_infodir)/libc.info): Install files from build dir.
5806
5807         * manual/install.texi (Configuring and compiling): Adjust since
5808         the info files are not part of the tar ball anymore.
5809
5810 2012-05-14  Andreas Jaeger  <aj@suse.de>
5811
5812         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5813         variable.
5814
5815 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5816
5817         [BZ #13717]
5818         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5819         to 2.2.0 where earlier.
5820         * sysdeps/unix/sysv/linux/configure: Regenerated.
5821         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5822         Remove conditional code.
5823         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5824         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5825         Remove conditional code.
5826         [!__NR_lchown]: Likewise.
5827         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5828         [__NR_lchown]: Likewise.
5829         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5830         comment referencing __ASSUME_LCHOWN_SYSCALL.
5831         * sysdeps/unix/sysv/linux/i386/sigaction.c
5832         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5833         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5834         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5835         Remove conditional code.
5836         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5837         (__protocol_available): Remove #if 0 code.
5838         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5839         conditional code.
5840         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5841         * sysdeps/unix/sysv/linux/kernel-features.h
5842         (__ASSUME_GETCWD_SYSCALL): Don't define.
5843         (__ASSUME_REALTIME_SIGNALS): Likewise.
5844         (__ASSUME_PREAD_SYSCALL): Likewise.
5845         (__ASSUME_PWRITE_SYSCALL): Likewise.
5846         (__ASSUME_POLL_SYSCALL): Likewise.
5847         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5848         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5849         non-SPARC.
5850         (__ASSUME_SIOCGIFNAME): Don't define.
5851         (__ASSUME_MSG_NOSIGNAL): Likewise.
5852         (__ASSUME_SENDFILE): Define unconditionally.
5853         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5854         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5855         conditional code.
5856         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5857         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5858         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5859         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5860         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5861         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5862         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5864         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5865         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5867         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5868         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5870         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5871         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5873         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5874         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5876         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5877         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5879         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5880         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5882         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5883         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5885         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5886         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5887         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5888         Remove conditional code.
5889         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5890         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5891         Remove conditional code.
5892         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5893         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5894         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5895         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5896         Remove conditional code.
5897         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5898         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5899         Remove conditional code.
5900         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5901         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5902         Remove conditional code.
5903         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5904         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5905         Remove conditional code.
5906         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5907         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5908         Remove conditional code.
5909         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5910         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5911         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5912         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5913         * sysdeps/unix/sysv/linux/sigaction.c
5914         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5915         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5916         * sysdeps/unix/sysv/linux/sigpending.c
5917         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5918         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5919         * sysdeps/unix/sysv/linux/sigprocmask.c
5920         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5921         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5922         * sysdeps/unix/sysv/linux/sigsuspend.c
5923         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5924         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5925         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5926         (__libc_missing_rt_sigs): Remove.
5927         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5928         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5929         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5930         Remove conditional code.
5931         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5932         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5933         return 1.
5934         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5935         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5936         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5937         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5938
5939 2012-05-14  Andreas Jaeger  <aj@suse.de>
5940
5941         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5942         it's not used in glibc.
5943         (__coshm1): Likewise.
5944         (__acosh1p): Likewise.
5945         (__sgn): Likewise.
5946
5947         * manual/string.texi (Copying and Concatenation): Add missing
5948         variable in concat example.
5949         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5950
5951 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5952
5953         [BZ #14103]
5954         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5955         __builtin_clzl with __builtin_clzll.
5956
5957 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5958
5959         [BZ #14104]
5960         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5961         libc_freeres_ptr.
5962
5963 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5964
5965         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5966         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5967         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5968         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5969
5970 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5971
5972         * NEWS: Update ia64 info.
5973
5974 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5975
5976         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5977         used as bcopy.
5978
5979 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5980
5981         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5982         * sysdeps/unix/syscalls.list (dup3): Likewise.
5983         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5984         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5985
5986 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5987
5988         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5989         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5990
5991 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5992
5993         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5994         thread pointer.
5995         (TLS_IE): Use mov/add instead of movq/addq to load thread
5996         pointer.
5997         (TLS_GD_PREFIX): New.
5998         (TLS_GD): Use it.
5999
6000 2012-05-11  David S. Miller  <davem@davemloft.net>
6001
6002         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6003         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6004         (_FPU_SETCW): Likewise.
6005
6006 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6007
6008         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6009         is 32-byte aligned.
6010
6011 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6012
6013         [BZ #11837]
6014         * iconvdata/gb18030.c: Update tables.
6015         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6016         characters specially.
6017         (BODY for TO_LOOP): Add encoding of missing ranges.
6018
6019 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6020
6021         [BZ #13673]
6022         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6023         * sysdeps/mach/hurd/dup3.c: Likewise.
6024         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6025         * sysdeps/powerpc/memmove.c:: Likewise.
6026
6027 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6028
6029         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6030         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6031
6032 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6033
6034         * elf/elf.h (R_X86_64_RELATIVE64): New.
6035         (R_X86_64_NUM): Updated.
6036         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6037         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6038         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6039         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6040         tst-quad1pie tst-quad2pie
6041         (modules-names): Add tst-quadmod1 tst-quadmod2.
6042         ($(objpfx)tst-quad1): New dependency.
6043         ($(objpfx)tst-quad2): Likewise.
6044         ($(objpfx)tst-quad1pie): Likewise.
6045         ($(objpfx)tst-quad2pie): Likewise.
6046         * sysdeps/x86_64/tst-quad1.c: New file.
6047         * sysdeps/x86_64/tst-quad1pie.c: New file.
6048         * sysdeps/x86_64/tst-quad2.c: Likewise.
6049         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6050         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6051         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6052         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6053         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6054
6055 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6056
6057         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6058         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6059         * streams/stropts.h (t_scalar_t): Define type.
6060
6061         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6062         (_PATH_PRESERVE): Set to "/var/lib".
6063         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6064
6065         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6066         instead of int.
6067
6068         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6069         if __dir_mkfile succeeded.
6070
6071         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6072         checking for _hurd_dtablesize.  Unlock it right after having
6073         finished _hurd_dtable allocation.
6074
6075 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6076
6077         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6078         * sysdeps/mach/hurd/configure: Regenerated.
6079         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6080         special-casing to...
6081         * sysdeps/gnu/configure.in: ... this new file.
6082         * sysdeps/unix/sysv/linux/configure: Regenerated.
6083         * sysdeps/gnu/configure: New generated file.
6084
6085         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6086         for Linux: use nsec instead of usec, as well as:
6087         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6088         members of type struct timespec.
6089         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6090         New macros.
6091         (struct stat64): Likewise.
6092         (_STATBUF_ST_NSEC): New macro.
6093         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6094
6095         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6096         __strtoul_internal rather than strtoul.
6097
6098 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6099
6100         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6101         and reject them.
6102
6103 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6104
6105         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6106         which preserves existing values.
6107         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6108
6109 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6110
6111         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6112         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6113         greater than FD_SETSIZE.
6114
6115 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6116
6117         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6118         allocated, call __vm_protect to finish enabling the existing space, and
6119         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6120         allocate the remainder.
6121
6122 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6123
6124         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6125         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6126
6127 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6128
6129         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6130         sysdeps/mach/hurd/readlink.c.
6131
6132         * posix/tst-sysconf.c (posix_options): Only use
6133         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6134         _POSIX_SYNCHRONIZED_IO when they are defined
6135         * sysdeps/mach/hurd/bits/posix_opt.h:
6136         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6137         (_XOPEN_REALTIME): Undefine macro.
6138         (_XOPEN_REALTIME_THREADS): Undefine macro.
6139         (_XOPEN_SHM): Undefine macro.
6140         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6141         macro to -1.
6142         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6143         macro to -1.
6144         (_POSIX_ASYNC_IO): Undefine macro.
6145         (_POSIX_PRIORITIZED_IO): Undefine macro.
6146         (_POSIX_SPIN_LOCKS): Define macro to -1.
6147
6148         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6149         SA_NODEFER, SA_RESETHAND.
6150         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6151         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6152         F_DUPFD_CLOEXEC.
6153
6154 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6155
6156         * elf/Makefile (pldd-modules): Define unconditionally.
6157
6158 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6159
6160         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6161
6162 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6163
6164         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6165         Return ENOENT when name is empty.
6166         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6167
6168 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6169
6170         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6171
6172         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6173
6174 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6175
6176         Fix mlock in all cases except non-readable pages.
6177         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6178         instead of VM_PROT_ALL as parameter to __vm_wire function.
6179
6180         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6181         (__mkdir): When path is `/', just fail with EEXIST.
6182         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6183
6184 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6185
6186         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6187         <sys/uio.h> (for writev).
6188         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6189         and <sys/param.h> (for MIN).
6190
6191 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6192
6193         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6194         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6195         if interrupted.
6196
6197 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6198
6199         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6200         Depend on against $(link-rpcuserlibs).
6201
6202 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6203
6204         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6205         (__libc_stack_end): Do not use attribute_relro.
6206         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6207         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6208         to libthread-provided value.
6209         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6210         attribute_relro.
6211
6212 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6213
6214         [BZ #3748]
6215         * bits/libc-lock.h (__libc_once_get): New macro.
6216         * sysdeps/mach/bits/libc-lock.h: Likewise.
6217         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6218         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6219         instead of using implementation details.
6220
6221         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6222         * libio/freopen.c: Likewise.
6223         * libio/freopen64.c: Likewise.
6224         * misc/syslog.c: Likewise.
6225         * nscd/connections.c: Likewise.
6226         * nscd/netgroupcache.c: Likewise.
6227         * sysdeps/posix/getcwd.c: Likewise.
6228
6229 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6230
6231         * math/w_ilogbf.c: Add #include <limits.h>.
6232
6233 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6234
6235         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6236         path instead of returning without unlocking.
6237
6238         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6239         immediate-write ioctls.
6240         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6241
6242 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6243
6244         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6245         __builtin_frame_address instead of making assumptions about the
6246         location of the return address relative to DATA.  Force early load of
6247         the return address.
6248         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6249         __builtin_frame_address.
6250
6251         dup3 for GNU Hurd.
6252         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6253         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6254         implement dup3 and do some further code clean-ups.
6255         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6256         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6257
6258 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6259
6260         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6261
6262         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6263         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6264         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6265         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6266         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6267         d->port.lock.
6268
6269         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6270         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6271         when handler == SIG_ERR, not when handler != SIG_ERR.
6272
6273 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6274
6275         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6276         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6277         definitions.
6278
6279         accept4 for GNU Hurd.
6280         * include/sys/socket.h (__libc_accept4): New prototype.
6281         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6282         to implement __libc_accept4.
6283         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6284         __libc_accept4.
6285         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6286
6287         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6288         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6289         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6290         signal-defines.sym.
6291
6292 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6293
6294         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6295
6296 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6297
6298         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6299         assertion on O_CLOEXEC flag.
6300         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6301         * hurd/intern-fd.c: Likewise.
6302         * hurd/port2fd.c: Likewise.
6303
6304 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6305
6306         [BZ #3906]
6307         * bits/in.h (IPV6_PKTINFO): Define new macro.
6308         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6309
6310 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6311
6312         [BZ #13954]
6313         [BZ #13955]
6314         [BZ #13956]
6315         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6316         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6317         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6318         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6319         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6320         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6321         * math/libm-test.inc (logb_test) : Additional logb tests.
6322
6323 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6324             Andreas Jaeger  <aj@suse.de>
6325
6326         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6327         * configure: Regenerated.
6328         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6329         * config.make.in (link-obsolete-rpc): New substituted variable.
6330         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6331         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6332         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6333         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6334         so that libc.a contains the symbols.
6335         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6336         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6337         * sunrpc/auth_none.c: Likewise.
6338         * sunrpc/auth_unix.c: Likewise.
6339         * sunrpc/authdes_prot.c: Likewise.
6340         * sunrpc/authuxprot.c: Likewise.
6341         * sunrpc/clnt_gen.c: Likewise.
6342         * sunrpc/clnt_perr.c: Likewise.
6343         * sunrpc/clnt_raw.c: Likewise.
6344         * sunrpc/clnt_simp.c: Likewise.
6345         * sunrpc/clnt_tcp.c: Likewise.
6346         * sunrpc/clnt_udp.c: Likewise.
6347         * sunrpc/clnt_unix.c: Likewise.
6348         * sunrpc/des_crypt.c: Likewise.
6349         * sunrpc/des_soft.c: Likewise.
6350         * sunrpc/get_myaddr.c: Likewise.
6351         * sunrpc/key_call.c: Likewise.
6352         * sunrpc/key_prot.c: Likewise.
6353         * sunrpc/netname.c: Likewise.
6354         * sunrpc/pm_getmaps.c: Likewise.
6355         * sunrpc/pm_getport.c: Likewise.
6356         * sunrpc/pmap_clnt.c: Likewise.
6357         * sunrpc/pmap_prot.c: Likewise.
6358         * sunrpc/pmap_prot2.c: Likewise.
6359         * sunrpc/pmap_rmt.c: Likewise.
6360         * sunrpc/publickey.c: Likewise.
6361         * sunrpc/rpc_cmsg.c: Likewise.
6362         * sunrpc/rpc_common.c: Likewise.
6363         * sunrpc/rpc_dtable.c: Likewise.
6364         * sunrpc/rpc_prot.c: Likewise.
6365         * sunrpc/rpc_thread.c: Likewise.
6366         * sunrpc/rtime.c: Likewise.
6367         * sunrpc/svc.c: Likewise.
6368         * sunrpc/svc_auth.c: Likewise.
6369         * sunrpc/svc_raw.c: Likewise.
6370         * sunrpc/svc_run.c: Likewise.
6371         * sunrpc/svc_tcp.c: Likewise.
6372         * sunrpc/svc_udp.c: Likewise.
6373         * sunrpc/svc_unix.c: Likewise.
6374         * sunrpc/svcauth_des.c: Likewise.
6375         * sunrpc/xcrypt.c: Likewise.
6376         * sunrpc/xdr.c: Likewise.
6377         * sunrpc/xdr_array.c: Likewise.
6378         * sunrpc/xdr_float.c: Likewise.
6379         * sunrpc/xdr_intXX_t.c: Likewise.
6380         * sunrpc/xdr_mem.c: Likewise.
6381         * sunrpc/xdr_rec.c: Likewise.
6382         * sunrpc/xdr_ref.c: Likewise.
6383         * sunrpc/xdr_sizeof.c: Likewise.
6384         * sunrpc/xdr_stdio.c: Likewise.
6385
6386 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6387
6388         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6389         change.  Update copyright years.
6390
6391 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6392
6393         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6394
6395 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6396             Joseph Myers  <joseph@codesourcery.com>
6397             Paul Pluzhnikov  <ppluzhnikov@google.com>
6398
6399         [BZ #14012]
6400         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6401         requiring rpcgen.
6402         [cross-compiling] (extra-libs): Likewise.
6403         [cross-compiling] (extra-libs-others): Likewise.
6404         [cross-compiling] (librpcsvc-routines): Likewise.
6405         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6406         [cross-compiling] (omit-deps): Likewise.
6407         (sunrpc-CPPFLAGS): New variable.
6408         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6409         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6410         (cross-rpcgen-objs): New variable.
6411         (extra-objs): Append $(cross-rpcgen-objs).
6412         ($(cross-rpcgen-objs)): New rule.
6413         ($(objpfx)cross-rpcgen): Likewise.
6414         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6415         comment.
6416         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6417         ($(objpfx)x%.stmp): Likewise.
6418         * sunrpc/proto.h [IS_IN_build] (_): Define.
6419         [IS_IN_build] (_libc_intl_domainname): Likewise.
6420
6421 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6422
6423         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6424         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6425         and R_X86_64_TPOFF64.
6426
6427 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6428
6429         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6430         sysdeps/unix/sysv/syscalls.list.
6431         (stime): Likewise.
6432         (utime): Likewise.
6433         * sysdeps/unix/sysv/syscalls.list: Remove file.
6434
6435 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6436
6437         [BZ #3440]
6438         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6439         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6440         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6441         (__LC_IDENTIFICATION): Make these macros useful in #if
6442         expressions, as required by C99.
6443
6444 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6445
6446         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6447         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6448         after this.
6449
6450 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6451
6452         * stdlib/longlong.h: Updated from GCC.
6453
6454 2012-05-09  Andreas Jaeger  <aj@suse.de>
6455
6456         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6457         default is first entry.
6458         (run_mode): Set type.
6459         (main): Remove informal message about syslog.
6460         (options): Fix typo.
6461
6462         [BZ #14053]
6463         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6464         to asm.
6465         (lrint): Likewise.
6466         (llrintf): Likewise.
6467         (llrint): Likewise.
6468         (rint): Likewise.
6469         (rintf): Likewise.
6470         (nearbyint): Likewise.
6471         (nearbyintf): Likewise.
6472
6473 2012-05-09  Andreas Jaeger  <aj@suse.de>
6474             Pedro Alves  <palves@redhat.com>
6475
6476         * nscd/nscd.c (run_mode): Use enum.
6477         (main): Cleanup coding style issue.
6478
6479 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6480             Andreas Jaeger  <aj@suse.de>
6481
6482         * nscd/nscd.c (go_background): Replaced with...
6483         (run_mode): ... this.
6484         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6485         (options): Add -F --foreground.
6486         (main): Implement it.
6487         (parse_opt): Parse it.
6488
6489 2012-05-09  Andreas Jaeger  <aj@suse.de>
6490
6491         [BZ #14083]
6492         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6493         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6494         -Wconversion warning.
6495         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6496         Likewise.
6497
6498 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6499
6500         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6501         == 0.
6502         (LC_ALL): Use macro-int-constant.
6503         (LC_COLLATE): Likewise.
6504         (LC_CTYPE): Likewise.
6505         (LC_MESSAGES): Likewise.
6506         (LC_MONETARY): Likewise.
6507         (LC_NUMERIC): Likewise.
6508         (LC_TIME): Likewise.
6509         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6510         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6511         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6512         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6513         Specify type.
6514         [C99-based standards] (float_t): Expect type.
6515         [C99-based standards] (double_t): Expect type.
6516         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6517         type.
6518         [C99-based standards] (HUGE_VALL): Likewise.
6519         [C99-based standards] (INFINITY): Likewise.
6520         [C99-based standards] (NAN): Likewise.
6521         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6522         [C99-based standards] (FP_NAN): Likewise.
6523         [C99-based standards] (FP_NORMAL): Likewise.
6524         [C99-based standards] (FP_SUBNORMAL): Likewise.
6525         [C99-based standards] (FP_ZERO): Likewise.
6526         [C99-based standards] (FP_FAST_FMA): Use
6527         optional-macro-int-constant.  Specify type.  Require == 1.
6528         [C99-based standards] (FP_FAST_FMAF): Likewise.
6529         [C99-based standards] (FP_FAST_FMAL): Likewise.
6530         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6531         [C99-based standards] (FP_ILOGBNAN): Likewise.
6532         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6533         Specify type.
6534         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6535         [C99-based standards] (math_errhandling): Specify type.
6536         [ISO99 || ISO11] (signgam): Do not allow.
6537         [non-C99-based standards] (copysignf): Do not allow.
6538         [non-C99-based standards] (exp2f): Likewise.
6539         [non-C99-based standards] (log2f): Likewise.
6540         [non-C99-based standards] (modff): Allow.
6541         [non-C99-based standards] (erff): Do not allow.
6542         [non-C99-based standards] (erfcf): Likewise.
6543         [non-C99-based standards] (gammaf): Likewise.
6544         [non-C99-based standards] (hypotf): Likewise.
6545         [non-C99-based standards] (j0f): Likewise.
6546         [non-C99-based standards] (j1f): Likewise.
6547         [non-C99-based standards] (jnf): Likewise.
6548         [non-C99-based standards] (lgammaf): Likewise.
6549         [non-C99-based standards] (tgammaf): Likewise.
6550         [non-C99-based standards] (y0f): Likewise.
6551         [non-C99-based standards] (y1f): Likewise.
6552         [non-C99-based standards] (ynf): Likewise.
6553         [non-C99-based standards] (isnanf): Likewise.
6554         [non-C99-based standards] (acoshf): Likewise.
6555         [non-C99-based standards] (asinhf): Likewise.
6556         [non-C99-based standards] (atanhf): Likewise.
6557         [non-C99-based standards] (cbrtf): Likewise.
6558         [non-C99-based standards] (expm1f): Likewise.
6559         [non-C99-based standards] (ilogbf): Likewise.
6560         [non-C99-based standards] (log1pf): Likewise.
6561         [non-C99-based standards] (logbf): Likewise.
6562         [non-C99-based standards] (nextafterf): Likewise.
6563         [non-C99-based standards] (remainderf): Likewise.
6564         [non-C99-based standards] (rintf): Likewise.
6565         [non-C99-based standards] (scalbf): Likewise.
6566         [non-C99-based standards] (copysignl): Likewise.
6567         [non-C99-based standards] (exp2l): Likewise.
6568         [non-C99-based standards] (log2l): Likewise.
6569         [non-C99-based standards] (modfl): Allow.
6570         [non-C99-based standards] (erfl): Do not allow.
6571         [non-C99-based standards] (erfcl): Likewise.
6572         [non-C99-based standards] (gammal): Likewise.
6573         [non-C99-based standards] (hypotl): Likewise.
6574         [non-C99-based standards] (j0l): Likewise.
6575         [non-C99-based standards] (j1l): Likewise.
6576         [non-C99-based standards] (jnl): Likewise.
6577         [non-C99-based standards] (lgammal): Likewise.
6578         [non-C99-based standards] (tgammal): Likewise.
6579         [non-C99-based standards] (y0l): Likewise.
6580         [non-C99-based standards] (y1l): Likewise.
6581         [non-C99-based standards] (ynl): Likewise.
6582         [non-C99-based standards] (isnanl): Likewise.
6583         [non-C99-based standards] (acoshl): Likewise.
6584         [non-C99-based standards] (asinhl): Likewise.
6585         [non-C99-based standards] (atanhl): Likewise.
6586         [non-C99-based standards] (cbrtl): Likewise.
6587         [non-C99-based standards] (expm1l): Likewise.
6588         [non-C99-based standards] (ilogbl): Likewise.
6589         [non-C99-based standards] (log1pl): Likewise.
6590         [non-C99-based standards] (logbl): Likewise.
6591         [non-C99-based standards] (nextafterl): Likewise.
6592         [non-C99-based standards] (remainderl): Likewise.
6593         [non-C99-based standards] (rintl): Likewise.
6594         [non-C99-based standards] (scalbl): Likewise.
6595         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6596         [non-C99-based standards] (FP_*): Do not allow.
6597         [C99-based standards] (FP_*): Change to
6598         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6599         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6600         allow.
6601         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6602         (SIG_ERR): Likewise.
6603         [X/Open-based standards] (SIG_HOLD): Likewise.
6604         (SIG_IGN): Likewise.
6605         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6606         positive value.
6607         (SIGFPE): Likewise.
6608         (SIGILL): Likewise.
6609         (SIGINT): Likewise.
6610         (SIGSEGV): Likewise.
6611         (SIGTER): Likewise.
6612         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6613         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6614         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6615         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6616         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6617         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6618         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6619         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6620         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6621         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6622         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6623         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6624         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6625         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6626         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6627         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6628         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6629         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6630         [X/Open-based standards] (SIGTRAP): Likewise.
6631         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6632         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6633         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6634         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6635         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6636         allow.
6637
6638 2012-05-08  Ian Wienand  <ianw@vmware.com>
6639
6640         [BZ #14080]
6641         * time/tzset.c (__tzset_parse_tz): Update default rules for
6642         daylight time changes in the Energy Policy Act of 2005.
6643
6644 2012-05-09  Andreas Jaeger  <aj@suse.de>
6645
6646         [BZ #13983]
6647         * elf/ldconfig.c (parse_conf): Change string to make clear that
6648         ldconfig only issued a warning if ld.so.conf does not exist.
6649
6650 2012-05-08  David S. Miller  <davem@davemloft.net>
6651
6652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6653         movxtod instead of popping the value on the stack.
6654
6655         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6656
6657 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6658
6659         * config.h.in: Add HAVE_ARM_PCS_VFP.
6660
6661 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6662
6663         [BZ #13979]
6664         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6665         checking but the checks are disabled for any reason.
6666
6667 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6668
6669         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6670         and ELF64_R_TYPE with ELFW(R_TYPE).
6671
6672 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6673
6674         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6675         (ulimit): Likewise.
6676
6677         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6678         (settimeofday): Likewise.
6679
6680 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6681
6682         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6683         a struct th_u2 inside the union, and move tu_block/tu_code into
6684         a new th_u3 union of tu_block/tu_code inside of that.  Move
6685         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6686         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6687         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6688         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6689         (th_stuff): Change to th_u1.tu_stuff.
6690         (th_data): Define.
6691         (th_msg): Change to th_u1.th_u2.tu_data.
6692
6693 2012-05-07  David S. Miller  <davem@davemloft.net>
6694
6695         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6696
6697         [BZ #14074]
6698         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6699         (SETUP_PIC_REG): Use it.
6700         (SETUP_PIC_REG_LEAF): Use it.
6701
6702 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6703
6704         [BZ #13885]
6705         [BZ #13923]
6706         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6707         USE_AS_EXPM1L.
6708         (EXPL_FINITE): Likewise.
6709         (FLDLOG): Likewise.
6710         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6711         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6712         e_expl.S.
6713         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6714         USE_AS_EXPM1L.
6715         (EXPL_FINITE): Likewise.
6716         (FLDLOG): Likewise.
6717         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6718         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6719         e_expl.S.
6720         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6721         test of -max_value argument for long double.
6722         * sysdeps/i386/fpu/libm-test-ulps: Update.
6723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6724
6725 2012-05-06  David S. Miller  <davem@davemloft.net>
6726
6727         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6728         quad soft-float symbols whose references which are compiler
6729         generated.
6730         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6731
6732 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6733
6734         [BZ #13884]
6735         [BZ #13914]
6736         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6737         USE_AS_EXP10L.
6738         (EXPL_FINITE): Likewise.
6739         (FLDLOG): Likewise.
6740         (c0): Likewise.
6741         (c1): Likewise.
6742         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6743         Adjust comments for base varying.
6744         (__expl_finite): Change alias to EXPL_FINITE.
6745         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6746         e_expl.S.
6747         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6748         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6749         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6750         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6751         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6752         USE_AS_EXP10L.
6753         (EXPL_FINITE): Likewise.
6754         (FLDLOG): Likewise.
6755         (c0): Likewise.
6756         (c1): Likewise.
6757         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6758         Adjust comments for base varying.
6759         (__expl_finite): Change alias to EXPL_FINITE.
6760         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6761         tests for bugs.
6762         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6763
6764         [BZ #14064]
6765         * math/libm-test.inc (check_float_internal): Correct ulp
6766         calculation for subnormal expected results.
6767
6768 2012-05-06  Andreas Jaeger  <aj@suse.de>
6769
6770         * Makeconfig (+math-flags): New, set to -frounding-math.
6771         (+cflags): Add +math-flags so that all of glibc gets compiled with
6772         it.
6773
6774         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6775
6776 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6777
6778         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6779         Disable one test.
6780
6781         [BZ #13787]
6782         [BZ #13922]
6783         [BZ #14036]
6784         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6785         (__ieee754_expl): Allow for and saturate large arguments.
6786         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6787         (u_threshold): Likewise.
6788         (__exp): Call __ieee754_exp before checking for overflow and
6789         underflow.
6790         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6791         (u_threshold): Likewise.
6792         (__expf): Call __ieee754_expf before checking for overflow and
6793         underflow.
6794         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6795         (u_threshold): Likewise.
6796         (__expl): Call __ieee754_expl before checking for overflow and
6797         underflow.
6798         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6799         (__ieee754_expl): Allow for and saturate large arguments.
6800         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6801         missing overflow exception on overflow.
6802         (expm1_test): Do not allow missing overflow exception on overflow.
6803
6804         * sysdeps/i386/fpu/e_expl.c: Move to ...
6805         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6806         rather than using inline asm.
6807         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6808         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6809         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6810
6811         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6812         (nice): Likewise.
6813         (poll): Likewise.
6814         (signal): Likewise.
6815         (time): Likewise.
6816         (times): Likewise.
6817
6818 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6819
6820         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6821         sysdeps/unix/common/syscalls.list.
6822         (fchmod): Likewise.
6823         (fchown): Likewise.
6824         (ftruncate): Likewise.
6825         (getrusage): Likewise.
6826         (gettimeofday): Likewise.
6827         (setpgid): Likewise.
6828         (setregid): Likewise.
6829         (setreuid): Likewise.
6830         (sigaction): Likewise.
6831         (truncate): Likewise.
6832         (vhangup): Likewise.
6833         * sysdeps/unix/common/syscalls.list: Remove file.
6834         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6835         * sysdeps/unix/sysv/linux/Implies: Likewise.
6836
6837 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6838
6839         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6840         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6841         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6842         Moved to ...
6843         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6844         Here.
6845         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6846         to ...
6847         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6848         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6849         to ...
6850         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6851         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6852         to ...
6853         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6854         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6855         to ...
6856         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6857         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6858         to ...
6859         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6860         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6861         to ...
6862         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6863         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6864         to ...
6865         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6866         Here.
6867         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6868         to ...
6869         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6870         Here.
6871         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6872         to ...
6873         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6874         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6875         Moved to ...
6876         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6877         Here.
6878         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6879         to ...
6880         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6881
6882 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6883
6884         * sysdeps/unix/common/bits/dirent.h: Remove file.
6885         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6886
6887         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6888         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6889         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6890         * sysdeps/unix/bsd/isatty.c: Likewise.
6891         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6892         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6893         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6894
6895 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6896
6897         [BZ #13563]
6898         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6899         long double comparison inaccuracies.
6900         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6901         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6902
6903 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6904
6905         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6906         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6907
6908 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6909
6910         [BZ #14049]
6911         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6912         nonzero digits before rounding a hex value.
6913         * stdlib/tst-strtod.c (tests): Add another test.
6914
6915 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6916
6917         * sysdeps/s390/fpu/libm-test-ulps: Update.
6918
6919 2012-05-03  Andreas Jaeger  <aj@suse.de>
6920
6921         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6922         does not get optimized out.
6923         (malloc_opt_barrier): New.
6924
6925 2012-05-03  Andreas Jaeger  <aj@suse.de>
6926             Roland McGrath  <roland@hack.frob.com>
6927
6928         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6929         intermediate file deletion.
6930         (generated): Add .symlist files.
6931
6932 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6933
6934         [BZ #13775]
6935         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6936         Redirect under this condition.
6937         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6938         [__USE_GNU] (__dprintf_chk): Not under this condition.
6939         [__USE_GNU] (__vdprintf_chk): Likewise.
6940         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6941         under this condition.
6942         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6943         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6944         [__USE_XOPEN2K8] (vdprintf): Likewise.
6945         [__USE_GNU] (__dprintf_chk): Not under this condition.
6946         [__USE_GNU] (__vdprintf_chk): Likewise.
6947         [__USE_GNU] (dprintf): Likewise.
6948         [__USE_GNU] (vdprintf): Likewise.
6949
6950 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6951
6952         * elf/Makefile (common-generated): Set this instead of generated for
6953         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6954         $(all-built-dso)-derived lists.
6955
6956 2012-05-03  Andreas Jaeger  <aj@suse.de>
6957
6958         * sysdeps/i386/fpu/libm-test-ulps: Update.
6959
6960         * FAQ: Removed.
6961         * FAQ.in: Likewise.
6962         * scripts/gen-FAQ.pl: Likewise.
6963         * manual/install.texi (Installation): Point to online location of
6964         FAQ.
6965         * Makefile (files-for-dist): Remove FAQ.
6966         (FAQ): Remove.
6967
6968 2012-05-02  Allan McRae  <allan@archlinux.org>
6969
6970         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6971         (LDFLAGS-reldepmod5.so): Likewise.
6972         (LDFLAGS-reldep6mod1.so): Likewise.
6973         (LDFLAGS-reldep6mod4.so): Likewise.
6974         (LDFLAGS-reldep8mod3.so): Likewise.
6975         (LDFLAGS-unload4mod1.so): Likewise.
6976         (LDFLAGS-unload4mod2.so): Likewise.
6977         (LDFLAGS-tst-initorder): Likewise.
6978         (LDFLAGS-tst-initordera2.so): Likewise.
6979         (LDFLAGS-tst-initordera3.so): Likewise.
6980         (LDFLAGS-tst-initordera4.so): Likewise.
6981         (LDFLAGS-tst-initorderb2.so): Likewise.
6982         (LDFLAGS-noload): Likewise.
6983         (LDFLAGS-next): Likewise.
6984         (LDFLAGS-order2mod1.so): Likewise.
6985         (LDFLAGS-order2mod2.so): Likewise.
6986         (LDFLAGS-tst-initorder2): Likewise.
6987         (LDFLAGS-tst-initorder2a.so): Likewise.
6988         (LDFLAGS-tst-initorder2b.so): Likewise.
6989         (LDFLAGS-tst-initorder2c.so): Likewise.
6990         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6991
6992 2012-05-02  David S. Miller  <davem@davemloft.net>
6993
6994         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6995
6996 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6997
6998         [BZ #14055]
6999         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7000
7001 2012-05-02  Andreas Jaeger  <aj@suse.de>
7002
7003         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7004         since we manipulate rounding mode.
7005         (CPPFLAGS-test-idouble.c): Likewise.
7006         (CPPFLAGS-test-ifloat.c): Likewise.
7007         (CFLAGS-test-ldouble.c): Likewise.
7008         (CFLAGS-test-double.c): Likewise.
7009         (CFLAGS-test-float.c): Likewise.
7010         (CFLAGS-test-misc.c): Likewise.
7011         (CFLAGS-test-test-fenv.c): Likewise.
7012
7013 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7014
7015         [BZ #2550]
7016         [BZ #2570]
7017         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7018         comparisons to determine direction to adjust input.
7019
7020 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7021
7022         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7023         output to the target.
7024
7025         * scripts/localplt.awk: New file.
7026         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7027         (check-localplt-CFLAGS): Variable removed.
7028         ($(all-built-dso:=.jmprel)): New static pattern rule.
7029         (generated): Add those targets.
7030         (localplt-built-dso): New variable.
7031         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7032
7033         * elf/check-localplt.c: File removed.
7034
7035         * scripts/check-execstack.awk: New file.
7036         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7037         (check-execstack-CFLAGS): Variable removed.
7038         ($(objpfx)check-execstack.h): Target removed.
7039         ($(objpfx)execstack-default): New target.
7040         (generated): Add that instead of check-execstack.h.
7041         ($(all-built-dso:=.phdr)): New static pattern rule.
7042         (generated): Add those targets.
7043         * elf/check-execstack.c: File removed.
7044
7045         * scripts/check-textrel.awk: New file.
7046         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7047         (check-textrel-CFLAGS): Variable removed.
7048         (all-built-dso): Use := to define.o
7049         ($(all-built-dso:=.dyn)): New static pattern rule.
7050         (generated): Add those targets.
7051         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7052         * config.make.in (READELF): New substituted variable.
7053         * elf/check-textrel.c: File removed.
7054
7055 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7056
7057         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7058         allow.
7059         * conform/data/ctype.h-data [C99-based standards] (isblank):
7060         Expect function.
7061         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7062         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7063         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7064         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7065         Specify type.  Require positive value.
7066         (EILSEQ): Likewise.
7067         (ERANGE): Likewise.
7068         [ISO || POSIX] (EILSEQ): Do not expect.
7069         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7070         Specify type.  Require positive value.
7071         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7072         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7073         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7074         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7075         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7076         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7077         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7078         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7079         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7080         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7081         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7082         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7083         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7084         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7085         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7086         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7087         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7088         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7089         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7090         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7091         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7092         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7093         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7094         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7095         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7096         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7097         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7098         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7099         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7100         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7101         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7102         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7103         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7104         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7105         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7106         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7107         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7108         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7109         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7110         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7111         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7112         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7113         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7114         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7115         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7116         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7117         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7118         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7119         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7120         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7121         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7122         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7123         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7124         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7125         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7126         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7127         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7128         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7129         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7130         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7131         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7132         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7133         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7134         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7135         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7136         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7137         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7138         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7139         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7140         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7141         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7142         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7143         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7144         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7145         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7146         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7147         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7148         Require >= 2.
7149         (FLT_ROUNDS): Expect as macro, not constant.
7150         (FLT_MANT_DIG): Use macro-int-constant.
7151         (DBL_MANT_DIG): Likewise.
7152         (LDBL_MANT_DIG): Likewise.
7153         (FLT_DIG): Likewise.
7154         (DBL_DIG): Likewise.
7155         (LDBL_DIG): Likewise.
7156         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7157         (DBL_MIN_EXP): Likewise.
7158         (LDBL_MIN_EXP): Likewise.
7159         (FLT_MAX_EXP): Use macro-int-constant.
7160         (DBL_MAX_EXP): Likewise.
7161         (LDBL_MAX_EXP): Likewise.
7162         (FLT_MAX_10_EXP): Likewise.
7163         (DBL_MAX_10_EXP): Likewise.
7164         (LDBL_MAX_10_EXP): Likewise.
7165         (FLT_MAX): Use macro-constant.
7166         (DBL_MAX): Likewise.
7167         (LDBL_MAX): Likewise.
7168         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7169         (DBL_EPSILON): Likewise.
7170         (LDBL_EPSILON): Likewise.
7171         (FLT_MIN): Likewise.
7172         (DBL_MIN): Likewise.
7173         (LDBL_MIN): Likewise.
7174         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7175         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7176         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7177         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7178         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7179         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7180         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7181         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7182         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7183         [ISO11] (FLT_TRUE_MIN): Likewise.
7184         [ISO11] (LDBL_TRUE_MIN): Likewise.
7185         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7186         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7187         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7188         (SCHAR_MAX): Likewise.
7189         (UCHAR_MAX): Likewise.
7190         (CHAR_MIN): Likewise.
7191         (CHAR_MAX): Likewise.
7192         (MB_LEN_MAX): Use macro-int-constant.
7193         (SHRT_MIN): Use macro-int-constant.  Specify type.
7194         (SHRT_MAX): Likewise.
7195         (USHRT_MAX): Likewise.
7196         (INT_MAX): Likewise.
7197         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7198         bound negative.
7199         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7200         bound with "U".
7201         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7202         bound with "L".
7203         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7204         bound negative.  Suffix upper bound with "L".
7205         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7206         bound with "UL".
7207         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7208         Specify type.
7209         [C99-based standards] (LLONG_MAX): Likewise.
7210         [C99-based standards] (ULLONG_MAX): Likewise.
7211         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7212         == 0.
7213         [ISO11] (max_align_t): Require type.
7214         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7215
7216         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7217         from $CFLAGS, without defining away __attribute__ calls.
7218         (checknamespace): Use $CFLAGS_namespace.
7219
7220         * conform/conformtest.pl (@keywords): Only include C99 keywords
7221         for standards based on C99 or C11.
7222
7223         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7224         Disable tests.
7225         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7226         UNIX98]: Likewise.
7227
7228         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7229         usability of symbols in #if.
7230
7231         * conform/conformtest.pl: If macro or constant types start
7232         "promoted:", expect the symbol to be of the following type
7233         promoted by the integer promotions.
7234
7235         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7236         in one place.  Also handle "macro-constant".
7237
7238         * conform/conformtest.pl: Only accept expected macro values with
7239         "==".  Parse all "macro" lines in one place.
7240         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7241
7242         * conform/conformtest.pl: Handle braced types on "constant" lines
7243         instead of handling "typed-constant".
7244         * conform/data/signal.h-data: Use "constant" instead of
7245         "typed-constant".
7246
7247         * conform/conformtest.pl: Handle "optional-" at start of lines in
7248         one place rather than duplicating several cases.  Handle each
7249         format of "macro" line with initial "optional-".
7250
7251         * conform/conformtest.pl: Only accept expected constant or
7252         optional-constant values with "==".  Parse all "constant" lines in
7253         one place.  Parse all "optional-constant" lines in one place.
7254         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7255         * conform/data/fmtmsg.h-data: Likewise.
7256         * conform/data/netinet/in.h-data: Likewise.
7257         * conform/data/tar.h-data: Likewise.
7258         * conform/data/limits.h-data: Use "==" form on "constant" and
7259         "optional-constant" lines.
7260
7261         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7262         Use -std=c99 for XOPEN2K.
7263         (@knownproblems): Remove.
7264         (newtoken): Don't check %isknown.
7265
7266         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7267         Do not expect macro.
7268         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7269         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7270         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7271         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7272         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7273         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7274         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7275         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7276         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7277         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7278         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7279         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7280         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7281         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7282         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7283         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7284         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7285         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7286         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7287         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7288         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7289         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7290         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7291         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7292         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7293         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7294         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7295         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7296         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7297         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7298         [XPG3] (acosh): Likewise.
7299         [XPG3] (asinh): Likewise.
7300         [XPG3] (atanh): Likewise.
7301         [XPG3] (cbrt): Likewise.
7302         [XPG3] (expm1): Likewise.
7303         [XPG3] (ilogb): Likewise.
7304         [XPG3] (log1p): Likewise.
7305         [XPG3] (logb): Likewise.
7306         [XPG3] (nextafter): Likewise.
7307         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7308         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7309         [XPG3] (remainder): Likewise.
7310         [XPG3] (rint): Likewise.
7311         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7312         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7313         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7314         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7315         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7316         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7317         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7318         [UNIX98 || XOPEN2K] (scalb): Expect.
7319         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7320         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7321         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7322         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7323         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7324         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7325         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7326         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7327         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7328         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7329         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7330         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7331         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7332         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7333         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7334         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7335         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7336         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7337         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7338         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7339         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7340         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7341         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7342         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7343         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7344         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7345         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7346         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7347         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7348         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7349         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7350         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7351         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7352         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7353         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7354         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7355         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7356         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7357         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7358         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7359         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7360         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7361         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7362         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7363         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7364         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7365         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7366         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7367         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7368         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7369         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7370         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7371         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7372         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7373         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7374         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7375         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7376         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7377         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7378         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7379         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7380         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7381         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7382         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7383         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7384         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7385         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7386         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7387         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7388         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7389         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7390         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7391         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7392         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7393         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7394         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7395         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7396         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7397         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7398         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7399         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7400         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7401         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7402         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7403         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7404         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7405         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7406         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7407         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7408         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7409         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7410         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7411         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7412         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7413         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7414         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7415         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7416         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7417         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7418         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7419         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7420         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7421         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7422         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7423         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7424         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7425         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7426         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7427         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7428         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7429         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7430         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7431         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7432         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7433         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7434         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7435         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7436         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7437         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7438         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7439         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7440         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7441         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7442         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7443         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7444         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7445         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7446         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7447         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7448         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7449         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7450         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7451         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7452         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7453         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7454         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7455         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7456
7457         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7458         _XOPEN_SOURCE_EXTENDED for XPG4.
7459
7460         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7461
7462         * Makeconfig (localtime): Remove variable.
7463         (inst_localtime-file): Likewise.
7464
7465 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7466
7467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7468         Update.
7469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7470         Update.
7471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7472         Update.
7473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7474         Update.
7475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7476         Update.
7477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7478         Update.
7479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7480         Update.
7481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7482         Update.
7483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7484         Update.
7485
7486 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7487
7488         [BZ #2550]
7489         [BZ #2570]
7490         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7491         comparisons to determine direction to adjust input.
7492         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7493         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7494         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7495         Likewise.
7496         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7497         Likewise.
7498         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7499         Likewise.
7500         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7501         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7502         Likewise.
7503         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7504         Likewise.
7505         * math/libm-test.inc (nexttoward_test): Add more tests.
7506
7507 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7508
7509         [BZ #14040]
7510         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7511         in version GLIBC_2.1, not GLIBC_2.0.
7512         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7513         Likewise.
7514
7515 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7516
7517         [BZ #13942]
7518         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7519         (1 - x) * (1 + x).
7520         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7521         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7522         * math/libm-test.inc (acos_test): Add more tests.
7523         (asin_test): Likewise.
7524         * sysdeps/i386/fpu/libm-test-ulps: Update.
7525         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7526
7527         [BZ #14034]
7528         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7529         of square root.
7530         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7531         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7532         * math/libm-test.inc (acos_test_tonearest): New function.
7533         (acos_test_towardzero): Likewise.
7534         (acos_test_downward): Likewise.
7535         (acos_test_upward): Likewise.
7536         (asin_test_tonearest): Likewise.
7537         (asin_test_towardzero): Likewise.
7538         (asin_test_downward): Likewise.
7539         (asin_test_upward): Likewise.
7540         (main): Call the new functions.
7541         * sysdeps/i386/fpu/libm-test-ulps: Update.
7542         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7543
7544         [BZ #13884]
7545         [BZ #13924]
7546         * math/e_exp10.c: Include <float.h>.
7547         (__ieee754_exp10): Handle underflow here rather than multiplying
7548         large negative argument by M_LN10.
7549         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7550         of __ieee754_expf.
7551         * math/e_exp10l.c: Include <float.h>.
7552         (__ieee754_exp10l): Handle underflow here rather than multiplying
7553         large negative argument by M_LN10l.
7554         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7555         spurious overflow exception on underflow.
7556
7557 2012-04-29  Marek Polacek  <polacek@redhat.com>
7558
7559         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7560         (__fortify_function): New macro.
7561         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7562         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7563         __extern_always_inline.
7564         * libio/bits/stdio2.h: Likewise.
7565         * libio/bits/stdio.h: Likewise.
7566         * string/string.h: Likewise.
7567         * string/bits/string3.h: Likewise.
7568         * include/stdio.h: Likewise.
7569         * stdlib/bits/stdlib.h: Likewise.
7570         * stdlib/stdlib.h: Likewise.
7571         * rt/bits/mqueue2.h: Likewise.
7572         * rt/mqueue.h: Likewise.
7573         * posix/bits/unistd.h: Likewise.
7574         * posix/unistd.h: Likewise.
7575         * io/bits/poll2.h: Likewise.
7576         * io/bits/fcntl2.h: Likewise.
7577         * io/fcntl.h: Likewise.
7578         * io/sys/poll.h: Likewise.
7579         * misc/bits/syslog.h: Likewise.
7580         * misc/bits/syslog-ldbl.h: Likewise.
7581         * misc/sys/syslog.h: Likewise.
7582         * socket/bits/socket2.h: Likewise.
7583         * socket/sys/socket.h: Likewise.
7584         * debug/tst-chk1.c: Likewise.
7585         * wcsmbs/bits/wchar2.h: Likewise.
7586         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7587         * wcsmbs/wchar.h: Likewise.
7588
7589 2012-04-29  Andreas Jaeger  <aj@suse.de>
7590
7591         * Makerules (tests): Remove enable-check-abi protection.
7592         (check-abi-warn): Remove.
7593         (check-abi-%): Remove check-abi-warn usage.
7594
7595         * configure.in: Remove check-abi configure option.
7596         * configure: Regenerated.
7597         * config.make.in (enable-check-abi): Remove.
7598
7599 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7600
7601         [BZ #14033]
7602         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7603         double functions to double *_finite functions.
7604
7605         [BZ #13941]
7606         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7607         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7608         LDBL_MIN_EXP.
7609         * stdio-common/Makefile (tests): Add tst-sprintf3.
7610         * stdio-common/tst-sprintf3.c: New file.
7611
7612         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7613         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7614
7615 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7616
7617         * conform/conformtest.pl: Remove duplicate typed-constant
7618         handling.
7619
7620 2012-04-28  David S. Miller  <davem@davemloft.net>
7621
7622         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7623         (check-abi-%): Remove AWK script prerequisite and explicit
7624         abilist directory.
7625         (check-abi): Rewrite to just diff the symlist with the abilist.
7626         (config-tls, config-abi-config): Delete, no longer used.
7627         (update-abi-%): Remove AWK script and explicit abilist directory.
7628         (update-abi): Rewrite to simply compare and conditionally copy the
7629         symlist and the sysdep abilist file.  Remove update-abi-config
7630         checks.
7631         * abilist/ld.abilist: Remove.
7632         * abilist/libBrokenLocale.abilist: Remove.
7633         * abilist/libanl.abilist: Remove.
7634         * abilist/libcrypt.abilist: Remove.
7635         * abilist/libdl.abilist: Remove.
7636         * abilist/librt.abilist: Remove.
7637         * abilist/libthread_db.abilist: Remove.
7638         * abilist/libutil.abilist: Remove.
7639         * scripts/extract-abilist.awk: Remove.
7640         * scripts/merge-abilist.awk: Remove.
7641         * sysdeps/generic/libcidn.abilist: New file.
7642         * sysdeps/generic/libnss_compat.abilist: New file.
7643         * sysdeps/generic/libnss_db.abilist: New file.
7644         * sysdeps/generic/libnss_dns.abilist: New file.
7645         * sysdeps/generic/libnss_files.abilist: New file.
7646         * sysdeps/generic/libnss_hesiod.abilist: New file.
7647         * sysdeps/generic/libnss_nis.abilist: New file.
7648         * sysdeps/generic/libnss_nisplus.abilist: New file.
7649         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7650         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7651         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7652         file.
7653         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7654         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7655         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7656         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7657         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7658         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7659         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7660         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7661         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7662         file.
7663         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7664         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7665         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7666         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7667         file.
7668         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7669         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7670         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7671         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7672         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7673         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7674         file.
7675         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7676         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7677         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7678         file.
7679         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7680         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7681         New file.
7682         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7683         New file.
7684         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7685         New file.
7686         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7687         New file.
7688         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7689         New file.
7690         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7691         New file.
7692         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7693         New file.
7694         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7695         New file.
7696         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7697         New file.
7698         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7699         New file.
7700         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7701         New file.
7702         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7703         New file.
7704         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7705         New file.
7706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7707         file.
7708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7709         New file.
7710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7711         New file.
7712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7713         file.
7714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7715         New file.
7716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7717         New file.
7718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7719         file.
7720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7721         New file.
7722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7723         New file.
7724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7725         New file.
7726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7727         New file.
7728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7729         New file.
7730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7731         New file.
7732         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7733         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7734         file.
7735         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7736         New file.
7737         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7738         file.
7739         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7740         file.
7741         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7742         file.
7743         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7744         file.
7745         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7746         file.
7747         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7748         New file.
7749         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7750         file.
7751         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7752         file.
7753         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7754         New file.
7755         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7756         file.
7757         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7758         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7759         file.
7760         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7761         New file.
7762         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7763         file.
7764         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7765         file.
7766         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7767         file.
7768         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7769         file.
7770         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7771         file.
7772         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7773         New file.
7774         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7775         file.
7776         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7777         file.
7778         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7779         New file.
7780         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7781         file.
7782         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7783         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7784         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7785         file.
7786         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7787         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7788         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7789         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7790         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7791         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7792         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7793         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7794         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7795         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7796         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7797         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7798         file.
7799         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7800         New file.
7801         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7802         file.
7803         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7804         file.
7805         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7806         file.
7807         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7808         file.
7809         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7810         file.
7811         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7812         New file.
7813         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7814         New file.
7815         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7816         file.
7817         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7818         New file.
7819         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7820         file.
7821         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7822         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7823         file.
7824         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7825         New file.
7826         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7827         file.
7828         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7829         file.
7830         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7831         file.
7832         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7833         file.
7834         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7835         file.
7836         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7837         New file.
7838         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7839         New file.
7840         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7841         file.
7842         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7843         New file.
7844         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7845         file.
7846
7847 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7848
7849         * conform/conformtest.pl: Fix typo in handling typed-constant from
7850         allow-header.
7851
7852 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7853
7854         * README: Cut down references to pre-2.6 Linux kernels and
7855         Linuxthreads.  Update lists of configurations in libc and ports
7856         and sort alphabetically.  Say "or newer" with Linux kernel version
7857         requirements.
7858
7859         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7860
7861 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7862
7863         [BZ #887]
7864         * math/libm-test.inc (logb_test_downward): New test to expose
7865         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7866         rounding mode.
7867
7868 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7869
7870         [BZ #14027]
7871         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7872         to be done.
7873         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7874         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7875
7876 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7877
7878         * sysdeps/unix/i386/brk.S: Remove file.
7879         * sysdeps/unix/i386/dl-brk.S: Likewise.
7880         * sysdeps/unix/i386/pipe.S: Likewise.
7881         * sysdeps/unix/i386/sigreturn.S: Likewise.
7882         * sysdeps/unix/i386/syscall.S: Likewise.
7883         * sysdeps/unix/i386/vfork.S: Likewise.
7884         * sysdeps/unix/i386/wait.S: Likewise.
7885
7886         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7887         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7888
7889         * configure.in (arm*-none*): Do not allow without
7890         --enable-hacker-mode.
7891         (netbsd*): Remove case setting base_os.
7892         (386bsd*): Likewise.
7893         (freebsd*): Likewise.
7894         (bsdi*): Likewise.
7895         (osf*): Likewise.
7896         (sunos*): Likewise.
7897         (ultrix*): Likewise.
7898         (newsos*): Likewise.
7899         (dynix*): Likewise.
7900         (*bsd*): Likewise.
7901         (sysv*): Likewise.
7902         (isc*): Likewise.
7903         (esix*): Likewise.
7904         (sco*): Likewise.
7905         (minix*): Likewise.
7906         (irix4*): Likewise.
7907         (irix6*): Likewise.
7908         (solaris[2-9]*): Likewise.
7909         (none): Likewise.
7910         * configure: Regenerated.
7911
7912 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7913
7914         [BZ #11521]
7915         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7916         overflow or cancellation in calculating denominator.
7917         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7918         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7919         down expression to avoid unexpected rounding in newer GCCs.
7920         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7921
7922 2012-04-26  David S. Miller  <davem@davemloft.net>
7923
7924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7925         long-double compat symbols.
7926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7931         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7932         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7933         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7934         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7938         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7939
7940 2012-04-25  David S. Miller  <davem@davemloft.net>
7941
7942         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7943         HWCAP_* values only after the memory barriers have been defined.
7944         (atomic_full_barrier): Define.
7945         (atomic_read_barrier): Define.
7946         (atomic_write_barrier): Define.
7947
7948 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7949
7950         * shlib-versions: Add libgcc_s version information.
7951         * sysdeps/generic/libgcc_s.h: Remove.
7952         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7953         libgcc_s.h.
7954         * sysdeps/gnu/unwind-resume.c: Likewise.
7955         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7956
7957 2012-04-25  David S. Miller  <davem@davemloft.net>
7958
7959         * sysdeps/unix/sparc/brk.S: Delete.
7960         * sysdeps/unix/sparc/dl-brk.S: Delete.
7961         * sysdeps/unix/sparc/pipe.S: Delete.
7962         * sysdeps/unix/sparc/sysdep.S: Delete.
7963         * sysdeps/unix/sparc/sysdep.h: Delete.
7964         * sysdeps/unix/sparc/vfork.S: Delete.
7965         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7966         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7967         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7968         ret_ERRVAL, r0, r1, MOVE): Define.
7969         (JUMPTARGET): Remove.
7970         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7971         sysdeps/unix/sparc/sysdep.h
7972         (ENTRY, END): Remove.
7973         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7974
7975 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7976
7977         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7978         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7979         -DIS_IN_build.
7980
7981         * timezone/README: Update upstream location and email address for
7982         tzcode and tzdata.
7983         * timezone/zdump.c: Update from tzcode 2012b.
7984         * timezone/zic.c: Likewise.
7985
7986         * configure.in (libc_cv_as_needed): Remove test.
7987         * configure: Regenerated.
7988         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7989         conditional definition.
7990         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7991         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7992         * config.make.in (have-as-needed): Remove variable.
7993
7994 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7995             Paul Pluzhnikov  <ppluzhnikov@google.com>
7996
7997         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7998         strings correctly.
7999
8000 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8001
8002         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8003         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8004         * sysdeps/sh/strlen.S: Likewise.
8005
8006 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8007
8008         * sysdeps/unix/fork.S: Remove file.
8009         * sysdeps/unix/i386/fork.S: Likewise.
8010         * sysdeps/unix/sparc/fork.S: Likewise.
8011
8012         * sysdeps/unix/system.c: Remove file.
8013         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8014
8015         * sysdeps/unix/getegid.S: Remove file.
8016         * sysdeps/unix/geteuid.S: Likewise.
8017
8018 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8019
8020         * scripts/check-localplt.awk: New file.
8021         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8022         of diff.
8023         * scripts/data/localplt-generic.data: Add a comment.
8024
8025         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8026         NODE when __dir_mkfile failed.
8027         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8028         Reported by Ludovic Courtès <ludo@gnu.org>.
8029
8030 2012-04-24  Andreas Jaeger  <aj@suse.de>
8031
8032         * Makerules (common-clean): Also remove gen-as-const-headers
8033         files.
8034
8035 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8036
8037         * Makerules (native-compile): Do not change working directory for
8038         build.  Use $(OUTPUT_OPTION) in command.
8039         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8040
8041 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8042
8043         [BZ #13886]
8044         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8045         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8046         * math/libm-test.inc (floor_test): Add more tests.
8047         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8048
8049 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8050
8051         * sysdeps/unix/getdents.c: Remove file.
8052         * sysdeps/unix/sysv/getdents.c: Likewise.
8053         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8054
8055         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8056         sysdeps/unix/mman/syscalls.list.
8057         (mmap): Likewise.
8058         (mprotect): Likewise.
8059         (msync): Likewise.
8060         (munmap): Likewise.
8061         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8062         * sysdeps/unix/mman/syscalls.list: Remove.
8063         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8064
8065         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8066         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8067         * configure: Regenerated.
8068         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8069         $(libgcc_s_suffix).
8070         * config.make.in (libgcc_s_suffix): Remove variable.
8071
8072 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8073
8074         * sysdeps/unix/sysv/gethostname.c: Move to ...
8075         * sysdeps/posix/gethostname.c: ... here.
8076
8077         * sysdeps/unix/execve.S: Remove file.
8078
8079         * sysdeps/unix/_exit.S: Remove file.
8080
8081 2012-04-23  Andreas Jaeger  <aj@suse.de>
8082
8083         [BZ #13739]
8084         * manual/Makefile: Remove make dist support, there's no
8085         need for a stand-alone documentation tar ball.
8086         (TEXI2DVI): Define always, it's not in Makeconfig.
8087         (dist): Removed.
8088         (tar-it): Removed.
8089         (edition): Removed.
8090         (glibc-doc-$(edition).tar): Removed
8091         (%.Z): Removed.
8092         (%.gz): Removed.
8093         (%.uu): Removed.
8094         (ETAGS): Remove, it's in Makeconfig.
8095         (move-if-change): Remove, it's in Makeconfig.
8096
8097 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8098
8099         [BZ #13970]
8100         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8101         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8102         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8103         (strtod_l, strtof_l, strtold_l): Remove __wur.
8104         It is not necessarily an error to ignore strtol's return value.
8105         One can reliably look at the stored endptr to decide whether
8106         the number had valid syntax.
8107
8108 2012-04-21  Andreas Jaeger  <aj@suse.de>
8109
8110         [BZ #13739]
8111         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8112
8113 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8114
8115         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8116         * sysdeps/unix/sysv/Versions: Remove file.
8117
8118 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8119
8120         [BZ #13927]
8121         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8122
8123 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8124
8125         [BZ #7064]
8126         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8127         version from __vm86.
8128
8129 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8130
8131         * sysdeps/unix/common/lxstat.c: Remove file.
8132         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8133
8134         * sysdeps/unix/sysv/Makefile: Remove file.
8135
8136         * sysdeps/unix/sysv/direct.h: Remove file.
8137
8138         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8139         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8140         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8141         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8142         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8143         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8144         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8145
8146         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8147
8148         * sysdeps/unix/xmknod.c: Remove file.
8149         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8150
8151         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8152
8153         * sysdeps/unix/sysv/i386/time.S: Remove file.
8154
8155         * sysdeps/unix/fxstat.c: Remove file.
8156         * sysdeps/unix/xstat.c: Likewise.
8157         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8158
8159         * sysdeps/unix/sysv/sigaction.c: Remove file.
8160
8161         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8162         (sysdep_headers): Remove variable.
8163         [termio.h not in sysdep_headers] (generated): Likewise.
8164         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8165         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8166         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8167         * sysdeps/unix/sysv/tcflow.c: Likewise.
8168         * sysdeps/unix/sysv/tcflush.c: Likewise.
8169         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8170         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8171         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8172         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8173         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8174
8175         * sysdeps/unix/siglist.c: Remove file.
8176
8177         * sysdeps/unix/getppid.S: Remove file.
8178
8179         * sysdeps/unix/mkdir.c: Remove file.
8180         * sysdeps/unix/rmdir.c: Likewise.
8181
8182 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8183
8184         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8185         ERR_MAX value.
8186         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8187         errlist-compat value.
8188
8189 2012-04-18  David S. Miller  <davem@davemloft.net>
8190
8191         * sysdeps/generic/memcopy.h (reg_char): Delete.
8192         * debug/strcat_chk.c: Use char, not reg_char.
8193         * debug/strcpy_chk.c: Likewise.
8194         * debug/strncat_chk.c: Likewise.
8195         * debug/strncpy_chk.c: Likewise.
8196         * string/memchr.c: Likewise.
8197         * string/memrchr.c: Likewise.
8198         * string/rawmemchr.c: Likewise.
8199         * string/strcat.c: Likewise.
8200         * string/strchr.c: Likewise.
8201         * string/strchrnul.c: Likewise.
8202         * string/strcmp.c: Likewise.
8203         * string/strcpy.c: Likewise.
8204         * string/strncat.c: Likewise.
8205         * string/strncmp.c: Likewise.
8206         * string/strncpy.c: Likewise.
8207
8208 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8209
8210         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8211         __builtin_memcopy is called when src and dest ranges are known to not
8212         overlap.
8213
8214 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8215
8216         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8217         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8218         fwd_align_merge macro call.
8219         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8220         bwd_align_merge macro call.
8221         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8222
8223 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8224
8225         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8226         bwd_align_merge macros.
8227         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8228         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8229         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8230
8231 2012-04-18  David S. Miller  <davem@davemloft.net>
8232
8233         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8234
8235 2012-04-18  Andreas Jaeger  <aj@suse.de>
8236
8237         [BZ# 6794]
8238         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8239         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8240         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8241
8242         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8243         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8244         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8245
8246         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8247         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8248         Adjust for changed ldbl-128 files.
8249
8250         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8251         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8252         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8253
8254 2012-04-17  David S. Miller  <davem@davemloft.net>
8255
8256         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8257
8258 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8259
8260         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8261         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8262         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8263         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8264         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8265         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8266
8267 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8268
8269         [BZ #6794]
8270         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8271         * math/libm-test.inc: Add ilogb errno and exception tests.
8272         * math/w_ilogb.c: New file: ilogb wrapper.
8273         * math/w_ilogbf.c: New file: ilogbf wrapper.
8274         * math/w_ilogbl.c: New file: ilogbl wrapper.
8275         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8276         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8277         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8278         exception being thrown with 0.0 as argument.
8279         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8280         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8281         exception being thrown with 0.0 as argument.
8282         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8283         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8284         exception being thrown with 0.0 as argument.
8285         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8286         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8287         exception being thrown with 0.0 as argument.
8288         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8289         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8290         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8291         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8292         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8293         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8294         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8295         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8296         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8297
8298 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8299
8300         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8301         with altivec.
8302
8303 2012-04-16  Marek Polacek  <polacek@redhat.com>
8304
8305         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8306
8307 2012-04-16  Marek Polacek  <polacek@redhat.com>
8308
8309         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8310         operands of fdivp instruction.
8311
8312 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8313
8314         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8315         * elf/tst-auditmod3b.c: Likewise.
8316         * elf/tst-auditmod4b.c: Likewise.
8317         * elf/tst-auditmod5b.c: Likewise.
8318         * elf/tst-auditmod6b.c: Likewise.
8319         * elf/tst-auditmod6c.c: Likewise.
8320         * elf/tst-auditmod7b.c: Likewise.
8321         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8322         * sysdeps/x86_64/preconfigure.in: Likewise.
8323         * sysdeps/x86_64/preconfigure: Regenerated.
8324
8325 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8326
8327         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8328         __ILP32__.
8329
8330 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8331
8332         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8333         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8334
8335 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8336
8337         [BZ #13973]
8338         * locale/iso-639.def: Fix gl language name. Spotted by
8339         Yaron Shahrabani.
8340
8341 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8342
8343         [BZ #2074]
8344         * libio/libio.h (__io_write_fn): Update comment.
8345
8346 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8347
8348         [BZ #2074]
8349         * stdio.texi (Hook Functions): The user provided writer function
8350         is not allowed to return -1.
8351
8352 2012-04-11  David S. Miller  <davem@davemloft.net>
8353
8354         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8355
8356 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8357
8358         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8359         Add a leading slash to rtkaio.
8360
8361 2012-04-11  Jim Meyering  <meyering@redhat.com>
8362
8363         [BZ #11959]
8364         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8365         It is not necessarily an error to ignore fwrite's return
8366         value.  One can reliably use ferror to test for errors after
8367         the fact.
8368
8369 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8370
8371         * bits/types.h (__snseconds_t): New type.
8372         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8373
8374         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8375         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8376         (__SNSECONDS_T_TYPE): Likewise.
8377         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8378         (__SNSECONDS_T_TYPE): Likewise.
8379         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8380         (__SNSECONDS_T_TYPE): Likewise.
8381
8382 2012-04-10  Andreas Jaeger  <aj@suse.de>
8383
8384         [BZ #2636]
8385         * manual/time.texi (Processor Time): Return type of times is
8386         elapsed real time since an arbitrary point in the past.
8387         (CPU Time): Move CLK_TCK from here...
8388         (Processor Time): ...to here.  Correct description.
8389         * manual/conf.texi (Constants for Sysconf): Correct description of
8390         _SC_CLK_TCK.
8391
8392 2012-04-10  David S. Miller  <davem@davemloft.net>
8393
8394         [BZ #13967]
8395         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8396         where the is a gap between DT_REL(A) and DT_JMPREL.
8397
8398 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8399
8400         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8401         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8402         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8403
8404 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8405
8406         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8407         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8408         (dl_main): Handle --inhibit-cache.
8409         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8410         _dl_inhibit_cache.
8411         * elf/dl-load.c (_dl_map_object): Use it.
8412         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8413
8414 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8415
8416         [BZ #13872]
8417         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8418         (__ieee754_powl): Saturate large exponents rather than testing for
8419         overflow of y*log2(x).
8420         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8421         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8422         exceptions.
8423
8424         [BZ #11521]
8425         * math/s_ctan.c: Include <float.h>.
8426         (__ctan): Avoid internal overflow or cancellation in calculating
8427         denominator.
8428         * math/s_ctanf.c: Likewise.
8429         * math/s_ctanl.c: Likewise.
8430         * math/s_ctanh.c: Likewise.
8431         * math/s_ctanhf.c: Likewise.
8432         * math/s_ctanhl.c: Likewise.
8433         * math/libm-test.inc (ctan_test): Add more tests.
8434         (ctanh_test): Likewise.
8435         * sysdeps/i386/fpu/libm-test-ulps: Update.
8436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8437
8438 2012-04-09  Andreas Jaeger  <aj@suse.de>
8439
8440         [BZ #6894]
8441         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8442         is an optional BSD extension.
8443
8444         [BZ #10254]
8445         * manual/stdio.texi (Opening Streams): Document additional fopen
8446         parameters.
8447
8448 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8449
8450         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8451         %eax without telling the compiler.
8452
8453 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8454
8455         [BZ # 13963]
8456         * manual/install.texi: Use sourceware.org.
8457
8458 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8459
8460         [BZ #13873]
8461         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8462         (__ieee754_pow): Generate overflow and underflow using huge*huge
8463         and tiny*tiny rather than just returning constant infinity or zero
8464         for large exponents.
8465         * math/libm-test.inc (pow_test): Require overflow exceptions for
8466         applicable cases of large exponents.
8467
8468         [BZ #706]
8469         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8470         (__ieee754_pow): Use iterative multiplication algorithm only for
8471         integer exponents with absolute value below 1024.  Check for odd
8472         integer exponents when using algorithm for real exponents.
8473         * math/libm-test.inc (pow_test): Add more tests.
8474         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8475
8476 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8477
8478         [BZ #13705]
8479         * math/libm-test.inc (exp_test): Do not allow overflow exception
8480         on underflow test.
8481
8482 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8483
8484         [BZ #13705]
8485         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8486         instead of __kernel_standard_f.
8487
8488 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8489
8490         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8491         * sysdeps/x86_64/memset_chk.S: Likewise.
8492
8493 2012-04-08  Andreas Jaeger  <aj@suse.de>
8494
8495         [BZ #10153]
8496         * manual/startup.texi (Environment Access): Describe return value
8497         for putenv and setenv.
8498
8499         [BZ #6895]
8500         * manual/filesys.texi (Directory Entries): Add description for
8501         DT_LNK.
8502
8503         [BZ #6890]
8504         * manual/filesys.texi (Directory Entries): Clarify that it's file
8505         system not operating system in the description of DT_UNKNOWN.
8506
8507         [BZ #6578]
8508         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8509
8510 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8511
8512         [BZ #6649]
8513         * manual/llio.texi (Opening and Closing Files): Add cross
8514         reference to explain mode argument.
8515
8516 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8517
8518         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8519         * sysdeps/x86_64/memset_chk.S: Likewise.
8520
8521 2012-04-07  David S. Miller  <davem@davemloft.net>
8522
8523         * elf/elf.h (R_SPARC_WDISP10): Define.
8524         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8525         R_SPARC_SIZE32.
8526         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8527         R_SPARC_SIZE64 and R_SPARC_H34.
8528
8529 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8530
8531         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8532         conditions and remove no longer applicable assertion.
8533
8534 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8535
8536         * bits/byteswap.h: Include <features.h>.
8537         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8538         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8539
8540 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8541
8542         * bits/byteswap.h (__bswap_16): Removed.
8543         Include <bits/byteswap-16.h> to get __bswap_16.
8544         * sysdeps/i386/bits/byteswap.h: Likewise.
8545         * sysdeps/s390/bits/byteswap.h: Likewise.
8546         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8547         * bits/byteswap-16.h: New file.
8548         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8549         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8550         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8551         * string/Makefile (headers): Add bits/byteswap-16.h.
8552
8553 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8554
8555         [BZ #13895]
8556         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8557         extra indirection.
8558         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8559         * nss/tst-nss-static.c: New.
8560
8561 2012-04-06  Robert Millan  <rmh@gnu.org>
8562
8563         [BZ #6486]
8564         * manual/llio.texi (File Position Primitive): lseek
8565         refers to WHENCE when it really means OFFSET.
8566
8567 2012-04-06  Andreas Jaeger  <aj@suse.de>
8568
8569         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8570         strncmp declarations.
8571
8572         * abilist/libc.abilist: Add __poll and __ppoll.
8573
8574 2012-04-05  David S. Miller  <davem@davemloft.net>
8575
8576         * scripts/check-local-headers.sh: Accept a host triplet in the
8577         path matched by the exclude regexp.
8578
8579         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8580         definition.
8581         * sysdeps/powerpc/powerpc32/dl-machine.h
8582         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8583         * sysdeps/s390/s390-32/dl-machine.h
8584         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8585         * sysdeps/sparc/sparc32/dl-machine.h
8586         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8587         * sysdeps/sparc/sparc64/dl-machine.h
8588         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8589
8590         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8591         lazy binding.
8592         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8593         undefined symbol errors.
8594
8595         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8596         DT_NEEDED entries.
8597
8598 2012-04-05  Michael Matz  <matz@suse.de>
8599
8600         [BZ #13592]
8601         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8602
8603 2012-04-05  Andreas Jaeger  <aj@suse.de>
8604
8605         [BZ #13908]
8606         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8607         comment.
8608
8609 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8610
8611         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8612         which ROUND is no valid rounding mode.
8613
8614 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8615
8616         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8617         read again.
8618         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8619
8620 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8621
8622         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8623         an exception using FPU order intentionally.
8624
8625 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8626
8627         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8628         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8629         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8630         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8631
8632 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8633
8634         [BZ #12340]
8635         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8636         EINVAL when BUFLEN is too smal.
8637
8638 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8639
8640         [BZ #13553]
8641         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8642         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8643
8644 2012-04-03  Andreas Jaeger  <aj@suse.de>
8645
8646         [BZ #13938]
8647         * manual/setjmp.texi (System V contexts): Fix sentence.
8648
8649         [BZ #13926]
8650         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8651         New macro for this case.
8652         [!__GNUC__] (__bswap_64): New inline function for this case.
8653         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8654         * bits/byteswap.h: Likewise.
8655         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8656         ull, guard with __GLIBC_HAVE_LONG_LONG.
8657
8658         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8659         __GLIBC_HAVE_LONG_LONG.
8660
8661         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8662         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8663
8664 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8665
8666         [BZ #13691]
8667         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8668         inptr and inend, rather than using last_ch.
8669
8670 2012-04-02  David S. Miller  <davem@davemloft.net>
8671
8672         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8673         * stdio-common/printf-parse.h (read_int): Change return type to
8674         'int', return -1 on INT_MAX overflow.
8675         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8676         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8677         overflows INT_MAX.  Check for overflow of in-format-string precision
8678         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8679         SIZE_MAX not INT_MAX for integer overflow test.
8680         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8681         skip the construct in the format string but do not record anything.
8682         * stdio-common/bug22.c: Adjust to test both width/prevision
8683         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8684         explicitly for proper errno values.
8685
8686 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8687
8688         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8689         CHAR_MAX.
8690         * string/test-strcmp.c [! WIDE]: Likewise.
8691         * time/tst-mktime2.c: Likewise for INT_MAX.
8692         * string/test-string.h: #include <sys/param.h> for MIN.
8693
8694         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8695         * sysdeps/i386/init-first.c (init): Likewise.
8696         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8697         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8698         * sysdeps/sh/init-first.c (init): Likewise.
8699
8700 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8701
8702         * po/ru.po: Update from translation team.
8703         * po/vi.po: Likewise.
8704
8705 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8706
8707         * resolv/nss_dns/dns-host.c: Merge copyright years.
8708
8709 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8710
8711         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8712         Optimize memcpy with prefetch if
8713         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8714         src, dst pointers have unequal 16 byte alignments.
8715
8716 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8717
8718         [BZ #13928]
8719         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8720         from a CNAME entry and return the minimum ttl for the query.
8721         (gaih_getanswer_slice): Likewise.
8722
8723 2012-03-30  Jeff Law  <law@redhat.com>
8724
8725         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8726         due to long keys.
8727         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8728         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8729
8730         * resolv/nss_dns/dns-host.c: Update copyright year.
8731
8732 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8733
8734         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8735         requests to save a system call.  Fix check that all bytes are sent.
8736
8737         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8738         comments for sendmmsg.
8739
8740 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8741
8742         [BZ #13691]
8743         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8744         with only 1 character between 0x0041 and 0x01b0.
8745         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8746         * wcsmbs/tst-mbsnrtowcs.c: New file.
8747
8748 2012-03-29  David S. Miller  <davem@davemloft.net>
8749
8750         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8751         small copies by hand.
8752
8753 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8754
8755         [BZ #13761]
8756         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8757         _nss_compat_initgroups_dyn): Fall back to malloc/free
8758         for large group memberships.
8759
8760 2012-03-28  David S. Miller  <davem@davemloft.net>
8761
8762         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8763         that branches into memcpy.
8764         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8765         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8766         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8767         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8768         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8769         bits.
8770         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8771         implementation too.
8772         * sysdeps/sparc/mempcpy.S: New file.
8773
8774         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8775         the IFUNC routine in the libc case.
8776         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8777
8778         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8779         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8780         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8781         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8782         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8783         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8784         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8785         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8786
8787         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8788         loop to 256 bytes instead of 64 bytes and fix test signedness.
8789
8790         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8791         * sysdeps/sparc/sparc32/Makefile: rather than here...
8792         * sysdeps/sparc/sparc64/Makefile: and here.
8793
8794 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8795
8796         * malloc/mallocbug.c: Avoid warnings about unused variables.
8797
8798 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8799
8800         [BZ #13760]
8801         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8802         in the right place. Discard and retry query if response is
8803         larger than input buffer size.
8804
8805 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8806
8807         [BZ #369]
8808         [BZ #2678]
8809         [BZ #3866]
8810         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8811         x for large integer exponent.
8812         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8813         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8814         sign of result as needed afterwards.
8815         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8816         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8817         result for underflowing pow the same as for overflow.
8818         (__kernel_standard_l): Handle powl overflow and underflow here
8819         rather than calling __kernel_standard.
8820         * math/libm-test.inc (pow_test): Add more tests.
8821
8822         [BZ #3868]
8823         [BZ #13879]
8824         [BZ #13910]
8825         [BZ #13911]
8826         [BZ #13912]
8827         [BZ #13913]
8828         [BZ #13915]
8829         [BZ #13916]
8830         [BZ #13917]
8831         [BZ #13918]
8832         [BZ #13919]
8833         [BZ #13920]
8834         [BZ #13921]
8835         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8836         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8837         (__kernel_standard_l): New function.
8838         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8839         __kernel_standard.
8840         * math/w_acosl.c (__acosl): Likewise.
8841         * math/w_asinl.c (__asinl): Likewise.
8842         * math/w_atan2l.c (__atan2l): Likewise.
8843         * math/w_atanhl.c (__atanhl): Likewise.
8844         * math/w_coshl.c (__coshl): Likewise.
8845         * math/w_exp10l.c (__exp10l): Likewise.
8846         * math/w_exp2l.c (__exp2l): Likewise.
8847         * math/w_fmodl.c (__fmodl): Likewise.
8848         * math/w_hypotl.c (__hypotl): Likewise.
8849         * math/w_j0l.c (__j0l, __y0l): Likewise.
8850         * math/w_j1l.c (__j1l, __y1l): Likewise.
8851         * math/w_jnl.c (__jnl, __ynl): Likewise.
8852         * math/w_lgammal.c (__lgammal): Likewise.
8853         * math/w_log10l.c (__log10l): Likewise.
8854         * math/w_log2l.c (__log2l): Likewise.
8855         * math/w_logl.c (__logl): Likewise.
8856         * math/w_powl.c (__powl): Likewise.
8857         * math/w_remainderl.c (__remainderl): Likewise.
8858         * math/w_scalbl.c (sysv_scalbl): Likewise.
8859         * math/w_sinhl.c (__sinhl): Likewise.
8860         * math/w_sqrtl.c (__sqrtl): Likewise.
8861         * math/w_tgammal.c (__tgammal): Likewise.
8862         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8863         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8864         * math/libm-test.inc (acos_test): Add more tests.
8865         (acosh_test): Likewise.
8866         (asin_test): Likewise.
8867         (atanh_test): Likewise.
8868         (exp_test): Likewise.
8869         (exp10_test): Likewise.
8870         (exp2_test): Likewise.
8871         (expm1_test): Likewise.
8872         (lgamma_test): Likewise.
8873         (log_test): Likewise.
8874         (log10_test): Likewise.
8875         (log1p_test): Likewise.
8876         (log2_test): Likewise.
8877         (pow_test): Do not allow some spurious overflow exceptions.
8878         (sqrt_test): Add more tests.
8879         (tgamma_test): Likewise.
8880         (y0_test): Likewise.
8881         (y1_test): Likewise.
8882         (yn_test): Likewise.
8883
8884 2012-03-27  Anton Blanchard  <anton@samba.org>
8885
8886         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8887         MAP_HUGETLB.
8888         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8889         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8890         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8891
8892 2012-03-27  David S. Miller  <davem@davemloft.net>
8893
8894         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8895
8896         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8897         have-as-vis3 check.
8898
8899 2012-03-27  Andreas Jaeger  <aj@suse.de>
8900
8901         * sysdeps/x86_64/elf/configure.in: Moved to ...
8902         * sysdeps/x86_64/configure.in: ... here.
8903         * sysdeps/x86_64/elf/start.S: Moved to ...
8904         * sysdeps/x86_64/start.S: ... here.
8905         * sysdeps/x86_64/elf/configure: Delete.
8906
8907         * sysdeps/x86_64/configure.in: Merge contents from
8908         sysdeps/i386/configure.in (without i686 check).
8909
8910         * sysdeps/i386/elf/Versions: Merge into ...
8911         * sysdeps/i386/Versions: ... this.
8912         * sysdeps/i386/elf/Versions: Delete file.
8913         * sysdeps/i386/elf/start.S: Moved to ...
8914         * sysdeps/i386/start.S: ...here.
8915         * sysdeps/i386/elf/configure.in: Merge into...
8916         * sysdeps/i386/configure.in: ...here.
8917         * sysdeps/i386/elf/configure.in: Delete file.
8918         * sysdeps/i386/elf/configure: Delete file.
8919
8920         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8921         * debug/backtracesyms.c: ... here.
8922         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8923         * debug/backtracesymsfd.c: ... here.
8924         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8925         * sysdeps/generic/ifunc-sel.h: ... here.
8926
8927         * sysdeps/unix/i386/start.c: Delete file.
8928         * sysdeps/unix/sparc/start.c: Delete file.
8929         * sysdeps/unix/start.c: Delete file.
8930
8931         * sysdeps/sh/elf/configure.in: Moved to ...
8932         * sysdeps/sh/configure.in: ... here.
8933         * sysdeps/sh/elf/start.S: Moved to ...
8934         * sysdeps/sh/start.S: ... here.
8935         * sysdeps/sh/elf/configure: Delete file.
8936
8937         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8938         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8939         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8940         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8941         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8942         * sysdeps/powerpc/powerpc64/start.S: here.
8943         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8944         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8945         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8946         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8947         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8948
8949         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8950         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8951         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8952         * sysdeps/powerpc/powerpc32/start.S: ... here.
8953         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8954         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8955         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8956
8957         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8958         * sysdeps/powerpc/ifunc-sel.h: ... here.
8959         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8960         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8961
8962         * sysdeps/sparc/elf/configure.in: Moved to ...
8963         * sysdeps/sparc/configure.in: ... here.
8964         * sysdeps/sparc/elf/configure: Delete file.
8965         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8966         * sysdeps/sparc/sparc32/start.S: ... here.
8967         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8968         * sysdeps/sparc/sparc64/start.S: ... here.
8969         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8970         * sysdeps/sparc/sparc32/Makefile: ... this.
8971         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8972         * sysdeps/sparc/sparc64/Makefile: ... this.
8973
8974         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8975         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8976         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8977         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8978         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8979         * sysdeps/s390/s390-32/setjmp.S: ... here.
8980         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8981         * sysdeps/s390/s390-32/configure.in: ... here.
8982         * sysdeps/s390/s390-32/elf/configure: Delete file.
8983         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8984         * sysdeps/s390/s390-32/start.S: ... here.
8985
8986         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8987         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8988         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8989         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8990         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8991         * sysdeps/s390/s390-64/setjmp.S: ... here.
8992         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8993         * sysdeps/s390/s390-64/configure.in: ... here
8994         * sysdeps/s390/s390-64/elf/configure: Delete file.
8995         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8996         * sysdeps/s390/s390-64/start.S: ... here.
8997         * sysdeps/s390/s390-64/elf/configure: Delete.
8998
8999         * configure.in: Remove support for elf directories in sysdeps.
9000
9001         * configure: Regenerated.
9002         * sysdeps/i386/configure: Regenerated.
9003         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9004         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9005         * sysdeps/s390/s390-32/configure: Regenerated.
9006         * sysdeps/s390/s390-64/configure: Regenerated.
9007         * sysdeps/sh/configure: Regenerated.
9008         * sysdeps/sparc/configure: Regenerated.
9009         * sysdeps/x86_64/configure: Regenerated.
9010
9011 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9012
9013         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9014
9015         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9016         denormal result into account.
9017
9018 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9019
9020         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9021         Reported by Allan McRae <allan@archlinux.org>.
9022
9023 2012-03-23  Jeff Law  <law@redhat.com>
9024
9025         * nss/getnssent.c (__nss_getent): Fix typo.
9026
9027 2012-03-23  David S. Miller  <davem@davemloft.net>
9028
9029         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9030
9031 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9032
9033         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9034         to pad to uint64_t for each field.
9035         (dl_tls_index): Replace unsigned long with uint64_t.
9036
9037 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9038         Paul Pluzhnikov  <ppluzhnikov@google.com>
9039
9040         [BZ #6528]
9041         * grp/Makefile (otherlibs): Don't set it.
9042         * inet/Makefile (otherlibs): Likewise.
9043         * login/Makefile (otherlibs): Likewise.
9044         * nscd/Makefile (otherlibs): Likewise.
9045         * posix/Makefile (otherlibs): Likewise.
9046         * pwd/Makefile (otherlibs): Likewise.
9047         * rt/Makefile (otherlibs): Likewise.
9048         * sunrpc/Makefile (otherlibs): Likewise.
9049         * nss/Makefile (otherlibs): Likewise.
9050         Add libnss_files to routines and static-only-routines.
9051         ($(objpfx)getent): Remove rule.
9052         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9053         static-only-routines.
9054
9055 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9056
9057         [BZ #13892]
9058         * math/s_cexp.c: Include <float.h>.
9059         (__cexp): Handle exp result overflowing not necessarily
9060         overflowing both real and imaginary parts of result.
9061         * math/s_cexpf.c: Likewise.
9062         * math/s_cexpl.c: Likewise.
9063         * math/libm-test.inc (cexp_test): Add more tests.
9064         * sysdeps/i386/fpu/libm-test-ulps: Update.
9065         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9066
9067 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9068
9069         * include/link.h (ELFW): New macro.
9070         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9071         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9072
9073 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9074
9075         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9076         with uint64_t.
9077
9078 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9079
9080         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9081         declaration.
9082         (struct La_x32_retval): Likewise.
9083
9084 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9085
9086         * sysdeps/x86_64/preconfigure.in: New file.
9087         * sysdeps/x86_64/preconfigure: New generated file.
9088
9089 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9090
9091         [BZ #13824]
9092         * math/e_exp2l.c: Include <float.h>.
9093         (__ieee754_exp2l): Handle overflow and underflow cases
9094         separately.  Only pass fractional part of argument to
9095         __ieee754_expl.
9096         * math/libm-test.inc (exp2_test): Add more tests.
9097
9098         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9099         negating x to take absolute value.
9100         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9101         Likewise.
9102         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9103         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9104         Likewise.
9105         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9106         computing low part if x was negated.
9107         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9108
9109 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9110
9111         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9112         la_x32_gnu_pltexit.
9113         (pltexit): Cast int_retval to ptrdiff_t.
9114         * elf/tst-auditmod3b.c: Likewise.
9115         * elf/tst-auditmod4b.c: Likewise.
9116         * elf/tst-auditmod5b.c: Likewise.
9117         * elf/tst-auditmod6b.c: Likewise.
9118         * elf/tst-auditmod6c.c: Likewise.
9119         * elf/tst-auditmod7b.c: Likewise.
9120
9121         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9122         and x32_gnu_pltexit.
9123
9124         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9125         __ELF_NATIVE_CLASS.
9126         (La_x32_regs): New macro.
9127         (La_x32_retval): Likewise.
9128         (la_x32_gnu_pltenter): New function prototype.
9129         (la_x32_gnu_pltexit): Likewise.
9130
9131 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9132
9133         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9134         exponent.
9135
9136         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9137
9138         * configure.in (libc_cv_cc_nofma): Check for option to disable
9139         generation of FMA instructions.
9140         * configure: Regenerate.
9141         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9142         * sysdeps/ieee754/dbl-64/Makefile: New file.
9143         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9144         Remove brandred-fma4.
9145         (CFLAGS-brandred-fma4.c): Remove.
9146         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9147         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9148         define.
9149         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9150         define.
9151
9152 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9153
9154         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9155         LLONG_MAX != LONG_MAX.
9156         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9157         (_fitoa_word): Likewise.
9158         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9159         LLONG_MAX != LONG_MAX.
9160         * stdio-common/_itowa.h: Include <_itoa.h>.
9161         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9162         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9163         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9164         only if not defined.
9165         (_ITOA_WORD_TYPE): Likewise.
9166         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9167         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9168
9169 2012-03-21  David S. Miller  <davem@davemloft.net>
9170
9171         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9172
9173 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9174
9175         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9176         of x86_64 when setting libc_cv_slibdir, libdir and
9177         libc_cv_localedir.
9178         * sysdeps/unix/sysv/linux/configure: Regenerated.
9179
9180 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9181
9182         * manual/lang.texi (Old Varargs): Remove section.
9183         (How Variadic): Update menu.
9184         (va_start): Do not mention varargs.h.
9185
9186 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9187             Joseph Myers  <joseph@codesourcery.com>
9188
9189         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9190         link test.
9191         * configure: Regenerated.
9192
9193 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9194
9195         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9196         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9197         conformtest.pl
9198
9199 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9200
9201         * NOTES: Remove.
9202         * Makefile (files-for-dist): Remove NOTES.
9203         (NOTES): Remove rule.
9204         * README: Don't refer to NOTES.
9205         * manual/creature.texi: Don't include macros.texi.
9206         * manual/intro.texi (creature.texi): Remove comment referring to
9207         NOTES.
9208
9209         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9210         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9211         * configure: Regenerated.
9212         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9213         LIBC_TRY_CC_OPTION.
9214         (libc_cv_as_i686): Likewise.
9215         (libc_cv_cc_avx): Likewise.
9216         (libc_cv_cc_sse2avx): Likewise.
9217         (libc_cv_cc_fma4): Likewise.
9218         (libc_cv_cc_novzeroupper): Likewise.
9219         * sysdeps/i386/configure: Regenerated.
9220
9221         [BZ #13883]
9222         * sysdeps/i386/fpu/s_cexp.S: Remove.
9223         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9224         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9225         * math/libm-test.inc (cexp_test): Add more tests.
9226         * sysdeps/i386/fpu/libm-test-ulps: Update.
9227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9228
9229 2012-03-21  Allan McRae  <allan@archlinux.org>
9230
9231         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9232
9233 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9234
9235         [BZ #13871]
9236         * math/w_exp2.c: Do not include <float.h>.
9237         (o_threshold, u_threshold): Remove.
9238         (__exp2): Calculate result before checking finiteness and calling
9239         __kernel_standard.
9240         * math/w_exp2f.c: Likewise.
9241         * math/w_exp2l.c: Likewise.
9242         * math/libm-test.inc (exp2_test): Require overflow exception for
9243         1e6 input.
9244
9245         [BZ #3866]
9246         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9247         range of signed 64-bit integers before using fistpll.  Remove
9248         checks for whether integers fit in mantissa bits.
9249         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9250         the range of signed 32-bit integers before using fistpl.  Remove
9251         checks for whether integers fit in mantissa bits.
9252         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9253         (__ieee754_powl): Test for y outside the range of signed 64-bit
9254         integers before using fistpll.  Reduce 64-bit values to 63-bit
9255         ones as needed.
9256         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9257         divide-by-zero is raised for zero to large negative powers.
9258         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9259         (__ieee754_powl): Test for y outside the range of signed 64-bit
9260         integers before using fistpll.  Reduce 64-bit values to 63-bit
9261         ones as needed.
9262         * math/libm-test.inc (pow_test): Add more tests.
9263
9264 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9265
9266         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9267         <stdio-common/_itoa.h>.
9268         * debug/segfault.c: Likewise.
9269         * elf/dl-cache.c: Likewise.
9270         * elf/dl-minimal.c: Likewise.
9271         * elf/dl-misc.c: Likewise.
9272         * elf/dl-sysdep.c: Likewise.
9273         * elf/dl-version.c: Likewise.
9274         * elf/rtld.c: Likewise.
9275         * hurd/hurdsock.c: Likewise.
9276         * hurd/lookup-retry.c: Likewise.
9277         * malloc/malloc.c: Likewise.
9278         * malloc/mtrace.c: Likewise.
9279         * nscd/nscd_getgr_r.c: Likewise.
9280         * nscd/nscd_getpw_r.c: Likewise.
9281         * nscd/nscd_getserv_r.c: Likewise.
9282         * posix/getopt_init.c: Likewise.
9283         * posix/wordexp.c: Likewise.
9284         * stdio-common/_itoa.c: Likewise.
9285         * stdio-common/printf_fphex.c: Likewise.
9286         * stdio-common/vfprintf.c: Likewise.
9287         * string/_strerror.c: Likewise.
9288         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9289         * sysdeps/i386/i686/hp-timing.h: Likewise.
9290         * sysdeps/mach/_strerror.c: Likewise.
9291         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9292         * sysdeps/mach/hurd/sethostid.c: Likewise.
9293         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9294         * sysdeps/mach/xpg-strerror.c: Likewise.
9295         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9296         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9297         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9298         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9299         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9300         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9301         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9302         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9303         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9304         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9305         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9306         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9307         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9308         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9309         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9310         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9311         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9312         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9313         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9314         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9315         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9316
9317         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9318
9319         * stdio-common/_itoa.h: Moved to ...
9320         * sysdeps/generic/_itoa.h: Here.
9321
9322         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9323
9324         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9325         instead of "_itoa.h" and "_itowa.h".
9326         * stdio-common/vfprintf.: Likewise.
9327
9328 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9329
9330         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9331         <bits/wordsize.h>.
9332         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9333         (__signbit): Likwise.
9334         (llrintf): Likwise.
9335         (llrint): Likwise.
9336
9337 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9338
9339         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9340         __WORDSIZE != 64.
9341
9342 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9343
9344         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9345         OVERFLOW_EXCEPTION_OK.
9346         * math/libm-test.inc ("Philosophy"): Update comment about
9347         exception testing.
9348         (OVERFLOW_EXCEPTION): Define.
9349         (OVERFLOW_EXCEPTION_OK): Likewise.
9350         (INVALID_EXCEPTION_OK): Renumber.
9351         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9352         (IGNORE_ZERO_INF_SIGN): Likewise.
9353         (test_exceptions): Handle FE_OVERFLOW.
9354         (exp10_test): Expect overflow exceptions.
9355         (exp2_test): Likewise.
9356         (expm1_test): Likewise.
9357         (nextafter_test): Likewise.
9358         (pow_test): Likewise.
9359         (scalbn_test): Likewise.
9360         (scalbln_test): Likewise.
9361
9362 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9363
9364         * sysdeps/x86_64/bits/atomic.h
9365         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9366         64bit integer.
9367         (atomic_exchange_acq): Likewise.
9368         (__arch_exchange_and_add_body): Likewise.
9369         (__arch_add_body): Likewise.
9370         (atomic_add_negative): Likewise.
9371         (atomic_add_zero): Likewise.
9372
9373 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9374
9375         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9376         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9377
9378 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9379
9380         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9381         Check __x86_64__ instead of __WORDSIZE.
9382
9383 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9384
9385         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9386
9387 2012-03-19  David S. Miller  <davem@davemloft.net>
9388
9389         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9390
9391         * sysdeps/sparc/fpu/fenv_private.h: New file.
9392         * sysdeps/sparc/fpu/math_private.h: Use it.
9393         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9394         Remove.
9395         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9396         (libc_feholdexcept_setroundl): Remove.
9397         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9398         Remove.
9399         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9400         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9401
9402 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9403
9404         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9405         int64_t instead of long int.
9406         (INSERT_WORDS64): Likwise.
9407
9408 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9409
9410         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9411         _Unwind_GetCFA return to _Unwind_Ptr first.
9412
9413 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9414
9415         [BZ #13629]
9416         * math/s_clog.c: Include <float.h>.
9417         (__clog): Scale large or subnormal inputs.
9418         * math/s_clogf.c: Likewise.
9419         * math/s_clogl.c: Likewise.
9420         * math/s_clog10.c: Include <float.h>.
9421         (M_LOG10_2): Define.
9422         (__clog10): Scale large or subnormal inputs.
9423         * math/s_clog10f.c: Likewise.
9424         * math/s_clog10l.c: Likewise.
9425         * math/libm-test.inc (clog_test): Add more tests.
9426         (clog10_test): Likewise.
9427         * sysdeps/i386/fpu/libm-test-ulps: Update.
9428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9429
9430         [BZ #11451]
9431         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9432         x and y.
9433         * math/libm-test.inc (atan2_test): Add another test.
9434
9435         * Makerules (common-objdir-compile): Remove.
9436         * sysdeps/unix/Makefile (config-generated): Do not add
9437         $(unix-generated) to variable.
9438         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9439         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9440         Remove rule.
9441         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9442         Likewise.
9443         [generic bits/local_lim.h] (before-compile): Do not append to
9444         variable.
9445         [generic bits/local_lim.h] (common-generated): Likewise.
9446         [generic sys/param.h] (before-compile): Do not append to variable.
9447         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9448         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9449         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9450         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9451         include.
9452         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9453         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9454         [generic sys/param.h] ($(addprefix
9455         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9456         [generic sys/param.h] (common-generated): Do not append to
9457         variable.
9458         [generic sys/param.h] (sysdep_headers): Likewise.
9459         [generic bits/errno.h] (before-compile): Do not append to
9460         variable.
9461         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9462         rule.
9463         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9464         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9465         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9466         [generic bits/errno.h] (common-generated): Do not append to
9467         variable.
9468         [generic bits/ioctls.h] (before-compile): Do not append to
9469         variable.
9470         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9471         rule.
9472         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9473         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9474         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9475         rule.
9476         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9477         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9478         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9479         [generic bits/ioctls.h] (common-generated): Do not append to
9480         variable.
9481         [generic sys/syscall.h] (syscall.h): Remove variable.
9482         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9483         rule.
9484         [generic sys/syscall.h] (before-compile): Do not append to
9485         variable.
9486         [generic sys/syscall.h] (common-generated): Likewise.
9487         * sysdeps/unix/errnos-tmpl.c: Remove file.
9488         * sysdeps/unix/errnos.awk: Likewise.
9489         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9490         * sysdeps/unix/ioctls.awk: Likewise.
9491         * sysdeps/unix/mk-local_lim.c: Likewise.
9492         * sysdeps/unix/snarf-ioctls: Likewise.
9493
9494 2012-03-19  Richard Henderson  <rth@twiddle.net>
9495
9496         * sysdeps/i386/fpu/fenv_private.h: New file.
9497         * sysdeps/i386/fpu/math_private.h: Use it.
9498         (math_opt_barrier, math_force_eval): Remove.
9499         (libc_feholdexcept_setround_53bit): Remove.
9500         (libc_feupdateenv_53bit): Remove.
9501         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9502         (math_opt_barrier, math_force_eval): Remove.
9503         (libc_feholdexcept): Remove.
9504         (libc_feholdexcept_setround): Remove.
9505         (libc_fetestexcept, libc_fesetenv): Remove.
9506         (libc_feupdateenv_test): Remove.
9507         (libc_feupdateenv, libc_feholdsetround): Remove.
9508         (libc_feresetround): Remove.
9509
9510         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9511         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9512
9513         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9514         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9515         (libc_feupdateenv_testl): New.
9516         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9517         (libc_feupdateenv_testf): New.
9518         (libc_feupdateenv): Use libc_feupdateenv_test.
9519         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9520         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9521
9522         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9523         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9524         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9525         (libc_feresetround_noex): New.
9526         (libc_feresetround_noexf): New.
9527         (libc_feresetround_noexl): New.
9528         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9529         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9530         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9531         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9532         SET_RESTORE_ROUND.
9533         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9534         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9535         (__cos): Likewise.
9536         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9537         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9538         SET_RESTORE_ROUND_NOEX.
9539         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9540         SET_RESTORE_ROUND_NOEXF.
9541         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9542         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9543         (libc_feholdsetroundf): New.
9544         (libc_feresetround, libc_feresetroundf): New.
9545
9546         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9547         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9548         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9549
9550         * sysdeps/generic/math_private.h: Include <fenv.h>.
9551         (default_libc_feholdexcept): New.
9552         (default_libc_feholdexcept_setround): New.
9553         (default_libc_fesetenv, default_libc_feupdateenv): New.
9554         (libc_feholdexcept): Only define if undefined.
9555         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9556         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9557         (libc_feholdexcept_setroundl): Likewise.
9558         (libc_feholdexcept_setround_53bit): Likewise.
9559         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9560         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9561         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9562         (libc_feupdateenv_53bit): Likewise.
9563         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9564         (libc_feholdexcept): Convert from macro to inline function.
9565         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9566         (libc_fesetenv, libc_feupdateenv): Likewise.
9567
9568         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9569         not previously defined.
9570         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9571         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9572         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9573         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9574         * sysdeps/ieee754/flt-32/math_private.h: New file.
9575         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9576         math_private.h below SET_FLOAT_WORD.
9577         (__isnan, __isinf_ns, __finite): Remove.
9578         (__isnanf, __isinf_nsf, __finitef): Remove.
9579
9580 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9581
9582         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9583
9584 2012-03-17  David S. Miller  <davem@davemloft.net>
9585
9586         [BZ #6471]
9587         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9588         for 2.16.
9589
9590 2012-03-16  David S. Miller  <davem@davemloft.net>
9591
9592         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9593         warnings.
9594
9595         [BZ #6471]
9596         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9597         properly.
9598         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9599         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9600         sysdep_routines when subdir is sysvipc.
9601         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9602         __getshmlba helper.
9603
9604         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9605
9606 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9607
9608         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9609         [__LP64__].
9610
9611 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9612
9613         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9614         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9615         (__lround): Renamed to ...
9616         (__llround): This.  Replace long int with long long int.
9617         Define lround functions as aliases of llround functions.
9618         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9619
9620 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9621
9622         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9623         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9624         adresses to uintptr_t.  Replace "long int" and "unsigned long
9625         int" with "greg_t" on va_arg.
9626
9627 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9628
9629         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9630         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9631
9632         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9633         Move e_machine check before EI_CLASS check.  Handle x32
9634         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9635         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9636         SKIP_EM_IA_64 and include
9637         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9638
9639         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9640         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9641         (add_system_dir): New macro.
9642
9643         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9644         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9645
9646 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9647
9648         [BZ #2551]
9649         [BZ #2552]
9650         [BZ #2553]
9651         [BZ #2554]
9652         [BZ #2562]
9653         [BZ #2563]
9654         [BZ #2565]
9655         [BZ #2566]
9656         [BZ #2576]
9657         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9658         (y0): Likewise.
9659         * math/w_j0f.c (j0f): Likewise.
9660         (y0f): Likewise.
9661         * math/w_j0l.c (__j0l): Likewise.
9662         (__y0l): Likewise.
9663         * math/w_j1.c (j1): Likewise.
9664         (y1): Likewise.
9665         * math/w_j1f.c (j1f): Likewise.
9666         (y1f): Likewise.
9667         * math/w_j1l.c (__j1l): Likewise.
9668         (__y1l): Likewise.
9669         * math/w_jn.c (jn): Likewise.
9670         (yn): Likewise.
9671         * math/w_jnf.c (jnf): Likewise.
9672         (ynf): Likewise.
9673         * math/w_jnl.c (__jnl): Likewise.
9674         (__ynl): Likewise.
9675         * math/libm-test.inc (j0_test): Add more tests.
9676         (j1_test): Likewise.
9677         (jn_test): Likewise.  Add trailing semicolon to existing test.
9678         (y0_test): Likewise.
9679         (y1_test): Likewise.
9680         * sysdeps/i386/fpu/libm-test-ulps: Update.
9681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9682
9683         [BZ #13851]
9684         [BZ #13854]
9685         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9686         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9687         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9688         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9689         (__tanl): Set errno for infinite argument.
9690         * sysdeps/i386/fpu/mptan.c: Remove.
9691         * sysdeps/i386/fpu/s_tan.S: Likewise.
9692         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9693         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9694         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9695         * math/libm-test.inc (tan_test): Add more tests and enable more
9696         tests for double and long double.
9697         * sysdeps/i386/fpu/libm-test-ulps: Update.
9698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9699
9700 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9701
9702         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9703         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9704
9705 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9706
9707         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9708         * configure.in: Use it for both main tree and add-ons.
9709         * configure: Regenerated.
9710
9711 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9712
9713         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9714
9715 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9716
9717         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9718         in comment.
9719
9720         [BZ #13851]
9721         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9722         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9723         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9724         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9725         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9726         infinite argument.
9727         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9728         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9729         != 0 for prec == 2.
9730         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9731         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9732         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9733         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9734         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9735         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9736         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9737         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9738         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9739         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9740         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9741         * math/libm-test.inc (cos_test): Add more tests and enable more
9742         tests for long double.
9743         (sin_test): Likewise.
9744         (sincos_test): Likewise.
9745         * sysdeps/i386/fpu/libm-test-ulps: Update.
9746         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9747
9748 2012-03-16  David S. Miller  <davem@davemloft.net>
9749
9750         * sysdeps/sparc/fpu/math_private.h: New file.
9751
9752 2012-03-15  David S. Miller  <davem@davemloft.net>
9753
9754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9755         file.
9756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9758         file.
9759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9760         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9761         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9762         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9763         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9764         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9765         sysdep routines.
9766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9767
9768         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9769         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9770
9771         * sysdeps/sparc/sparc-ifunc.h: New file.
9772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9773         sparc-ifunc.h
9774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9776         Likewise.
9777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9778         Likewise.
9779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9783         Likewise.
9784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9789         Likewise.
9790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9791         Likewise.
9792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9796         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9797         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9798         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9799         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9800         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9801         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9802         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9803         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9804         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9805         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9806         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9807         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9808         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9809         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9810         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9811         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9812         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9813         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9814         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9815         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9816
9817 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9818
9819         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9820         scaling.
9821         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9822
9823 2012-03-15  Andreas Jaeger  <aj@suse.de>
9824
9825         [BZ #13852]
9826         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9827         ieee754/flt-32 implementation for sin, cos and sincos.
9828         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9829         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9830         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9831         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9832         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9833         ieee754/flt-32 implementation for tan.
9834
9835         * math/libm-test.inc (cos_test): Enable some large input tests for
9836         float as well
9837         (sin_test): Likewise.
9838         (sincos_test): Likewise.
9839         (tan_test): Add tests for large input.
9840
9841         * sysdeps/i386/fpu/libm-test-ulps: Update.
9842
9843 2012-03-15  Andreas Jaeger  <aj@suse.de>
9844
9845         [BZ #13658]
9846         * math/libm-test.inc (cos_test): Add more test cases.
9847         (sin_test): Likewise.
9848         (sincos_test): Likewise.
9849
9850 2012-03-15  Andreas Jaeger  <aj@suse.de>
9851
9852         [BZ #13837]
9853         * math/libm-test.inc (cos_test): Add a test case for large input
9854         value.
9855         (sin_test): Likewise.
9856         (sincos_test): Likewise.
9857
9858 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9859         Joseph Myers  <joseph@codesourcery.com>
9860
9861         [BZ #13658]
9862         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9863         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9864         * sysdeps/i386/fpu/branred.c: Likewise.
9865         * sysdeps/i386/fpu/dosincos.c: Likewise.
9866         * sysdeps/i386/fpu/mpa.c: Likewise.
9867         * sysdeps/i386/fpu/s_cos.S: Likewise.
9868         * sysdeps/i386/fpu/s_sin.S: Likewise.
9869         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9870         * sysdeps/i386/fpu/sincos32.c: Likewise.
9871
9872         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9873         Define.
9874         (libc_feupdateenv_53bit): Define.
9875         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9876         Define.
9877         (libc_feupdateenv_53bit): Define.
9878
9879         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9880         53 bit (without extend i386 double precision).
9881
9882         * math/libm-test.inc (sincos_test): Add tests for large input.
9883         (sin): Likewise.
9884         (cos): Likewise.
9885
9886         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9887
9888 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9889
9890         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9891
9892 2012-03-15  David S. Miller  <davem@davemloft.net>
9893
9894         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9895         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9896         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9897         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9899         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9900         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9901         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9902         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9903         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9904         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9905         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9906         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9907         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9908         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9910         file.
9911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9913         file.
9914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9916         file.
9917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9919         file.
9920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9921         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9922         fmin/fmax sysdep routines.
9923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9924
9925 2012-03-14  David S. Miller  <davem@davemloft.net>
9926
9927         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9928         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9929         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9930         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9931         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9932         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9933         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9934         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9935         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9936         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9937         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9938         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9939         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9940         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9941         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9942         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9943         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9944         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9945         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9946         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9947         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9948         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9949         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9950         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9951         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9952         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9953         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9954         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9955         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9956         routines.
9957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9958         file.
9959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9961         file.
9962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9964         file.
9965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9967         file.
9968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9970         file.
9971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9973         file.
9974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9975         file.
9976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9977         file.
9978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9979         file.
9980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9981         New file.
9982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9983         file.
9984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9985         file.
9986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9988         file.
9989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9991         file.
9992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9994         file.
9995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9997         VIS3 routines.
9998
9999         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10000         New file.
10001
10002         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10003
10004         * sysdeps/sparc/configure.in: New file.
10005         * sysdeps/sparc/configure: Generate.
10006         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10007         * configure: Regenerate.
10008         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10009         * config.make.in (have-as-vis3): New.
10010         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10011         available use -Av9d instead of -Av9a.
10012         * sysdeps/sparc/sparc64/Makefile: Likewise.
10013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10015         New file.
10016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10017         file.
10018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10019         New file.
10020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10021         file.
10022         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10023         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10024         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10025         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10026         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10027
10028         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10029         fzeros/fnegs to load 0x80000000 into a float register instead of
10030         using the stack.
10031         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10032
10033 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10034
10035         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10036         bits/syscall.h.
10037         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10038         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10039         ($(inst_includedir)/bits/syscall.h): Remove rule.
10040         ($(objpfx)bits/syscall.d): Include instead of
10041         $(objpfx)syscall-list.d.
10042         (generated): Change syscall-list.h and syscall-list.d to
10043         bits/syscall.h and bits/syscall.d.
10044
10045 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10046
10047         [BZ #13846]
10048         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10049
10050 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10051
10052         [BZ #13841]
10053         * math/s_csqrt.c: Include <float.h>.
10054         (__csqrt): Scale large or subnormal inputs.
10055         * math/s_csqrtf.c: Likewise.
10056         * math/s_csqrtl.c: Likewise.
10057         * math/libm-test.inc (csqrt_test): Add more tests.
10058         * sysdeps/i386/fpu/libm-test-ulps: Update.
10059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10060
10061         [BZ #13840]
10062         * math/libm-test.inc (hypot_test): Add more tests.
10063
10064 2012-03-13  David S. Miller  <davem@davemloft.net>
10065
10066         [BZ #13840]
10067         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10068         double-precision for the calculation instead of scaling.
10069
10070 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10071
10072         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10073         manipulate bits before adding and subtracting TWO52[sx].
10074         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10075         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10076         Likewise.
10077         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10078
10079 2012-03-13  David S. Miller  <davem@davemloft.net>
10080
10081         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10082         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10083         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10084         rtld-global-offsets.h
10085         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10086
10087         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10088         large parameters.
10089
10090         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10091
10092         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10093         'err' in the ifdef scope in which it is actually used.
10094
10095         * nss/nss_db/db-init.c: Include string.h
10096
10097 2012-03-12  David S. Miller  <davem@davemloft.net>
10098
10099         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10100         masking out of the most significant byte of random value used.
10101         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10102         Fix coding style in previous change.
10103
10104         * sysdeps/unix/sysv/linux/kernel-features.h
10105         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10106         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10107         expression.
10108         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10109         later.
10110
10111 2012-03-11  David S. Miller  <davem@davemloft.net>
10112
10113         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10114         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10115         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10116         for 'resultvar' otherwise things get truncated on 64-bit.
10117
10118         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10119         Fix masking out of the most significant byte of random value used.
10120
10121         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10122
10123 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10124
10125         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10126
10127 2012-03-09  David S. Miller  <davem@davemloft.net>
10128
10129         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10130         variables with appropriate CPP guards.
10131         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10132         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10133         on resulting framesize and the management of the outregs buffer for pltexit.
10134         Preserve floating point return values across _dl_call_pltexit call.
10135         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10136         framesize and the management of the outregs buffer for pltexit.
10137         Preserve floating point return values across _dl_call_pltexit
10138         call.
10139         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10140         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10141         (print_exit): Fix format string for return register value.
10142
10143 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10144
10145         * sunrpc/Makefile (others): Add rpcgen.
10146         ($(objpfx)rpcgen): Remove special build rule and dependency on
10147         libc.
10148         * sunrpc/rpcgen.c: New file.
10149
10150 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10151
10152         [BZ #13673]
10153         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10154         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10155         * sysdeps/i386/crti.S: Likewise.
10156         * sysdeps/i386/crtn.S: Likewise.
10157         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10158         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10159         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10160         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10161         * sysdeps/sh/crti.S: Likewise.
10162         * sysdeps/sh/crtn.S: Likewise.
10163         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10164
10165         [BZ #13673]
10166         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10167         with URL.
10168         * locale/programs/locfile-kw.gperf: Likewise.
10169         * locale/programs/charmap-kw.h: Regenerated.
10170         * locale/programs/locfile-kw.h: Likewise.
10171
10172         [BZ #13673]
10173         * intl/plural.y: Replace FSF snail mail address with URL.
10174         * intl/plural.c: Regenerated.
10175
10176 2012-03-09  Richard Henderson  <rth@twiddle.net>
10177
10178         * include/math_private.h: Remove file.
10179         * math/math_private.h: Move file ...
10180         * sysdeps/generic/math_private.h: ... here.
10181
10182         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10183         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10184         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10185
10186         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10187         and <math_private.h>.
10188         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10189         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10190         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10191         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10192         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10193         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10194         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10195         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10196         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10197         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10198         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10199         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10200         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10201         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10202         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10203         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10204         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10205         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10206         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10207         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10208         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10209         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10210         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10211         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10212         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10213         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10214         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10215         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10216         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10217         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10218         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10219         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10220         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10221         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10222         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10223         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10224         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10225         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10226         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10227         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10228         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10229         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10230         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10231         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10232         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10233         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10234         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10235         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10236         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10237         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10238         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10239         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10240         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10241         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10242         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10243         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10244         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10245         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10246         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10247         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10248         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10249         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10250         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10251         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10252         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10253         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10254         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10255         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10256         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10257         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10258         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10259         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10260         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10261         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10262         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10263         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10264         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10265         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10266         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10267         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10268         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10269         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10270         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10271         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10272         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10273         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10274         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10275         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10276         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10277         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10278         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10279         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10280         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10281         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10282         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10283         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10284         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10285         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10286         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10287         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10288         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10289         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10290         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10291         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10292         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10293         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10294         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10295         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10296         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10297         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10298         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10299         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10300         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10301         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10302         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10303         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10304         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10305         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10306         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10307         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10308         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10309         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10310         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10311         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10312         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10313         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10314         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10315         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10316         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10317         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10318         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10319         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10320         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10321         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10322         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10323         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10324         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10325         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10326         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10327         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10328         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10329         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10330         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10331         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10332         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10333         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10334         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10335         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10336         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10337         * sysdeps/ieee754/k_standard.c: Likewise.
10338         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10339         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10340         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10341         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10342         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10343         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10344         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10345         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10346         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10347         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10348         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10349         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10350         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10351         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10352         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10353         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10354         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10355         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10356         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10357         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10358         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10359         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10360         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10361         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10362         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10363         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10364         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10365         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10366         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10367         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10368         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10369         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10370         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10371         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10372         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10373         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10374         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10375         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10376         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10377         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10378         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10379         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10380         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10381         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10382         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10383         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10384         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10385         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10386         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10387         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10388         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10389         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10390         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10391         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10392         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10393         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10394         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10395         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10396         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10397         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10398         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10399         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10400         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10401         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10402         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10403         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10404         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10405         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10406         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10407         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10408         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10409         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10410         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10411         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10412         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10413         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10414         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10415         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10416         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10417         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10418         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10419         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10420         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10421         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10422         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10423         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10424         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10425         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10426         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10427         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10428         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10429         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10430         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10431         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10432         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10433         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10434         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10435         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10436         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10437         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10438         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10439         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10440         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10441         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10442         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10443         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10444         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10445         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10446         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10447         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10448         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10449         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10450         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10451         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10452         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10453         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10454         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10455         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10456         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10457         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10458         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10459         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10460         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10461         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10462         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10463         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10464         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10465         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10466         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10467         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10468         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10469         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10470         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10471         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10472         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10473         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10474         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10475         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10476         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10477         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10478         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10479         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10480         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10481         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10482         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10483         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10484         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10485         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10486         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10487         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10488         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10489         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10490         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10491         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10492         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10493         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10494         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10495         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10496         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10497         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10498         * sysdeps/ieee754/s_lib_version.c: Likewise.
10499         * sysdeps/ieee754/s_matherr.c: Likewise.
10500         * sysdeps/ieee754/s_signgam.c: Likewise.
10501         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10502         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10503         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10504         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10505         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10506         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10507         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10508         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10509         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10510         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10511         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10512         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10513         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10514         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10515         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10516         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10517         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10518         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10519         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10520         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10521         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10522
10523 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10524
10525         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10526         * sunrpc/rpc_main.c: Likewise.
10527         * sunrpc/rpc_svcout.c: Likewise.
10528
10529 2012-03-09  David S. Miller  <davem@davemloft.net>
10530
10531         * include/math_private.h: New file.
10532
10533 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10534
10535         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10536         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10537         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10538         from <bits/socket_type.h>.
10539         (enum __socket_type): Don't define here.
10540         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10541         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10542         bits/socket_type.h.
10543
10544         [BZ #13566]
10545         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10546         checking __USE_GNU.
10547
10548         * Makerules ($(inst_includedir)/%.h): New rule.
10549         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10550         (install-others): Remove variable setting.
10551         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10552
10553 2012-03-08  Richard Henderson  <rth@twiddle.net>
10554
10555         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10556         from macro to inline function; merge with the
10557         !__LIBC_INTERNAL_MATH_INLINES version.
10558         (__ieee754_sqrtf): Likewise.
10559
10560         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10561         to inline function.
10562         (__rintf, __floor, __floorf): Likewise.
10563
10564         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10565         macro to inline function.
10566         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10567
10568         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10569         not <math/math_private.h>.
10570
10571 2012-03-08  David S. Miller  <davem@davemloft.net>
10572
10573         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10574         copyright year.
10575         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10576
10577 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10578
10579         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10580         normalization.
10581         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10582         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10583
10584 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10585
10586         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10587         be defined individually, they must be defined as a block.  Define
10588         S for printing a string instead of hidint the different by using a
10589         macro for adding the 'l'.
10590         * stdio-common/tst-fphex-wide.c: Adjust.
10591
10592 2012-03-07  Marek Polacek  <polacek@redhat.com>
10593
10594         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10595
10596 2012-03-08  Marek Polacek  <polacek@redhat.com>
10597
10598         [BZ #13806]
10599         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10600         * stdio-common/tst-fphex.c: Define a few macros to make the
10601         test reusable.  Use them.
10602         * stdio-common/tst-fphex-wide.c: New file.
10603
10604 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10605
10606         [BZ #6911]
10607         * manual/macros.texi (gnusystems): New macro.
10608         (nongnusystems): Likewise.
10609         (gnulinuxhurdsystems): Likewise.
10610         (gnuhurdsystems): Likewise..
10611         (gnulinuxsystems): Likewise.
10612         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10613         variants of the GNU system, not "GNU system".
10614         * manual/conf.texi: Likewise.
10615         * manual/errno.texi: Likewise.  Update example of errno macro
10616         expansion.
10617         * manual/filesys.texi: Likewise.
10618         (getumask): Document as specific to GNU/Hurd.
10619         * manual/install.texi: Likewise.  Reword some references to
10620         GNU/Linux.
10621         * manual/intro.texi: Likewise.
10622         * manual/io.texi: Likewise.
10623         (File Name Portability): Detail which constraints are inapplicable
10624         to all GNU systems and which are only inapplicable to GNU/Hurd.
10625         * manual/job.texi: Likewise.
10626         * manual/llio.texi: Likewise.
10627         (O_NOCTTY): Document as present on GNU/Linux.
10628         * manual/maint.texi: Likewise.
10629         * manual/memory.texi: Likewise.
10630         * manual/pattern.texi: Likewise.
10631         * manual/pipe.texi: Likewise.
10632         * manual/process.texi: Likewise.
10633         * manual/resource.texi: Likewise.
10634         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10635         child on GNU/Hurd.
10636         * manual/setjmp.texi: Likewise.
10637         * manual/signal.texi: Likewise.
10638         * manual/startup.texi: Likewise.
10639         * manual/stdio.texi: Likewise.
10640         * manual/terminal.texi: Likewise.
10641         (ONLCR): Document as POSIX.
10642         (OXTABS): Document availability on GNU/Linux as XTABS.
10643         (ONOEOT): Document availability separately from other bits.
10644         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10645         * manual/time.texi: Likewise.
10646         * manual/users.texi: Likewise.
10647         * INSTALL: Regenerated.
10648         * sysdeps/gnu/errlist.c: Regenerated.
10649
10650         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10651         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10652         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10653         puts.
10654         * configure: Regenerated.
10655
10656 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10657
10658         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10659         default includes instead of AC_HEADER_CHECK.
10660         * sysdeps/i386/configure: Regenerated.
10661
10662         [BZ #10716]
10663         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10664         * math/s_cacoshf.c (__cacoshf): Likewise.
10665         * math/s_cacoshl.c (__cacoshl): Likewise.
10666         * math/s_casinh.c (__casinh): Set signs of result from argument.
10667         * math/s_casinhf.c (__casinhf): Likewise.
10668         * math/s_casinhl.c (__casinhl): Likewise.
10669         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10670         (casinh_test): Add more tests.
10671         * sysdeps/i386/fpu/libm-test-ulps: Update.
10672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10673
10674 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10675
10676         * po/zh_TW.po: Update from translation team.
10677
10678         * login/Makefile (distribute): Remove variable.
10679         * catgets/Makefile: Likewise.
10680         * mach/Makefile: Likewise.
10681         * malloc/Makefile: Likewise.
10682         * misc/Makefile: Likewise.
10683         * iconv/Makefile: Likewise.
10684         * nscd/Makefile: Likewise.
10685         * hurd/Makefile: Likewise.
10686         * manual/Makefile: Likewise.
10687         * locale/Makefile: Likewise.
10688         * intl/Makefile: Likewise.
10689         * conform/Makefile: Likewise.
10690         * nss/Makefile: Likewise.
10691         * time/Makefile: Likewise.
10692         * soft-fp/Makefile: Likewise.
10693         * dirent/Makefile: Likewise.
10694         * gmon/Makefile: Likewise.
10695         * po/Makefile: Likewise.
10696         * rt/Makefile: Likewise.
10697         * socket/Makefile: Likewise.
10698         * math/Makefile: Likewise.
10699         * signal/Makefile: Likewise.
10700         * debug/Makefile: Likewise.
10701         * elf/Makefile: Likewise.
10702         * timezone/Makefile: Likewise.
10703         * stdlib/Makefile: Likewise.
10704         * iconvdata/Makefile: Likewise.
10705         * sunrpc/Makefile: Likewise.
10706         * io/Makefile: Likewise.
10707         * argp/Makefile: Likewise.
10708         * inet/Makefile: Likewise.
10709         * hesiod/Makefile: Likewise.
10710         * grp/Makefile: Likewise.
10711         * csu/Makefile: Likewise.
10712         * wctype/Makefile: Likewise.
10713         * crypt/Makefile: Likewise.
10714         * libio/Makefile: Likewise.
10715         * string/Makefile: Likewise.
10716         * nis/Makefile: Likewise.
10717         * resolv/Makefile: Likewise.
10718         * stdio-common/Makefile: Likewise.
10719         * wcsmbs/Makefile: Likewise.
10720         * dlfcn/Makefile: Likewise.
10721         * posix/Makefile: Likewise.
10722
10723         [BZ #6959]
10724         * timezone/Makefile: Don't install timezone files, just the programs
10725         and scripts.
10726
10727 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10728
10729         * nss/databases.def: Add missing gshadow entry.
10730
10731         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10732
10733 2012-03-06  Marek Polacek  <polacek@redhat.com>
10734
10735         [BZ #13726]
10736         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10737         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10738         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10739         * stdio-common/tst-long-dbl-fphex.c: New file.
10740
10741 2012-03-06  David S. Miller  <davem@davemloft.net>
10742
10743         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10744         (set_obp_int): New function.
10745         (get_obp_int): New function.
10746         (__get_clockfreq_via_dev_openprom): Likewise.
10747         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10748         Avoid unused variable warnings on 'val' and use builtin_expect.
10749         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10750         __builtin_expect.
10751         (INLINE_CLONE_SYSCALL): Likewise.
10752
10753 2012-03-05  David S. Miller  <davem@davemloft.net>
10754
10755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10756
10757 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10758
10759         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10760
10761         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10762         only for |x| >= 40.
10763         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10764
10765 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10766
10767         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10768         Replace gettimeofday with __vdso_gettimeofday.
10769
10770         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10771         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10772         __vdso_clock_gettime and __vdso_getcpu.
10773
10774         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10775         time with __vdso_time.
10776
10777 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10778
10779         * manual/lang.texi (size_t): Note types to which size_t may be
10780         equivalent with the GNU C Library, but do not describe when
10781         differences between them are significant.
10782
10783 2012-03-05  Andreas Jaeger  <aj@suse.de>
10784
10785         * sysdeps/i386/fpu/libm-test-ulps: Update.
10786
10787 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10788
10789         [BZ #3976]
10790         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10791         (__ieee754_pow): Save and restore rounding mode and use
10792         round-to-nearest for main computations.
10793         * math/libm-test.inc (pow_test_tonearest): New function.
10794         (pow_test_towardzero): Likewise.
10795         (pow_test_downward): Likewise.
10796         (pow_test_upward): Likewise.
10797         (main): Call the new functions.
10798         * sysdeps/i386/fpu/libm-test-ulps: Update.
10799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10800
10801         [BZ #3976]
10802         * math/libm-test.inc (cosh_test_tonearest): New function.
10803         (cosh_test_towardzero): Likewise.
10804         (cosh_test_downward): Likewise.
10805         (cosh_test_upward): Likewise.
10806         (sinh_test_tonearest): Likewise.
10807         (sinh_test_towardzero): Likewise.
10808         (sinh_test_downward): Likewise.
10809         (sinh_test_upward): Likewise.
10810         (main): Call the new functions.
10811         * sysdeps/i386/fpu/libm-test-ulps: Update.
10812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10813
10814 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10815
10816         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10817         default stack guard is set in last bytes.
10818         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10819
10820 2012-03-05  Kees Cook  <keescook@chromium.org>
10821
10822         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10823
10824         [BZ #13656]
10825         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10826         possibly allocate from heap instead of stack.
10827         * stdio-common/bug-vfprintf-nargs.c: New file.
10828         * stdio-common/Makefile (tests): Add nargs overflow test.
10829
10830 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10831
10832         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10833
10834 2012-03-03  Marek Polacek  <polacek@redhat.com>
10835
10836         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10837         * math/math_private.h: Likewise.
10838         * stdlib/tst-strtod.c: Likewise.
10839         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10840         * sysdeps/x86_64/bits/atomic.h: Likewise.
10841
10842 2012-03-02  David S. Miller  <davem@davemloft.net>
10843
10844         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10845         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10848         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10849         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10850         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10851         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10852
10853 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10854
10855         [BZ #13792]
10856         * manual/examples/README: New file, says the example source files
10857         can be used under GPL>=2.
10858         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10859         line containing just "*/".
10860         * manual/examples/add.c: Add copyright header (GPL>=2).
10861         * manual/examples/argp-ex1.c: Likewise.
10862         * manual/examples/argp-ex2.c: Likewise.
10863         * manual/examples/argp-ex3.c: Likewise.
10864         * manual/examples/argp-ex4.c: Likewise.
10865         * manual/examples/atexit.c: Likewise.
10866         * manual/examples/db.c: Likewise.
10867         * manual/examples/dir.c: Likewise.
10868         * manual/examples/dir2.c: Likewise.
10869         * manual/examples/execinfo.c: Likewise.
10870         * manual/examples/filecli.c: Likewise.
10871         * manual/examples/filesrv.c: Likewise.
10872         * manual/examples/fmtmsgexpl.c: Likewise.
10873         * manual/examples/genpass.c: Likewise.
10874         * manual/examples/inetcli.c: Likewise.
10875         * manual/examples/inetsrv.c: Likewise.
10876         * manual/examples/isockad.c: Likewise.
10877         * manual/examples/longopt.c: Likewise.
10878         * manual/examples/memopen.c: Likewise.
10879         * manual/examples/memstrm.c: Likewise.
10880         * manual/examples/mkfsock.c: Likewise.
10881         * manual/examples/mkisock.c: Likewise.
10882         * manual/examples/mygetpass.c: Likewise.
10883         * manual/examples/pipe.c: Likewise.
10884         * manual/examples/popen.c: Likewise.
10885         * manual/examples/rprintf.c: Likewise.
10886         * manual/examples/search.c: Likewise.
10887         * manual/examples/select.c: Likewise.
10888         * manual/examples/setjmp.c: Likewise.
10889         * manual/examples/sigh1.c: Likewise.
10890         * manual/examples/sigusr.c: Likewise.
10891         * manual/examples/stpcpy.c: Likewise.
10892         * manual/examples/strdupa.c: Likewise.
10893         * manual/examples/strftim.c: Likewise.
10894         * manual/examples/strncat.c: Likewise.
10895         * manual/examples/subopt.c: Likewise.
10896         * manual/examples/swapcontext.c: Likewise.
10897         * manual/examples/termios.c: Likewise.
10898         * manual/examples/testopt.c: Likewise.
10899         * manual/examples/testpass.c: Likewise.
10900         * manual/examples/timeval_subtract.c: Likewise.
10901
10902         [BZ #13792]
10903         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10904         function to ...
10905         * manual/timeval_subtract.c.texi: ... here, new file.
10906
10907 2012-03-02  David S. Miller  <davem@davemloft.net>
10908
10909         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10910
10911 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10912
10913         [BZ #3976]
10914         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10915         (__sin): Save and restore rounding mode and use round-to-nearest
10916         for all computations.
10917         (__cos): Save and restore rounding mode and use round-to-nearest
10918         for all computations.
10919         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10920         <fenv.h>.
10921         (tan): Save and restore rounding mode and use round-to-nearest for
10922         all computations.
10923         * math/libm-test.inc (cos_test_tonearest): New function.
10924         (cos_test_towardzero): Likewise.
10925         (cos_test_downward): Likewise.
10926         (cos_test_upward): Likewise.
10927         (sin_test_tonearest): Likewise.
10928         (sin_test_towardzero): Likewise.
10929         (sin_test_downward): Likewise.
10930         (sin_test_upward): Likewise.
10931         (tan_test_tonearest): Likewise.
10932         (tan_test_towardzero): Likewise.
10933         (tan_test_downward): Likewise.
10934         (tan_test_upward): Likewise.
10935         (main): Call the new functions.
10936         * sysdeps/i386/fpu/libm-test-ulps: Update.
10937         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10938
10939         [BZ #10135]
10940         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10941         small n, then large n, before computing and testing k+n.
10942         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10943         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10944         Likewise.
10945         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10946         Likewise.
10947         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10948         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10949         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10950         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10951         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10952         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10953         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10954         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10955         * math/libm-test.inc (scalbn_test): Add more tests.
10956         (scalbln_test): Likewise.
10957
10958         * manual/filesys.texi (mode_t): Describe constraints on size and
10959         signedness, not exact equivalence to a particular type.
10960         (ino_t): Likewise.
10961         (ino64_t): Likewise.
10962         (dev_t): Likewise.
10963         (nlink_t): Likewise.
10964         (blkcnt_t): Likewise.
10965         (blkcnt64_t): Likewise.
10966         * manual/llio.texi (off_t): Likewise.
10967
10968         [BZ #3976]
10969         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10970         (__ieee754_exp): Save and restore rounding mode and use
10971         round-to-nearest for all computations.
10972         * math/libm-test.inc (exp_test_tonearest): New function.
10973         (exp_test_towardzero): Likewise.
10974         (exp_test_downward): Likewise.
10975         (exp_test_upward): Likewise.
10976         (main): Call the new functions.
10977         * sysdeps/i386/fpu/libm-test-ulps: Update.
10978         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10979
10980 2012-03-01  Chris Demetriou  <cgd@google.com>
10981
10982         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10983         have predictable order.
10984
10985 2012-03-01  David S. Miller  <davem@davemloft.net>
10986
10987         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10988
10989         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10990         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10991         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10992         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10993
10994         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10995         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10996         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10998         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10999         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11000         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11001         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11002         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11003
11004         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11005
11006         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11007         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11008         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11009
11010         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11011         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11012         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11013         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11014         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11015         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11016         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11017         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11018         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11019         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11020         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11021         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11022         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11023         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11024         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11025         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11026         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11027         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11028         * sysdeps/sparc/elf/configure: Regenerated.
11029
11030 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11031
11032         * configure.in (AS, LD): Require binutils 2.20 or later.
11033         * configure: Regenerated.
11034         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11035         as required minimum version.
11036         * INSTALL: Regenerated.
11037
11038         [BZ #2541]
11039         [BZ #4108]
11040         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11041         before squaring exponent.
11042         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11043         bottom long double and 27 bits of top long double before squaring
11044         exponent.
11045         * math/libm-test.inc (erfc_test): Add more tests.
11046         * sysdeps/i386/fpu/libm-test-ulps: Update.
11047         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11049
11050 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11051
11052         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11053         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11054         containing bit-fields.
11055         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11056         * soft-fp/single.h (_FP_UNION_S): Likewise.
11057         * soft-fp/double.h (_FP_UNION_D): Likewise.
11058
11059 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11060
11061         [BZ #13786]
11062         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11063         not include ../strcmp.S.
11064         [USE_AS_STRNCASECMP_L]: Likewise.
11065         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11066         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11067         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11068         (__strncasecmp_l_ia32): Define as alias to
11069         __strncasecmp_l_nonascii.
11070
11071         [BZ #5794]
11072         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11073         * sysdeps/i386/fpu/libm-test-ulps: Update.
11074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11075
11076         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11078
11079 2012-02-29  Jeff Law  <law@redhat.com>
11080
11081         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11082         out of bounds read.
11083
11084 2012-02-29  Marek Polacek  <polacek@redhat.com>
11085
11086         [BZ #13706]
11087         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11088         * elf/Makefile: Add rules to run tst-unused-dep.out.
11089
11090 2012-02-28  David S. Miller  <davem@davemloft.net>
11091
11092         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11093         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11094         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11095         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11096         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11097         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11098
11099 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11100
11101         * math/libm-test.inc (llround_test): Move one test from
11102         lround_test.  Use TEST_f_L in moved test.
11103         (lround_test): Move misplaced test to llround_test.  Add testcase
11104         from bug 2561.
11105
11106 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11107
11108         * sysdeps/x86_64/fpu/e_expf.S: New file.
11109         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11110
11111 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11112
11113         [BZ #13637]
11114         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11115         of remain_len that may cause incomplete multi-byte character and
11116         false match.
11117         * posix/bug-regex33.c: New file.
11118         * posix/Makefile (tests): Add bug-regex33.
11119
11120 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11121
11122         * manual/macros.texi: New file.
11123         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11124         * manual/libc.texinfo: Include macros.texi.
11125         * manual/creatute.texi: Likewise.
11126         * manual/install.texi: Likewise.
11127         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11128         @glibcadj{} in references to the GNU C Library.
11129         * manual/charset.texi: Likewise.
11130         * manual/conf.texi: Likewise.
11131         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11132         when not using those macros.
11133         * manual/creature.texi: Likewise.
11134         * manual/crypt.texi: Likewise.
11135         * manual/errno.texi: Likewise.
11136         * manual/filesys.texi: Likewise.
11137         * manual/header.texi: Likewise.
11138         * manual/install.texi: Likewise.
11139         * manual/intro.texi: Likewise.
11140         * manual/io.texi: Likewise.
11141         * manual/job.texi: Likewise.
11142         * manual/lang.texi: Likewise.
11143         * manual/libc.texiinfo: Likewise.
11144         * manual/llio.texi: Likewise.
11145         * manual/locale.texi: Likewise.
11146         * manual/maint.texi: Likewise.
11147         * manual/math.texi: Likewise.
11148         * manual/memory.texi: Likewise.
11149         * manual/message.texi: Likewise.
11150         * manual/nss.texi: Likewise.
11151         * manual/pattern.texi: Likewise.
11152         * manual/process.texi: Likewise.
11153         * manual/resource.texi: Likewise.
11154         * manual/search.texi: Likewise.
11155         * manual/setjmp.texi: Likewise.
11156         * manual/signal.texi: Likewise.
11157         * manual/socket.texi: Likewise.
11158         * manual/startup.texi: Likewise.
11159         * manual/stdio.texi: Likewise.
11160         * manual/string.texi: Likewise.
11161         * manual/sysinfo.texi: Likewise.
11162         * manual/syslog.texi: Likewise.
11163         * manual/terminal.texi: Likewise.
11164         * manual/time.texi: Likewise.
11165         * manual/users.texi: Likewise.
11166         * INSTALL: Regenerated.
11167         * NOTES: Regenerated.
11168         * sysdeps/gnu/errlist.c: Regenerated.
11169
11170 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11171
11172         * include/dirent.h: Include <dirstream.h> before
11173         <dirent/dirent.h>.
11174
11175 2012-02-28  David S. Miller  <davem@davemloft.net>
11176
11177         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11178         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11179         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11180         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11181
11182 2012-02-27  David S. Miller  <davem@davemloft.net>
11183
11184         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11185         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11186         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11187         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11188
11189         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11190         frame pointer instead of stack pointer relative arg slot.
11191         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11192         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11193         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11194
11195 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11196
11197         [BZ #3992]
11198         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11199
11200 2012-02-27  David S. Miller  <davem@davemloft.net>
11201
11202         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11203         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11204         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11205         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11206         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11207         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11208         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11209         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11210
11211 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11212
11213         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11214         later.  Allow versions 5-9.
11215         * configure: Regenerated.
11216         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11217         required minimum version and 4.6 as recommended version.  Do not
11218         mention bugs in GCC 2.7 and 2.8.
11219         * INSTALL: Regenerated.
11220
11221 2012-02-27  David S. Miller  <davem@davemloft.net>
11222
11223         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11224         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11225         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11226         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11227         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11228         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11229         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11230         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11231
11232         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11233         manipulate bits before adding and subtracting TWO112[sx].
11234         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11235
11236 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11237
11238         [BZ #13775]
11239         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11240         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11241         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11242         being in POSIX, because they are in 1003.1-2008.
11243
11244         * rt/tst-aio.c: Include <fcntl.h>.
11245         * rt/tst-aio7.c: Likewise.
11246         * rt/tst-aio64.c: Likewise.
11247
11248         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11249
11250 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11251
11252         * manual/install.texi (--with-headers): Describe headers as
11253         interface headers, not private headers.
11254         (Specific advice for GNU/Linux systems): Describe use of headers
11255         from "make headers_install", not private headers from older
11256         kernels.
11257         * INSTALL: Regenerated.
11258         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11259         Change to 2.6.19.
11260         * sysdeps/unix/sysv/linux/configure: Regenerated.
11261
11262         * manual/llio.texi (fclean): Remove documentation.
11263
11264         * manual/Makefile (libc-texi-generated): New variable.  Include
11265         version.texi.
11266         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11267         $(libc-texi-generated), not duplicated list of files.
11268         (version.texi, stamp-version): New rules.
11269         (realclean): Remove $(libc-texi-generated), not individual files
11270         from that list.  Do not remove dir-add.texinfo.
11271         * manual/libc.texinfo: Comment out uses of edition numbers and
11272         references to printed manual.  Remove last-updated dates.
11273         (EDITION): Comment out.
11274         (ISBN): Likewise.
11275         (VERSION, UPDATED): Remove.
11276         (version.texi): Include.
11277
11278 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11279
11280         * sysdeps/posix/spawni.c: Include <signal.h>.
11281         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11282         * sysdeps/pthread/aio_fsync.c: Likewise.
11283
11284 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11285
11286         * conform/Makefile (tests): Run only when not cross-compiling and
11287         when fast-check is not defined.
11288
11289         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11290         * conform/data/limits.h-data: Fixes for POSIX2008.
11291         * conform/run-conformtest.sh: Run all tests.
11292         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11293         headers.
11294         * include/bits/dlfcn.h: Likewise.
11295         * include/langinfo.h: Likewise.
11296         * include/monetary.h: Likewise.
11297         * include/sys/poll.h: Likewise.
11298
11299         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11300         for __USE_GNU.
11301         * posix/spawn.h: Define __need_sigset_t.
11302         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11303         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11304         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11305         to get sigevent_t only.
11306         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11307         only for __USE_GNU.
11308         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11309         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11310         process_vm_writev only for __USE_GNU.
11311         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11312
11313         * conform/Makefile: For now ignore errors from run-conformtest.
11314         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11315         POSIX to avoid namespace pollution.  Don't prepend headers.
11316         * conform/data/aio.h-data: Fixes for POSIX testing.
11317         * conform/data/fcntl.h-data: Likewise.
11318         * conform/data/glob.h-data: Likewise.
11319         * conform/data/grp.h-data: Likewise.
11320         * conform/data/pthread.h-data: Likewise.
11321         * conform/data/pwd.h-data: Likewise.
11322         * conform/data/signal.h-data: Likewise.
11323         * conform/data/spawn.h-data: Likewise.
11324         * conform/data/stdio.h-data: Likewise.
11325         * conform/data/stdlib.h-data: Likewise.
11326         * conform/data/stropts.h-data: Likewise.
11327         * conform/data/sys/mman.h-data: Likewise.
11328         * conform/data/sys/stat.h-data: Likewise.
11329         * conform/data/sys/types.h-data: Likewise.
11330         * conform/data/sys/wait.h-data: Likewise.
11331         * conform/data/time.h-data: Likewise.
11332         * conform/data/unistd.h-data: Likewise.
11333         * conform/data/utime.h-data: Likewise.
11334
11335         * io/sys/stat.h: fchmod was always in POSIX.
11336         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11337         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11338         * rt/aio.h: Define __need_timespec before including <time.h>.
11339         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11340         struct.  Add forward declaration of pthread_attr_t and use it in
11341         sigevent.
11342         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11343         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11344         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11345         always remove CLK_TCK definition.
11346
11347 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11348
11349         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11350
11351 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11352
11353         * conform/run-conformtest.sh: New file.
11354         * conform/Makefile: Run run-conformtest for tests.
11355         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11356         support.
11357
11358         * conform/data/uchar.h-data: New file.
11359         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11360         * conform/data/arpa/inet.h-data: Likewise.
11361         * conform/data/assert.h-data: Likewise.
11362         * conform/data/complex.h-data: Likewise.
11363         * conform/data/cpio.h-data: Likewise.
11364         * conform/data/ctype.h-data: Likewise.
11365         * conform/data/dirent.h-data: Likewise.
11366         * conform/data/dlfcn.h-data: Likewise.
11367         * conform/data/errno.h-data: Likewise.
11368         * conform/data/fcntl.h-data: Likewise.
11369         * conform/data/float.h-data: Likewise.
11370         * conform/data/fmtmsg.h-data: Likewise.
11371         * conform/data/fnmatch.h-data: Likewise.
11372         * conform/data/ftw.h-data: Likewise.
11373         * conform/data/glob.h-data: Likewise.
11374         * conform/data/grp.h-data: Likewise.
11375         * conform/data/iconv.h-data: Likewise.
11376         * conform/data/inttypes.h-data: Likewise.
11377         * conform/data/langinfo.h-data: Likewise.
11378         * conform/data/libgen.h-data: Likewise.
11379         * conform/data/limits.h-data: Likewise.
11380         * conform/data/locale.h-data: Likewise.
11381         * conform/data/math.h-data: Likewise.
11382         * conform/data/monetary.h-data: Likewise.
11383         * conform/data/mqueue.h-data: Likewise.
11384         * conform/data/ndbm.h-data: Likewise.
11385         * conform/data/net/if.h-data: Likewise.
11386         * conform/data/netdb.h-data: Likewise.
11387         * conform/data/netinet/in.h-data: Likewise.
11388         * conform/data/nl_types.h-data: Likewise.
11389         * conform/data/poll.h-data: Likewise.
11390         * conform/data/pthread.h-data: Likewise.
11391         * conform/data/pwd.h-data: Likewise.
11392         * conform/data/regex.h-data: Likewise.
11393         * conform/data/sched.h-data: Likewise.
11394         * conform/data/search.h-data: Likewise.
11395         * conform/data/semaphore.h-data: Likewise.
11396         * conform/data/setjmp.h-data: Likewise.
11397         * conform/data/signal.h-data: Likewise.
11398         * conform/data/spawn.h-data: Likewise.
11399         * conform/data/stdarg.h-data: Likewise.
11400         * conform/data/stdio.h-data: Likewise.
11401         * conform/data/stdlib.h-data: Likewise.
11402         * conform/data/string.h-data: Likewise.
11403         * conform/data/strings.h-data: Likewise.
11404         * conform/data/stropts.h-data: Likewise.
11405         * conform/data/sys/ipc.h-data: Likewise.
11406         * conform/data/sys/mman.h-data: Likewise.
11407         * conform/data/sys/msg.h-data: Likewise.
11408         * conform/data/sys/resource.h-data: Likewise.
11409         * conform/data/sys/select.h-data: Likewise.
11410         * conform/data/sys/sem.h-data: Likewise.
11411         * conform/data/sys/shm.h-data: Likewise.
11412         * conform/data/sys/socket.h-data: Likewise.
11413         * conform/data/sys/stat.h-data: Likewise.
11414         * conform/data/sys/statvfs.h-data: Likewise.
11415         * conform/data/sys/time.h-data: Likewise.
11416         * conform/data/sys/timeb.h-data: Likewise.
11417         * conform/data/sys/times.h-data: Likewise.
11418         * conform/data/sys/types.h-data: Likewise.
11419         * conform/data/sys/uio.h-data: Likewise.
11420         * conform/data/sys/un.h-data: Likewise.
11421         * conform/data/sys/utsname.h-data: Likewise.
11422         * conform/data/sys/wait.h-data: Likewise.
11423         * conform/data/syslog.h-data: Likewise.
11424         * conform/data/tar.h-data: Likewise.
11425         * conform/data/termios.h-data: Likewise.
11426         * conform/data/utime.h-data: Likewise.
11427         * conform/data/utmpx.h-data: Likewise.
11428         * conform/data/varargs.h-data: Likewise.
11429         * conform/data/wchar.h-data: Likewise.
11430         * conform/data/wctype.h-data: Likewise.
11431         * conform/data/wordexp.h-data: Likewise.
11432
11433         * include/stropts.h: New file.
11434         * include/uchar.h: New file.
11435         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11436         * include/assert.h: Likewise.
11437         * include/ctype.h: Likewise.
11438         * include/dirent.h: Likewise.
11439         * include/dlfcn.h: Likewise.
11440         * include/fcntl.h: Likewise.
11441         * include/fnmatch.h: Likewise.
11442         * include/glob.h: Likewise.
11443         * include/grp.h: Likewise.
11444         * include/libio.h: Likewise.
11445         * include/locale.h: Likewise.
11446         * include/math.h: Likewise.
11447         * include/net/if.h: Likewise.
11448         * include/netdb.h: Likewise.
11449         * include/netinet/in.h: Likewise.
11450         * include/pthread.h: Likewise.
11451         * include/pwd.h: Likewise.
11452         * include/regex.h: Likewise.
11453         * include/sched.h: Likewise.
11454         * include/search.h: Likewise.
11455         * include/setjmp.h: Likewise.
11456         * include/signal.h: Likewise.
11457         * include/stdio.h: Likewise.
11458         * include/stdlib.h: Likewise.
11459         * include/string.h: Likewise.
11460         * include/sys/cdefs.h: Likewise.
11461         * include/sys/mman.h: Likewise.
11462         * include/sys/msg.h: Likewise.
11463         * include/sys/resource.h: Likewise.
11464         * include/sys/select.h: Likewise.
11465         * include/sys/socket.h: Likewise.
11466         * include/sys/stat.h: Likewise.
11467         * include/sys/statvfs.h: Likewise.
11468         * include/sys/time.h: Likewise.
11469         * include/sys/times.h: Likewise.
11470         * include/sys/uio.h: Likewise.
11471         * include/sys/utsname.h: Likewise.
11472         * include/sys/wait.h: Likewise.
11473         * include/termios.h: Likewise.
11474         * include/time.h: Likewise.
11475         * include/ulimit.h: Likewise.
11476         * include/unistd.h: Likewise.
11477         * include/utime.h: Likewise.
11478         * include/wchar.h: Likewise.
11479         * include/wctype.h: Likewise.
11480         * include/wordexp.h: Likewise.
11481
11482         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11483
11484         * time/time.h: TIME_UTC must be a macro.
11485         Make timespec_get available for ISO C11 only as well.
11486
11487 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11488
11489         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11490         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11491
11492 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11493
11494         * configure.in: Use -o not -a in test for unsupported multi-arch.
11495
11496 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11497
11498         * manual/texinfo.tex: Update to version 2012-01-19.16.
11499
11500 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11501
11502         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11503
11504 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11505
11506         [BZ #13738]
11507         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11508         * manual/fdl-1.3.texi: New file.
11509         * manual/fdl-1.1.texi: File removed.
11510
11511         [BZ #13738]
11512         * manual/libc.texinfo (FDL_VERSION): New @set.
11513         Use it for mention of FDL in cover text.
11514         (Documentation License): Use it in @include file name.
11515
11516 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11517             Roland McGrath  <roland@hack.frob.com>
11518
11519         [BZ #5461]
11520         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11521         not LONG_LONG_MAX and LONG_LONG_MIN.
11522         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11523         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11524         name.
11525         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11526
11527 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11528
11529         [BZ #2547]
11530         [BZ #11365]
11531         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11532         manipulate bits before adding and subtracting TWO23[sx].
11533         * math/libm-test.inc (nearbyint_test): Add more tests.
11534
11535 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11536
11537         [BZ #2548]
11538         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11539         bits before adding and subtracting TWO23[sx].
11540         * math/libm-test.inc (rint_test): Add more tests.
11541         (rint_test_tonearest): Likewise.
11542         (rint_test_towardzero): Likewise.
11543         (rint_test_downward): Likewise.
11544         (rint_test_upward: Likewise.
11545
11546 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11547
11548         [BZ #10110]
11549         * include/stdc-predef.h: New file.  Extracted from features.h.
11550         * include/features.h: Include stdc-predef.h.
11551         * Makefile (headers): Add stdc-predef.h.
11552         * CONFORMANCE (Compiler limitations): Update.
11553
11554 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11555
11556         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11557
11558 2012-02-21  David S. Miller  <davem@davemloft.net>
11559
11560         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11561         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11562
11563 2012-02-20  David S. Miller  <davem@davemloft.net>
11564
11565         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11566         using a normal save/restore sequence, rather than allocating a
11567         dummy stack frame just to store a frame pointer and restore.
11568         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11569
11570 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11571
11572         * manual/install.texi: Fix stray word in line-wrapped comment.
11573
11574 2012-02-20  David S. Miller  <davem@davemloft.net>
11575
11576         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11577         both binutils and gcc support GOTDATA.
11578
11579         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11580         "rd %pc" in the PIC register setup sequences.
11581
11582         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11583         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11584         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11585         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11586         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11587         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11588         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11589         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11590         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11591         (SYSCALL_ERROR_HANDLER): Likewise.
11592         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11593         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11594         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11595         (SYSCALL_ERROR_HANDLER): Likewise.
11596
11597         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11598         (HAVE_GCC_GOTDATA): New.
11599         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11600         relocation support in both binutils and gcc.
11601         * sysdeps/sparc/elf/configure: Regenerate.
11602
11603         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11604         * sysdeps/sparc/sparc32/elf/configure: Delete.
11605         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11606         * sysdeps/sparc/sparc64/elf/configure: Delete.
11607         * sysdeps/sparc/elf/configure.in: New file.
11608         * sysdeps/sparc/elf/configure: Generate.
11609
11610         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11611         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11612         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11613         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11614         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11615
11616 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11617
11618         * manual/install.texi: Do not mention specific glibc version
11619         numbers.
11620         * manual/libc.texinfo (VERSION, UPDATED): Update.
11621         (@copying): Use @copyright{} and range of years.
11622
11623 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11624
11625         [BZ #13695]
11626         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11627         [crti.S not in sysdirs] (generated): Do not append.
11628         [crti.S not in sysdirs] (omit-deps): Likewise.
11629         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11630         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11631         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11632         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11633         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11634         Likewise.
11635         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11636         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11637         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11638         * csu/defs.awk: Remove file.
11639         * sysdeps/generic/initfini.c: Likewise.
11640         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11641         variable.
11642         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11643         Likewise.
11644
11645 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11646
11647         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11648         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11649         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11650         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11651         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11652         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11653         <bits/epoll.h>.
11654         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11655         (__EPOLL_PACKED): Define to empty if not defined by
11656         <bits/epoll.h>.
11657         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11658         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11659         bits/epoll.h.
11660
11661 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11662
11663         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11664         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11665         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11666         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11667         <bits/timerfd.h>.
11668         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11669         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11670         bits/timerfd.h.
11671
11672 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11673
11674         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11675         in C locale.
11676         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11677         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11678         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11680
11681 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11682
11683         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11684         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11685
11686 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11687
11688         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11689         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11690         defined.
11691         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11692         Likewise.
11693         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11694         entry for 2.16.
11695
11696 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11697
11698         * math/w_acos.c: Use non-signaling floating-point comparisons.
11699         * math/w_acosf.c: Likewise.
11700         * math/w_acosh.c: Likewise.
11701         * math/w_acoshf.c: Likewise.
11702         * math/w_acoshl.c: Likewise.
11703         * math/w_acosl.c: Likewise.
11704         * math/w_asin.c: Likewise.
11705         * math/w_asinf.c: Likewise.
11706         * math/w_asinl.c: Likewise.
11707         * math/w_atanh.c: Likewise.
11708         * math/w_atanhf.c: Likewise.
11709         * math/w_atanhl.c: Likewise.
11710         * math/w_exp2.c: Likewise.
11711         * math/w_exp2f.c: Likewise.
11712         * math/w_exp2l.c: Likewise.
11713         * math/w_j0.c: Likewise.
11714         * math/w_j0f.c: Likewise.
11715         * math/w_j0l.c: Likewise.
11716         * math/w_j1.c: Likewise.
11717         * math/w_j1f.c: Likewise.
11718         * math/w_j1l.c: Likewise.
11719         * math/w_jn.c: Likewise.
11720         * math/w_jnf.c: Likewise.
11721         * math/w_log.c: Likewise.
11722         * math/w_log10.c: Likewise.
11723         * math/w_log10f.c: Likewise.
11724         * math/w_log10l.c: Likewise.
11725         * math/w_log2.c: Likewise.
11726         * math/w_log2f.c: Likewise.
11727         * math/w_log2l.c: Likewise.
11728         * math/w_logf.c: Likewise.
11729         * math/w_logl.c: Likewise.
11730         * math/w_sqrt.c: Likewise.
11731         * math/w_sqrtf.c: Likewise.
11732         * math/w_sqrtl.c: Likewise.
11733         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11734         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11735         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11736         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11737         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11738
11739 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11740
11741         [BZ #9739]
11742         * manual/string.texi (strnlen): Use correct parameter name in
11743         equivalent expression.
11744
11745 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11746
11747         [BZ #11174]
11748         * manual/users.texi (seteuid): Consistently use neweuid for
11749         argument name.
11750
11751 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11752
11753         [BZ #13704]
11754         * manual/nss.texi (Services in the NSS configuration): Correct
11755         list of services in example configuration file.
11756
11757 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11758
11759         [BZ #11322]
11760         * manual/arith.texi: Remove statements about negative zero
11761         behaving identically to zero.
11762
11763 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11764
11765         [BZ #5993]
11766         * manual/install.texi: Do not document upgrading from libc5.
11767
11768 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11769
11770         [BZ #4596]
11771         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11772
11773 2012-02-18  David S. Miller  <davem@davemloft.net>
11774
11775         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11776         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11777         %o7 across the call.
11778         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11779         instead.
11780         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11781         SETUP_PIC_REG_LEAF.
11782         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11783         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11784         * sysdeps/sparc/crtn.S: Likewise.
11785
11786 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11787
11788         * aout/Makefile: Remove.
11789
11790 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11791
11792         [BZ #13058]
11793         * manual/examples/argp-ex1.c (main): Format definition in GNU
11794         style.
11795         * manual/examples/argp-ex2.c (main): Likewise.
11796         * manual/examples/argp-ex3.c (main): Likewise.
11797         * manual/examples/argp-ex4.c (main): Likewise.
11798         * manual/examples/longopt.c (main): Use new-style prototype
11799         definition.
11800         * manual/examples/strncat.c (main): Specify return type and use
11801         (void) for arguments.
11802         * manual/examples/subopt.c (main): Use char **argv argument.
11803
11804 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11805
11806         [BZ #5077]
11807         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11808         rounding modes.
11809
11810 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11811
11812         [BZ #6907]
11813         * manual/string.texi (strchr): Change when strchrnul is
11814         recommended.
11815
11816 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11817
11818         [BZ #174]
11819         * manual/locale.texi (setlocale): Document LOCPATH.
11820
11821 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11822
11823         [BZ #10210]
11824         * manual/process.texi (execle): Move @dots{} before last argument.
11825
11826 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11827
11828         [BZ #12047]
11829         * manual/charset.texi (Generic Charset Conversion): Fix typo
11830         (LC_TYPE -> LC_CTYPE).
11831
11832 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11833
11834         [BZ #5805]
11835         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11836         (scalbnf): Likewise.
11837         (scalbnl): Likewise.
11838         (scalbln): Likewise.
11839         (scalblnf): Likewise.
11840         (scalblnl): Likewise.
11841         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11842         (vwarnx): Likewise.
11843         (verr): Likewise.
11844         (verrx): Likewise.
11845         * manual/filesys.texi (telldir): Use braces around return type.
11846         * manual/llio.texi (mmap): Add space after comma.
11847         (mmap64): Likewise.
11848         * manual/math.texi (jn): Use @var{} on parameter names.
11849         (jnf): Likewise.
11850         (jnl): Likewise.
11851         (yn): Likewise.
11852         (ynf): Likewise.
11853         (ynl): Likewise.
11854         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11855         line.
11856         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11857         "...".
11858         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11859         (sched_get_priority_max): Likewise.
11860         * manual/signal.texi (sigvec): Add space after comma.
11861         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11862         names.
11863         (if_indextoname): Likewise.
11864         (if_freenameindex): Likewise.
11865         (sendto): Use ',' instead of '.' in prototype.
11866         * manual/startup.texi (syscall): Use @dots{} instead of literal
11867         "...".
11868         * manual/stdio.texi (__fpending): Separate initial words of
11869         paragraph from @deftypefun line.
11870         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11871         "...".
11872         (vsyslog): Use @var{} on parameter names.
11873         * manual/terminal.texi (stty): Use @var{} on parameter names.
11874         * manual/users.texi (getutmp): Use @var{} on parameter names.
11875         (getutmpx): Likewise.
11876
11877 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11878
11879         [BZ #6884]
11880         * manual/stdio.texi (fopen): Fix typos in description of
11881         ",ccs=STRING".
11882
11883 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11884
11885         [BZ #4026]
11886         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11887         get clock_id definition.
11888
11889 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11890
11891         [BZ #4822]
11892         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11893         (madvise): Cast every argument to void on its own.
11894
11895 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11896
11897         [BZ #9902]
11898         * manual/startup.texi (Exit Status): Fix typo.
11899
11900 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11901
11902         [BZ #10140]
11903         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11904         * manual/examples/argp-ex2.c: Likewise.
11905         * manual/examples/argp-ex3.c: Likewise.
11906
11907 2012-02-16  Richard Henderson  <rth@redhat.com>
11908
11909         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11910         * sysdeps/s390/s390-32/initfini.c: Remove.
11911         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11912         * sysdeps/s390/s390-64/initfini.c: Remove.
11913
11914 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11915
11916         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11917         compiler output for sysdeps/generic/initfini.c.
11918         * sysdeps/sh/elf/initfini.c: Remove file.
11919
11920 2012-02-16  David S. Miller  <davem@davemloft.net>
11921
11922         [BZ #11494]
11923         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11924
11925         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11926         * sysdeps/sparc/crti.S: New file.
11927         * sysdeps/sparc/crtn.S: New file.
11928         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11929         * sysdeps/sparc/sparc64/Makefile: Likewise.
11930
11931 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11932
11933         [BZ #3335]
11934         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11935
11936 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11937
11938         [BZ #4822]
11939         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11940
11941         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11942         (write, read, close): Likewise.
11943         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11944
11945 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11946
11947         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11948         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11949         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11950         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11951         <bits/signalfd.h>.
11952         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11953         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11954         bits/signalfd.h.
11955
11956 2012-02-14  Marek Polacek  <polacek@redhat.com>
11957
11958         * sysdeps/x86_64/crti.S: New file.
11959         * sysdeps/x86_64/crtn.S: New file.
11960         * sysdeps/x86_64/elf/initfini.c: Remove file.
11961
11962 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11963
11964         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11965         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11966         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11967         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11968         <bits/inotify.h>.
11969         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11970         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11971         bits/inotify.h.
11972
11973 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11974
11975         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11976         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11977         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11978         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11979         <bits/eventfd.h>.
11980         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11981         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11982         bits/eventfd.h.
11983
11984 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11985
11986         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11987         __feraiseexcept instead of feraiseexcept.
11988
11989         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11990         nanosleep invocations.
11991         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11992         strings, and add error checking for a nanosleep invocations.
11993
11994 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11995
11996         Replace FSF snail mail address with URLs, as per GNU coding standards.
11997         Most of the snail mail addresses were wrong anyway, and omitting
11998         them makes the source code easier to maintain.  Almost all of the
11999         changes are to license notices and to locale LC_IDENTIFICATION
12000         addresses, except for this one:
12001         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12002         not its snail mail address.
12003
12004 2012-02-09  Richard Henderson  <rth@twiddle.net>
12005
12006         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12007         of kernel-features.h.
12008
12009         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12010
12011 2012-02-08  Marek Polacek  <polacek@redhat.com>
12012
12013         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12014         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12015         * sysdeps/gnu/_G_config.h: Likewise.
12016         * sysdeps/generic/_G_config.h: Likewise.
12017
12018 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12019
12020         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12021         tests.
12022         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12023
12024         * sysdeps/powerpc/powerpc32/crti.S: New file.
12025         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12026         * sysdeps/powerpc/powerpc64/crti.S: New file.
12027         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12028
12029         * Makeconfig (have-initfini): Don't set.
12030         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12031         * configure.in (nopic_initfini): Don't substitute.
12032         * config.h.in (HAVE_INITFINI): Don't #undef.
12033         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12034         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12035
12036 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12037
12038         Support crti.S and crtn.S provided directly by architectures.
12039         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12040         [crti.S in sysdirs] (omit-deps): Likewise.
12041         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12042         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12043         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12044         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12045         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12046         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12047         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12048         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12049         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12050         compiler output for sysdeps/generic/initfini.c.
12051         * sysdeps/i386/elf/Makefile: Remove file.
12052         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12053
12054 2012-02-07  Marek Polacek  <polacek@redhat.com>
12055
12056         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12057         * sysdeps/gnu/_G_config.h: Likewise.
12058         * sysdeps/mach/hurd/_G_config.h: Likewise.
12059
12060 2012-02-07  Marek Polacek  <polacek@redhat.com>
12061
12062         * math/Makefile (tests): Add tst-CMPLX2.
12063         * math/tst-CMPLX2.c: New file.
12064
12065 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12066
12067         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12068
12069         * math/libm-test.inc (jn_test): Add missing L suffix.
12070
12071 2012-02-06  Marek Polacek  <polacek@redhat.com>
12072
12073         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12074         * sysdeps/i386/fpu/e_powf.S: Likewise.
12075         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12076         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12077         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12078         * sysdeps/i386/fpu/e_pow.S: Likewise.
12079         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12080         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12081         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12082         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12083         * sysdeps/i386/fpu/e_log2.S: Likewise.
12084         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12085         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12086         * sysdeps/i386/fpu/e_powl.S: Likewise.
12087         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12088         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12089         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12090         * sysdeps/i386/fpu/e_logl.S: Likewise.
12091         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12092         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12093         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12094         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12095         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12096         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12097         * sysdeps/i386/fpu/e_log.S: Likewise.
12098         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12099         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12100         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12101         * sysdeps/i386/fpu/e_logf.S: Likewise.
12102         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12103         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12104         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12105         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12106         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12107         * sysdeps/i386/fpu/e_log10.S: Likewise.
12108         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12109         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12110         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12111         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12112         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12113         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12114         * sysdeps/i386/asm-syntax.h: Likewise.
12115         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12116         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12117         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12118         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12119         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12120         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12121         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12122         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12123         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12124         * sysdeps/powerpc/sysdep.h: Likewise.
12125         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12126         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12127
12128 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12129
12130         [BZ #411]
12131         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12132
12133 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12134
12135         * sysdeps/i386/sysdep.h: Include <features.h>.
12136         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12137         version.
12138
12139 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12140
12141         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12142         Define.
12143         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12144         LOAD_PIC_REG_STR.
12145
12146 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12147
12148         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12149         (SETUP_PIC_REG): Use GET_PC_THUNK.
12150         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12151         macro.
12152
12153 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12154
12155         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12156         for non-PIC compilation.
12157         (SETUP_PIC_REG): Add .p2align directive.
12158         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12159         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12160         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12161         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12162         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12163         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12164         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12165         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12166         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12167         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12168         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12169         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12170         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12171         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12172         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12173         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12174         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12175         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12176         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12177         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12178         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12179         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12180         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12181         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12182         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12183         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12184         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12185         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12186         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12187         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12188         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12189         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12190         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12191         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12192         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12193         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12194         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12195         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12196         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12197         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12198         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12199
12200 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12201
12202         * math/tst-CMPLX.c: Include <stdio.h>.
12203
12204 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12205
12206         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12207         float.
12208         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12209         * sysdeps/sparc/bits/mathdef.h: Likewise.
12210
12211 2012-01-31  Marek Polacek  <polacek@redhat.com>
12212
12213         * libio/libio.h: Don't define _PARAMS.
12214         * locale/programs/config.h: Don't define PARAMS.
12215         * stdlib/strtol_l.c: Likewise.
12216         (__strtol_l): Remove PARAMS from the prototype.
12217
12218 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12219
12220         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12221         names.  Just use the correct names.  Remove unnecessary wrapper
12222         functions.
12223         * malloc/arena.c: Likewise.
12224         * malloc/hooks.c: Likewise.
12225
12226         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12227         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12228         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12229
12230 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12231
12232         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12233         into tail calls.
12234         (update_get_addr): New function.
12235         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12236         GET_ADDR_MODULE parameter.
12237
12238 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12239
12240         * crypt/cert.c: Remove __STDC__ conditionals.
12241         * crypt/crypt-entry.c: Likewise.
12242         * crypt/crypt_util.c: Likewise.
12243         * libio/filedoalloc.c: Likewise.
12244         * libio/fileops.c: Likewise.
12245         * libio/genops.c: Likewise.
12246         * libio/iofclose.c: Likewise.
12247         * libio/iofdopen.c: Likewise.
12248         * libio/iofopen.c: Likewise.
12249         * libio/iofopen64.c: Likewise.
12250         * libio/iogetdelim.c: Likewise.
12251         * libio/iopopen.c: Likewise.
12252         * libio/obprintf.c: Likewise.
12253         * libio/oldfileops.c: Likewise.
12254         * libio/oldiofclose.c: Likewise.
12255         * libio/oldiofdopen.c: Likewise.
12256         * libio/oldiofopen.c: Likewise.
12257         * libio/oldiopopen.c: Likewise.
12258         * libio/wfiledoalloc.c: Likewise.
12259         * libio/wgenops.c: Likewise.
12260         * locale/programs/xmalloc.c: Likewise.
12261         * misc/syslog.c: Likewise.
12262         * stdio-common/xbug.c: Likewise.
12263         * string/memchr.c: Likewise.
12264         * string/memcmp.c: Likewise.
12265         * string/memrchr.c: Likewise.
12266         * string/rawmemchr.c: Likewise.
12267         * sysdeps/posix/getcwd.c: Likewise.
12268         * time/strftime_l.c: Likewise.
12269
12270 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12271
12272         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12273         * config.make.in (config-cflags-sse2avx): Define.
12274         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12275         Fix typo.
12276
12277 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12278
12279         * scripts/config.guess: Update from upstream config git repository.
12280         * scripts/config.sub: Likewise.
12281
12282 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12283
12284         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12285         (EM_NUM): Update.
12286         (R_TILEPRO_*, R_TILEGX_*): New macros.
12287
12288         * scripts/firstversions.awk: Fix bug in version range handling.
12289
12290         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12291
12292         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12293
12294         * include/sys/epoll.h: New file.
12295         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12296         libc_hidden_def.
12297
12298 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12299
12300         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12301         Avoid unnecessary __WORDSIZE == 64 test.
12302         (fmaxf): Use VEX format if possible.
12303         (fmax): Likewise.
12304         (fminf): Likewise.
12305         (fmin): Likewise.
12306
12307         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12308         * math/math_private.h: Remove libc_fegetround* and
12309         libc_fesetround*.
12310         * sysdeps/i386/configure.in: Check for -msse2avx.
12311         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12312         also if SSE2AVX is defined.
12313         Remove libc_fegetround* and libc_fesetround*.
12314         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12315         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12316         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12317         of HAS_YMM_USABLE.
12318         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12319         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12320         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12321         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12322         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12323
12324         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12325
12326 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12327
12328         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12329         size is not set.
12330         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12331
12332 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12333
12334         [BZ #13618]
12335         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12336         relocation.
12337         * Makeconfig (libm): Define.
12338         * elf/Makefile: Add rules to build and run tst-relsort1.
12339         * elf/tst-relsort1.c: New file.
12340         * elf/tst-relsort1mod1.c: New file.
12341         * elf/tst-relsort1mod2.c: New file.
12342
12343 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12344
12345         * math/s_ldexp.c: Remove __STDC__ conditionals.
12346         * math/s_ldexpf.c: Likewise.
12347         * math/s_ldexpl.c: Likewise.
12348         * math/s_nextafter.c: Likewise.
12349         * math/s_nexttowardf.c: Likewise.
12350         * math/s_significand.c: Likewise.
12351         * math/s_significandf.c: Likewise.
12352         * math/s_significandl.c: Likewise.
12353         * math/w_jnl.c: Likewise.
12354         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12355         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12356         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12357         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12358         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12359         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12360         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12361         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12362         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12363         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12364         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12365         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12366         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12367         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12368         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12369         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12370         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12371         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12372         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12373         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12374         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12375         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12376         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12377         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12378         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12379         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12380         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12381         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12382         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12383         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12384         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12385         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12386         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12387         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12388         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12389         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12390         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12391         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12392         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12393         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12394         * sysdeps/ieee754/k_standard.c: Likewise.
12395         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12396         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12397         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12398         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12399         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12400         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12401         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12402         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12403         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12404         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12405         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12406         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12407         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12408         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12409         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12410         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12411         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12412         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12413         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12414         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12415         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12416         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12417         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12418         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12419         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12420         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12421         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12422         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12423         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12424         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12425         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12426         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12427         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12428         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12429         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12430         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12431         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12432         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12433         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12434         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12435         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12436         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12437         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12438         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12439         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12440         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12441         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12442         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12443         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12444         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12445         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12446         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12447         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12448         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12449         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12450         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12451         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12452         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12453         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12454         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12455         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12456         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12457         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12458         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12459         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12460         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12461         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12462         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12463         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12464         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12465         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12466         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12467         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12468         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12469         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12470         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12471         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12472         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12473         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12474         * sysdeps/ieee754/s_matherr.c: Likewise.
12475         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12476         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12477         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12478         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12479
12480 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12481
12482         * crypt/md5.h: Remove __STDC__ conditionals.
12483         * libio/libioP.h: Likewise.
12484         * locale/programs/config.h: Likewise.
12485         * sysdeps/generic/sysdep.h: Likewise.
12486         * sysdeps/i386/asm-syntax.h: Likewise.
12487         * sysdeps/s390/asm-syntax.h: Likewise.
12488         * sysdeps/unix/sysdep.h: Likewise.
12489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12491
12492 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12493
12494         * libio/libio.h: Remove __STDC__ conditionals.
12495         * malloc/obstack.h: Likewise.
12496         * math/complex.h: Likewise.
12497         * math/math.h: Likewise.
12498         * sysdeps/generic/_G_config.h: Likewise.
12499         * sysdeps/gnu/_G_config.h: Likewise.
12500         * sysdeps/mach/hurd/_G_config.h: Likewise.
12501         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12502         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12503         * sysdeps/sparc/bits/mathdef.h: Likewise.
12504
12505 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12506
12507         [BZ #13583]
12508         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12509         Clean up HAS_* macros.
12510         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12511         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12512         possible.
12513         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12514         HAS_AVX.
12515         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12516         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12517         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12518         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12519         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12520
12521 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12522
12523         * elf/tst-unique3.cc (gets): Remove declaration.
12524         * elf/tst-unique3lib.cc (gets): Likewise.
12525         * elf/tst-unique3lib2.cc (gets): Likewise.
12526         * elf/tst-unique4.cc (gets): Likewise.
12527
12528 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12529
12530         * include/stdio.h: Add C++ protection.  Add gets declarations and
12531         definitions.
12532         * debug/tst-chk1.c: Don't declare gets here.
12533         * stdio-common/tst-gets.c: Likewise.
12534
12535 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12536
12537         * posix/glob: Remove directory.
12538
12539 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12540
12541         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12542
12543 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12544
12545         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12546         of the non-standard EPFNOSUPPORT.
12547
12548 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12549
12550         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12551         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12552         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12553
12554 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12555
12556         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12557
12558 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12559
12560         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12561         transient errors.
12562         * nscd/grpcache.c (cache_addgr): Likewise.
12563         * nscd/hstcache.c (cache_addhst): Likewise.
12564         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12565         * nscd/pwdcache.c (cache_addpw): Likewise.
12566         * nscd/servicescache.c (cache_addserv): Likewise.
12567
12568 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12569
12570         * malloc/malloc.c: Various cleanups.
12571         * malloc/hooks.c: Likewise.
12572
12573         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12574         * stdlib/bug-fmtmsg1.c: New file.
12575
12576         * stdlib/fmtmsg.c (init): Add missing unlock.
12577         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12578
12579 2012-01-12  Marek Polacek  <polacek@redhat.com>
12580
12581         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12582         and _GNU_SOURCE.
12583
12584 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12585
12586         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12587         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12588         macro to ensure uniqueness of label name.
12589         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12590         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12591
12592 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12593
12594         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12595
12596         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12597         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12598         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12599         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12600
12601 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12602
12603         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12604
12605         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12606         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12607         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12608
12609         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12610
12611         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12612         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12613         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12614         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12615
12616         * math/bits/math-finite.h: Add ldexp support.
12617
12618 2012-01-10  Marek Polacek  <polacek@redhat.com>
12619
12620         * locale/programs/localedef.h (show_archive_content): Add noreturn
12621         attribute.
12622
12623 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12624
12625         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12626
12627 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12628
12629         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12630
12631         * io/Makefile (headers): Add bits/poll2.h.
12632
12633 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12634
12635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12636         typo #include statement.
12637
12638 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12639
12640         * include/sys/cdefs.h: Define __attribute_alloc_size.
12641         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12642         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12643         * elf/pldd.c: Likewise.
12644         * iconv/iconv_charmap.c: Likewise.
12645         * iconv/iconvconfig.c: Likewise.
12646         * iconv/strtab.c: Likewise.
12647         * locale/programs/locale.c: Likewise.
12648         * locale/programs/localedef.h: Likewise.
12649         * locale/programs/simple-hash.c: Likewise.
12650         * nscd/nscd.h: Likewise.
12651         * nss/makedb.c: Likewise.
12652         * sysdeps/generic/ldconfig.h: Likewise.
12653         * locale/programs/localedef.c: Remove xmalloc prototype.
12654         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12655
12656 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12657
12658         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12659         appropriate.
12660
12661 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12662
12663         * math/Makefile (tests): Add tst-CMPLX.
12664         * math/tst-CMPLX.c: New file.
12665
12666         * math/complex.h (CMPLXL): Fix typo.
12667
12668         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12669         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12670         GLIBC_2.16.
12671         * debug/tst-chk1.c: Add poll and ppoll tests.
12672         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12673         * include/sys/poll.h: Add hidden proto for ppoll.
12674         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12675         * sysdeps/mach/hurd/ppoll.c: Likewise.
12676         * io/ppoll.c: Likewise.
12677         * debug/poll_chk.c: New file.
12678         * debug/ppoll_chk.c: New file.
12679         * include/bits/poll2.h: New file.
12680         * io/bits/poll2.h: New file.
12681
12682         [BZ #1350]
12683         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12684
12685         * configure.in: static is always set to yes.  Remove.
12686         * config.make.in: Don't set build-static.
12687         * Makeconfig: Remove use of build-static.
12688         * dlfcn/Makefile: Likewise.
12689         * elf/Makefile: Likewise.
12690         * math/Makefile: Likewise.
12691         * misc/Makefile: Likewise.
12692         * nptl/Makefile: Likewise.
12693         * sysdeps/mach/hurd/Makefile: Likewise.
12694
12695         * configure.in: PWD_P is not used anymore.
12696         * config.make.in: Remove PWD_P entry.
12697
12698         * configure.in: Remove last remnants of RANLIB.
12699         No need to check for signed size_t anymore.
12700         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12701         and IA-64.
12702         Remove __builtin_expect test because we require at least gcc 3.4.
12703         * aclocal.m4: Likewise.
12704
12705         * wcsmbs/mbrtoc16.c: Implement using towc function.
12706         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12707         * wcsmbs/wcsmbsload.c: Likewise.
12708         * iconv/gconv_simple.c: Likewise.
12709         * iconv/gconv_int.h: Likewise.
12710         * iconv/gconv_builtin.h: Likewise.
12711         * iconv/iconv_prog.c: Remove CHAR16 handling.
12712
12713         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12714
12715         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12716
12717         * configure.in: Remove --with-elf and --enable-bounded options.
12718         Dont set base_machine for ia64.  More non-ELF conditions removed.
12719         Remove testing and setting of leading underscore information.
12720         * config.make.in (build-bounded): Set to no.
12721         * config.h.in: Remove NO_UNDERSCORES entry.
12722         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12723         them.
12724         * csu/start.c: Remove !NO_UNDERSCORE code.
12725         * locale/localeinfo.h: Likewise.
12726         * sysdeps/generic/machine-gmon.h: Likewise.
12727         * sysdeps/generic/sysdep.h: Likewise.
12728         * sysdeps/i386/sysdep.h: Likewise.
12729         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12730         * sysdeps/mach/sysdep.h: Likewise.
12731         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12732         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12733         * sysdeps/sh/sysdep.h: Likewise.
12734         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12735         * sysdeps/unix/i386/sysdep.S: Likewise.
12736         * sysdeps/unix/sparc/start.c: Likewise.
12737         * sysdeps/unix/sparc/sysdep.S: Likewise.
12738         * sysdeps/unix/sparc/sysdep.h: Likewise.
12739         * sysdeps/unix/start.c: Likewise.
12740         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12741         * sysdeps/x86_64/sysdep.h: Likewise.
12742
12743 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12744
12745         [BZ #13553]
12746         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12747         for non-gcc.
12748         * argp/argp-fmtstream.h: Use const instead __const.
12749         * argp/argp.h: Likewise.
12750         * assert/assert.h: Likewise.
12751         * bits/fenv.h: Likewise.
12752         * bits/sched.h: Likewise.
12753         * bits/sigset.h: Likewise.
12754         * bits/sigthread.h: Likewise.
12755         * catgets/nl_types.h: Likewise.
12756         * conform/data/pthread.h-data: Likewise.
12757         * crypt/crypt-private.h: Likewise.
12758         * crypt/crypt.h: Likewise.
12759         * crypt/crypt_util.c: Likewise.
12760         * ctype/ctype.h: Likewise.
12761         * debug/execinfo.h: Likewise.
12762         * debug/mbsnrtowcs_chk.c: Likewise.
12763         * debug/mbsrtowcs_chk.c: Likewise.
12764         * debug/wcsnrtombs_chk.c: Likewise.
12765         * debug/wcsrtombs_chk.c: Likewise.
12766         * debug/wcstombs_chk.c: Likewise.
12767         * dirent/dirent.h: Likewise.
12768         * dlfcn/dlfcn.h: Likewise.
12769         * elf/neededtest4.c: Likewise.
12770         * grp/grp.h: Likewise.
12771         * gshadow/gshadow.h: Likewise.
12772         * iconv/gconv.h: Likewise.
12773         * iconv/gconv_int.h: Likewise.
12774         * iconv/gconv_simple.c: Likewise.
12775         * iconv/iconv.h: Likewise.
12776         * iconv/loop.c: Likewise.
12777         * iconv/skeleton.c: Likewise.
12778         * include/aio.h: Likewise.
12779         * include/aliases.h: Likewise.
12780         * include/argz.h: Likewise.
12781         * include/arpa/inet.h: Likewise.
12782         * include/assert.h: Likewise.
12783         * include/dirent.h: Likewise.
12784         * include/dlfcn.h: Likewise.
12785         * include/execinfo.h: Likewise.
12786         * include/fcntl.h: Likewise.
12787         * include/fenv.h: Likewise.
12788         * include/glob.h: Likewise.
12789         * include/grp.h: Likewise.
12790         * include/libintl.h: Likewise.
12791         * include/mntent.h: Likewise.
12792         * include/netdb.h: Likewise.
12793         * include/pwd.h: Likewise.
12794         * include/rpc/netdb.h: Likewise.
12795         * include/sched.h: Likewise.
12796         * include/search.h: Likewise.
12797         * include/shadow.h: Likewise.
12798         * include/signal.h: Likewise.
12799         * include/stdio.h: Likewise.
12800         * include/stdlib.h: Likewise.
12801         * include/string.h: Likewise.
12802         * include/sys/socket.h: Likewise.
12803         * include/sys/stat.h: Likewise.
12804         * include/sys/statfs.h: Likewise.
12805         * include/sys/statvfs.h: Likewise.
12806         * include/sys/syslog.h: Likewise.
12807         * include/sys/time.h: Likewise.
12808         * include/sys/uio.h: Likewise.
12809         * include/time.h: Likewise.
12810         * include/unistd.h: Likewise.
12811         * include/utmp.h: Likewise.
12812         * include/wchar.h: Likewise.
12813         * include/wctype.h: Likewise.
12814         * inet/aliases.h: Likewise.
12815         * inet/arpa/inet.h: Likewise.
12816         * inet/netinet/ether.h: Likewise.
12817         * inet/netinet/in.h: Likewise.
12818         * intl/libintl.h: Likewise.
12819         * io/bits/fcntl2.h: Likewise.
12820         * io/fcntl.h: Likewise.
12821         * io/ftw.h: Likewise.
12822         * io/sys/poll.h: Likewise.
12823         * io/sys/stat.h: Likewise.
12824         * io/sys/statfs.h: Likewise.
12825         * io/sys/statvfs.h: Likewise.
12826         * io/utime.h: Likewise.
12827         * libio/bits/stdio.h: Likewise.
12828         * libio/bits/stdio2.h: Likewise.
12829         * libio/libio.h: Likewise.
12830         * libio/libioP.h: Likewise.
12831         * libio/stdio.h: Likewise.
12832         * locale/lc-ctype.c: Likewise.
12833         * locale/locale.h: Likewise.
12834         * login/utmp.h: Likewise.
12835         * malloc/arena.c: Likewise.
12836         * malloc/malloc.c: Likewise.
12837         * malloc/malloc.h: Likewise.
12838         * malloc/mcheck.c: Likewise.
12839         * malloc/mtrace.c: Likewise.
12840         * math/bits/mathcalls.h: Likewise.
12841         * math/fenv.h: Likewise.
12842         * math/math_private.h: Likewise.
12843         * misc/bits/error.h: Likewise.
12844         * misc/bits/syslog.h: Likewise.
12845         * misc/err.h: Likewise.
12846         * misc/error.h: Likewise.
12847         * misc/fstab.h: Likewise.
12848         * misc/mntent.h: Likewise.
12849         * misc/regexp.h: Likewise.
12850         * misc/search.h: Likewise.
12851         * misc/sgtty.h: Likewise.
12852         * misc/sys/mman.h: Likewise.
12853         * misc/sys/syslog.h: Likewise.
12854         * misc/sys/uio.h: Likewise.
12855         * misc/sys/xattr.h: Likewise.
12856         * misc/ttyent.h: Likewise.
12857         * nis/rpcsvc/ypclnt.h: Likewise.
12858         * nss/nss.h: Likewise.
12859         * posix/bits/unistd.h: Likewise.
12860         * posix/fnmatch.h: Likewise.
12861         * posix/glob.h: Likewise.
12862         * posix/sched.h: Likewise.
12863         * posix/spawn.h: Likewise.
12864         * posix/sys/wait.h: Likewise.
12865         * posix/unistd.h: Likewise.
12866         * posix/wordexp.h: Likewise.
12867         * pwd/pwd.h: Likewise.
12868         * resolv/netdb.h: Likewise.
12869         * resource/sys/resource.h: Likewise.
12870         * rt/aio.h: Likewise.
12871         * rt/bits/mqueue2.h: Likewise.
12872         * rt/mqueue.h: Likewise.
12873         * shadow/shadow.h: Likewise.
12874         * signal/signal.h: Likewise.
12875         * socket/send.c: Likewise.
12876         * socket/sendto.c: Likewise.
12877         * socket/sys/socket.h: Likewise.
12878         * stdio-common/printf.h: Likewise.
12879         * stdlib/bits/stdlib.h: Likewise.
12880         * stdlib/fmtmsg.h: Likewise.
12881         * stdlib/monetary.h: Likewise.
12882         * stdlib/stdlib.h: Likewise.
12883         * stdlib/ucontext.h: Likewise.
12884         * streams/stropts.h: Likewise.
12885         * string/argz.h: Likewise.
12886         * string/bits/string2.h: Likewise.
12887         * string/string.h: Likewise.
12888         * string/strings.h: Likewise.
12889         * sunrpc/rpc/auth.h: Likewise.
12890         * sunrpc/rpc/auth_des.h: Likewise.
12891         * sunrpc/rpc/clnt.h: Likewise.
12892         * sunrpc/rpc/netdb.h: Likewise.
12893         * sunrpc/rpc/pmap_clnt.h: Likewise.
12894         * sunrpc/rpc/xdr.h: Likewise.
12895         * sysdeps/generic/inttypes.h: Likewise.
12896         * sysdeps/generic/net/if.h: Likewise.
12897         * sysdeps/generic/sys/swap.h: Likewise.
12898         * sysdeps/gnu/net/if.h: Likewise.
12899         * sysdeps/gnu/utmpx.h: Likewise.
12900         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12901         * sysdeps/i386/i486/bits/string.h: Likewise.
12902         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12903         * sysdeps/s390/bits/string.h: Likewise.
12904         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12905         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12906         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12907         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12908         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12909         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12910         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12911         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12912         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12913         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12914         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12915         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12916         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12917         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12918         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12919         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12920         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12921         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12922         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12923         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12924         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12925         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12926         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12927         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12928         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12929         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12930         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12931         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12932         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12933         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12934         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12935         * sysvipc/sys/ipc.h: Likewise.
12936         * sysvipc/sys/msg.h: Likewise.
12937         * sysvipc/sys/sem.h: Likewise.
12938         * sysvipc/sys/shm.h: Likewise.
12939         * termios/termios.h: Likewise.
12940         * time/sys/time.h: Likewise.
12941         * time/time.h: Likewise.
12942         * wcsmbs/bits/wchar2.h: Likewise.
12943         * wcsmbs/uchar.h: Likewise.
12944         * wcsmbs/wchar.h: Likewise.
12945         * wctype/wctype.h: Likewise.
12946
12947         [BZ #13551]
12948         * Makeconfig: Remove all but ELF support including AIX support.
12949         * Makerules: Likewise.
12950         * config.h.in: Likewise.
12951         * config.make.in: Likewise.
12952         * configure: Likewise.
12953         * configure.in: Likewise.
12954         * csu/Makefile: Likewise.
12955         * csu/version.c: Likewise.
12956         * debug/Makefile: Likewise.
12957         * dlfcn/Makefile: Likewise.
12958         * elf/Makefile: Likewise.
12959         * extra-lib.mk: Likewise.
12960         * iconv/Makefile: Likewise.
12961         * include/libc-symbols.h: Likewise.
12962         * include/shlib-compat.h: Likewise.
12963         * resolv/Makefile: Likewise.
12964         * resolv/res_libc.c: Likewise.
12965         * rt/Makefile: Likewise.
12966         * sysdeps/i386/asm-syntax.h: Likewise.
12967         * sysdeps/i386/sysdep.h: Likewise.
12968         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12969         * sysdeps/mach/sysdep.h: Likewise.
12970         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12971         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12972         * sysdeps/s390/asm-syntax.h: Likewise.
12973         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12974         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12975         * sysdeps/sh/sysdep.h: Likewise.
12976         * sysdeps/unix/sparc/sysdep.h: Likewise.
12977         * sysdeps/wordsize-32/divdi3.c: Likewise.
12978         * sysdeps/x86_64/sysdep.h: Likewise.
12979
12980         * argp/Versions: Remove _argp_unlock_xxx.
12981
12982         [BZ #13559]
12983         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12984         * abilist/libBrokenLocale.abilist: Likewise.
12985         * abilist/libanl.abilist: Likewise.
12986         * abilist/libc.abilist: Likewise.
12987         * abilist/libcrypt.abilist: Likewise.
12988         * abilist/libdl.abilist: Likewise.
12989         * abilist/libm.abilist: Likewise.
12990         * abilist/libnsl.abilist: Likewise.
12991         * abilist/libpthread.abilist: Likewise.
12992         * abilist/libresolv.abilist: Likewise.
12993         * abilist/librt.abilist: Likewise.
12994         * abilist/libthread_db.abilist: Likewise.
12995         * abilist/libutil.abilist: Likewise.
12996         * abilist/libnss_db.abilist: New file.
12997
12998         * scripts/abilist.awk: Add support for indirect functions.
12999
13000         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13001
13002         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13003
13004         * shlib-versions: Remove entries for ports architectures.
13005
13006         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13007         files in ports.
13008         * elf/stackguard-macros.h: Remove support for IA-64.
13009         * elf/tst-auditmod1.c: Likewise.
13010         * sysdeps/generic/ldsodefs.h: Likewise.
13011
13012         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13013         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13014         configure files.
13015
13016         [BZ #13552]
13017         * configure.in: Remove --enable-omitfp support.
13018         * FAQ.in: Adjust.
13019         * config.make.in: Likewise.
13020         * Makeconfig: Likewise.
13021         * manual/install.texi: Likewise.
13022
13023         In case anyone cares, the IA-64 architecture could move to ports.
13024         * sysdeps/ia64/*: Removed.
13025         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13026         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13027
13028         [BZ #13555]
13029         * configure.in: Remove entries for unsupported architectures.
13030
13031         [BZ #13533]
13032         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13033         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13034         routines.
13035         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13036         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13037         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13038         fall back to using wcrtomb.
13039         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13040         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13041         renaming.
13042         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13043         * wcsmbs/tst-c16c32-1.c: New file.
13044
13045         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13046         local variable.
13047
13048         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13049
13050         * elf/tst-unique3.cc: Add explicit declaration of gets.
13051         * elf/tst-unique3lib.cc: Likewise.
13052         * elf/tst-unique3lib2.cc: Likewise.
13053         * elf/tst-unique4.cc: Likewise.
13054
13055         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13056
13057 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13058
13059         [BZ #13566]
13060         * assert/assert.h (static_assert): Don't define for C++.
13061         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13062         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13063
13064 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13065
13066         * iconv/loop.c (single loop): Fix assertion in storing of
13067         remaining bytes.
13068
13069         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13070
13071 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13072
13073         * posix/getconf.c: Update copyright year.
13074         * nss/getent.c: Likewise.
13075         * nss/makedb.c: Likewise.
13076         * iconv/iconvconfig.c: Likewise.
13077         * iconv/iconv_prog.c: Likewise.
13078         * elf/ldconfig.c: Likewise.
13079         * elf/pldd.c: Likewise.
13080         * elf/sotruss.ksh: Likewise.
13081         * catgets/gencat.c: Likewise.
13082         * csu/version.c: Likewise.
13083         * elf/ldd.bash.in: Likewise.
13084         * elf/sprof.c (print_version): Likewise.
13085         * locale/programs/locale.c: Likewise.
13086         * locale/programs/localedef.c: Likewise.
13087         * login/programs/pt_chown.c: Likewise.
13088         * nscd/nscd.c (print_version): Likewise.
13089         * debug/xtrace.sh: Likewise.
13090         * malloc/memusage.sh: Likewise.
13091         * malloc/mtrace.pl: Likewise.
13092         * debug/catchsegv.sh: Likewise.
13093
13094 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13095
13096         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13097         pure attribute.
13098
13099 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13100
13101         [BZ #13533]
13102         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13103         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13104         transformations.
13105         * iconv/gconv_int.h: Likewise.
13106         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13107         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13108         from libc for GLIBC_2.16.
13109         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13110         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13111         * wcsmbs/uchar.h: Really define mbstate_t.
13112         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13113         * wcsmbs/c16rtomb.c: New file.
13114         * wcsmbs/mbrtoc16.c: New file.
13115         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13116         for C/POSIX locale.
13117         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13118         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13119
13120         * wcsmbs/wchar.h: Add missing __restrict.
13121
13122 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13123
13124         [BZ #13532]
13125         * time/Makefile (routines): Add timespec_get.
13126         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13127         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13128         timespec for ISO C11.
13129         * time/timespec_get.c: New file.
13130         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13131         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13132
13133         [BZ #13531]
13134         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13135         * stdlib/stdlib.h: Declare aligned_alloc.
13136         * Versions.def: Add GLIBC_2.16 for libc.
13137         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13138
13139         [BZ 13527]
13140         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13141         ISO C11.
13142
13143         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13144         code.
13145
13146         [BZ #13528]
13147         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13148
13149         [BZ #13529]
13150         * assert/assert.h (static_assert): Define.
13151
13152         * version.h: Update for 2.16 development version.
13153
13154         [BZ #13526]
13155         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13156         _ISOC11_SOURCE.
13157
13158         * version.h (RELEASE): Bump for 2.15 release.
13159         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13160
13161         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13162         Patch by Marek Polacek <mpolacek@redhat.com>.
13163
13164         * bits/byteswap.h: Protect long long constants with __extension__.
13165         * sysdeps/i386/bits/byteswap.h: Likewise.
13166         * sysdeps/ia64/bits/byteswap.h: Likewise.
13167         * sysdeps/s390/bits/byteswap.h: Likewise.
13168         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13169
13170 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13171
13172         [BZ #13540]
13173         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13174         destination buffer.
13175         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13176
13177 2011-12-23  Marek Polacek  <polacek@redhat.com>
13178
13179         * elf/dl-addr.c (determine_info): Add inline keyword.
13180         * elf/tst-auditmod4b.c (check_avx): Likewise.
13181         * elf/tst-auditmod6b.c (check_avx): Likewise.
13182         * elf/tst-auditmod6c.c (check_avx): Likewise.
13183         * elf/tst-auditmod7b.c (check_avx): Likewise.
13184
13185 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13186
13187         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13188         !__SSE_MATH__.
13189
13190 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13191
13192         [BZ #13540]
13193         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13194         processing for last bytes.
13195
13196 2011-08-06  Bruno Haible  <bruno@clisp.org>
13197
13198         [BZ #13061]
13199         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13200         U+0385, not to U+1FEE.
13201
13202         [BZ #13062]
13203         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13204         entry for U+00A5 U+0301.
13205
13206 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13207
13208         [BZ #13166]
13209         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13210         buffer for the output is too small.
13211
13212         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13213         optimization.
13214
13215         [BZ #13185]
13216         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13217         SSE flags if possible.
13218
13219 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13220
13221         [BZ #13540]
13222         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13223         processing for last bytes.
13224
13225 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13226
13227         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13228         (syscall-list-default-options, syscall-list-default-condition)
13229         (syscall-list-includes): Define.
13230         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13231         list of ABIs and options and #if conditions for each ABI.  Do not
13232         handle common syscalls between ABIs specially.
13233         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13234         Remove.
13235         (syscall-list-variants, syscall-list-32bit-options)
13236         (syscall-list-32bit-condition, syscall-list-64bit-options)
13237         (syscall-list-64bit-condition): Define.
13238         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13239         (syscall-list-variants, syscall-list-32bit-options)
13240         (syscall-list-32bit-condition, syscall-list-64bit-options)
13241         (syscall-list-64bit-condition): Define.
13242         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13243         Remove.
13244         (syscall-list-variants, syscall-list-32bit-options)
13245         (syscall-list-32bit-condition, syscall-list-64bit-options)
13246         (syscall-list-64bit-condition): Define.
13247         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13248         Remove.
13249         (syscall-list-variants, syscall-list-32bit-options)
13250         (syscall-list-32bit-condition, syscall-list-64bit-options)
13251         (syscall-list-64bit-condition): Define.
13252
13253 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13254
13255         * locale/iso-639.def: Add brx entry.
13256
13257         [BZ #13328]
13258         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13259         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13260
13261         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13262         __feraiseexcept_renamed.
13263
13264 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13265
13266         [BZ #13538]
13267         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13268         EPOLLET with unsigned values.
13269         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13270         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13271
13272         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13273         to large cancellation.
13274         * math/s_cacoshf.c: Likewise.
13275         * math/s_cacoshl.c: Likewise.
13276
13277 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13278
13279         [BZ #13305]
13280         [BZ #12786]
13281         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13282         * math/s_cacoshf.c: Likewise.
13283         * math/s_cacoshl.c: Likewise.
13284
13285 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13286
13287         [BZ #13439]
13288         * iconv/gconv.h: Define __GCONV_SWAP.
13289         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13290         * iconvdata/utf-16.c: Likewise.
13291         * iconvdata/utf-32.c: Likewise.
13292
13293 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13294
13295         [BZ #13524]
13296         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13297         numerator after shifting it by one limb.
13298
13299 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13300
13301         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13302         under [__USE_EXTERN_INLINES].
13303
13304 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13305
13306         [BZ #13446]
13307         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13308
13309 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13310
13311         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13312         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13313         optimized code.
13314         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13315         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13316         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13317         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13318         for strncasecmp/strncasecmp_l compilation.
13319         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13320         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13321
13322 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13323
13324         [BZ #13484]
13325         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13326         of __asm__.
13327
13328 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13329
13330         [BZ #13506]
13331         * time/tzfile.c (__tzfile_read): Check values from file header.
13332
13333 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13334
13335         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13336         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13337         * powerpc/powerpc32/dl-start.S: Likewise.
13338         * powerpc/powerpc32/elf/start.S: Likewise.
13339         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13340         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13341         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13342         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13343         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13344         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13345         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13346         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13347         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13348         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13349         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13350         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13351         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13352         * powerpc/powerpc32/memset.S: Likewise.
13353         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13354         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13355         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13356         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13357         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13358         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13359         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13360         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13361         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13362         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13363         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13364         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13365         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13366
13367 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13368
13369         * math/libm-test.inc: Added more nearbyint tests.
13370         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13371         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13372         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13373         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13374
13375 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13376
13377         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13378         FD_CLOEXEC.
13379
13380 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13381
13382         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13383         Add wcscpy-ssse3 wcscpy-c.
13384         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13385         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13386         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13387         * sysdeps/x86_64/wcschr.S: New file.
13388         * sysdeps/x86_64/wcsrchr.S: New file.
13389         * string/test-strcmp.c: Remove checking of wcscmp function for
13390         wrong alignments.
13391         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13392         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13393         wcsrchr-sse2 wcsrchr-c.
13394         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13395         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13396         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13397         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13398         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13399         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13400         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13401         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13402         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13403         * wcsmbc/wcschr.c (WCSCHR): New macro.
13404
13405 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13406
13407         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13408         * wcsmbs/test-wcsrchr.c: New file.
13409         * string/test-strrchr.c: Add wcsrchr support.
13410         (WIDE): New macro.
13411         * wcsmbs/test-wcscpy.c: New file.
13412         * string/test-strcpy.c: Add wcscpy support.
13413         (WIDE): New macro.
13414
13415 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13416
13417         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13418         the inner loop.
13419
13420 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13421
13422         [BZ #13472]
13423         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13424
13425 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13426
13427         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13428         Minor optimizations.
13429
13430         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13431         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13432         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13433
13434 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13435
13436         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13437         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13438         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13439         for gcc to avoid warnings.
13440         * inet/Makefile (tests): Add tst-checks.
13441         * inet/tst-checks.c: New file.
13442
13443         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13444         warning.
13445
13446         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13447         __wmemcmp_sse2.
13448
13449         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13450         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13451
13452         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13453
13454 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13455
13456         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13457         problem.
13458
13459         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13460
13461 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13462
13463         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13464         conditional on GCC version.
13465         (__arch_compare_and_exchange_val_8_acq)
13466         (__arch_compare_and_exchange_val_16_acq)
13467         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13468         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13469         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13470
13471 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13472
13473         * sysdeps/sh/backtrace.c: New file.
13474
13475 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13476
13477         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13478         parenthesis.
13479
13480 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13481
13482         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13483         falling back to utime.
13484
13485 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13486
13487         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13488         expectations for float.
13489
13490 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13491
13492         * locale/weight.h (findidx): Add parameter len.
13493         * locale/weightwc.h (findidx): Likewise.
13494         * posix/fnmatch_loop.c (FCT): Adjust caller.
13495         * posix/regcomp.c (build_equiv_class): Likewise.
13496         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13497         * posix/regexec.c (check_node_accept_bytes): Likewise.
13498         * string/strcoll_l.c (STRCOLL): Likewise.
13499         * string/strxfrm_l.c (STRXFRM): Likewise.
13500
13501 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13502
13503         * Makefile.in: Remove CVSOPT handling.
13504         * configure.in: Remove use of AC_REVISION.
13505         * iconvdata/Makefile (distribute): No need to filter out CVS.
13506         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13507         handling.
13508
13509 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13510
13511         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13512         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13513         [USE_AS_STRNCASECMP_L]: Likewise.
13514         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13515         NO_TLS_DIRECT_SEG_REFS.
13516         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13517         Fix argument offsets for non-PIC.
13518         [USE_AS_STRNCASECMP_L]: Likewise.
13519         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13520         NO_TLS_DIRECT_SEG_REFS.
13521
13522 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13523
13524         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13525         O_CLOEXEC.
13526         * locale/loadlocale.c (_nl_load_locale): Likewise.
13527
13528 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13529
13530         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13531         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13532         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13533         (SYSCALL_GETTIME): Set errno on error.
13534
13535         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13536         count references to noai6ai_cached.
13537
13538 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13539
13540         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13541
13542         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13543         FD_CLOEXEC for /proc/self/maps.
13544
13545         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13546         FD_CLOEXEC for /proc/meminfo.
13547
13548         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13549         gai.conf.
13550
13551         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13552         FD_CLOEXEC for given file.
13553
13554         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13555
13556         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13557         FD_CLOEXEC for /etc/hosts.
13558         (_gethtent): Likewise.
13559
13560         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13561
13562         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13563         cancellation and set FD_CLOEXEC for /etc/netgroup.
13564
13565         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13566         reading /etc/publickey.
13567
13568         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13569         allow cancellation when reading /etc/group.
13570
13571         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13572         cancellation.
13573         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13574
13575         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13576         when using data file.
13577
13578         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13579
13580         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13581         (write_nis_obj): Use "c" and "e" in fopen.
13582
13583         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13584
13585         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13586
13587         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13588
13589         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13590
13591         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13592         locale.alias.
13593
13594         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13595
13596         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13597
13598         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13599
13600         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13601         file parsing and set FD_CLOEXEC.
13602
13603 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13604
13605         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13606
13607 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13608
13609         * malloc/arena.c (arena_get2): Don't call reused_arena when
13610         _int_new_arena failed.
13611
13612 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13613
13614         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13615         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13616         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13617         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13618         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13619         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13620         to compile strcasecmp and strncasecmp.
13621         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13622         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13623
13624         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13625
13626 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13627
13628         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13629         locale-defines.sym to gen-as-const-headers.
13630         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13631         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13632         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13633         to compile strcasecmp and strncasecmp.
13634         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13635         strcasecmp_l and strncasecmp_l.
13636         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13637         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13638         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13639         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13640         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13641         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13642         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13643         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13644         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13645         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13646         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13647
13648 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13649
13650         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13651         result of SYSDEP_GETTIME_CPU to retval.
13652         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13653         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13654
13655         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13656         variable.
13657
13658         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13659         mantissa words.
13660         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13661
13662         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13663         from unused variable.
13664
13665         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13666         DWARF definitions.
13667         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13668         for assembling.
13669
13670         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13671         over namespaces.
13672
13673         * sunrpc/rpc_prot.c (rejected): Fix case value.
13674
13675         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13676         unsigned long long int to avoid warnings in shift.
13677
13678         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13679         of use of trans.
13680         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13681         variable tmp.
13682
13683         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13684         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13685         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13686
13687         * nis/nis_table.c (nis_list): Use variable of correct type for
13688         result of __follow_path call.
13689
13690 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13691
13692         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13693         of math functions ceil, trunc, floor, round, and sqrt, when
13694         avaliable on the platform.
13695         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13696         name clash.
13697         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13698         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13699         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13700
13701 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13702
13703         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13704         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13705
13706 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13707
13708         * include/unistd.h: Fix __readlink return type.
13709         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13710
13711 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13712
13713         * stdlib/ucontext.h: Undo last change for makecontext.
13714
13715 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13716
13717         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13718
13719         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13720         * setjmp/setjmp.h: Mark functions as non-leaf.
13721         * setjmp/bits/setjmp2.h: Likewise.
13722         * stdlib/ucontext.h: Likewise.
13723
13724 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13725
13726         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13727         (reused_arena): Don't check arena limit.
13728         (arena_get2): Atomically check arena limit.
13729
13730 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13731
13732         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13733         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13734
13735         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13736         instructions.
13737
13738 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13739
13740         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13741         handler when locking.
13742
13743         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13744         Fix size of allocated buffer.
13745
13746 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13747
13748         [BZ #10103]
13749         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13750         declarations for long double functions.
13751         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13752
13753         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13754
13755 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13756
13757         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13758         installed.
13759
13760         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13761         is disabled.
13762
13763 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13764
13765         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13766
13767 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13768
13769         * include/alloca.h (stackinfo_alloca_round): Define.
13770         (extend_alloca): Use it.
13771         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13772         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13773         here.
13774
13775         * scripts/check-local-headers.sh: Ignore libaudit.h.
13776
13777         * nscd/Makefile (extra-objs): Make recursively expanded.
13778
13779 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13780
13781         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13782         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13783
13784         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13785         * posix/tst-rfc3484-2.c: Likewise.
13786         * posix/tst-rfc3484-3.c: Likewise.
13787
13788         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13789         process_vm_writev.
13790         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13791         process_vm_writev.
13792         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13793         process_vm_writev from libc using GLIBC_2.15 version.
13794
13795         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13796
13797 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13798
13799         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13800         stack usage.
13801
13802 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13803
13804         [BZ #13367]
13805         * nss/getent.c (initgroups_keys): Show error message in case no group
13806         names are given.
13807
13808         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13809         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13810         __bump_nl_timestamp.
13811         * nscd/connections (nscd_init): When host database is served open
13812         netlink socket and request notification about configuration changes.
13813         (main_loop_poll): Track netlink file descriptor and bump timestamp
13814         in case data becomes available.
13815         (main_loop_epoll): Likewise.
13816         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13817         (database_pers_head): Add extra_data fileds.
13818         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13819         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13820         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13821         Adjust caller.
13822         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13823         in6ai data, call __free_in6ai.
13824         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13825         Add -DHAVE_NETLINK.
13826         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13827         interface information.  Reuse previous data if netlink timestamp
13828         is not changed.
13829         (__bump_nl_timestamp): New function.
13830         (__free_in6ai): New function.
13831
13832 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13833
13834         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13835         close_not_cancel_no_status here.
13836         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13837
13838 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13839
13840         [BZ #13276]
13841         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13842         return value.
13843
13844         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13845         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13846         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13847
13848 2011-07-03  Andreas Jaeger  <aj@suse.de>
13849
13850         [BZ #10709]
13851         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13852         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13853         * math/libm-test.inc (sin_test): Add test case.
13854
13855 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13856
13857         [BZ #13337]
13858         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13859         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13860
13861         * elf/chroot_canon.c (chroot_canon): Cleanups.
13862
13863         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13864
13865         [BZ #13335]
13866         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13867         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13868
13869         * string/test-strchr.c: Make usable for strchrnul testing.
13870         * string/test-strchrnul.c: New file.
13871         * string/Makefile (strop-tests): Add strchrnul.
13872
13873         * po/it.po: Update from translation team.
13874         * po/es.po: Likewise.
13875
13876 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13877
13878         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13879         the three constants needed as parameters.  Drop the others.
13880         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13881         __m128i_strloadu_tolower.
13882         Create and initialize variable zero and use it in all the places
13883         where _mm_setzero_si128 was used.
13884
13885         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13886         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13887         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13888         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13889         anymore.
13890         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13891         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13892         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13893         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13894         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13895         __mpranred, __mptan.
13896         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13897         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13898         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13899         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13900         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13901         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13902         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13903         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13904         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13905
13906 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13907
13908         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13909         redefine if SHARED.
13910         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13911
13912         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13913         wide char related routines to wcsmbs subdir.
13914
13915 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13916
13917         [BZ #13344]
13918         * misc/sys/cdefs.h (__THROWNL): Define.
13919         * posix/unistd.h: Use __THREADNL instead of __THREAD
13920         for memory synchronization functions.
13921
13922 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13923
13924         [BZ #13349]
13925         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13926         doesn't exist.
13927         * manual/stdio.texi (Obstack Streams): Node removed.
13928
13929 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13930
13931         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13932         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13933         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13934
13935         * math/math_private.h (math_force_eval): Allow non-addressable
13936         arguments.
13937         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13938
13939 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13940
13941         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13942         file is not needed.
13943
13944         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13945         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13946         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13947         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13948         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13949         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13950         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13951         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13952         Add AVX variants.
13953         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13954         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13955         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13956         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13957         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13958         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13959         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13960         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13961         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13962         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13963         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13964         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13965         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13966         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13967         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13968         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13969         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13970         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13971         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13972
13973         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13974         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13975
13976         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13977         place.  Use VEX encoding when compiling for AVX.
13978
13979 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13980
13981         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13982         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13983
13984         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13985
13986 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13987
13988         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13989         useless if() expression.
13990         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13991         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13992         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13993         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13994         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13995         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13996         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13997         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13998         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13999         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14000         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14001         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14002         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14003         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14004         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14005         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14006         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14007         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14008         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14009
14010         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14011
14012 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14013
14014         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14015         condition.
14016         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14017
14018 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14019
14020         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14021         .text section.  Avoid duplicate constants.
14022         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14023         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14024         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14025         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14026         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14027         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14028         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14029         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14030         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14031         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14032         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14033         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14034         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14035         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14036         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14037         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14038         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14039         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14040         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14041         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14042         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14043         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14044         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14045         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14046         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14047         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14048         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14049         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14050         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14051         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14052         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14053         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14054         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14055         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14056         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14057         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14058         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14059         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14060         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14061         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14062         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14063         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14064         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14065         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14066         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14067
14068 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14069
14070         * sysdeps/x86_64/dla.h: Move to ...
14071         * sysdeps/x86_64/fpu/dla.h: ...here.
14072         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14073         situations.  Use __builtin_fma only for gcc 4.6 and up.
14074
14075         * config.make.in: Add have-mfma4 entry.
14076         * configure.in: Substitute libc_cv_cc_fma4.
14077         * math/Makefile (dbl-only-routines): Add sincostab.
14078         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14079         Use __sincostab not sincos.
14080         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14081         name is a macro.
14082         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14083         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14084         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14085         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14086         using __copysign.
14087         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14088         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14089         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14090         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14091         and __inv.
14092         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14093         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14094         __copysign.
14095         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14096         define aliases when function name is a macro.
14097         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14098         sysdeps/ieee754/dbl-64/sincos.tbl.
14099         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14100         fma4-enabled routines.
14101         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14102         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14103         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14104         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14105         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14106         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14107         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14108         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14109         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14110         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14111         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14112         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14113         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14114         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14115         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14116         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14117         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14118         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14119         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14120         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14121         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14122         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14123         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14124         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14125         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14126         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14127         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14128         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14129         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14130         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14131
14132         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14133         rename.
14134         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14135         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14136         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14137         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14138         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14139         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14140         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14141         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14142
14143 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14144
14145         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14146
14147 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14148
14149         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14150
14151         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14152         prediction.
14153         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14154
14155         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14156         Remove unused variable magic_bits.
14157         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14158
14159         * string/strnlen.c: Define and use STRNLEN macro.
14160         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14161         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14162         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14163         * wcsmbs/wcslen.c: Define and use WCSLEN.
14164         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14165         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14166         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14167         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14168         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14169         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14170         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14171
14172 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14173
14174         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14175         strnlen-sse2-no-bsf.
14176         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14177         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14178         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14179         Add strnlen support.
14180         (USE_AS_STRNLEN): New macro.
14181         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14182         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14183         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14184         * sysdeps/x86_64/wcslen.S: New file.
14185
14186 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14187
14188         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14189         XMM-moves are used for copying on small sizes.
14190
14191 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14192
14193         * wcsmbs/Makefile (strop-tests): Add wcschr.
14194         * wcsmbs/test-wcschr.c: New file.
14195         * string/test-strchr.c: Update.
14196         Add wcschr support.
14197         (WIDE): New macro.
14198
14199 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14200
14201         * wcsmbs/Makefile (strop-tests): Add wcslen.
14202         * wcsmbs/test-wcslen.c: New file.
14203         * string/test-strlen.c: Update.
14204         Add wcslen support.
14205         (WIDE): New macro.
14206
14207 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14208
14209         * po/it.po: Update from translation team.
14210
14211 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14212
14213         * sysdeps/x86_64/wcscmp.S: Update.
14214         Fix wrong comparison semantics.
14215         wcscmp shall use signed comparison not unsigned.
14216         Don't use substraction to avoid overflow bug.
14217         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14218         * wcsmbc/wcscmp.c: Likewise.
14219         * string/test-strcmp.c: Likewise.
14220         Add new tests to check cases with negative values.
14221
14222 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14223
14224         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14225         * sysdeps/x86_64/dla.h: ...here.  New file.
14226         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14227         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14228         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14229         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14230         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14231         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14232         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14233         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14234         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14235
14236 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14237
14238         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14239         __ynl_finite aliases.
14240
14241 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14242
14243         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14244
14245         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14246         define DLA_FMA.
14247         [DLA_FMA] (EMULV): Use DLA_FMA.
14248         [DLA_FMA] (MUL12): Use EMULV.
14249         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14250         that are not needed.
14251         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14252         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14253         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14254         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14255         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14256         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14257         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14258
14259 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14260
14261         * math/s_nan.c: Undef __nan.
14262         * math/s_nanf.c: Undef __nanf.
14263         * math/s_nanl.c: Undef __nanl.
14264         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14265         "math_private.h".
14266
14267 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14268
14269         * math/s_catan.c: Add branch predictions.
14270         * math/s_catanf.c: Likewise.
14271         * math/s_catanh.c: Likewise.
14272         * math/s_catanhf.c: Likewise.
14273         * math/s_catanhl.c: Likewise.
14274         * math/s_catanl.c: Likewise.
14275         * math/s_cexp.c: Likewise.
14276         * math/s_cexpf.c: Likewise.
14277         * math/s_cexpl.c: Likewise.
14278         * math/s_clog.c: Likewise.
14279         * math/s_clog10.c: Likewise.
14280         * math/s_clog10f.c: Likewise.
14281         * math/s_clog10l.c: Likewise.
14282         * math/s_clogf.c: Likewise.
14283         * math/s_clogl.c: Likewise.
14284         * math/s_csqrt.c: Likewise.
14285         * math/s_csqrtf.c: Likewise.
14286         * math/s_csqrtl.c: Likewise.
14287         * math/s_ctanf.c: Likewise.
14288         * math/s_ctanh.c: Likewise.
14289         * math/s_ctanhf.c: Likewise.
14290         * math/s_ctanhl.c: Likewise.
14291         * math/s_ctanl.c: Likewise.
14292
14293         * math/math_private.h: Define __nan, __nanf, __nanl.
14294         * math/s_cacosh.c: Include <math_private.h>.
14295         * math/s_cacoshl.c: Likewise.
14296         * math/s_casinh.c: Likewise.
14297         * math/s_casinhf.c: Likewise.
14298         * math/s_casinhl.c: Likewise.
14299         * math/s_ccos.c: Rely entire on ccosh.
14300         * math/s_ccosf.c: Rely entire on ccoshf.
14301         * math/s_ccosl.c: Rely entirely on ccoshl.
14302         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14303         Remove tests for FE_INVALID.
14304         * math/s_ccoshf.c: Likewise.
14305         * math/s_ccoshl.c: Likewise.
14306         * math/s_csin.c: Likewise.
14307         * math/s_csinf.c: Likewise.
14308         * math/s_csinh.c Likewise.
14309         * math/s_csinhf.c: Likewise.
14310         * math/s_csinhl.c: Likewise.
14311         * math/s_csinl.c: Likewise.
14312         * math/s_ctan.c: Likewise.
14313         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14314         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14315         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14316
14317 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14318
14319         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14320         compilation problems.
14321
14322         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14323         __builtin_expect.
14324
14325 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14326
14327         * sysdeps/i386/configure.in: Test for -mfma4 option.
14328         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14329         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14330         COMMON_CPUID_INDEX_80000001.
14331         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14332         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14333         use it if FMA3 is not supported.
14334         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14335
14336         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14337         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14338
14339 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14340
14341         [BZ #12892]
14342         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14343         it would create a cycle with a link time dependency.
14344
14345 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14346
14347         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14348         instruction.
14349         * string/Makefile (strop-tests): Add rawmemchr.
14350         * string/test-rawmemchr.c: New file.
14351
14352         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14353         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14354         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14355         when compiling str{,n}casecmp and when AVX is available.  Hook up
14356         new optimized code in initializers.
14357
14358 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14359
14360         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14361         __feraiseexcept instead of feraiseexcept.
14362
14363 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14364
14365         * math/math_private.h: Define defaults for libc_fetestexcept and
14366         libc_feupdateenv.
14367         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14368         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14369         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14370         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14371         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14372         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14373         libc_fetestexcept and libc_feupdateenv.
14374
14375         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14376         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14377         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14378         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14379         libc_feholdexcept_setround.
14380
14381         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14382         Add s_nearbyint-c and s_nearbyintf-c.
14383         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14384         nearbyintf inlines.
14385         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14386         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14387         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14388         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14389
14390         * math/math_private.h: Define defaults for libc_fegetround,
14391         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14392         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14393         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14394         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14395         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14396         standard functions.
14397         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14398         Remove comments and hacks for old compiler versions.
14399         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14400         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14401         libc_feholdexceptl.
14402
14403 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14404
14405         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14406         (__feraiseexcept_renamed): Add __NTH.
14407         (feraiseexcept): Add __NTH.  Rename local variables to fix
14408         namespace violations.
14409
14410 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14411
14412         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14413
14414         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14415
14416         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14417         recently added interfaces.
14418         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14419
14420         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14421         about macro parameter expansion.
14422
14423         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14424         __NO_MATH_INLINES is defined.  Cleanups.
14425
14426         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14427         and __floorf is target has SSE4.1.
14428         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14429         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14430         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14431         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14432
14433         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14434         name.
14435         (floorf): Likewise.
14436
14437         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14438
14439 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14440
14441         * misc/sys/cdefs.h: Fix last change.
14442
14443         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14444         database lookup.
14445
14446 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14447
14448         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14449
14450         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14451         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14452         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14453         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14454         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14455         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14456         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14457         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14458         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14459         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14460         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14461         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14462         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14463         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14464         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14465         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14466         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14467         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14468         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14469         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14470         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14471         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14472
14473         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14474         ceil, ceilf, floor, floorf.
14475
14476         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14477         Perform IRELATIVE relocations last.
14478
14479         * elf/do-rel.h: Add another parameter nrelative, replacing the
14480         local variable with the same name.  Change name of the function
14481         to end in Rel or Rela (uppercase).
14482         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14483         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14484         elf_dynamic_do_##reloc function.
14485
14486 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14487
14488         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14489         is sufficient, at least on modern CPUs.
14490
14491         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14492
14493         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14494         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14495
14496         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14497         __expl_finite.
14498         * math/bits/math-finite.h: Add entries for exp.
14499         * math/e_expl.c: Add __*_finite alias.
14500         * sysdeps/i386/fpu/e_exp.S: Likewise.
14501         * sysdeps/i386/fpu/e_expf.S: Likewise.
14502         * sysdeps/i386/fpu/e_expl.c: Likewise.
14503         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14504         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14505         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14506         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14507         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14508         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14509         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14510
14511         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14512         is sufficient, at least on modern CPUs.
14513
14514         * ctype/ctype-info.c (__ctype_init): Define.
14515         * include/ctype.h (__ctype_init): Declare.
14516         (__ctype_b_loc): The variable is always initialized.
14517         (__ctype_toupper_loc): Likewise.
14518         (__ctype_tolower_loc): Likewise.
14519         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14520         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14521
14522 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14523
14524         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14525
14526         * configure.in: Also look in $cxxmachine/include for C++ system
14527         headers.
14528
14529 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14530
14531         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14532         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14533         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14534         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14535         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14536         (USE_AS_WMEMCMP): New macro.
14537         Fixing indents.
14538         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14539         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14540         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14541         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14542         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14543         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14544         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14545         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14546         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14547         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14548         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14549         (USE_AS_WMEMCMP): New macro.
14550         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14551         * sysdeps/string/test-memcmp.c: Update.
14552         Fix simple_wmemcmp.
14553         Add new tests.
14554         * wcsmbs/wmemcmp.c: Update.
14555         (WMEMCMP): New macro.
14556         Fix overflow bug.
14557
14558 2011-10-12  Andreas Jaeger  <aj@suse.de>
14559
14560         [BZ #13268]
14561         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14562
14563 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14564
14565         * libio/iofwide.c (do_length): Avoid warning.
14566
14567         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14568
14569 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14570
14571         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14572
14573         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14574         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14575         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14576         * sysdeps/i386/i686/fpu/e_log.S: New file.
14577         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14578         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14579
14580         * ctype/ctype.h: Add support for inlined isXXX functions when
14581         compiling C++ code.
14582
14583 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14584
14585         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14586
14587         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14588
14589 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14590
14591         [BZ #13291]
14592         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14593
14594 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14595
14596         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14597         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14598         feraiseexcept.
14599
14600         * sysdeps/x86_64/memrchr.S: Check for zero size.
14601
14602         * string/stratcliff.c: Add memrchr tests.
14603
14604 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14605
14606         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14607         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14608         rawmemchr-sse2 rawmemchr-sse2-bsf.
14609         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14610         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14611         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14612         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14613         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14614         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14615         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14616         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14617         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14618         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14619         * string/memrchr.c (MEMRCHR): New macro.
14620
14621 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14622
14623         Add integration with gcc's -ffinite-math-only and optimize wrapper
14624         functions in libm.
14625         * Versions.def: Define GLIBC_2.15 version for libm.
14626         * math/Makefile (headers): Add bits/math-finite.h.
14627         * math/bits/math-finite.h: New file.
14628         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14629         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14630         * math/e_acoshl.c: Add __*_finite alias.
14631         * math/e_acosl.c: Likewise.
14632         * math/e_asinl.c: Likewise.
14633         * math/e_atan2l.c: Likewise.
14634         * math/e_atanhl.c: Likewise.
14635         * math/e_coshl.c: Likewise.
14636         * math/e_exp10.c: Likewise.
14637         * math/e_exp10f.c: Likewise.
14638         * math/e_exp10l.c: Likewise.
14639         * math/e_exp2l.c: Likewise.
14640         * math/e_fmodl.c: Likewise.
14641         * math/e_gammal_r.c: Likewise.
14642         * math/e_hypotl.c: Likewise.
14643         * math/e_j0l.c: Likewise.
14644         * math/e_j1l.c: Likewise.
14645         * math/e_jnl.c: Likewise.
14646         * math/e_lgammal_r.c: Likewise.
14647         * math/e_log10l.c: Likewise.
14648         * math/e_log2l.c: Likewise.
14649         * math/e_logl.c: Likewise.
14650         * math/e_powl.c: Likewise.
14651         * math/e_sinhl.c: Likewise.
14652         * math/e_sqrtl.c: Likewise.
14653         * math/e_scalb.c: Completely rewritten and optimized.
14654         * math/e_scalbf.c: Likewise.
14655         * math/e_scalbl.c: Likewise.
14656         * math/w_acos.c: Likewise.
14657         * math/w_acosf.c: Likewise.
14658         * math/w_acosl.c: Likewise.
14659         * math/w_acosh.c: Likewise.
14660         * math/w_acoshf.c: Likewise.
14661         * math/w_acoshl.c: Likewise.
14662         * math/w_asin.c: Likewise.
14663         * math/w_asinf.c: Likewise.
14664         * math/w_asinl.c: Likewise.
14665         * math/w_atan2.c: Likewise.
14666         * math/w_atan2f.c: Likewise.
14667         * math/w_atan2l.c: Likewise.
14668         * math/w_atanh.c: Likewise.
14669         * math/w_atanhf.c: Likewise.
14670         * math/w_atanhl.c: Likewise.
14671         * math/w_exp10.c: Likewise.
14672         * math/w_exp10f.c: Likewise.
14673         * math/w_exp10l.c: Likewise.
14674         * math/w_fmod.c: Likewise.
14675         * math/w_fmodf.c: Likewise.
14676         * math/w_fmodl.c: Likewise.
14677         * math/w_j0.c: Likewise.
14678         * math/w_j0f.c: Likewise.
14679         * math/w_j0l.c: Likewise.
14680         * math/w_j1.c: Likewise.
14681         * math/w_j1f.c: Likewise.
14682         * math/w_j1l.c: Likewise.
14683         * math/w_jn.c: Likewise.
14684         * math/w_jnf.c: Likewise.
14685         * math/w_log.c: Likewise.
14686         * math/w_logf.c: Likewise.
14687         * math/w_logl.c: Likewise.
14688         * math/w_log10.c: Likewise.
14689         * math/w_log10f.c: Likewise.
14690         * math/w_log10l.c: Likewise.
14691         * math/w_log2.c: Likewise.
14692         * math/w_log2f.c: Likewise.
14693         * math/w_log2l.c: Likewise.
14694         * math/w_pow.c: Likewise.
14695         * math/w_powf.c: Likewise.
14696         * math/w_powl.c: Likewise.
14697         * math/w_remainder.c: Likewise.
14698         * math/w_remainderf.c: Likewise.
14699         * math/w_remainderl.c: Likewise.
14700         * math/w_scalb.c: Likewise.
14701         * math/w_scalbf.c: Likewise.
14702         * math/w_scalbl.c: Likewise.
14703         * math/w_sqrt.c: Likewise.
14704         * math/w_sqrtf.c: Likewise.
14705         * math/w_sqrtl.c: Likewise.
14706         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14707         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14708         used.
14709         * math/math_private.h: Declare __kernel_standard_f.
14710         * math/w_cosh.c: Remove cruft and optimize a bit.
14711         * math/w_coshf.c: Likewise.
14712         * math/w_coshl.c: Likewise.
14713         * math/w_exp2.c: Likewise.
14714         * math/w_exp2f.c: Likewise.
14715         * math/w_exp2l.c: Likewise.
14716         * math/w_hypot.c: Likewise.
14717         * math/w_hypotf.c: Likewise.
14718         * math/w_hypotl.c: Likewise.
14719         * math/w_lgamma.c: Likewise.
14720         * math/w_lgamma_r.c: Likewise.
14721         * math/w_lgammaf.c: Likewise.
14722         * math/w_lgammaf_r.c: Likewise.
14723         * math/w_lgammal.c: Likewise.
14724         * math/w_lgammal_r.c: Likewise.
14725         * math/w_sinh.c: Likewise.
14726         * math/w_sinhf.c: Likewise.
14727         * math/w_sinhl.c: Likewise.
14728         * math/w_tgamma.c: Likewise.
14729         * math/w_tgammaf.c: Likewise.
14730         * math/w_tgammal.c: Likewise.
14731         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14732         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14733         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14734         Minor optimizations.  Pretty printing.  Remove cruft.
14735         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14736         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14737         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14738         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14739         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14740         * sysdeps/i386/fpu/e_asin.S: Likewise.
14741         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14742         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14743         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14744         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14745         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14746         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14747         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14748         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14749         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14750         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14751         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14752         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14753         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14754         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14755         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14756         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14757         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14758         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14759         * sysdeps/i386/fpu/e_log.S: Likewise.
14760         * sysdeps/i386/fpu/e_log10.S: Likewise.
14761         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14762         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14763         * sysdeps/i386/fpu/e_log2.S: Likewise.
14764         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14765         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14766         * sysdeps/i386/fpu/e_logf.S: Likewise.
14767         * sysdeps/i386/fpu/e_logl.S: Likewise.
14768         * sysdeps/i386/fpu/e_pow.S: Likewise.
14769         * sysdeps/i386/fpu/e_powf.S: Likewise.
14770         * sysdeps/i386/fpu/e_powl.S: Likewise.
14771         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14772         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14773         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14774         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14775         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14776         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14777         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14778         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14779         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14780         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14781         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14782         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14783         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14784         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14785         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14786         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14787         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14788         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14789         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14790         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14791         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14792         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14793         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14794         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14795         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14796         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14797         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14798         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14799         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14800         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14801         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14802         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14803         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14804         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14805         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14806         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14807         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14808         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14809         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14810         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14811         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14812         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14813         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14814         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14815         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14816         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14817         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14818         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14819         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14820         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14821         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14822         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14823         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14824         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14825         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14826         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14827         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14828         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14829         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14830         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14831         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14832         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14833         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14834         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14835         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14836         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14837         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14838         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14839         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14840         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14841         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14842         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14843         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14844         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14845         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14846         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14847         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14848         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14849         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14850         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14851         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14852         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14853         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14854         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14855         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14856         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14857         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14858         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14859         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14860         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14861         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14862         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14863         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14864         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14865         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14866         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14867         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14868         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14869         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14870         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14871         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14872         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14873         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14874         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14875         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14876         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14877         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14878         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14879         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14880         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14881         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14882         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14883         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14884         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14885         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14886         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14887         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14888         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14889         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14890         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14891         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14892         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14893         (__isnanf): Likewise.
14894         (__isinf_ns): Likewise.
14895         (__isinf_nsf): Likewise.
14896         (__finite): Likewise.
14897         (__finitef): Likewise.
14898         (__ieee754_sqrt): Define as macro.
14899         (__ieee754_sqrtf): Define as macro.
14900         (__ieee754_sqrtl): Define as macro.
14901         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14902         inlined copy.
14903         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14904         __FINITE_MATH_ONLY__ consistent.
14905         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14906
14907 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14908
14909         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14910         of rawmemchr.
14911
14912         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14913
14914 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14915
14916         * po/ja.po: Update from translation team.
14917
14918 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14919
14920         * locale/programs/locarchive.c (prepare_address_space): New function.
14921         (create_archive, enlarge_archive, open_archive): Use it.
14922
14923         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14924         inside [SHARED], where it is used.
14925
14926         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14927
14928         * nss/getent.c (netgroup_keys): Remove unused variable.
14929         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14930
14931 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14932
14933         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14934         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14935         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14936         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14937         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14938         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14939         * math/Makefile (libm-calls): Add s_isinf_ns.
14940         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14941         * math/multc3.c: Likewise.
14942         * math/s_casin.c: Likewise.
14943         * math/s_casinf.c: Likewise.
14944         * math/s_casinl.c: Likewise.
14945         * math/s_ccos.c: Likewise.
14946         * math/s_ccosf.c: Likewise.
14947         * math/s_ccosl.c: Likewise.
14948         * math/s_ctan.c: Likewise.
14949         * math/s_ctanf.c: Likewise.
14950         * math/s_ctanh.c: Likewise.
14951         * math/s_ctanhf.c: Likewise.
14952         * math/s_ctanhl.c: Likewise.
14953         * math/s_ctanl.c: Likewise.
14954         * math/w_fmod.c: Likewise.
14955         * math/w_fmodf.c: Likewise.
14956         * math/w_fmodl.c: Likewise.
14957         * math/w_remainder.c: Likewise.
14958         * math/w_remainderf.c: Likewise.
14959         * math/w_remainderl.c: Likewise.
14960         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14961         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14962         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14963         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14964         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14965         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14966         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14967         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14968
14969         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14970         of the number.
14971         * stdio-common/printf_fphex.c: Likewise.
14972         * stdio-common/printf_size.c: Likewise.
14973
14974         * math/e_exp10.c: Include math_private.h using <...> not "...".
14975         * math/e_exp10f.c: Likewise.
14976         * math/e_exp10l.c: Likewise.
14977         * math/e_exp2l.c: Likewise.
14978         * math/e_j0l.c: Likewise.
14979         * math/e_j1l.c: Likewise.
14980         * math/e_jnl.c: Likewise.
14981         * math/e_lgammal_r.c: Likewise.
14982         * math/e_rem_pio2l.c: Likewise.
14983         * math/e_scalb.c: Likewise.
14984         * math/e_scalbf.c: Likewise.
14985         * math/e_scalbl.c: Likewise.
14986         * math/k_cosl.c: Likewise.
14987         * math/k_sinl.c: Likewise.
14988         * math/k_tanl.c: Likewise.
14989         * math/s_cacoshf.c: Likewise.
14990         * math/s_catan.c: Likewise.
14991         * math/s_catanf.c: Likewise.
14992         * math/s_catanh.c: Likewise.
14993         * math/s_catanhf.c: Likewise.
14994         * math/s_catanhl.c: Likewise.
14995         * math/s_catanl.c: Likewise.
14996         * math/s_ccosh.c: Likewise.
14997         * math/s_ccoshf.c: Likewise.
14998         * math/s_ccoshl.c: Likewise.
14999         * math/s_cexp.c: Likewise.
15000         * math/s_cexpf.c: Likewise.
15001         * math/s_cexpl.c: Likewise.
15002         * math/s_clog.c: Likewise.
15003         * math/s_clog10.c: Likewise.
15004         * math/s_clog10f.c: Likewise.
15005         * math/s_clog10l.c: Likewise.
15006         * math/s_clogf.c: Likewise.
15007         * math/s_clogl.c: Likewise.
15008         * math/s_csin.c: Likewise.
15009         * math/s_csinf.c: Likewise.
15010         * math/s_csinh.c: Likewise.
15011         * math/s_csinhf.c: Likewise.
15012         * math/s_csinhl.c: Likewise.
15013         * math/s_csinl.c: Likewise.
15014         * math/s_csqrt.c: Likewise.
15015         * math/s_csqrtf.c: Likewise.
15016         * math/s_csqrtl.c: Likewise.
15017         * math/s_ctan.c: Likewise.
15018         * math/s_ctanf.c: Likewise.
15019         * math/s_ctanh.c: Likewise.
15020         * math/s_ctanhf.c: Likewise.
15021         * math/s_ctanhl.c: Likewise.
15022         * math/s_ctanl.c: Likewise.
15023         * math/s_ldexp.c: Likewise.
15024         * math/s_ldexpf.c: Likewise.
15025         * math/s_ldexpl.c: Likewise.
15026         * math/s_significand.c: Likewise.
15027         * math/s_significandf.c: Likewise.
15028         * math/s_significandl.c: Likewise.
15029         * math/w_acos.c: Likewise.
15030         * math/w_acosf.c: Likewise.
15031         * math/w_acosh.c: Likewise.
15032         * math/w_acoshf.c: Likewise.
15033         * math/w_acoshl.c: Likewise.
15034         * math/w_acosl.c: Likewise.
15035         * math/w_asin.c: Likewise.
15036         * math/w_asinf.c: Likewise.
15037         * math/w_asinl.c: Likewise.
15038         * math/w_atan2.c: Likewise.
15039         * math/w_atan2f.c: Likewise.
15040         * math/w_atan2l.c: Likewise.
15041         * math/w_atanh.c: Likewise.
15042         * math/w_atanhf.c: Likewise.
15043         * math/w_atanhl.c: Likewise.
15044         * math/w_cosh.c: Likewise.
15045         * math/w_coshf.c: Likewise.
15046         * math/w_coshl.c: Likewise.
15047         * math/w_dremf.c: Likewise.
15048         * math/w_exp10.c: Likewise.
15049         * math/w_exp10f.c: Likewise.
15050         * math/w_exp10l.c: Likewise.
15051         * math/w_exp2.c: Likewise.
15052         * math/w_exp2f.c: Likewise.
15053         * math/w_fmod.c: Likewise.
15054         * math/w_fmodf.c: Likewise.
15055         * math/w_fmodl.c: Likewise.
15056         * math/w_hypot.c: Likewise.
15057         * math/w_hypotf.c: Likewise.
15058         * math/w_hypotl.c: Likewise.
15059         * math/w_j0.c: Likewise.
15060         * math/w_j0f.c: Likewise.
15061         * math/w_j0l.c: Likewise.
15062         * math/w_j1.c: Likewise.
15063         * math/w_j1f.c: Likewise.
15064         * math/w_j1l.c: Likewise.
15065         * math/w_jn.c: Likewise.
15066         * math/w_jnf.c: Likewise.
15067         * math/w_jnl.c: Likewise.
15068         * math/w_lgamma.c: Likewise.
15069         * math/w_lgamma_r.c: Likewise.
15070         * math/w_lgammaf.c: Likewise.
15071         * math/w_lgammaf_r.c: Likewise.
15072         * math/w_lgammal.c: Likewise.
15073         * math/w_lgammal_r.c: Likewise.
15074         * math/w_log.c: Likewise.
15075         * math/w_log10.c: Likewise.
15076         * math/w_log10f.c: Likewise.
15077         * math/w_log10l.c: Likewise.
15078         * math/w_log2.c: Likewise.
15079         * math/w_log2f.c: Likewise.
15080         * math/w_log2l.c: Likewise.
15081         * math/w_logf.c: Likewise.
15082         * math/w_logl.c: Likewise.
15083         * math/w_pow.c: Likewise.
15084         * math/w_powf.c: Likewise.
15085         * math/w_powl.c: Likewise.
15086         * math/w_remainder.c: Likewise.
15087         * math/w_remainderf.c: Likewise.
15088         * math/w_remainderl.c: Likewise.
15089         * math/w_scalb.c: Likewise.
15090         * math/w_scalbf.c: Likewise.
15091         * math/w_scalbl.c: Likewise.
15092         * math/w_sinh.c: Likewise.
15093         * math/w_sinhf.c: Likewise.
15094         * math/w_sinhl.c: Likewise.
15095         * math/w_sqrt.c: Likewise.
15096         * math/w_sqrtf.c: Likewise.
15097         * math/w_sqrtl.c: Likewise.
15098         * math/w_tgamma.c: Likewise.
15099         * math/w_tgammaf.c: Likewise.
15100         * math/w_tgammal.c: Likewise.
15101
15102         * po/ja.po: Update from translation team.
15103
15104 2011-09-29  Andreas Jaeger  <aj@suse.de>
15105
15106         [BZ #13179]
15107         * sunrpc/netname.c (netname2host): Fix logic.
15108
15109         [BZ #6779]
15110         [BZ #6783]
15111         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15112         correctly.
15113         * math/w_remainder.c (__remainder): Likewise.
15114         * math/w_remainderf.c (__remainderf): Likewise.
15115         * math/libm-test.inc (remainder_test): Add test cases.
15116
15117 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15118
15119         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15120         sdiv_qrnnd.
15121
15122 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15123
15124         * string/test-memcmp.c: Avoid unncessary #defines.
15125         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15126
15127 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15128
15129         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15130         Use new sse2 version for core i3 - i7 as it's faster
15131         than sse42 version.
15132         (bit_Prefer_PMINUB_for_stringop): New.
15133         * sysdeps/x86_64/rawmemchr.S: Update.
15134         Replace with faster SSE2 version.
15135         * sysdeps/x86_64/memrchr.S: New file.
15136         * sysdeps/x86_64/memchr.S: Update.
15137         Replace with faster SSE2 version.
15138
15139 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15140
15141         * elf/dl-load.c (lose): Add cast to avoid warning.
15142
15143 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15144
15145         * po/ca.po: Update from translation team.
15146
15147         * inet/getnetgrent_r.c: Hook up nscd.
15148         * nscd/Makefile (routines): Add nscd_netgroup.
15149         (nscd-modules): Add netgroupcache.
15150         (CFLAGS-netgroupcache.c): Define.
15151         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15152         (cache_search): Add const to second parameter.
15153         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15154         INNETGR.
15155         (dbs): Add netgrdb entry.
15156         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15157         (verify_persistent_db): Handle netgrdb.
15158         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15159         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15160         GETFDNETGR.
15161         (netgroup_response_header): Define.
15162         (innetgroup_response_header): Define.
15163         (datahead): Add netgroup_response_header and innetgroup_response_header
15164         elements.
15165         * nscd/nscd.conf: Add entries for netgroup cache.
15166         * nscd/nscd.h (dbtype): Add netgrdb.
15167         (_PATH_NSCD_NETGROUP_DB): Define.
15168         (netgroup_iov_disabled): Declare.
15169         (xmalloc, xcalloc, xrealloc): Move declarations here.
15170         (cache_search): Adjust prototype.
15171         Add netgroup-related prototypes.
15172         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15173         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15174         (__nscd_innetgr): Declare.
15175         * nscd/selinux.c (perms): Use access_vector_t as element type and
15176         add netgroup-related initializers.
15177         * nscd/netgroupcache.c: New file.
15178         * nscd/nscd_netgroup.c: New file.
15179         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15180         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15181         For four parameters use innetgr.
15182         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15183         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15184         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15185         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15186
15187         * nscd/connections.c (register_traced_file): Don't register file
15188         for disabled databases.
15189
15190 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15191
15192         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15193
15194         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15195         from tree and freeing node.
15196
15197 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15198
15199         * nss/nsswitch.c (__nss_database_lookup): Handle
15200         nss_parse_service_list out of memory case.
15201
15202 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15203
15204         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15205         out of memory case.
15206
15207 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15208
15209         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15210         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15211         pass it down.
15212         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15213         elf_machine_rela, elf_machine_lazy_rel.
15214         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15215         (ELF_DYNAMIC_DO_REL): Likewise.
15216         (ELF_DYNAMIC_DO_RELA): Likewise.
15217         (ELF_DYNAMIC_RELOCATE): Likewise.
15218         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15219         to ELF_DYNAMIC_DO_REL.
15220         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15221         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15222         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15223         elf_machine_rela.
15224         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15225         skip_ifunc, don't call ifunc function if non-zero.
15226         (elf_machine_rela): Likewise.
15227         (elf_machine_lazy_rel): Likewise.
15228         (elf_machine_lazy_rela): Likewise.
15229         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15230         (elf_machine_lazy_rel): Likewise.
15231         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15232         Likewise.
15233         (elf_machine_lazy_rel): Likewise.
15234         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15235         Likewise.
15236         (elf_machine_lazy_rel): Likewise.
15237         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15238         (elf_machine_lazy_rel): Likewise.
15239         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15240         (elf_machine_lazy_rel): Likewise.
15241         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15242         (elf_machine_lazy_rel): Likewise.
15243         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15244         (elf_machine_lazy_rel): Likewise.
15245         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15246         (elf_machine_lazy_rel): Likewise.
15247         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15248         (elf_machine_lazy_rel): Likewise.
15249
15250 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15251
15252         * nss/nss_files/files-init.c (_nss_files_init): Use static
15253         initialization for all the *_traced_file variables.
15254
15255 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15256
15257         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15258
15259 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15260
15261         [BZ #13226]
15262         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15263
15264 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15265
15266         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15267         Reread the line before reparsing it.
15268
15269 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15270
15271         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15272
15273 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15274             Maxim Kuvyrkov  <maxim@codesourcery.com>
15275             Joseph Myers  <joseph@codesourcery.com>
15276
15277         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15278         if needed for __stack_chk_guard.
15279
15280 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15281
15282         * sysdeps/posix/spawni.c (script_execute): Always define it.
15283         It will be optimized away if unused.
15284         (maybe_script_execute): New function.
15285         (__spawni): Call it.
15286
15287         * Makerules: Don't include tls.make.
15288         (config-tls): Always set to thread.
15289         * tls.make.c: File removed.
15290
15291 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15292
15293         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15294         * config.make.in (CPPFLAGS-config): New substituted variable.
15295
15296 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15297
15298         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15299
15300         [BZ #13192]
15301         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15302         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15303
15304 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15305
15306         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15307         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15308         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15309         (CALL_FAIL): Likewise.
15310         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15311         (CALL_FAIL): Macro removed.
15312         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15313
15314 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15315
15316         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15317         for __FINITE_MATH_ONLY__ == 1.
15318
15319 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15320
15321         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15322         __ieee754_sqrt instead of sqrt.
15323         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15324         __ieee754_sqrtf instead of sqrtf.
15325         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15326         __floorf instead of floorf.
15327         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15328         __floorf, __truncf instead of floorf, truncf.
15329
15330 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15331
15332         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15333
15334         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15335         __extern_always_inline.
15336         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15337         32-bit.
15338
15339 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15340
15341         * elf/rtld.c (dl_main): Also relocate in dependency order when
15342         doing symbol dependency testing.
15343
15344 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15345
15346         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15347         Always define `refsym'.
15348
15349 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15350
15351         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15352         (__FD_ELT): Renamed from __FDELT.
15353         * misc/bits/select2.h (__FD_ELT): Likewise.
15354         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15355         __FD_MASK instead of __FDELT, __FDMASK.
15356         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15357         Likewise.
15358         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15359         Likewise.
15360
15361         * elf/Makefile (gen-ldd): Fix pattern.
15362
15363         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15364         (init_tls): Likewise.
15365
15366 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15367
15368         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15369
15370 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15371
15372         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15373         `struct cmsghdr *' instead of `void *'.
15374         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15375         Likewise.
15376
15377 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15378
15379         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15380         if non-absolute.
15381         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15382         ldd_rewrite_script.
15383
15384 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15385
15386         * configure.in: Remove --with-tls option.
15387         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15388         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15389         out in case it is missing.
15390         * sysdeps/ia64/elf/configure.in: Likewise.
15391         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15392         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15393         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15394         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15395         * sysdeps/sh/elf/configure.in: Likewise.
15396         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15397         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15398         * sysdeps/x86_64/elf/configure.in: Likewise.
15399         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15400         * sysdeps/mach/hurd/tls.h: Likewise.
15401
15402         [BZ #13067]
15403         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15404
15405         [BZ #13090]
15406         * configure.in: Fix use of AC_INIT.
15407
15408         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15409
15410 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15411
15412         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15413         __set_errno.
15414         * malloc/hooks.c: Likewise.
15415
15416         [BZ #11929]
15417         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15418         variables statically.
15419         (narenas): Initialize.
15420         (list_lock): Initialize.
15421         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15422         initializtion of main_arena and list_lock.  Small cleanups.
15423         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15424         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15425         Add initializers to main_arena and mp_.
15426         (malloc_state): Remove pagesize member.  Change all users to use
15427         GLRO(dl_pagesize).
15428
15429         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15430         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15431         is always initialized.
15432
15433         * malloc/malloc.c: Removed unused configurations and dead code.
15434         * malloc/arena.c: Likewise.
15435         * malloc/hooks.c: Likewise.
15436         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15437
15438         * include/tls.h: Removed.  USE___THREAD must always be defined.
15439         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15440         * elf/dl-libc.c: Likewise.
15441         * elf/dl-tsd.c: Likewise.
15442         * include/errno.h: Likewise.
15443         * include/netdb.h: Likewise.
15444         * include/resolv.h: Likewise.
15445         * inet/herrno-loc.c: Likewise.
15446         * inet/herrno.c: Likewise.
15447         * malloc/arena.c: Likewise.
15448         * malloc/hooks.c: Likewise.
15449         * malloc/malloc.c: Likewise.
15450         * resolv/res-state.c: Likewise.
15451         * resolv/res_libc.c: Likewise.
15452         * sysdeps/i386/dl-machine.h: Likewise.
15453         * sysdeps/ia64/dl-machine.h: Likewise.
15454         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15455         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15456         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15457         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15458         * sysdeps/sh/dl-machine.h: Likewise.
15459         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15460         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15461         * sysdeps/unix/i386/sysdep.S: Likewise.
15462         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15463         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15464         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15465         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15466         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15467         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15468         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15469         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15470         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15471         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15472         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15473         * sysdeps/x86_64/dl-machine.h: Likewise.
15474         * tls.make.c: Likewise.
15475
15476         * configure.in: Remove --with-__thread option.  Make tests for
15477         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15478         tls_model attribute fail if no support is available.  Remove
15479         USE_IN_LIBIO.
15480         * Makeconfig: Adjust for dropped configure option.  All features are
15481         now mandatory.
15482         * Makerules: Likewise.
15483         * Versions.def: Likewise.
15484         * argp/argp-fmtstream.c: Likewise.
15485         * argp/argp-fmtstream.h: Likewise.
15486         * argp/argp-help.c: Likewise.
15487         * assert/assert.c: Likewise.
15488         * config.h.in: Likewise.
15489         * config.make.in: Likewise.
15490         * configure: Likewise.
15491         * configure.in: Likewise.
15492         * csu/Versions: Likewise.
15493         * csu/init.c: Likewise.
15494         * elf/tst-audit2.c: Likewise.
15495         * elf/tst-tls10.c: Likewise.
15496         * elf/tst-tls10.h: Likewise.
15497         * elf/tst-tls11.c: Likewise.
15498         * elf/tst-tls12.c: Likewise.
15499         * elf/tst-tls14.c: Likewise.
15500         * elf/tst-tlsmod11.c: Likewise.
15501         * elf/tst-tlsmod12.c: Likewise.
15502         * elf/tst-tlsmod13.c: Likewise.
15503         * elf/tst-tlsmod13a.c: Likewise.
15504         * elf/tst-tlsmod14a.c: Likewise.
15505         * elf/tst-tlsmod15b.c: Likewise.
15506         * elf/tst-tlsmod16a.c: Likewise.
15507         * elf/tst-tlsmod16b.c: Likewise.
15508         * elf/tst-tlsmod7.c: Likewise.
15509         * elf/tst-tlsmod8.c: Likewise.
15510         * elf/tst-tlsmod9.c: Likewise.
15511         * gmon/gmon.c: Likewise.
15512         * grp/fgetgrent_r.c: Likewise.
15513         * grp/putgrent.c: Likewise.
15514         * hurd/fopenport.c: Likewise.
15515         * include/libc-symbols.h: Likewise.
15516         * include/tls.h: Likewise.
15517         * intl/gettextP.h: Likewise.
15518         * intl/loadinfo.h: Likewise.
15519         * locale/global-locale.c: Likewise.
15520         * locale/localeinfo.h: Likewise.
15521         * mach/devstream.c: Likewise.
15522         * malloc/arena.c: Likewise.
15523         * malloc/set-freeres.c: Likewise.
15524         * misc/err.c: Likewise.
15525         * misc/getttyent.c: Likewise.
15526         * misc/mntent_r.c: Likewise.
15527         * posix/getopt.c: Likewise.
15528         * posix/wordexp.c: Likewise.
15529         * pwd/fgetpwent_r.c: Likewise.
15530         * resolv/Versions: Likewise.
15531         * resolv/res_hconf.c: Likewise.
15532         * shadow/fgetspent_r.c: Likewise.
15533         * shadow/putspent.c: Likewise.
15534         * stdio-common/printf_fphex.c: Likewise.
15535         * stdio-common/tmpfile.c: Likewise.
15536         * stdlib/abort.c: Likewise.
15537         * stdlib/fmtmsg.c: Likewise.
15538         * sunrpc/auth_unix.c: Likewise.
15539         * sunrpc/clnt_perr.c: Likewise.
15540         * sunrpc/clnt_tcp.c: Likewise.
15541         * sunrpc/clnt_udp.c: Likewise.
15542         * sunrpc/clnt_unix.c: Likewise.
15543         * sunrpc/openchild.c: Likewise.
15544         * sunrpc/svc_simple.c: Likewise.
15545         * sunrpc/svc_tcp.c: Likewise.
15546         * sunrpc/svc_udp.c: Likewise.
15547         * sunrpc/svc_unix.c: Likewise.
15548         * sunrpc/xdr.c: Likewise.
15549         * sunrpc/xdr_array.c: Likewise.
15550         * sunrpc/xdr_rec.c: Likewise.
15551         * sunrpc/xdr_ref.c: Likewise.
15552         * sunrpc/xdr_stdio.c: Likewise.
15553
15554 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15555
15556         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15557
15558 2011-07-03  Andreas Jaeger  <aj@suse.de>
15559
15560         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15561         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15562         regenerate with gen-libm-tests.pl.
15563
15564 2010-05-12  Petr Baudis  <pasky@suse.cz>
15565
15566         [BZ #11589]
15567         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15568         around j0() zero points by switching to j1().
15569         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15570         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15571         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15572         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15573
15574 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15575
15576         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15577         instead of 0.
15578         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15579         instead of 0.                              .
15580         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15581         Patch in part by Pavel Roskin <proski@gnu.org>.
15582
15583         [BZ #13138]
15584         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15585         realloc.
15586         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15587         Free memory block if necessary.
15588
15589         [BZ #12847]
15590         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15591         be NULL.  Don't lock in this case.
15592
15593 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15594
15595         * elf/elf.h (ELFOSABI_GNU): New macro.
15596         (ELFOSABI_LINUX): Define to that.
15597
15598 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15599
15600         * string/strncat.c (strncat): Undef the symbol in case it has been
15601         defined in bits/string.h.
15602
15603 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15604
15605         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15606
15607         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15608         link map.
15609
15610 2011-08-17  Andreas Jaeger  <aj@suse.de>
15611
15612         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15613
15614 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15615             Ian Lance Taylor  <iant@google.com>
15616
15617         * math/libm-test.inc (lround_test): New testcase.
15618         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15619
15620 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15621
15622         * Makefile: Remove support for automatic cvs check-ins.
15623         * Makerules: Likewise.
15624         * config.make.in: Likewise.
15625         * configure.in: Likewise.
15626         * intl/Makefile: Likewise.
15627         * locale/Makefile: Likewise.
15628         * po/Makefile: Likewise.
15629         * posix/Makefile: Likewise.
15630         * sysdeps/gnu/Makefile: Likewise.
15631         * sysdeps/mach/hurd/Makefile: Likewise.
15632         * sysdeps/sparc/sparc32/Makefile: Likewise.
15633
15634         [BZ #13118]
15635         * posix/Makefile (bug-regex32-ENV): Define.
15636         Patch by John Stanley <jpsinthemix@verizon.net>.
15637
15638         * misc/Makefile (headers): Add bits/select2.h.
15639         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15640         * misc/bits/select2.h: New file.
15641         * include/bits/select2.h: New file.
15642         * debug/Makefile (routines): Add fdelt_chk.
15643         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15644         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15645         FD_ISSET.
15646         * debug/fdelt_chk.c: New file.
15647
15648         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15649         * wcsmbs/test-wmemcmp.c: Likewise.
15650         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15651         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15652
15653 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15654
15655         * string/Makefile (strop-tests): Add memcmp.
15656         * string/test-wmemcmp.c: New file.
15657         * string/test-memcmp.c: Add wmemcmp support.
15658
15659 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15660
15661         [BZ #13153]
15662         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15663         2011-07-19 change.
15664
15665         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15666         garbage value in a __mach_port_mod_refs call in the cases of the
15667         task-self and thread-self ports.
15668
15669 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15670
15671         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15672
15673 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15674
15675         * elf/dl-load.c (lose): Check for non-null L.
15676
15677 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15678
15679         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15680
15681         * elf/dl-libc.c (dlerror_run): Pass back error code from
15682         dl_catch_error.
15683
15684         [BZ #13123]
15685         * elf/dl-load.c (lose): Free l_origin if it is valid.
15686
15687         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15688         names.
15689         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15690         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15691         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15692         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15693         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15694         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15695
15696 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15697
15698         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15699         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15700         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15701         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15702         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15703         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15704         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15705         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15706         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15707         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15708
15709 2011-08-15  Alan Modra  <amodra@gmail.com>
15710
15711         [BZ #13092]
15712         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15713         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15714         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15715         ppc_mcount to static-only-routines.
15716         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15717         __mcount_internal.
15718         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15719         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15720
15721 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15722
15723         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15724         for finite and infinity parameters.
15725
15726 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15727
15728         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15729         and add nop instructions for throughput optimization.
15730         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15731
15732 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15733
15734         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15735         aligned copy for power7 with vector-scalar instructions.
15736         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15737
15738 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15739
15740         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15741         AVX check.
15742
15743 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15744
15745         [BZ #13144]
15746         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15747         last change.
15748
15749 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15750
15751         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15752         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15753         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15754         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15755         clock_gettime.
15756
15757 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15758
15759         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15760         Forgot to demangle the pointer.
15761
15762         * sysdeps/i386/sysdep.h: Define atom_text_section.
15763         * sysdeps/x86_64/sysdep.h: Likewise.
15764         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15765         section with atom_text_section.
15766         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15767         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15768         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15769         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15770         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15771
15772         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15773         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15774         already be defined.  Change to take two parameters and don't assign
15775         result to variable.  Adjust all users.
15776         Define INTERNAL_GETTIME if not already defined.
15777         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15778         call.
15779         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15780         HAVE_CLOCK_GETTIME_VSYSCALL.
15781         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15782
15783         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15784         gettimeofday vsyscall, just use time.
15785
15786 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15787
15788         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15789         <errno.h>.
15790
15791 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15792
15793         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15794         syscall on x86-64.
15795         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15796         syscall.
15797         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15798         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15799         syscall if possible.
15800
15801 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15802
15803         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15804         e_ident.  Don't pass to find_mapsXX.
15805         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15806
15807 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15808
15809         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15810         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15811         * sysdeps/x86_64/multiarch/strchr.S: Update.
15812         Check bit_slow_BSF bit.
15813         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15814         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15815         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15816
15817 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15818
15819         [BZ #13134]
15820         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15821         before glibc 2.15.
15822         (tryshell): Define.
15823         (__spawni): Change last parameter to be flag.  Test
15824         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15825         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15826         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15827         * posix/spawni.c: Likewise.
15828         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15829         * posix/spawnp.c: Likewise.  Change normal version to use
15830         SPAWN_XFLAGS_USE_PATH.
15831         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15832         SPAWN_XFLAGS_TRY_SHELL.
15833
15834         [BZ #13150]
15835         * posix/glob.h: Remove gcc 1.x support.
15836
15837         [BZ #13068]
15838         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15839
15840 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15841
15842         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15843         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15844         strrchr-sse2-bsf
15845         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15846         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15847         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15848         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15849         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15850         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15851
15852 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15853
15854         * sysdeps/x86_64/wcscmp.S: New file.
15855
15856         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15857         wcscmp-c wcscmp-sse2
15858         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15859         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15860         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15861         * wcsmbs/wcscmp.c: Allow renaming.
15862
15863 2011-09-05  David S. Miller  <davem@davemloft.net>
15864
15865         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15866         stack slot, rather than the struct return pointer slot.
15867         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15868         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15869         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15870         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15871
15872 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15873
15874         * po/ja.po: Update from translation team.
15875
15876         [BZ #13144]
15877         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15878         kernel in 64-bit binaries.
15879
15880 2011-09-01  David S. Miller  <davem@davemloft.net>
15881
15882         * elf/elf.h (HWCAP_SPARC_*): Move to..
15883         * sysdeps/sparc/sysdep.h: this new file and add new values.
15884         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15885         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15886         _DL_HWCAP_COUNT to 24.
15887         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15888         entries.
15889         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15890         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15891         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15892         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15893         instead of magic constants.
15894         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15895
15896 2011-08-31  David S. Miller  <davem@davemloft.net>
15897
15898         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15899         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15900         Reimplement to do errno handling inline.
15901         (SYSCALL_ERROR_HANDLER): New macro.
15902         (__SYSCALL_STRING): Do not do errno handling in asm.
15903         (__CLONE_SYSCALL_STRING): Delete.
15904         (__INTERNAL_SYSCALL_STRING): Delete.
15905         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15906         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15907         (PSEUDO): Reimplement to do errno handling inline.
15908         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15909         (SYSCALL_ERROR_HANDLER): New macro.
15910         (__SYSCALL_STRING): Do not do errno handling in asm.
15911         (__CLONE_SYSCALL_STRING): Delete.
15912         (__INTERNAL_SYSCALL_STRING): Delete.
15913         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15914         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15915         i386.
15916         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15917         (inline_syscall*): Add 'err' argument.
15918         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15919         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15920         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15921         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15922
15923         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15924         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15925
15926 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15927
15928         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15929
15930 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15931
15932         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15933         directive.
15934
15935 2011-08-24  David S. Miller  <davem@davemloft.net>
15936
15937         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15938
15939 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15940
15941         * elf/Makefile: Add rules to build and run unload8 test.
15942         * elf/unload8.c: New file.
15943         * elf/unload8mod1.c: New file.
15944         * elf/unload8mod1x.c: New file.
15945         * elf/unload8mod2.c: New file.
15946         * elf/unload8mod3.c: New file.
15947
15948         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15949         it wasn't used.
15950
15951 2011-08-23  David S. Miller  <davem@davemloft.net>
15952
15953         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15954         subtract stack bias.
15955         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15956         %sp not %fp in calculations.
15957         (_JMPBUF_UNWINDS_ADJ): Likewise.
15958
15959         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15960         (aio_suspend): Call it to force an exception region around the
15961         AIO_MISC_WAIT() invocation.
15962
15963 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15964
15965         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15966         backslash.
15967
15968 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15969
15970         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15971         protection macro.
15972         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15973         and <dl-machine.h>.
15974         (Elf64_FuncDesc): Remove.
15975
15976 2011-08-22  David S. Miller  <davem@davemloft.net>
15977
15978         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15979         sigaltstack check, add missing cfi directives.
15980         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15981         missing cfi directives, and sigaltstack handling.
15982
15983 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15984
15985         [BZ #11724]
15986         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15987         object is seen twice.
15988         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15989
15990         * elf/Makefile (distribute): Add tst-initorder2.c.
15991         (tests): Add tst-initorder2.
15992         (modules-names): Add tst-initorder2a tst-initorder2b
15993         tst-initorder2c tst-initorder2d.  Add rules to build them.
15994         ($(objpfx)tst-initorder2.out): New rule.
15995         * elf/tst-initorder2.c: New file.
15996         * elf/tst-initorder2.exp: New file.
15997
15998 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15999
16000         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16001
16002         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16003         dependencies back to end of function.
16004
16005         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16006         $(elfobjdir)/ld.so.
16007
16008 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16009
16010         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16011         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16012         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16013         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16014         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16015         of __vdso_gettimeofday.
16016         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16017         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16018         attribute_hidden.
16019         (_libc_vdso_platform_setup): Remove initialization of
16020         __vdso_gettimeofday and __vdso_time.
16021
16022 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16023
16024         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16025         and fgetc_unlocked.
16026         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16027         getc_unlocked.
16028
16029         * elf/dl-open.c (add_to_global): Report additions to the global scope
16030         for LD_DEBUG=scopes.
16031         (dl_open_worker): Also print scope of newly loaded dependencies.
16032         (_dl_show_scope): Indicate if there is no scope.
16033
16034         [BZ #13114]
16035         * stdio-common/Makefile (tests): Add bug24.
16036         * stdio-common/bug24.c: New file.
16037
16038 2011-08-19  Andreas Jaeger  <aj@suse.de>
16039
16040         [BZ #13114]
16041         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16042         non-existant file when using close-on-exec mode.
16043
16044 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16045
16046         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16047         the very first instruction.
16048
16049         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16050         the CFI state in the end.
16051         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16052         inclusion of dl-trampoline.h.
16053         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16054
16055 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16056
16057         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16058         expectations for long double.
16059
16060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16061         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16062
16063 2011-08-14  David S. Miller  <davem@davemloft.net>
16064
16065         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16066         artificual limit depends upon the system page size.
16067
16068 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16069
16070         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16071         * resolv/Makefile: Define CFLAGS-libresolv.
16072
16073 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16074
16075         * nss/makedb.c (compute_tables): Make variables used in nested
16076         function static.
16077
16078 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16079
16080         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16081         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16082         if buffer was too small.
16083
16084         * elf/pldd.c (main): Attach to all threads in the process.
16085         Rewrite /proc handling to use *at functions.
16086
16087 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16088
16089         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16090         specifies first scope to show.
16091         (dl_open_worker): Update callers.  Move printing scope of new
16092         object to before the relocation.
16093         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16094         * sysdeps/generic/ldsodefs.h: Update declaration.
16095
16096         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16097         string for the scope number.
16098
16099 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16100
16101         * nscd/servicescache.c (cache_addserv): Make sure written is always
16102         initialized.
16103
16104 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16105
16106         * sysdeps/i386/i486/bits/atomic.h
16107         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16108         statement expression, so as to suppress "set but not used" warning.
16109         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16110
16111         * string/strncat.c (STRNCAT): Use prototype definition.
16112
16113         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16114         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16115         -Iprograms here.
16116         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16117         (localedef-modules): Add localedef.
16118         (locale-modules): Add locale.
16119
16120         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16121         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16122         to avoid a warning.
16123
16124 2011-08-14  David S. Miller  <davem@davemloft.net>
16125
16126         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16127         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16128
16129 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16130
16131         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16132         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16133         * elf/rtld.c (dl_main): Set l_name of vDSO.
16134         Call _dl_show_scope when DL_DEBUG_SCOPES.
16135         (process_dl_debug): Recognize scopes flag and also set it for all.
16136         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16137         Declare _dl_show_scope.
16138
16139         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16140         (do_dlopen): Pass caller_dlopen to dl_open.
16141         (__libc_dlopen_mode): Initialize caller_dlopen.
16142
16143         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16144         of libc.  Make tolower call locale-independent.  Optimize a bit by
16145         using isdigit instead of isalnum.
16146         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16147
16148 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16149
16150         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16151         was a dependency or dynamically loaded.
16152
16153 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16154
16155         * intl/l10nflist.c: Allow architecture-specific pop function.
16156         * sysdeps/x86_64/l10nflist.c: New file.
16157
16158         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16159         classification.
16160
16161 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16162
16163         * include/dirent.h: Add libc_hidden_proto for scandirat and
16164         scandirat64.  Don't declare __scandirat64.
16165         * dirent/scandirat.c: Add libc_hidden_def.
16166         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16167         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16168
16169 2011-08-10  David S. Miller  <davem@davemloft.net>
16170
16171         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16172         enum.
16173         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16174         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16175         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16176
16177 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16178
16179         * Versions.def [libc]: Add GLIBC_2.15.
16180         * dirent/Makefile (routines): Add scandirat and scandirat64.
16181         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16182         GLIBC_2.15.
16183         * dirent/dirent.h: Declare scandirat and scandirat64.
16184         * dirent/scandirat.c: New file.
16185         * dirent/scandirat64.c: New file.
16186         * sysdeps/wordsize-64/scandirat.c: New file.
16187         * sysdeps/wordsize-64/scandirat64.c: New file.
16188         * dirent/opendir.c: Define opendirat.
16189         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16190         using scandirat.
16191         * dirent/scandir64.c: Adjust for scandir.c change.
16192         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16193         __scandirat64, and __scandir_cancel_handler.
16194         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16195         additional parameter and use openat instead of open (outside of ld.so).
16196         Add new __opendir as wrapper around __opendirat.
16197         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16198         here without requiring old scandirat implementation.
16199
16200 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16201
16202         * dirent/scandir.c (cancel_handler): Renamed to
16203         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16204         defined.  Adjust users.
16205         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16206         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16207
16208 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16209
16210         * string/test-string.h (IMPL): Use __STRING to expand name and then
16211         stringify it.
16212
16213         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16214         of cleanups.
16215
16216 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16217
16218         * string/Makefile: Update.
16219         (strop-tests): Append strncat.
16220         * string/test-wcscmp.c: New file.
16221         New comprehensive test for wcscmp.
16222         * string/test-strcmp.c: Update.
16223         (WIDE): New define.
16224
16225 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16226
16227         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16228         line.
16229
16230 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16231
16232         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16233         encoding to ACE if AI_IDN.
16234
16235 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16236
16237         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16238         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16239
16240 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16241
16242         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16243         Fix overflow bug in strncat.
16244         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16245
16246         * string/test-strncat.c: Update.
16247         Add new tests for checking overflow bugs.
16248
16249 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16250
16251         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16252         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16253         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16254         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16255         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16256         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16257         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16258         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16259         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16260
16261         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16262         (USE_AS_STRCAT): Define.
16263         Add strcat and strncat support.
16264         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16265
16266 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16267
16268         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16269         __n bigger than INT_MAX+1.
16270         (__strncmp_g): Likewise.
16271
16272 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16273
16274         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16275         * libio/stido.h: Likewise.
16276
16277         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16278         (AF_NFC): Define.
16279         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16280         (AF_NFC): Define.
16281
16282         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16283         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16284         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16285         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16286         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16287
16288         [BZ #13021]
16289         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16290         installed.
16291
16292         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16293         typo.
16294         (_dl_x86_64_save_sse): Likewise.
16295
16296 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16297
16298         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16299         OSXSAVE.
16300         (_dl_x86_64_save_sse): Likewise.
16301
16302         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16303
16304         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16305
16306 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16307
16308         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16309         change.
16310         (_dl_x86_64_save_sse): Use correct AVX check.
16311
16312 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16313
16314         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16315         bug in strncpy/strncat.
16316         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16317
16318 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16319
16320         * string/tester.c (test_strcat): Add tests for different alignments
16321         of source and destination.
16322         (test_strncat): Likewise.
16323
16324 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16325
16326         [BZ #12852]
16327         * posix/glob.c (glob): Check passed in values before using them in
16328         expressions to avoid some overflows.
16329         (glob_in_dir): Likewise.
16330
16331         [BZ #13007]
16332         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16333         check for AVX enablement so that we don't crash with old kernels and
16334         new hardware.
16335         * elf/tst-audit4.c: Add same checks here.
16336         * elf/tst-audit6.c: Likewise.
16337
16338         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16339
16340 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16341
16342         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16343
16344 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16345
16346         * po/cs.po: Update from translation team.
16347         * po/bg.po: Likewise.
16348
16349 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16350
16351         * misc/sys/cdefs.h: Add support for const attribute.
16352         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16353         to gnu_dev_{major,minor,makedev} functions.
16354
16355 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16356
16357         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16358
16359 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16360
16361         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16362         strlen results.
16363
16364 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16365
16366         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16367         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16368         register in order to avoid conflicts with the soft frame pointer
16369         being held in r11 when necessary.
16370         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16371         (INTERNAL_VSYSCALL_NCS): Likewise.
16372
16373 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16374
16375         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16376         * elf/dl-fini.c (_dl_fini): Adjust caller.
16377         * elf/dl-close.c (_dl_close_worker): Likewise.
16378         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16379
16380 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16381
16382         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16383         "aux_cache->nlibs < 0".
16384
16385         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16386         in the reload-count case.
16387
16388 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16389
16390         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16391         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16392         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16393         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16394         * sysdeps/x86_64/multiarch/strcat.S: New file.
16395         * sysdeps/x86_64/multiarch/strncat.S: New file.
16396         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16397         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16398         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16399         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16400         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16401         (USE_AS_STRCAT): Define.
16402         Add strcat and strncat support.
16403         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16404         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16405         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16406         * string/strncat.c: Update.
16407         (USE_AS_STRNCAT): Define.
16408         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16409         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16410         and i7.
16411         * sysdeps/x86_64/multiarch/init-arch.h
16412         (bit_Prefer_PMINUB_for_stringop): New.
16413         (index_Prefer_PMINUB_for_stringop): Likewise.
16414         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16415         bit_Prefer_PMINUB_for_stringop.
16416
16417 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16418
16419         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16420         buffer64.
16421         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16422         of casting of buffer.
16423         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16424         buffer32 and buffer64.
16425         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16426         writes instead of casting of buffer.
16427         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16428         buffer32.
16429         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16430         casting of buffer.
16431
16432 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16433
16434         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16435
16436 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16437
16438         * nscd/nscd.c (termination_handler): Don't do anything for a database
16439         if it has not yet been initialized.
16440
16441 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16442
16443         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16444
16445 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16446
16447         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16448
16449 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16450
16451         * po/nl.po: Update from translation team.
16452         * po/sv.po: Likewise.
16453
16454 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16455
16456         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16457         now disallowed by GCC.
16458
16459         * configure.in (use-default-link): Default to yes if a test -shared
16460         link meets our qualifications.
16461         * configure: Regenerated.
16462
16463         * config.make.in (output-format): New variable.
16464         * configure.in: Check for ld --print-output-format support.
16465         * configure: Regenerated.
16466         * Makerules ($(common-objpfx)format.lds)
16467         [$(output-format) != unknown]: Just use $(output-format),
16468         instead of the linker-script munging.
16469
16470 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16471
16472         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16473         of $(common-objpfx)shlib.lds.
16474         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16475
16476         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16477         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16478
16479         * configure.in (-z relro check): Adjust test code to add a large
16480         writable data section after it.
16481         * configure: Regenerated.
16482
16483 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16484
16485         * configure.in (-z relro check): Fix test code to make the variable
16486         truly const.
16487         * configure: Regenerated.
16488
16489 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16490
16491         * nscd/nscd.h (struct traced_file): Define.
16492         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16493         elements.  Add traced_files.
16494         (inotify_fd): Declare.
16495         (register_traced_file): Declare.
16496         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16497         (inotify_fd): Export.
16498         (resolv_conf_descr): Remove.
16499         (nscd_init): Move inotify descriptor creation to main.
16500         Don't register files for notification here.
16501         (register_traced_file): New function.
16502         (invalidate_cache): Don't use reset_res to determine whether to call
16503         res_init, go through the list of registered files.
16504         (main_loop_poll): The inotify descriptors are now stored in the
16505         structures for the traced files.
16506         (main_loop_epoll): Likewise
16507         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16508         to __nss_disable_nscd.
16509         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16510         for a database anymore.  Check the records for all the registered
16511         files instead.
16512         * nss/Makefile (libnss_files-routines): Add files-init.
16513         (libnss_db-routines): Add db-init.
16514         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16515         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16516         * nss/nss_db/db-init.c: New file.
16517         * nss/nss_files/files-init.c: New file.
16518         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16519         __nss_lookup_function.
16520         (__nss_lookup_function): Call nss_load_library.
16521         (nss_load_all_libraries): New function.
16522         (__nss_disable_nscd): Take parameter with callback function for files
16523         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16524         used for the cached services.
16525         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16526         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16527         options for features to all the files in nscd.
16528
16529         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16530
16531 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16532
16533         * csu/elf-init.c (__libc_csu_init): Comment typo.
16534
16535 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16536
16537         * po/pl.po: Update from translation team.
16538         * po/ja.po: Likewise.
16539         * po/ru.po: Likewise.
16540         * po/ko.po: Likewise.
16541         * po/fr.po: Likewise.
16542
16543 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16544
16545         * configure.in (.ctors/.dtors header and trailer check):
16546         Use an empirical test on a built program.
16547         * configure: Regenerated.
16548
16549         * configure.in (-z relro check): Use an empirical test on a built DSO.
16550         Detect, but do not require, on ia64.
16551         * configure: Regenerated.
16552
16553         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16554         Update tests that use readelf to use $READELF instead.
16555         * configure: Regenerated.
16556
16557 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16558
16559         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16560         if the result is not used.
16561
16562 2011-07-05  Andreas Jaeger  <aj@suse.de>
16563
16564         [BZ#9696]
16565         * stdlib/tst-strtod.c: Add testcase.
16566
16567 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16568
16569         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16570         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16571         The latter has a higher limit.  Take additional parameter to pass to
16572         the new function.
16573         (__pathconf): Pass file to __statfs_link_max.
16574         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16575         __statfs_link_max.
16576         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16577         __statfs_link_max.
16578
16579         [BZ #12868]
16580         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16581         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16582         Handle Lustre.
16583         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16584         (__statfs_filesize_max): Likewise.
16585         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16586
16587 2011-07-05  Andreas Jaeger  <aj@suse.de>
16588
16589         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16590
16591 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16592
16593         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16594         `status' variable.
16595         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16596         Likewise.
16597
16598 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16599
16600         * Makefile (strop-tests): Add strncat.
16601         * string/test-strncat.c: New file.
16602
16603 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16604
16605         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16606
16607 2011-06-21  Andreas Jaeger  <aj@suse.de>
16608
16609         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16610         Copy rule from iconvdata/Makefile.
16611
16612 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16613
16614         [BZ #12922]
16615         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16616         but no long options are defined, just return 'W'.
16617
16618 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16619
16620         [BZ #9696]
16621         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16622
16623 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16624
16625         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16626         netgroups to read.
16627         (innetgr): Likewise.
16628
16629 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16630
16631         * config.make.in (install_root): Default to $(DESTDIR).
16632
16633 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16634
16635         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16636
16637 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16638
16639         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16640
16641         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16642         containing directory rather than embedding absolute directory names.
16643
16644         * scripts/check-local-headers.sh: Rewritten using awk.
16645         Match by word, not by line.  Print error messages for matches.
16646         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16647
16648         * Makerules [shlib-lds-flags empty]:
16649         ($(common-objpfx)libc_pic.opts): New target.
16650         ($(common-objpfx)libc_pic.os.clean): New target.
16651         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16652
16653         * config.make.in (OBJCOPY): New variable.
16654         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16655         * configure: Regenerated.
16656
16657         * config.make.in (use-default-link): New variable.
16658         * configure.in (use_default_link): Grok --with-default-link to set it.
16659         * configure: Regenerated.
16660         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16661         (shlib-lds, shlib-lds-flags): Define to empty.
16662
16663         * Makerules (shlib-lds): New variable.
16664         (shlib-lds-flags): New variable.
16665         (build-shlib, build-moduile, build-module-asneeded): Use it.
16666         ($(common-objpfx)libc.so): Use $(shlib-lds).
16667         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16668         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16669
16670         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16671         DT_FLAGS/DT_FLAGS_1 with zero flags.
16672
16673         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16674         linker script munging.
16675
16676 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16677
16678         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16679         as 128-bit value.
16680         * crypt/sha512.c (sha512_process_block): Perform total addition using
16681         128-bit if possible.
16682         (__sha512_finish_ctx): Likewise.
16683         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16684         as 64-bit value.
16685         * crypt/sha256.c (SWAP64): Define.
16686         (sha256_process_block): Perform total addition using 64-bit if
16687         possible.
16688         (__sha256_finish_ctx): Likewise.
16689
16690 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16691
16692         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16693         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16694         * nscd/hstcache.c (cache_addhst): Likewise.
16695         * nscd/grpcache.c (cache_addgr): Likewise.
16696         * nscd/aicache.c (addhstaiX): Likewise
16697         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16698
16699 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16700
16701         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16702         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16703         * nscd/hstcache.c (cache_addhst): Likewise.
16704         * nscd/grpcache.c (cache_addgr): Likewise.
16705         * nscd/aicache.c (addhstaiX): Likewise
16706
16707 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16708
16709         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16710         domain only when needed.
16711
16712 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16713
16714         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16715         is always restored.
16716
16717 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16718
16719         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16720         are re-adding the entry.
16721         * nscd/servicescache.c (cache_addserv): Likewise.
16722
16723 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16724
16725         * sysdeps/generic/dl-irel.h: fix protection against multiple
16726         inclusions.
16727         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16728
16729 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16730
16731         [BZ #12935]
16732         * malloc/memusage.sh: Fix quoting in message.
16733         * debug/xtrace.sh: Likewise.
16734
16735         * configure.in: Remove support for --experimental-malloc option, make
16736         it the default.
16737         * config.make.in: Likewise.
16738         * malloc/Makefile: Likewise.
16739
16740 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16741
16742         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16743         two-byte characters.
16744
16745 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16746
16747         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16748         AC_CACHE_CHECK invocation.
16749         * configure: Regenerated.
16750
16751         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16752
16753 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16754
16755         [BZ #12350]
16756         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16757         bit from old_res_options.
16758
16759         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16760
16761         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16762         value type for setfct.
16763
16764 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16765
16766         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16767         __gettimeofday instead of gettimeofday.
16768
16769 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16770
16771         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16772
16773 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16774
16775         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16776
16777         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16778         info.
16779
16780 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16781
16782         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16783         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16784         strcpy-sse2-unaligned strncpy-sse2-unaligned
16785         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16786         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16787         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16788         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16789         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16790         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16791         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16792         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16793         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16794         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16795         (STRCPY): Support SSE2 and SSSE3 versions.
16796
16797 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16798
16799         [BZ #12874]
16800         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16801         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16802         kernels which artificially limit size of requests.
16803
16804 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16805
16806         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16807         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16808         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16809         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16810         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16811         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16812         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16813         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16814         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16815         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16816         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16817         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16818         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16819         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16820         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16821         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16822         Enable unaligned load optimization for Intel Core i3, i5 and i7
16823         processors.
16824         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16825         Define.
16826         (index_Fast_Unaligned_Load): Define.
16827         (HAS_FAST_UNALIGNED_LOAD): Define.
16828
16829 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16830
16831         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16832
16833 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16834
16835         [BZ #12907]
16836         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16837         until it is clear that the information is realy needed.
16838         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16839
16840 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16841
16842         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16843
16844 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16845
16846         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16847         /sys/devices/system/cpu/online if it is usable.
16848
16849         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16850         reading the information from the /proc filesystem to once a second.
16851
16852 2011-06-21  Andreas Jaeger  <aj@suse.de>
16853
16854         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16855         NULL after inclusion of kernel headers.
16856
16857 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16858
16859         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16860         calls to internal_setent.
16861
16862         [BZ #12885]
16863         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16864         addresses using gethostbyname4_r ignore IPv4 addresses.
16865
16866         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16867         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16868
16869         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16870
16871 2011-06-20  David S. Miller  <davem@davemloft.net>
16872
16873         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16874         inclusions.
16875         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16876
16877         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16878         (elf_irel): Use it.
16879         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16880         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16881         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16882         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16883         * sysdeps/x86_64/dl-irel.h: Likewise.
16884
16885         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16886         * elf/dl-sym.c: Likewise.
16887
16888 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16889
16890         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16891         need to dereference resplen2.
16892
16893 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16894
16895         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16896
16897 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16898
16899         * Makeconfig: Define vardbdir and inst_vardbdir.
16900         * nss/Makefile: Add rules to install db-Makefile.
16901
16902         * nss/nss_db/db-XXX.c: Cleanup.
16903
16904         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16905         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16906         GLIBC_PRIVATE.
16907         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16908         * nss/makedb.c: Implement -g option to specify that value strings
16909         are generated and should not be added to table iterated over for
16910         get*ent calls.
16911         * nss/nss_db/db-initgroups.c: New file.
16912
16913         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16914         interface.
16915
16916         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16917         (internal_getgrouplist): Adjust to name change.
16918         Update use_initgroups_entry if this is not the first call.
16919         * nss/databases.def: Add initgroups entry.
16920
16921         * nss/makedb.c (compute_tables): Check result of multiple hash table
16922         sizes to minimize maximum chain length.
16923
16924 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16925
16926         * Versions.def: Add entry for libnss_db.
16927         * shlib-versions: Likewise.
16928         * nss/Makefile: Add rules to build libnss_db.
16929         * nss/Versions: Add libnss_db information.  Organize libnss_files
16930         entries better.
16931         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16932         makedb progra.  Some minor improvements to generate smaller files.
16933         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16934         here from...
16935         * nss/makedb.c: ...here.
16936         Improve database format to be smaller and require less memory at
16937         runtime.
16938         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16939         db anymore.
16940         * nss/nss_db/db-netgrp.c: Likewise.
16941         * nss/nss_db/db-open.c: Likewise.
16942         * nss/nss_files/flies-XXX.x: Adjust comments.
16943         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16944         * nss/nss_files/files-grp.c: Likewise.
16945         * nss/nss_files/files-hosts.c: Likewise.
16946         * nss/nss_files/files-network.c: Likewise.
16947         * nss/nss_files/files-proto.c: Likewise.
16948         * nss/nss_files/files-pwd.c: Likewise.
16949         * nss/nss_files/files-rpc.c: Likewise.
16950         * nss/nss_files/files-service.c: Likewise.
16951         * nss/nss_files/files-sgrp.c: Likewise.
16952         * nss/nss_files/files-spwd.c: Likewise.
16953         * nss/nss_db/db-alias.c: Removed.
16954         * nss/nss_db/dummy-db.h: Removed.
16955
16956 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16957
16958         * nss/makedb.c: Rewritten to not use database library.
16959         * nss/Makefile: Update to build new makedb program.
16960
16961 2011-06-14  Andreas Jaeger  <aj@suse.de>
16962
16963         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16964         memset declaration.
16965
16966 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16967
16968         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16969         tmpbuf.
16970
16971 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16972
16973         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16974         * elf/Makefile ($(objpfx)ld.so): Likewise.
16975
16976         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16977         Don't list ld.so twice in dependencies.
16978
16979         * posix/bug-regex31.c: Include <stdlib.h>.
16980
16981         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16982
16983         * nis/nss_compat/compat-spwd.c
16984         (getspent_next_nss_netgr): Remove unused variable.
16985         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16986
16987         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16988         nonmembers" output to use the right array.
16989
16990         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16991
16992         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16993
16994         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16995         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16996         * catgets/gencat.c (read_input_file): Likewise.
16997         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16998
16999         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17000         variable definition inside #if's controlling its use.
17001
17002         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17003
17004         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17005
17006         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17007
17008         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17009         unreachable code.
17010
17011         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17012
17013         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17014         * configure: Regenerated.
17015
17016         * Makerules: Revert last change.
17017         * elf/Makefile: Likewise.
17018
17019 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17020
17021         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17022         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17023         (reloc-link): Likewise.
17024
17025 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17026
17027         * elf/Makefile: Add rules to build pldd.
17028         * elf/pldd.c: New file.
17029         * elf/pldd-xx.c: New file.
17030
17031 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17032
17033         * version.h: Update for 2.15 development version.
17034
17035 2011-06-07  David S. Miller  <davem@davemloft.net>
17036
17037         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17038         ifuncs.
17039         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17040         elf_machine_lazy_rel): Likewise.
17041         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17042         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17043         elf_machine_lazy_rel): Likewise.
17044         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17045         dl_hwcap via passed in argument.
17046         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17047         Likewise.
17048
17049 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17050
17051         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17052
17053 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17054
17055         [BZ #12849]
17056         * manual/fdl-1.1.texi: New file, verbatim from:
17057         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17058         * manual/lgpl-2.1.texi: New file, verbatim from:
17059         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17060         * manual/Makefile (licenses): New variable, list those new file names.
17061         (texis): Use it.
17062         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17063
17064         * manual/fdl.texi: File removed.
17065         * manual/lesser.texi: File removed.
17066         * manual/libc.texinfo (Copying, Documentation License):
17067         Use new @include file names, put @appendix directive before @include.
17068
17069 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17070
17071         [BZ #12841]
17072         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17073         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17074         (mq_open): Add __NTH.
17075
17076 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17077
17078         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17079         Assume Intel Core i3/i5/i7 processor if AVX is available.
17080
17081 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17082
17083         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17084         typo.
17085
17086 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17087
17088         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17089         memory.  Use alloca_account.  Fix memory leak when retrying.
17090
17091 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17092
17093         * version.h (RELEASE): Bump for 2.14 release.
17094         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17095
17096         * config.make.in (RANLIB): Remove entry.
17097
17098 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17099
17100         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17101         (libc.pot): Work around missing support for .ksh extension in xgettext.
17102
17103         [BZ #12684]
17104         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17105         if both request failed.
17106         (send_dg): In case of server errors clear resplen or *resplen2.
17107
17108         [BZ #12454]
17109         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17110         when there are multiple maps.
17111         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17112         (_dl_fini): Remove test here.
17113
17114         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17115
17116 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17117
17118         [BZ #12350]
17119         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17120         bit from old_res_options.
17121         (gaih_inet): Likewise.
17122
17123         [BZ #11099]
17124         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17125         as signed.
17126
17127         * resolv/res_init.c (res_setoptions): Make the code more compact.
17128
17129         [BZ #11558]
17130         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17131         set RES_USEVC.
17132
17133         [BZ #11634]
17134         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17135
17136         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17137
17138         [BZ #11781]
17139         * malloc/malloc.h: Declare malloc hook variables as volatile.
17140
17141         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17142         in last patch.
17143
17144         [BZ #11799]
17145         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17146         raise in the comment.
17147         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17148         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17149         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17150
17151 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17152
17153         [BZ #12811]
17154         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17155         grow the buffers more if it already has to be sufficient.
17156         (build_wcs_upper_buffer): Likewise.
17157         * posix/regexec.c (check_matching): Likewise.
17158         (clean_state_log_if_needed): Likewise.
17159         (extend_buffers): Don't enlarge buffers beyond size of the input
17160         buffer.
17161         Patches mostly by Emil Wojak <emil@wojak.eu>.
17162         * posix/bug-regex32.c: New file.
17163         * posix/Makefile (tests): Add bug-regex32.
17164
17165         * locale/findlocale.c (_nl_find_locale): Return right away if
17166         _nl_explode_name failed.
17167         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17168
17169         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17170
17171         * debug/xtrace.sh: Unify messages.
17172         * malloc/memusage.sh: Likewise.
17173
17174         [BZ #12813]
17175         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17176         time symbol from vDSO.  Substitute with vsyscall if not available.
17177         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17178         __vdso_time.
17179
17180         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17181         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17182         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17183         Add sendmmsg and internal_sendmmsg.
17184         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17185         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17186         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17187
17188         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17189         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17190         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17191
17192 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17193
17194         [BZ #12813]
17195         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17196         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17197         available.
17198         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17199         __vdso_getcpu.
17200
17201         [BZ #12814]
17202         * iconvdata/Makefile (tests): Add bug-iconv9.
17203         * iconvdata/bug-iconv9.c: New file.
17204
17205 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17206
17207         [BZ #12814]
17208         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17209
17210 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17211
17212         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17213         (struct user_regs_struct): Change intcs field back to cs.
17214
17215 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17216
17217         * po/ja.po: Update from translation team.
17218
17219 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17220
17221         [BZ #12795]
17222         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17223         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17224
17225 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17226
17227         * stdlib/longlong.h: Update from GCC.
17228
17229 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17230
17231         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17232         parameter name.
17233         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17234         Add parameter name.
17235         (__sysconf): Pass it down.
17236
17237 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17238
17239         [BZ #12671]
17240         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17241         some situations.
17242         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17243         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17244         add in in __libc_use_alloca calls.  Adjust callers.
17245         (glob): Use malloc in some situations.
17246
17247         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17248         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17249         pltexit.
17250
17251 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17252
17253         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17254         and CLOCK_BOOTTIME_ALARM.
17255
17256         [BZ #12782]
17257         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17258         is returned.
17259
17260         * string/_strerror.c (__strerror_r): Print negative errors as signed
17261         numbers.
17262
17263         [BZ #12777]
17264         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17265         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17266         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17267
17268         * configure.in: Fix typo in redirection and correct removal of test
17269         files in two cases.
17270
17271         [BZ #12788]
17272         * locale/setlocale.c (new_composite_name): Fix test to check for
17273         identical name of all categories.
17274
17275         [BZ #12792]
17276         * libio/filedoalloc.c (local_isatty): New function.
17277         (_IO_file_doallocate): Use local_isatty.
17278         * stdio-common/perror.c (perror): In case a new stream is used
17279         forward the stream error.
17280         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17281         error flag.
17282
17283 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17284
17285         [BZ #11869]
17286         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17287         alloca.
17288         * include/alloca.h (extend_alloca_account): Define.
17289
17290         [BZ #11857]
17291         * posix/regex.h: Fix comments with documentation of user-accessible
17292         fields after compilation and describe correct free'ing of pattern
17293         after re_compile_pattern.
17294         Patch by Reuben Thomas <rrt@sc3d.org>.
17295
17296 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17297
17298         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17299         and -mno-altivec to prevent the compiler from using Altivec and/or
17300         VSX instructions when the corresponding registers are not available.
17301
17302 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17303
17304         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17305
17306 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17307
17308         * libio/freopen.c (freopen): Use __dup2, not dup2.
17309         * libio/freopen64.c (freopen64): Likewise.
17310
17311 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17312
17313         [BZ #12775]
17314         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17315         * math/Makefile (tests): Add test-powl.
17316         (CFLAGS-test-powl.c): Define.
17317         * math/test-powl.c: New file.
17318
17319 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17320
17321         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17322
17323 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17324
17325         [BZ #11837]
17326         * iconvdata/gb18030.c: Update to GB18020-2005.
17327
17328 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17329
17330         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17331         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17332         Patch by Aharon Robbins <arnold@skeeve.com>.
17333
17334         [BZ #11892]
17335         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17336         on the stack.
17337
17338         [BZ #11895]
17339         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17340         through underflows.
17341
17342         [BZ #12766]
17343         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17344         point to strings before performing equality test for error_one_per_line
17345         mode.
17346
17347         [BZ #11697]
17348         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17349
17350         [BZ #11820]
17351         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17352         (struct user_fpregs_struct): Avoid __uint*_t types.
17353
17354         [BZ #6420]
17355         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17356         symbol info.  Use it instead of calling _dl_addr locally.
17357         (lock_and_info): New function.
17358         (tr_freehook): Call lock_and_info and pass symbol info as additional
17359         parameter to tr_where.
17360         (tr_mallochook): Likewise.
17361         (tr_reallochook): Likewise.
17362         (tr_memalignhook): Likewise.
17363
17364         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17365         used and couldn't be at all thread-safe.
17366
17367 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17368
17369         * libio/freopen.c (freopen): Don't close old file descriptor
17370         before the new one is opened.  Instead dup the new file descriptor
17371         to the old one after the new stream is created.
17372         * libio/freopen64.c (freopen64): Likewise.
17373         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17374         * libio/fileops.c (_IO_new_file_close_it): Handle new
17375         _IO_FLAGS2_NOCLOSE flag.
17376         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17377         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17378         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17379         _IO_FLAGS2_NOCLOSE flag.
17380         * include/unistd.h: Add hidden_proto for dup3.
17381         Define __have_dup3.
17382         * io/dup3.c: Define hidden symbol.
17383         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17384
17385         [BZ #7101]
17386         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17387         when an incomplete long option is used.
17388         * posix/tst-getopt_long1.c: New file.
17389         * posix/Makefile (tests): Add tst-getopt_long1.
17390
17391         [BZ #10138]
17392         * scripts/config.guess: Update from autoconf-2.68.
17393         * scripts/config.sub: Likewise.
17394
17395         [BZ #10157]
17396         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17397         tests into ...
17398         (has_cpuclock): ...this.  New function.
17399         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17400         macro here based on has_cpuclock code.
17401
17402         [BZ #10149]
17403         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17404         First byte (not low byte) is now always NUL.
17405         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17406
17407         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17408         Use non-cancelable interfaces.
17409
17410         [BZ #9809]
17411         * locale/iso-639.def: Add entry for Sorani.
17412
17413         [BZ #11901]
17414         * include/stdlib.h: Move include protection to the right place.
17415         Define abort_msg_s.  Declare __abort_msg with it.
17416         * stdlib/abort.c (__abort_msg): Adjust type.
17417         * assert/assert.c (__assert_fail_base): New function.  Majority
17418         of code from __assert_fail.  Allocate memory for __abort_msg with
17419         mmap.
17420         (__assert_fail): Now call __assert_fail_base.
17421         * assert/assert-perr.c: Remove bulk of implementation.  Use
17422         __assert_fail_base.
17423         * include/assert.hL Declare __assert_fail_base.
17424         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17425         mmap.
17426         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17427
17428 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17429
17430         [BZ #11952]
17431         [BZ #12453]
17432         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17433         until all modules are registered in the DTV.
17434         * elf/Makefile: Add rules to build and run tst-tls19.
17435         * elf/tst-tls19.c: New file.
17436         * elf/tst-tls19mod1.c: New file.
17437         * elf/tst-tls19mod2.c: New file.
17438         * elf/tst-tls19mod3.c: New file.
17439         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17440
17441         [BZ #12083]
17442         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17443         correctly.
17444
17445         [BZ #12601]
17446         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17447         two-byte sequence errors.
17448         * iconvdata/Makefile (tests): Add bug-iconv8.
17449         * iconvdata/bug-iconv8.c: New file.
17450
17451         [BZ #12626]
17452         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17453         buf2 definition.
17454
17455         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17456
17457         [BZ #12432]
17458         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17459         (dummy_getcfa): New function.
17460         (init): Get _Unwind_GetCFA address, use dummy if not found.
17461         (backtrace_helper): In recursion check, also check whether CFA changes.
17462         (__backtrace): Completely initialize arg.
17463
17464         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17465         storing incomplete byte sequence in state object.  Avoid testing for
17466         guaranteed too small input if we know there is enough data available.
17467
17468 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17469
17470         * Makeconfig (+link-pie): Indent.
17471         * Rules (binaries-pie): Define if $(have-fpie) and
17472         $(build-shared).
17473         (binaries-shared): Also filter out $(binaries-pie).
17474         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17475         * nscd/Makefile (others-pie): Add nscd.
17476         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17477         ($(objpfx)nscd): Remove command override.
17478         * login/Makefile (others-pie): Add pt_chown.
17479         ($(objpfx)pt_chown): Remove command override.
17480         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17481         remove command overrides.
17482
17483 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17484
17485         * libio/tst_putwc.c: Fix error messages.
17486
17487         [BZ #12724]
17488         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17489         currently writing and seek to current position when not.
17490         * libio/Makefile (tests): Add bug-fclose1.
17491         * libio/bug-fclose1.c: New file.
17492
17493 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17494
17495         [BZ #12511]
17496         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17497         don't set DF_1_NODELETE here.
17498         (do_lookup_x): When entering new entry test for copy relocation
17499         and if necessary set DF_1_NODELETE flag.
17500         * elf/tst-unique4.cc: New file.
17501         * elf/tst-unique4.h: New file.
17502         * elf/tst-unique4lib.cc: New file.
17503         * elf/Makefile: Add rules to build and run tst-unique4.
17504         Patch by Piotr Bury <pbury@goahead.com>.
17505
17506 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17507
17508         [BZ #12052]
17509         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17510
17511         [BZ #12625]
17512         * misc/mntent_r.c (addmntent): Flush the stream after the output
17513
17514         [BZ #12393]
17515         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17516         (is_trusted_path_normalize): Skip initial colon.  Append slash
17517         to empty buffer.  Duplicate is_trusted_path code but allow
17518         constructed patch to be prefix.
17519         (is_dst): Allow $ORIGIN followed by /.
17520         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17521         Correct testing of result of is_trusted_path_normalize
17522         (decompose_rpath): Fix warning.
17523
17524 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17525
17526         [BZ #11257]
17527         * grp/initgroups.c (internal_getgrouplist): When we found the service
17528         list through the initgroups entry in nsswitch.conf do not always
17529         continue on a successful lookup.  Don't always use the
17530         __nss_group_database value if it is set.
17531         * nss/nsswitch.conf (initgroups): Change action for successful db
17532         lookup to continue for compatibility.
17533
17534 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17535
17536         [BZ #11532]
17537         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17538         and CP774 modules.
17539         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17540         and CP774 modules.
17541         * iconvdata/tst-tables.sh: Likewise.
17542         * iconvdata/cp770.c: New file.
17543         * iconvdata/cp771.c: New file.
17544         * iconvdata/cp772.c: New file.
17545         * iconvdata/cp773.c: New file.
17546         * iconvdata/cp774.c: New file.
17547         * iconvdata/testdata/CP770: New file.
17548         * iconvdata/testdata/CP770..UTF8: New file.
17549         * iconvdata/testdata/CP771: New file.
17550         * iconvdata/testdata/CP771..UTF8: New file.
17551         * iconvdata/testdata/CP772: New file.
17552         * iconvdata/testdata/CP772..UTF8: New file.
17553         * iconvdata/testdata/CP773: New file.
17554         * iconvdata/testdata/CP773..UTF8: New file.
17555         * iconvdata/testdata/CP774: New file.
17556         * iconvdata/testdata/CP774..UTF8: New file.
17557
17558         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17559         END CHARMAP line.
17560         * iconvdata/gen-8bit-gap.sh: Likewise.
17561         * iconvdata/gen-8bit.sh: Likewise.
17562
17563         * locale/iso-639.def: Add ary entry.
17564
17565         [BZ #11258]
17566         * locale/C-translit.h.in: Add U20A1 transliteration.
17567
17568         [BZ #12178]
17569         * locale/iso-639.def: Add wae entry.
17570         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17571
17572         [BZ #12545]
17573         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17574         for n.
17575
17576         [BZ #12711]
17577         * locale/C-translit.h.in: Add entry for U20B9.
17578         Patch by pravin.d.s@gmail.com.
17579
17580 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17581
17582         [BZ #12713]
17583         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17584         ENAMETOOLONG use generic getcwd.
17585         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17586         in rtld.  Use *stat64.
17587         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17588         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17589         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17590         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17591         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17592         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17593         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17594         __fstatat64 macros.
17595         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17596         * dirent/rewinddir.c: Add libc_hidden_def.
17597         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17598         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17599
17600         * include/dirent.h (__alloc_dir): Add flags parameter.
17601         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17602         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17603         __alloc_dir.
17604         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17605         from fdopendir if O_CLOEXEC is already set.
17606
17607 2011-03-15  Alan Modra  <amodra@gmail.com>
17608
17609         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17610         l_tls_firstbyte_offset non-zero.  Save padding offset in
17611         l_tls_firstbyte_offset for later use.
17612         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17613         freeing static tls block.
17614
17615 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17616
17617         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17618         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17619         being defined by the kernel headers.
17620
17621 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17622
17623         [BZ #12734]
17624         * resolv/resolv.h: Define RES_NOTLDQUERY.
17625         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17626         no-tld-query and set RES_NOTLDQUERY.
17627         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17628         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17629         modern BIND to search name as TLD unless forbidden.
17630
17631 2011-05-07  Petr Baudis  <pasky@suse.cz>
17632             Ulrich Drepper  <drepper@gmail.com>
17633
17634         [BZ #12393]
17635         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17636         (is_trusted_path): ...to here.
17637         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17638         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17639         using is_trusted_path_normalize() in setuid scripts.
17640
17641 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17642
17643         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17644         __BEGIN/__END_DECLS.
17645
17646 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17647
17648         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17649         NSS_STATUS_NOTFOUND if no record was found.
17650
17651 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17652
17653         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17654         (headers-not-in-tirpc): Remove rpc/netdb.h
17655         * resolv/netdb.h: Revert last change.
17656
17657 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17658
17659         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17660         circular dependency between libgcc.a and libc.a.
17661
17662 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17663
17664         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17665         * nis/Makefile: Don't install rpcsvc/*.
17666         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17667         instead of <rpc/types.h>.
17668         (MAXHOSTNAMELEN): Define.
17669
17670 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17671
17672         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17673
17674 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17675
17676         [BZ #12714]
17677         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17678         gethostbyname4_r when IPv6 results are possible.
17679
17680 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17681
17682         [BZ #12723]
17683         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17684         _PC_PIPE_BUF handling.
17685
17686 2011-04-30  Bruno Haible  <bruno@clisp.org>
17687
17688         [BZ #12717]
17689         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17690         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17691         to 'int'.
17692         * inet/getnameinfo.c (getnameinfo): Likewise.
17693
17694 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17695
17696         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17697         to groups setting in database lookup.
17698         * nss/nsswitch.conf: Add initgroups entry.
17699
17700 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17701
17702         [BZ #12685]
17703         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17704         mode string.
17705         Patch by Eric Blake <eblake@redhat.com>.
17706
17707 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17708
17709         * sunrpc/Makefile (need-export-routines): Add svc_run.
17710         (routines): Remove svc_run.
17711         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17712         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17713         * sunrpc/svc_run.c (svc_run): Likewise.
17714         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17715
17716 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17717
17718         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17719         problem in reallocation in last patch.
17720
17721 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17722
17723         * sunrpc/Makefile: Move inclusion of Rules.
17724
17725 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17726
17727         * nss/nss_files/files-initgroups.c: New file.
17728         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17729         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17730         _nss_files_initgroups_dyn.
17731
17732 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17733
17734         * elf/elf.h (R_ARM_IRELATIVE): Define.
17735
17736 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17737
17738         * po/ru.po: Update from translation team.
17739
17740 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17741
17742         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17743         dependencies.
17744
17745 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17746
17747         [BZ #12653]
17748         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17749         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17750         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17751         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17752         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17753
17754 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17755
17756         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17757         differing bytes.
17758         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17759         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17760         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17761
17762 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17763
17764         [BZ #12420]
17765         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17766         storing it.
17767         * stdlib/bug-getcontext.c: New file.
17768         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17769
17770 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17771
17772         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17773         instructions into .machine "z9-109".
17774         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17775         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17776
17777 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17778
17779         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17780         between environment variables and auxiliary vector.
17781
17782 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17783
17784         * Makefile: Add rules to build linkobj/libc.so.
17785         * include/libc-symbols.h: Define libc_hidden_nolink.
17786         * include/rpc/auth.h: Mark functions which are to be hidden.
17787         * include/rpc/auth_des.h: Likewise.
17788         * include/rpc/auth_unix.h: Likewise.
17789         * include/rpc/clnt.h: Likewise.
17790         * include/rpc/des_crypt.h: Likewise.
17791         * include/rpc/key_prot.h: Likewise.
17792         * include/rpc/pmap_clnt.h: Likewise.
17793         * include/rpc/pmap_prot.h: Likewise.
17794         * include/rpc/pmap_rmt.h: Likewise.
17795         * include/rpc/rpc_msg.h: Likewise.
17796         * include/rpc/svc.h: Likewise.
17797         * include/rpc/svc_auth.h: Likewise.
17798         * include/rpc/xdr.h: Likewise.
17799         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17800         * nss/Makefile: Likewise.
17801         * sunrpc/Makefile: Don't install headers.  Build library with normal
17802         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17803         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17804         for the compat linking library.  Remove use of INTDEF/INTUSE.
17805         * sunrpc/auth_none.c: Likewise.
17806         * sunrpc/auth_unix.c: Likewise.
17807         * sunrpc/authdes_prot.c: Likewise.
17808         * sunrpc/authuxprot.c: Likewise.
17809         * sunrpc/clnt_gen.c: Likewise.
17810         * sunrpc/clnt_perr.c: Likewise.
17811         * sunrpc/clnt_raw.c: Likewise.
17812         * sunrpc/clnt_simp.c: Likewise.
17813         * sunrpc/clnt_tcp.c: Likewise.
17814         * sunrpc/clnt_udp.c: Likewise.
17815         * sunrpc/clnt_unix.c: Likewise.
17816         * sunrpc/des_crypt.c: Likewise.
17817         * sunrpc/des_soft.c: Likewise.
17818         * sunrpc/get_myaddr.c: Likewise.
17819         * sunrpc/key_call.c: Likewise.
17820         * sunrpc/key_prot.c: Likewise.
17821         * sunrpc/netname.c: Likewise.
17822         * sunrpc/pm_getmaps.c: Likewise.
17823         * sunrpc/pm_getport.c: Likewise.
17824         * sunrpc/pmap_clnt.c: Likewise.
17825         * sunrpc/pmap_prot.c: Likewise.
17826         * sunrpc/pmap_prot2.c: Likewise.
17827         * sunrpc/pmap_rmt.c: Likewise.
17828         * sunrpc/publickey.c: Likewise.
17829         * sunrpc/rpc_cmsg.c: Likewise.
17830         * sunrpc/rpc_common.c: Likewise.
17831         * sunrpc/rpc_dtable.c: Likewise.
17832         * sunrpc/rpc_prot.c: Likewise.
17833         * sunrpc/rpc_thread.c: Likewise.
17834         * sunrpc/rtime.c: Likewise.
17835         * sunrpc/svc.c: Likewise.
17836         * sunrpc/svc_auth.c: Likewise.
17837         * sunrpc/svc_authux.c: Likewise.
17838         * sunrpc/svc_raw.c: Likewise.
17839         * sunrpc/svc_run.c: Likewise.
17840         * sunrpc/svc_simple.c: Likewise.
17841         * sunrpc/svc_tcp.c: Likewise.
17842         * sunrpc/svc_udp.c: Likewise.
17843         * sunrpc/svc_unix.c: Likewise.
17844         * sunrpc/svcauth_des.c: Likewise.
17845         * sunrpc/xcrypt.c: Likewise.
17846         * sunrpc/xdr.c: Likewise.
17847         * sunrpc/xdr_array.c: Likewise.
17848         * sunrpc/xdr_float.c: Likewise.
17849         * sunrpc/xdr_intXX_t.c: Likewise.
17850         * sunrpc/xdr_mem.c: Likewise.
17851         * sunrpc/xdr_rec.c: Likewise.
17852         * sunrpc/xdr_ref.c: Likewise.
17853         * sunrpc/xdr_sizeof.c: Likewise.
17854         * sunrpc/xdr_stdio.c: Likewise.
17855
17856 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17857
17858         [BZ #12650]
17859         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17860         * sysdeps/ia64/dl-tls.h: Likewise.
17861         * sysdeps/powerpc/dl-tls.h: Likewise.
17862         * sysdeps/s390/dl-tls.h: Likewise.
17863         * sysdeps/sh/dl-tls.h: Likewise.
17864         * sysdeps/sparc/dl-tls.h: Likewise.
17865         * sysdeps/x86_64/dl-tls.h: Likewise.
17866         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17867
17868 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17869
17870         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17871         rpath element also skip the following colon.
17872         (expand_dynamic_string_token): Add is_path parameter and pass
17873         down to DL_DST_REQUIRED and _dl_dst_substitute.
17874         (decompose_rpath): Call expand_dynamic_string_token with
17875         non-zero is_path.  Ignore empty rpaths.
17876         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17877         with zero is_path.
17878
17879 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17880
17881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17882         Make cancelable.
17883
17884 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17885
17886         [BZ #12655]
17887         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17888         Patch by Filipe David Manana <fdmanana@apache.org>.
17889
17890 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17891
17892         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17893         Maintain aligned stack.
17894         (CHECK_RSP): Remove unused macro.
17895
17896 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17897
17898         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17899         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17900
17901 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17902
17903         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17904
17905         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17906
17907 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17908
17909         [BZ #12518]
17910         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17911         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17912         * sysdeps/x86_64/memmove.c: New file.
17913         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17914         (memcpy): Renamed to ...
17915         (__new_memcpy): This.
17916         (memcpy): Provide GLIBC_2_14 memcpy.
17917         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17918         (memcpy): Provide GLIBC_2_2_5 memcpy.
17919
17920 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17921
17922         [BZ #12631]
17923         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17924
17925 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17926
17927         * misc/syncfs.c: New file.
17928         * misc/Makefile (routines): Add syncfs.
17929         * posix/unistd.h: Declare syncfs.
17930         * sysdeps/unix/syscalls.list: Add syncfs.
17931
17932 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17933
17934         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17935         open_by_handle_at.
17936         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17937         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17938         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17939         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17940         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17941         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17942         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17943
17944 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17945
17946         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17947         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17948         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17949         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17950         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17951         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17952         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17953
17954         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17955         sync_file_range.c with -fexceptions.
17956         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17957         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17958         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17959         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17960         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17961         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17962         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17963         sync_file_range as cancellation point
17964         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17965         now a wrapper around __call_sync_file_range with cancellation handling.
17966         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17967         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17968         function name to __call_sync_file_range.
17969         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17970         Add call_sync_file_range.
17971
17972 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17973
17974         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17975         bits/timex.h.
17976
17977 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17978
17979         * iconv/iconv.h: Fix typo in comment.
17980         * io/fcntl.h: Likewise.
17981         * libio/stdio.h: Likewise.
17982         * posix/spawn.h: Likewise.
17983         * posix/unistd.h: Likewise.
17984         * stdlib/stdlib.h: Likewise.
17985         * time/time.h: Likewise.
17986         * wcsmbs/wchar.h: Likewise.
17987
17988         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17989         open_by_handle): Add.
17990         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17991         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17992         Augment a few comments.
17993         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17994         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17995         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17996         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17997         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17998         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17999         open_by_handle.
18000
18001         * io/fcntl.h (AT_EMPTY_PATH): Define.
18002
18003 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18004
18005         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18006         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18007         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18008         to...
18009         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18010         * Versions.def: Add GLIBC_2.14.
18011         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18012         Export.
18013
18014 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18015
18016         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18017         round counter.
18018         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18019
18020 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18021
18022         [BZ #12597]
18023         * string/test-strncmp.c (do_page_test): New function.
18024         (check2): Likewise.
18025         (test_main): Call check2.
18026         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18027
18028 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18029
18030         [BZ #12587]
18031         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18032         Handle cache information in CPU leaf 4.
18033         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18034
18035 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18036
18037         [BZ #12583]
18038         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18039         character representation.
18040         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18041
18042 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18043
18044         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18045         END(__isnan) to END(__isnanf) to match function entry point/label
18046         EALIGN(__isnanf,...).
18047
18048 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18049
18050         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18051
18052 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18053
18054         [BZ #12510]
18055         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18056         copy from the symbol referenced in the relocation to initialize the
18057         used variable.
18058         Patch by Piotr Bury <pbury@goahead.com>.
18059         * elf/Makefile: Add rules to build and tst-unique3.
18060         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18061         * elf/tst-unique3.cc: New file.
18062         * elf/tst-unique3.h: New file.
18063         * elf/tst-unique3lib.cc: New file.
18064         * elf/tst-unique3lib2.cc: New file.
18065
18066         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18067
18068 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18069
18070         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18071         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18072         to _start.
18073
18074 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18075
18076         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18077         to-be-loaded object along a path to loader is ld.so.
18078
18079 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18080             Ulrich Drepper  <drepper@gmail.com>
18081
18082         * sysdeps/x86_64/memset.S: After aligning destination, code
18083         branches to different locations depending on the value of
18084         misalignment, when multiarch is enabled. Fix this.
18085
18086 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18087
18088         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18089         Set _x86_64_preferred_memory_instruction for AMD processsors.
18090         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18091         Set bit_Prefer_SSE_for_memop for AMD processors.
18092
18093 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18094
18095         * libio/fmemopen.c (fmemopen): Optimize a bit.
18096
18097 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18098
18099         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18100
18101 2011-03-03  Roland McGrath  <roland@redhat.com>
18102
18103         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18104
18105 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18106
18107         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18108         __bzero_ultra1 instead of __memset_ultra1.
18109
18110 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18111             Ulrich Drepper  <drepper@gmail.com>
18112
18113         [BZ #12509]
18114         * include/link.h (struct link_map): Add l_orig_initfini.
18115         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18116         returning unsuccessfully.
18117         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18118         close of a file loaded at startup, restore the original l_initfini
18119         list.
18120         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18121         list, store the pointer.
18122         * elf/Makefile ($(objpfx)noload-mem): New rule.
18123         (noload-ENV): Define.
18124         (tests): Add $(objpfx)noload-mem.
18125         * elf/noload.c: Include <memcheck.h>.
18126         (main): Call mtrace.  Close all opened handles.
18127
18128 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18129
18130         [BZ #12454]
18131         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18132         dependencies are missing.
18133
18134 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18135
18136         Fix __if_freereq crash: Unlike the generic version which uses free,
18137         Hurd needs munmap.
18138         * sysdeps/mach/hurd/ifreq.h: New file.
18139
18140 2011-01-27  Petr Baudis  <pasky@suse.cz>
18141             Ulrich Drepper  <drepper@gmail.com>
18142
18143         [BZ 12445]#
18144         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18145         to extend_alloca().
18146         * stdio-common/bug23.c: New file.
18147         * stdio-common/Makefile (tests): Add bug23.
18148
18149 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18150             Ulrich Drepper  <drepper@gmail.com>
18151
18152         [BZ #12489]
18153         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18154         before performing relro protection.  At old place add assertion
18155         to make sure nothing changed.
18156
18157 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18158             Glauber de Oliveira Costa  <glommer@gmail.com>
18159
18160         * elf/elf.h: Add new ARM TLS relocs.
18161
18162 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18163
18164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18165         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18166         cast from r3.
18167         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18168         'tests' variable.
18169         * sysdeps/wordsize-64/tst-writev.c: New file.
18170
18171 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18172
18173         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18174         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18175         insns in _dl_start to prevent a TOC reference before relocs are
18176         resolved.
18177
18178 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18179
18180         [BZ #12469]
18181         * Makeconfig: Remove RANLIB definition.
18182         * Makerules: Don't use RANLIB.
18183         * aclocal.m4: Remove ranlib test.
18184         * configure.in: No need to check for ranlib.
18185         * elf/rtld-Rules: Don't use RANLIB.
18186
18187 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18188
18189         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18190         protection macro.
18191         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18192         inclusion protection macro.
18193
18194         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18195         SIGRTMIN and SIGRTMAX and print information in that case only when
18196         SIGRTMIN is defined.
18197
18198 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18199
18200         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18201         arginfo fn returning -1.
18202
18203         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18204         and thousands string is zero terminated.
18205
18206 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18207
18208         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18209         sysdeps/unix/sysv/linux/bits/socket.h.
18210
18211 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18212
18213         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18214         (__CPU_COUNT): Remove old macros.
18215         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18216         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18217         (__CPU_ALLOC, __CPU_FREE): Add macros.
18218         (__sched_cpualloc, __sched_cpufree): Add declarations.
18219
18220 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18221
18222         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18223         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18224         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18225         (readdhstai): Return value of addhstaiX call.
18226         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18227         (addgrbyX): Return value returned by cache_addgr.
18228         (readdgrbyname): Return value returned by addgrbyX.
18229         (readdgrbygid): Likewise.
18230         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18231         (addpwbyX): Return value returned by cache_addpw.
18232         (readdpwbyname): Return value returned by addhstbyX.
18233         (readdpwbyuid): Likewise.
18234         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18235         (addservbyX): Return value returned by cache_addserv.
18236         (readdservbyname): Return value returned by addservbyX:
18237         (readdservbyport): Likewise.
18238         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18239         (addhstbyX): Return value returned by cache_addhst.
18240         (readdhstbyname): Return value returned by addhstbyX.
18241         (readdhstbyaddr): Likewise.
18242         (readdhstbynamev6): Likewise.
18243         (readdhstbyaddrv6): Likewise.
18244         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18245         (readdinitgroups): Return value returned by addinitgroupsX.
18246         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18247         (prune_cache): Keep track of timeout value of re-added entries.
18248         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18249         * nscd/nscd.h: Adjust prototypes of readd* functions.
18250
18251 2011-02-04  Roland McGrath  <roland@redhat.com>
18252
18253         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18254         (nis_stats): Likewise.
18255         * nis/nis_modify.c (nis_modify): Likewise.
18256         * nis/nis_remove.c (nis_remove): Likewise.
18257         * nis/nis_add.c (nis_add): Likewise.
18258
18259         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18260
18261         * posix/fnmatch_loop.c: Add some consts.
18262
18263         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18264
18265 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18266
18267         [BZ #12460]
18268         * config.make.in (config-cflags-novzeroupper): Define.
18269         * configure.in: Substitute libc_cv_cc_novzeroupper.
18270         * elf/Makefile (AVX-CFLAGS): Define.
18271         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18272         (CFLAGS-tst-auditmod4a.c): Likewise.
18273         (CFLAGS-tst-auditmod4b.c): Likewise.
18274         (CFLAGS-tst-auditmod6b.c): Likewise.
18275         (CFLAGS-tst-auditmod6c.c): Likewise.
18276         (CFLAGS-tst-auditmod7b.c): Likewise.
18277         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18278
18279 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18280
18281         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18282         function to the callback.
18283         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18284
18285 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18286
18287         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18288         of errno.
18289
18290 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18291
18292         [BZ #11724]
18293         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18294         of constructors.
18295         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18296         of destructors.
18297         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18298
18299         [BZ #11724]
18300         * elf/Makefile: Add rules to build and run new test.
18301         * elf/tst-initorder.c: New file.
18302         * elf/tst-initorder.exp: New file.
18303         * elf/tst-initordera1.c: New file.
18304         * elf/tst-initordera2.c: New file.
18305         * elf/tst-initordera3.c: New file.
18306         * elf/tst-initordera4.c: New file.
18307         * elf/tst-initorderb1.c: New file.
18308         * elf/tst-initorderb2.c: New file.
18309         * elf/tst-order-a1.c: New file.
18310         * elf/tst-order-a2.c: New file.
18311         * elf/tst-order-a3.c: New file.
18312         * elf/tst-order-a4.c: New file.
18313         * elf/tst-order-b1.c: New file.
18314         * elf/tst-order-b2.c: New file.
18315         * elf/tst-order-main.c: New file.
18316         New test case by George Gensure <werkt0@gmail.com>.
18317
18318 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18319
18320         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18321         decoding ACE if AI_CANONIDN.
18322
18323 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18324
18325         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18326
18327 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18328
18329         * version.h (RELEASE): Bump for 2.13 release.
18330         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18331
18332         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18333
18334         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18335         MADV_NOHUGEPAGE.
18336         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18337         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18338         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18339         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18340         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18341         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18342
18343         * posix/getconf.c: Update copyright year.
18344         * catgets/gencat.c: Likewise.
18345         * csu/version.c: Likewise.
18346         * debug/catchsegv.sh: Likewise.
18347         * debug/xtrace.sh: Likewise.
18348         * elf/ldconfig.c: Likewise.
18349         * elf/ldd.bash.in: Likewise.
18350         * elf/sprof.c (print_version): Likewise.
18351         * iconv/iconv_prog.c: Likewise.
18352         * iconv/iconvconfig.c: Likewise.
18353         * locale/programs/locale.c: Likewise.
18354         * locale/programs/localedef.c: Likewise.
18355         * malloc/memusage.sh: Likewise.
18356         * malloc/mtrace.pl: Likewise.
18357         * nscd/nscd.c (print_version): Likewise.
18358         * nss/getent.c: Likewise.
18359
18360         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18361         PF_CAIF, and PF_ALG.
18362         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18363
18364 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18365
18366         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18367         (modules-names): Use them.
18368         (ifunc-test-modules, ifunc-pie-tests): Define.
18369         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18370         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18371         (test-extras): Likewise.
18372         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18373         $(compile-command.c).
18374         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18375         (all-built-dso): Define.
18376         (check-textrel.out, check-execstack.out): Depend on it.
18377
18378         * configure.in: Don't override --enable-multi-arch.
18379
18380 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18381
18382         [BZ #6812]
18383         * nscd/hstcache.c (tryagain): Define.
18384         (cache_addhst): Return tryagain not notfound for temporary errors.
18385         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18386         failed.
18387
18388 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18389
18390         [BZ #10563]
18391         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18392         to make the syscall.
18393         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18394
18395         [BZ #12378]
18396         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18397         and fall back to matching as normal character if the string ends before
18398         the matching ']' is found.  This is what POSIX requires.
18399         * posix/testfnm.c: Adjust test result.
18400         * posix/globtest.sh: Adjust test result.  Add new test.
18401         * posix/tst-fnmatch.input: Likewise.
18402         * posix/tst-fnmatch2.c: Add new test.
18403
18404 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18405
18406         * elf/Makefile (check-execstack): Revert last change.  Depend on
18407         check-execstack.h.
18408         (check-execstack.h): New target.
18409         (generated): Add check-execstack.h.
18410         * elf/check-execstack.c: Include "check-execstack.h".
18411         (main): Revert last change.
18412         (handle_file): Return zero if GNU_STACK is absent and
18413         DEFAULT_STACK_PERMS doesn't include PF_X.
18414
18415 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18416
18417         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18418         in child fails because the descriptor is already closed.
18419         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18420         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18421         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18422
18423         [BZ #12397]
18424         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18425         syscall.
18426
18427         [BZ #10484]
18428         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18429         temporary buffer used to handle multi lookups locally.
18430         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18431
18432 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18433
18434         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18435         loader is ld.so.
18436
18437 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18438
18439         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18440         alignment for SSE2.
18441
18442 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18443
18444         [BZ #12394]
18445         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18446         characters.  When rounding increased number of integer digits recompute
18447         number of groups.
18448         * stdio-common/tst-grouping.c: New file.
18449         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18450
18451 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18452
18453         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18454         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18455
18456         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18457         void.
18458         * bits/select.h: Likewise.
18459
18460 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18461
18462         * po/ja.po: Update from translation team.
18463
18464 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18465
18466         [BZ #11155]
18467         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18468         implementation just like for lxstat, fxstatat, et al.
18469
18470 2010-12-27  Jim Meyering  <meyering@redhat.com>
18471
18472         [BZ #12348]
18473         * posix/regexec.c (build_trtable): Return failure indication upon
18474         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18475
18476 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18477
18478         [BZ #12201]
18479         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18480         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18481         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18482         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18483
18484         [BZ #12207]
18485         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18486
18487         [BZ #12204]
18488         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18489         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18490
18491 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18492
18493         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18494         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18495         script has SORT_BY_INIT_PRIORITY.
18496         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18497         NO_CTORS_DTORS_SECTIONS is defined.
18498         * elf/soinit.c: Likewise.
18499         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18500         NO_CTORS_DTORS_SECTIONS is defined.
18501         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18502         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18503         * sysdeps/sh/init-first.c: Likewise.
18504         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18505
18506 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18507
18508         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18509         always use the slow path.
18510
18511 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18512
18513         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18514         similar rule which adds the sysdep directories to the header search in
18515         order to pick up the correct platform stackinfo.h.
18516         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18517         perform test if it is, otherwise return successfully without testing.
18518         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18519         DEFAULT_STACK_PERMS define in stackinfo.h.
18520         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18521         defined in stackinfo.h.
18522         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18523         DEFAULT_STACK_PERMS defined in stackinfo.h.
18524         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18525         * sysdeps/ia64/stackinfo.h: Likewise.
18526         * sysdeps/s390/stackinfo.h: Likewise.
18527         * sysdeps/sh/stackinfo.h: Likewise.
18528         * sysdeps/sparc/stackinfo.h: Likewise.
18529         * sysdeps/x86_64/stackinfo.h: Likewise.
18530         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18531         PF_X for powerpc64.  Retain PF_X for powerpc32.
18532
18533 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18534
18535         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18536         accurately.
18537         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18538         GETDENTS_64BIT_ALIGNED.
18539
18540 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18541
18542         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18543
18544 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18545
18546         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18547         _GNU_SOURCE.
18548
18549         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18550         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18551         Remove __restrict.
18552         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18553         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18554
18555 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18556
18557         [BZ #11655]
18558         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18559         are initialized.
18560
18561 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18562
18563         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18564
18565 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18566
18567         * po/it.po: Update from translation team.
18568
18569 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18570
18571         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18572         unused codes.
18573
18574 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18575
18576         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18577
18578 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18579
18580         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18581         specially.
18582         (gaih_getanswer_slice): Likewise.
18583
18584 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18585
18586         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18587
18588 2010-05-31  Petr Baudis  <pasky@suse.cz>
18589
18590         [BZ #11149]
18591         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18592         silently even in the chroot mode.
18593
18594 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18595
18596         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18597         last patch a bit.  Pretty printing
18598
18599 2010-05-31  Petr Baudis <pasky@suse.cz>
18600
18601         [BZ #10085]
18602         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18603         initialization of skip_initgroups_dyn.
18604
18605 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18606
18607         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18608         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18609
18610 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18611
18612         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18613
18614 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18615
18616         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18617         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18618         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18619         ($(objpfx)tst-fnmatch-mem): New rule.
18620         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18621         * posix/tst-fnmatch.c (main): Call mtrace.
18622
18623 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18624
18625         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18626         Support Intel processor model 6 and model 0x2c.
18627
18628 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18629
18630         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18631           signed comparison.
18632
18633 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18634
18635         [BZ #12205]
18636         * string/test-strncasecmp.c (check_result): New function.
18637         (do_one_test): Use it.
18638         (check1): New function.
18639         (test_main): Use it.
18640         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18641         Support strcasecmp and strncasecmp.
18642
18643 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18644
18645         [BZ #12194]
18646         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18647         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18648
18649 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18650
18651         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18652         IFUNC support.
18653         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18654         memset-x86-64.
18655         * sysdeps/x86_64/multiarch/bzero.S: New file.
18656         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18657         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18658         * sysdeps/x86_64/multiarch/memset.S: New file.
18659         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18660         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18661         Set bit_Prefer_SSE_for_memop for Intel processors.
18662         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18663         Define.
18664         (index_Prefer_SSE_for_memop): Define.
18665         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18666
18667 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18668
18669         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18670         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18671
18672 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18673
18674         [BZ #12191]
18675         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18676         (__x86_64_raw_data_cache_size_half): Likewise.
18677         (__x86_64_raw_shared_cache_size): Likewise.
18678         (__x86_64_raw_shared_cache_size_half): Likewise.
18679
18680         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18681         (__x86_64_raw_data_cache_size_half): Likewise.
18682         (__x86_64_raw_shared_cache_size): Likewise.
18683         (__x86_64_raw_shared_cache_size_half): Likewise.
18684         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18685         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18686         and __x86_64_raw_shared_cache_size_half.  Round
18687         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18688         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18689         to multiple of 256 bytes.
18690
18691 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18692
18693         [BZ #12167]
18694         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18695         of inacessible symlinks.  Verify result of symlink before returning it.
18696         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18697         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18698
18699 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18700
18701         * math/math.h (isinf): Fix typo in comment.
18702
18703 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18704
18705         * po/da.po: Update from translation team.
18706
18707 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18708
18709         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18710         is added to the list.
18711
18712 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18713             Ulrich Drepper  <drepper@gmail.com>
18714
18715         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18716         the global list here.  Move code to...
18717         (_dl_add_to_namespace_list): ...here.  New function.
18718         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18719         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18720         * elf/dl-load.c (lose): Don't remove the element from the list.
18721         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18722         (_dl_map_object): Likewise.
18723
18724 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18725
18726         [BZ #12159]
18727         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18728         into all bytes of SSE register.
18729         Patch by Richard Li <richardpku@gmail.com>.
18730
18731 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18732
18733         [BZ #12140]
18734         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18735         perturbing.
18736
18737 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18738
18739         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18740         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18741         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18742         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18744         submachine.
18745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18746
18747 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18748
18749         * include/dlfcn.h (__RTLD_SECURE): Define.
18750         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18751         mode & __RTLD_SECURE instead.
18752         (open_path): Rename preloaded parameter to secure.
18753         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18754         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18755         * elf/dl-deps.c (openaux): Likewise.
18756         * elf/rtld.c (struct map_args): Remove is_preloaded.
18757         (map_doit): Don't use it.
18758         (dl_main): Likewise.
18759         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18760         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18761
18762 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18763
18764         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18765         (sysd-rules-targets): Remove duplicates.
18766         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18767         rtld-%.$o dependency.
18768
18769 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18770
18771         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18772         _dl_map_object do it.
18773
18774 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18775
18776         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18777         fast fma builtins, define the macros in the C99 standard.
18778         (FP_FAST_FMAF): Likewise.
18779         (FP_FAST_FMAL): Likewise.
18780         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18781
18782         * bits/mathdef.h: Update copyright year.
18783         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18784
18785 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18786
18787         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18788         builtins, define the macros in the C99 standard.
18789         (FP_FAST_FMAF): Likewise.
18790         (FP_FAST_FMAL): Likewise.
18791         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18792         multiply/add.
18793         (FP_FAST_FMAF): Likewise.
18794
18795 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18796
18797         [BZ #3268]
18798         * math/libm-test.inc (fma_test): Some new testcases.
18799         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18800         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18801         y and infinite z.  Do multiplication by C already in long double.
18802         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18803         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18804         y and infinite z.  Do bitwise or of inexact bit into u.d.
18805         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18806         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18807         * sysdeps/i386/fpu/s_fma.S: Removed.
18808         * sysdeps/i386/fpu/s_fmal.S: Removed.
18809
18810 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18811
18812         [BZ #3268]
18813         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18814         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18815         computation is not scheduled after fetestexcept.  Fix value
18816         of minimum denormal long double.
18817
18818 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18819
18820         [BZ #3268]
18821         * math/libm-test.inc (fma_test): Add some more tests.
18822         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18823         correctly.
18824
18825 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18826
18827         * scripts/data/localplt-s390-linux-gnu.data: New file.
18828         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18829
18830 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18831
18832         [BZ #3268]
18833         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18834         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18835         instead of dbl-64.
18836         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18837         inlines.
18838         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18839         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18840         if one of x and y is very large and the other is subnormal.
18841         * sysdeps/s390/fpu/s_fmaf.c: New file.
18842         * sysdeps/s390/fpu/s_fma.c: New file.
18843         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18844         * sysdeps/powerpc/fpu/s_fma.S: New file.
18845         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18846         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18847         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18848
18849 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18850
18851         [BZ #3268]
18852         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18853         fma tests.
18854         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18855         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18856         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18857         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18858         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18859         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18860         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18861
18862 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18863
18864         [BZ #12078]
18865         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18866         * posix/bug-regex31.input: Add test case.
18867
18868 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18869
18870         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18871         * posix/bug-regex31.input: New file.
18872
18873         [BZ #12078]
18874         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18875         (parse_sub_exp): Fix last change, use postorder.
18876
18877         * posix/bug-regex31.c: New file.
18878         * posix/Makefile: Add rules to build and run bug-regex31.
18879
18880         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18881
18882         [BZ #12078]
18883         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18884
18885         [BZ #12108]
18886         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18887         to have entries in sys_siglist.
18888
18889         [BZ #12093]
18890         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18891         be NULL.
18892
18893 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18894
18895         [BZ #3268]
18896         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18897         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18898         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18899         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18900         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18901         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18902         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18903         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18904         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18905         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18906         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18907         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18908         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18909         * math/ftestexcept.c (fetestexcept): Likewise.
18910         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18911         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18912         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18913         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18914         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18915         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18916         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18917
18918 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18919
18920         [BZ #12107]
18921         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18922         newline.
18923
18924 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18925
18926         * string/bug-strstr1.c: New file.
18927         * string/Makefile: Add rules to build and run bug-strstr1.
18928
18929 2010-10-05  Eric Blake  <eblake@redhat.com>
18930
18931         [BZ #12092]
18932         * string/str-two-way.h (two_way_long_needle): Always clear memory
18933         when skipping input due to the shift table.
18934
18935 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18936
18937         [BZ #12005]
18938         * malloc/mcheck.c: Handle large requests.
18939
18940         [BZ #12077]
18941         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18942         for strncmp and strncasecmp.
18943         * string/stratcliff.c: Add tests for strcmp and strncmp.
18944         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18945
18946 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18947
18948         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18949         __set_fpscr.
18950
18951 2010-09-30  Andreas Jaeger  <aj@suse.de>
18952
18953         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18954         (CGROUP_SUPER_MAGIC): Define.
18955         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18956         Handle btrfs and cgroup file systems.
18957         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18958         Likewise.
18959
18960 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18961
18962         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18963         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18964
18965 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18966
18967         [BZ #12067]
18968         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18969         trying to locate the ELF header.
18970
18971 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18972
18973         [BZ #11611]
18974         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18975         Mask out sign-bit copies when constructing f_fsid.
18976
18977 2010-09-24  Petr Baudis <pasky@suse.cz>
18978
18979         * debug/stack_chk_fail_local.c: Add missing licence exception.
18980         * debug/warning-nop.c: Likewise.
18981
18982 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18983
18984         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18985         implementing getdents64 using getdents syscall, set d_type if
18986         __ASSUME_GETDENTS32_D_TYPE.
18987
18988 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18989
18990         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18991         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18992
18993 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18994
18995         [BZ #12037]
18996         * posix/unistd.h: Undo change of feature selection for ftruncate from
18997         2010-01-11.
18998
18999 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19000
19001         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19002         detection.
19003
19004 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19005
19006         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19007         fanotify_mark.
19008         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19009
19010 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19011
19012         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19013         variables after CHECK_SP call.
19014         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19015
19016 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19017             Ulrich Drepper  <drepper@redhat.com>
19018
19019         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19020         re-relocationg ld.so.
19021         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19022         _dl_init_paths call.
19023         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19024         here anymore.
19025
19026 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19027
19028         * resolv/res_init.c (__res_vinit): Count the default server we added.
19029
19030 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19031             Ulrich Drepper  <drepper@redhat.com>
19032
19033         [BZ #11968]
19034         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19035         (____longjmp_chk): Use %ebx for saving value across system call.
19036         Add unwind info.
19037
19038 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19039
19040         * manual/Makefile: Don't mix pattern rules with normal rules.
19041
19042 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19043
19044         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19045         operation.
19046         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19047         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19048         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19049         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19050         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19051         Likewise.
19052
19053 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19054
19055         [BZ #11979]
19056         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19057         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19058
19059 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19060
19061         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19062         * sysdeps/x86_64/addmul_1.S: Likewise.
19063         * sysdeps/x86_64/lshift.S: Likewise.
19064         * sysdeps/x86_64/mul_1.S: Likewise.
19065         * sysdeps/x86_64/rshift.S: Likewise.
19066         * sysdeps/x86_64/sub_n.S: Likewise.
19067         * sysdeps/x86_64/submul_1.S: Likewise.
19068
19069 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19070
19071         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19072         Define __sched_param instead of SCHED_* and sched_param when
19073         <bits/sched.h> is included with __need_schedparam defined.
19074         * bits/sched.h [__need_schedparam]
19075         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19076         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19077         (__defined_schedparam): Define to 1.
19078         (__sched_param): New structure, identical to sched_param.
19079         (__need_schedparam): Undefine.
19080
19081 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19082
19083         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19084         (epoll_create1): Declare.
19085
19086         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19087
19088 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19089
19090         [BZ #7066]
19091         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19092         shifting retval into place.
19093
19094 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19095
19096         * nis/rpcsvc/nis.h: Update copyright notice.
19097         * nis/rpcsvc/nis.x: Likewise.
19098         * nis/rpcsvc/nis_callback.h: Likewise.
19099         * nis/rpcsvc/nis_callback.x: Likewise.
19100         * nis/rpcsvc/nis_object.x: Likewise.
19101         * nis/rpcsvc/nis_tags.h: Likewise.
19102         * nis/rpcsvc/yp.h: Likewise.
19103         * nis/rpcsvc/yp.x: Likewise.
19104         * nis/rpcsvc/ypupd.h: Likewise.
19105         * nis/yp_xdr.c: Likewise.
19106         * nis/ypupdate_xdr.c: Likewise.
19107
19108         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19109         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19110         (pmap_getport): Use __libc_rpc_getport.
19111         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19112         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19113         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19114
19115 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19116
19117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19118         fanotify_mark.
19119
19120 2010-08-27  Roland McGrath  <roland@redhat.com>
19121
19122         * sysdeps/i386/i686/multiarch/Makefile
19123         (CFLAGS-varshift.c): New variable.
19124
19125 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19126
19127         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19128         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19129
19130         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19131
19132         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19133
19134 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19135
19136         * sysdeps/x86_64/strlen.S: Unroll the loop.
19137         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19138         strlen-sse2 strlen-sse2-bsf.
19139         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19140         __strlen_no_bsf if bit_Slow_BSF is set.
19141         (__strlen_sse42): Removed.
19142         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19143         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19144
19145 2010-08-25  Roland McGrath  <roland@redhat.com>
19146
19147         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19148         * sysdeps/x86_64/multiarch/varshift.c: New file.
19149         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19150         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19151         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19152         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19153
19154 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19155
19156         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19157         strlen-sse2 strlen-sse2-bsf.
19158         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19159         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19160         (__strlen_sse2): Removed.
19161         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19162         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19163         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19164         bit_Slow_BSF for Atom.
19165         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19166         (index_Slow_BSF): Define.
19167         (HAS_SLOW_BSF): Define.
19168
19169 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19170
19171         [BZ #10851]
19172         * resolv/res_init.c (__res_vinit): When no server address at all
19173         is given default to loopback.
19174
19175 2010-08-24  Roland McGrath  <roland@redhat.com>
19176
19177         * configure.in: Remove config-name.h generation.
19178         * configure: Regenerated.
19179         * config-name.in: File removed.
19180         * scripts/config-uname.sh: New file.
19181         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19182         ($(objdir)config-name.h): New target.
19183
19184         * sunrpc/rpc_parse.h: Avoid nested comment.
19185
19186 2010-08-24  Richard Henderson  <rth@redhat.com>
19187             Ulrich Drepper  <drepper@redhat.com>
19188             H.J. Lu  <hongjiu.lu@intel.com>
19189
19190         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19191         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19192         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19193         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19194         _mm_alignr_epi8 with _mm_loadu_si128.
19195         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19196         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19197         (__m128i_shift_right): Removed.
19198         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19199         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19200         * sysdeps/x86_64/multiarch/varshift.h: New file.
19201         * sysdeps/x86_64/multiarch/varshift.S: New file.
19202
19203 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19204
19205         * configure.in: Move assembler checks to before sysdep dir checking.
19206
19207 2010-08-20  Petr Baudis  <pasky@suse.cz>
19208
19209         * LICENSES: Sync the sunrpc license.
19210
19211 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19212
19213         * sunrpc/auth_des.c: Update copyright notice once again.
19214         * sunrpc/auth_none.c: Likewise.
19215         * sunrpc/auth_unix.c: Likewise.
19216         * sunrpc/authdes_prot.c: Likewise.
19217         * sunrpc/authuxprot.c: Likewise.
19218         * sunrpc/bindrsvprt.c: Likewise.
19219         * sunrpc/clnt_gen.c: Likewise.
19220         * sunrpc/clnt_perr.c: Likewise.
19221         * sunrpc/clnt_raw.c: Likewise.
19222         * sunrpc/clnt_simp.c: Likewise.
19223         * sunrpc/clnt_tcp.c: Likewise.
19224         * sunrpc/clnt_udp.c: Likewise.
19225         * sunrpc/clnt_unix.c: Likewise.
19226         * sunrpc/des_crypt.c: Likewise.
19227         * sunrpc/des_soft.c: Likewise.
19228         * sunrpc/get_myaddr.c: Likewise.
19229         * sunrpc/getrpcport.c: Likewise.
19230         * sunrpc/key_call.c: Likewise.
19231         * sunrpc/key_prot.c: Likewise.
19232         * sunrpc/openchild.c: Likewise.
19233         * sunrpc/pm_getmaps.c: Likewise.
19234         * sunrpc/pm_getport.c: Likewise.
19235         * sunrpc/pmap_clnt.c: Likewise.
19236         * sunrpc/pmap_prot.c: Likewise.
19237         * sunrpc/pmap_prot2.c: Likewise.
19238         * sunrpc/pmap_rmt.c: Likewise.
19239         * sunrpc/rpc/auth.h: Likewise.
19240         * sunrpc/rpc/auth_unix.h: Likewise.
19241         * sunrpc/rpc/clnt.h: Likewise.
19242         * sunrpc/rpc/des_crypt.h: Likewise.
19243         * sunrpc/rpc/key_prot.h: Likewise.
19244         * sunrpc/rpc/netdb.h: Likewise.
19245         * sunrpc/rpc/pmap_clnt.h: Likewise.
19246         * sunrpc/rpc/pmap_prot.h: Likewise.
19247         * sunrpc/rpc/pmap_rmt.h: Likewise.
19248         * sunrpc/rpc/rpc.h: Likewise.
19249         * sunrpc/rpc/rpc_des.h: Likewise.
19250         * sunrpc/rpc/rpc_msg.h: Likewise.
19251         * sunrpc/rpc/svc.h: Likewise.
19252         * sunrpc/rpc/svc_auth.h: Likewise.
19253         * sunrpc/rpc/types.h: Likewise.
19254         * sunrpc/rpc/xdr.h: Likewise.
19255         * sunrpc/rpc_clntout.c: Likewise.
19256         * sunrpc/rpc_cmsg.c: Likewise.
19257         * sunrpc/rpc_common.c: Likewise.
19258         * sunrpc/rpc_cout.c: Likewise.
19259         * sunrpc/rpc_dtable.c: Likewise.
19260         * sunrpc/rpc_hout.c: Likewise.
19261         * sunrpc/rpc_main.c: Likewise.
19262         * sunrpc/rpc_parse.c: Likewise.
19263         * sunrpc/rpc_parse.h: Likewise.
19264         * sunrpc/rpc_prot.c: Likewise.
19265         * sunrpc/rpc_sample.c: Likewise.
19266         * sunrpc/rpc_scan.c: Likewise.
19267         * sunrpc/rpc_scan.h: Likewise.
19268         * sunrpc/rpc_svcout.c: Likewise.
19269         * sunrpc/rpc_tblout.c: Likewise.
19270         * sunrpc/rpc_util.c: Likewise.
19271         * sunrpc/rpc_util.h: Likewise.
19272         * sunrpc/rpcinfo.c: Likewise.
19273         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19274         * sunrpc/rpcsvc/key_prot.x: Likewise.
19275         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19276         * sunrpc/rpcsvc/mount.x: Likewise.
19277         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19278         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19279         * sunrpc/rpcsvc/rex.x: Likewise.
19280         * sunrpc/rpcsvc/rstat.x: Likewise.
19281         * sunrpc/rpcsvc/rusers.x: Likewise.
19282         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19283         * sunrpc/rpcsvc/spray.x: Likewise.
19284         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19285         * sunrpc/rtime.c: Likewise.
19286         * sunrpc/svc.c: Likewise.
19287         * sunrpc/svc_auth.c: Likewise.
19288         * sunrpc/svc_authux.c: Likewise.
19289         * sunrpc/svc_raw.c: Likewise.
19290         * sunrpc/svc_run.c: Likewise.
19291         * sunrpc/svc_simple.c: Likewise.
19292         * sunrpc/svc_tcp.c: Likewise.
19293         * sunrpc/svc_udp.c: Likewise.
19294         * sunrpc/svc_unix.c: Likewise.
19295         * sunrpc/svcauth_des.c: Likewise.
19296         * sunrpc/xcrypt.c: Likewise.
19297         * sunrpc/xdr.c: Likewise.
19298         * sunrpc/xdr_array.c: Likewise.
19299         * sunrpc/xdr_float.c: Likewise.
19300         * sunrpc/xdr_mem.c: Likewise.
19301         * sunrpc/xdr_rec.c: Likewise.
19302         * sunrpc/xdr_ref.c: Likewise.
19303         * sunrpc/xdr_sizeof.c: Likewise.
19304         * sunrpc/xdr_stdio.c: Likewise.
19305
19306         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19307         handling.
19308
19309 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19310
19311         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19312
19313 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19314
19315         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19316         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19317         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19318         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19319         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19320         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19321         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19322         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19323         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19324         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19325         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19326         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19327         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19328         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19329
19330 2010-07-26  Anton Blanchard  <anton@samba.org>
19331
19332         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19333         * malloc/arena.c (heap_trim): Likewise.
19334
19335 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19336
19337         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19338         here.  Not...
19339         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19340         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19341
19342 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19343
19344         * sysdeps/i386/elf/Makefile: New file.
19345
19346 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19347
19348         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19349         from fanotify_init.
19350         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19351         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19352
19353 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19354
19355         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19356         of strncasecmp_l.
19357         * sysdeps/multiarch/strcmp.S: Likewise.
19358
19359 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19360
19361         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19362         strncase_l-nonascii.
19363         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19364         Add strncase_l-ssse3.
19365         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19366         * sysdeps/x86_64/strcmp.S: Likewise.
19367         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19368         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19369         * sysdeps/x86_64/strncase.S: New file.
19370         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19371         * sysdeps/x86_64/strncase_l.S: New file.
19372         * string/Makefile (strop-tests): Add strncasecmp.
19373         * string/test-strncasecmp.c: New file.
19374
19375         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19376         warning.
19377
19378         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19379         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19380
19381 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19382
19383         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19384
19385 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19386
19387         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19388         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19389         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19390
19391 2010-05-01  Alan Modra  <amodra@gmail.com>
19392
19393         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19394         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19395         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19396         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19397         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19398         tidying.  Don't tail-call __sigjmp_save for static lib.
19399         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19400         save location.
19401         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19402         (CALL_MCOUNT): Add eh info, and nop after bl.
19403         (TAIL_CALL_SYSCALL_ERROR): New macro.
19404         (PSEUDO_RET): Use it.
19405         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19406         Correct save location of integer regs and cr.
19407         (_dl_profile_resolve): Correct cr save location.  Delete nops
19408         after bl when SHARED.  Reduce cfi size a little by better
19409         placement of cfi directives.
19410         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19411         make a stack frame.  Instead use parm save area as a temp.
19412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19413         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19415         Don't make a stack frame for parent, use parm save area.
19416         Increase child stack frame to 112 bytes.  Don't save unused reg,
19417         and adjust reg usage.  Set up cfi on error recovery and
19418         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19420         (__makecontext): Add dummy nop after jump to exit.
19421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19422         Use correct parm save area and cr save, reduce stack frame.
19423         Correct cfi for possible PSEUDO_RET frame setup.
19424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19425         Branch to local label emitted by PSEUDO_RET rather than
19426         __syscall_error.
19427
19428 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19429
19430         [BZ #11904]
19431         * locale/programs/locale.c (print_assignment): New function.
19432         (show_locale_vars): Use it.
19433
19434 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19435
19436         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19437         field.
19438         (struct statfs64): Likewise.
19439         (_STATFS_F_FLAGS): Define.
19440         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19441         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19442         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19443         (ST_VALID): Define locally.
19444         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19445         __statvfs_getflags, use the provided value.
19446         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19447         __ASSUME_STATFS_F_FLAGS.
19448
19449         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19450
19451         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19452         Add sys/fanotify.h.
19453         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19454         fanotify_mask for GLIBC_2.13.
19455         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19456         fanotify_init and fanotify_mark.
19457         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19458         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19459
19460         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19461         Add prlimit.
19462         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19463         prlimit64 for GLIBC_2.13.
19464         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19465         prlimit64.
19466         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19467         syscall.
19468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19469         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19470         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19471         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19472         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19473         add prlimit alias.
19474         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19475
19476         [BZ #11903]
19477         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19478         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19479
19480         * nss/Makefile: Add rules to build and run tst-nss-test1.
19481         * shlib-versions: Add entry for libnss_test1.
19482         * nss/nss_test1.c: New file.
19483         * nss/tst-nss-test1.c: New file.
19484
19485         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19486         (__nss_configure_lookup): Set appropriate entry in
19487         __nss_configure_lookup to true.
19488         * nss/nsswitch.h: Define enum with indeces of databases in
19489         databases and __nss_database_custom arrays.  Declare
19490         __nss_database_custom.
19491         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19492         to avoid using nscd when custom rules are installed.
19493         * nss/getXXbyYY_r.c: Likewise.
19494         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19495
19496         * nss/nss_files/files-parse.c: Whitespace fixes.
19497
19498 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19499
19500         [BZ #11883]
19501         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19502         * posix/fnmatch_loop.c: Likewise.
19503
19504 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19505
19506         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19507         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19508         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19509         * Versions.def [GLIBC_2.13]: Add.
19510
19511 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19512
19513         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19514         Also fail if tpwd after pwuid call is NULL.
19515
19516 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19517
19518         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19519         when converting to ms.
19520
19521 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19522
19523         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19524         EOPNOTSUPP errors with ENOTTY.
19525         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19526         EOPNOTSUPP errors with ENOTTY.
19527
19528 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19529
19530         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19531         Add strcasecmp_l-ssse3.
19532         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19533         strcasecmp.
19534         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19535         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19536         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19537
19538 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19539
19540         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19541
19542         * string/Makefile (strop-tests): Add strcasecmp.
19543         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19544         strcasecmp_l-nonascii.
19545         (gen-as-const-headers): Add locale-defines.sym.
19546         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19547         * sysdeps/x86_64/strcasecmp.S: New file.
19548         * sysdeps/x86_64/strcasecmp_l.S: New file.
19549         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19550         * sysdeps/x86_64/locale-defines.sym: New file.
19551         * string/test-strcasecmp.c: New file.
19552
19553         * string/test-strcasestr.c: Test both ends of the range of characters.
19554         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19555
19556 2010-07-29  Roland McGrath  <roland@redhat.com>
19557
19558         [BZ #11856]
19559         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19560
19561 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19562
19563         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19564         for ld.so.
19565
19566 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19567
19568         * manual/memory.texi (Malloc Tunable Parameters): Document
19569         M_PERTURB.
19570
19571 2010-07-26  Roland McGrath  <roland@redhat.com>
19572
19573         [BZ #11840]
19574         * configure.in (-fgnu89-inline check): Set and substitute
19575         gnu89_inline, not libc_cv_gnu89_inline.
19576         * configure: Regenerated.
19577         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19578
19579 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19580
19581         * string/test-strnlen.c: New file.
19582         * string/Makefile (strop-tests): Add strnlen.
19583         * string/tester.c (test_strnlen): Add a few more test cases.
19584         * string/tst-strlen.c: Better error reporting.
19585
19586         * sysdeps/x86_64/strnlen.S: New file.
19587
19588 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19589
19590         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19591         lower-latency instructions.
19592
19593 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19594
19595         * string/test-strcasestr.c: New file.
19596         * string/test-strstr.c: New file.
19597         * string/Makefile (strop-tests): Add strstr and strcasestr.
19598         * string/str-two-way.h: Don't undefine MAX.
19599         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19600
19601 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19602
19603         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19604         strcasestr-nonascii.
19605         (CFLAGS-strcasestr-nonascii.c): Define.
19606         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19607         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19608         Remove unused attribute.
19609
19610 2010-07-20  Roland McGrath  <roland@redhat.com>
19611
19612         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19613         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19614         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19615         like LD_HWCAP_MASK can disable hwcaps.
19616
19617 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19618
19619         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19620
19621 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19622
19623         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19624         call in strcasestr.
19625         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19626         __strcasestr_sse42_nonascii.
19627         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19628         strcasestr-nonascii.c.
19629         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19630
19631 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19632
19633         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19634         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19635         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19636         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19637
19638 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19639
19640         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19641         fcntl.
19642
19643 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19644
19645         [BZ #11577]
19646         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19647         dl_signal_cerror.
19648
19649 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19650
19651         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19652         _PC_PIPE_BUF using F_GETPIPE_SZ.
19653
19654 2010-07-05  Roland McGrath  <roland@redhat.com>
19655
19656         * manual/arith.texi (Rounding Functions): Fix rint description
19657         implicit in round description.
19658
19659 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19660
19661         * elf/Makefile: Fix linking for a few tests to make recent linker
19662         happy.
19663
19664 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19665
19666         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19667         $(common-objpfx)libc_nonshared.a.
19668
19669 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19670
19671         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19672         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19673         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19674         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19675         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19676         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19677         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19678         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19693         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19694         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19695         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19696         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19697         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19698         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19699         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19700         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19701         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19702         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19703         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19704         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19707         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19719
19720 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19721
19722         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19723         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19724         * string/memmove.c (memmove): Renamed to ...
19725         (MEMMOVE): ...this.  Default to memmove.
19726         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19727         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19728         (END_CHK): Define.
19729         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19730         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19731         mempcpy-ssse3-back memmove-ssse3-back.
19732         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19733         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19734         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19735         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19736         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19737         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19738         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19739         * sysdeps/x86_64/multiarch/memmove.c: New file.
19740         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19741         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19742         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19743         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19744         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19745         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19746         Define.
19747         (index_Fast_Copy_Backward): Define.
19748         (HAS_ARCH_FEATURE): Define.
19749         (HAS_FAST_REP_STRING): Define.
19750         (HAS_FAST_COPY_BACKWARD): Define.
19751
19752 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19753
19754         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19755         Restore proper fallback handling.
19756
19757 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19758
19759         [BZ #11701]
19760         * posix/group_member.c (__group_member): Correct checking loop.
19761
19762         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19763         OOM in getpwuid_r correctly.  Return error number when the caller
19764         should return, otherwise -1.
19765         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19766         call returning > 0 value.
19767         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19768
19769 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19770
19771         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19772         libc_nonshared.a from targets in modules-names.
19773
19774 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19775
19776         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19777         requires it.
19778
19779 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19780
19781         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19782         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19783         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19784         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19785
19786 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19787
19788         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19789
19790 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19791
19792         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19793         and F_GETPIPE_SZ.
19794         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19795         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19796         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19797         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19798         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19799         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19800
19801 2010-06-14  Roland McGrath  <roland@redhat.com>
19802
19803         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19804
19805 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19806
19807         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19808         __REDIRECT followed by __THROW.
19809         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19810         * posix/getopt.h (getopt): Likewise.
19811
19812 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19813
19814         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19815         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19816         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19817         in AT_FLAGS.
19818         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19819         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19820
19821 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19822
19823         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19824
19825 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19826
19827         [BZ #11640]
19828         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19829         Properly check family and model.
19830
19831 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19832
19833         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19834
19835 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19836
19837         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19838
19839 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19840
19841         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19842         symbol reference.
19843
19844 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19845
19846         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19847         symbol reference.
19848
19849 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19850
19851         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19852         and internal_recvmmsg.
19853         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19854         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19855         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19856         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19857
19858         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19859         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19860         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19861
19862 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19863
19864         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19865
19866 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19867
19868         POWER7 optimizations.
19869         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19870         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19871
19872 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19873
19874         * version.h: Update for 2.13 development version.
19875
19876 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19877
19878         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19879         exceptions.  Return 0.
19880
19881 2010-05-07  Roland McGrath  <roland@redhat.com>
19882
19883         * elf/ldconfig.c (main): Add a const.
19884
19885 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19886
19887         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19888         (args_options): Add no-idn option.
19889         (ahosts_keys_int): Add idn_flags to ai_flags.
19890         (parse_option): Handle 'i' option to clear idn_flags.
19891
19892         * malloc/malloc.c (_int_free): Possible race in the most recently
19893         added check.  Only act on the data if no current modification
19894         happened.
19895
19896 See ChangeLog.17 for earlier changes.