Update config.guess and config.sub.
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2
3         * scripts/config.guess: Update from config.git.
4         * scripts/config.sub: Likewise.
5
6 2012-10-04  Roland McGrath  <roland@hack.frob.com>
7
8         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
9         * misc/madvise.c (madvise): Renamed to __madvise.
10         Make madvise a weak alias.
11         * include/sys/mman.h: Declare __madvise.
12         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
13         * sysdeps/unix/syscalls.list
14         (madvise): Make __madvise the strong name, and madvise a weak alias.
15         * sysdeps/unix/sysv/linux/syscalls.list
16         (madvise, mmap): Remove redundant entries.
17         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
18         * malloc/malloc.c (mtrim): Likewise.
19         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
20
21 2012-10-03  Roland McGrath  <roland@hack.frob.com>
22
23         * sysdeps/mach/hurd/dl-cache.c: File removed.
24         * config.h.in (USE_LDCONFIG): New #undef.
25         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
26         * configure: Regenerated.
27         * elf/Makefile (dl-routines): Add dl-cache only under
28         [$(use-ldconfig) = yes].
29         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
30         cache on [USE_LDCONFIG].
31         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
32         [USE_LDCONFIG].
33         * elf/rtld.c (dl_main): Likewise.
34
35 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
36
37         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
38         _SC_LEVEL4_CACHE_LINESIZE.
39
40 2012-10-03  Roland McGrath  <roland@hack.frob.com>
41
42         * sysdeps/unix/bsd/confstr.h: File removed.
43
44 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
45
46         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
47         sys/sdt-config.h.
48
49 2012-10-02  Roland McGrath  <roland@hack.frob.com>
50
51         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
52         Make 'mapoff' field ElfW(Off) rather than off_t.
53
54 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
55
56         * nscd/Makefile: Remove nscd-cflags and all its users.
57         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
58         (CFLAGS-nonlib): Add compiler flags for nscd modules.
59
60         [BZ #10631]
61         * malloc.c (malloc_printerr): Clarify error message.
62
63 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
64
65         [BZ #14648]
66         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
67         Set bit_FMA_Usable if FMA is supported.
68         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
69         macro.
70         (bit_FMA4_Usable): Updated.
71         (index_FMA_Usable): New macro.
72         (CPUID_FMA): Likewise
73         (HAS_FMA): Defined with bit_FMA_Usable.
74
75 2012-10-01  Roland McGrath  <roland@hack.frob.com>
76
77         * bits/types.h (__swblk_t): Type removed.
78         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
79         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
80         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
81         (__SWBLK_T_TYPE): Likewise.
82         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
83         (__SWBLK_T_TYPE): Likewise.
84         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
85         (__SWBLK_T_TYPE): Likewise.
86         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
87         (__SWBLK_T_TYPE): Likewise.
88
89 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
90             Honza Horak <hhorak@redhat.com>
91
92         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
93         (xdr_mapname): Use YPMAXMAP as maxsize.
94         (xdr_peername): Use YPMAXPEER as maxsize.
95         (xdr_keydat): Use YPAXRECORD as maxsize.
96         (xdr_valdat): Use YPMAXRECORD as maxsize.
97
98 2012-10-01  Roland McGrath  <roland@hack.frob.com>
99
100         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
101
102         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
103         * csu/init-first.c: ... here.
104         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
105         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
106         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
107         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
108         * sysdeps/i386/init-first.c: File removed.
109         * sysdeps/sh/init-first.c: File removed.
110
111 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
112
113         [BZ #14645]
114         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
115         if x * y might underflow to zero and z is zero.
116         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
117         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
118         * math/libm-test.inc (min_subnorm_value): New variable.
119         (fma_test): Add more tests.
120         (fma_test_towardzero): Likewise.
121         (fma_test_downward): Likewise
122         (fma_test_upward): Likewise.
123         (initialize): Set min_subnorm_value.
124
125 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
126
127         [BZ #14638]
128         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
129         0 + 0.
130         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
131         mode for addition resulting in exact zero.
132         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
133         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
134         exact 0 + 0.
135         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
136         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
137         * math/libm-test.inc (fma_test): Add more tests.
138         (fma_test_towardzero): New function.
139         (fma_test_downward): Likewise.
140         (fma_test_upward): Likewise.
141         (main): Call the new functions.
142
143 2012-09-28  David S. Miller  <davem@davemloft.net>
144
145         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
146
147 2012-09-28  Roland McGrath  <roland@hack.frob.com>
148
149         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
150         instead of SIGALRM.
151
152         * sysdeps/gnu/_G_config.h: Moved to ...
153         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
154         * sysdeps/mach/hurd/_G_config.h: Moved to ...
155         * sysdeps/generic/_G_config.h: ... here.
156
157         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
158
159         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
160
161         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
162         Conditionalize target on [libnss_test1.so-version].
163
164         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
165
166         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
167         (elfobjdir): Move out of conditionals.
168
169         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
170         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
171         (__nss_lookup_function): Conditionalize label remove_from_tree on
172         [!DO_STATIC_NSS || SHARED], matching its only use.
173
174 2012-09-28  David S. Miller  <davem@davemloft.net>
175
176         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
177         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
178         file.
179         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
180         sysdep_routines.
181         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
182         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
183         when HWCAP_SPARC_CRYPTO is present.
184
185 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
186
187         * io/tst-mknodat.c: Create a FIFO instead of a socket.
188
189 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
190
191         [BZ #6530]
192         * stdio-common/vfprintf.c (process_string_arg): Revert
193         2000-07-22 change.
194
195 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
196
197         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
198         for testcase.
199         * stdio-common/tst-sprintf.c: Include <locale.h>
200         (main): Test sprintf's handling of incomplete multibyte
201         characters.
202
203 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
204
205         * elf/dl-runtime.c (VERSYMIDX): Removed.
206         * elf/dl-version.c (VERSYMIDX): Likewise.
207         * elf/do-rel.h (VERSYMIDX): Likewise.
208         (VALIDX): Likewise.
209         * elf/dynamic-link.h (VERSYMIDX): Likewise.
210         * elf/rtld.c (VALIDX): Likewise.
211         (ADDRIDX): Likewise.
212         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
213         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
214         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
215         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
216         (VALIDX): Likewise.
217         (ADDRIDX): Likewise.
218
219 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
220
221         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
222
223 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
224
225         [BZ #11438]
226         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
227         to global scope.
228         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
229         addresses are in the same scope as 192.0.2/24.
230         * posix/gai.conf: Document new scope table defaults.
231
232 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
233
234         [BZ #5298]
235         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
236         for ftell.  Compute offsets from write pointers instead.
237         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
238
239 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
240
241         [BZ #14543]
242         * libio/Makefile (tests): New test case tst-fseek.
243         * libio/tst-fseek.c: New test case to verify that fseek/ftell
244         combination works in wide mode.
245         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
246         state when the external buffer state changes.
247
248 2012-09-27  David S. Miller  <davem@davemloft.net>
249
250         [BZ #14376]
251         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
252         pass reloc->r_addend in as the 'high' argument to
253         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
254
255         * sysdeps/sparc/fpu/libm-test-ulps: Update.
256
257 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
258
259         * rt/tst-aio2.c: Include <pthread.h>.
260         * rt/tst-aio3.c: Likewise.
261
262 2012-09-27  Steve Ellcey  <sellcey@mips.com>
263
264         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
265
266 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
267
268         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
269         contents on [SHARED].
270
271 2012-09-26  Marek Polacek  <polacek@redhat.com>
272
273         [BZ #14530]
274         [BZ #13741]
275         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
276         for C++ and GCC <4.3 as well as for non GCC compilers.
277
278 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
279
280         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
281
282 2012-09-25  Roland McGrath  <roland@hack.frob.com>
283
284         * Makefile.in (all, install): Declare with .PHONY.
285         Reported by Michael Hope <michael.hope@linaro.org>.
286
287 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
288
289         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
290         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
291         system header.
292         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
293         Likewise.
294         (sydep_routines): Add the new and the internal functions.
295         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
296         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
298         (GLIBC_2.17): Add the new function.
299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
300         (GLIBC_2.17): Likewise.
301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
302         (GLIBC_2.17): Likewise.
303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
304         (GLIBC_2.17): Likewise.
305         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
306
307 2012-09-25  Alan Modra  <amodra@gmail.com>
308
309         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
310         Add release barrier before setting once_control to say
311         initialisation is done.  Add hints on lwarx.  Use macro in
312         place of isync.
313         (clear_once_control): Add release barrier.
314
315 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
316
317         [BZ #13629]
318         * math/s_clog.c (__clog): Handle more values close to |z| = 1
319         specially.
320         * math/s_clog10.c (__clog10): Likewise.
321         * math/s_clog10f.c (__clog10f): Likewise.
322         * math/s_clog10l.c (__clog10l): Likewise.
323         * math/s_clogf.c (__clogf): Likewise.
324         * math/s_clogl.c (__clogl): Likewise.
325         * math/Makefile (libm-calls): Add x2y2m1.
326         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
327         (__x2y2m1): Likewise.
328         (__x2y2m1l): Likewise.
329         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
330         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
331         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
332         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
333         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
334         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
335         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
336         * sysdeps/i386/fpu/libm-test-ulps: Update.
337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
338
339         [BZ #14621]
340         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
341         int as type of variable DEPTH.
342         (glob): Use size_t instead of int as type of variables NEWCOUNT
343         and OLD_PATHC.
344
345 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
346
347         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
348         Add s_sincosf-sse2.
349         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
350         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
351         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
352         macros for using routine as __sincosf_ia32.
353         Use macro for function declaration and weak_alias.
354         * sysdeps/i386/fpu/libm-test-ulps: Update.
355
356         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
357         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
358
359         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
360         subnormal argument.
361         * math/s_cexpf.c (__cexpf): Likewise.
362         * math/s_csinf.c (__csinf): Likewise.
363         * math/s_csinhf.c (__csinhf): Likewise.
364         * math/s_ctanf.c (__ctanf): Likewise.
365         * math/s_ctanhf.c (__ctanhf): Likewise.
366         * math/s_ccosh.c (__ccoshf): Likewise.
367         * math/s_cexp.c (__cexpl): Likewise.
368         * math/s_csin.c (__csin): Likewise.
369         * math/s_csinh.c (__csinh): Likewise.
370         * math/s_ctan.c (__ctan): Likewise.
371         * math/s_ctanh.c (ctanh): Likewise.
372         * math/s_ccoshl.c (__ccoshl): Likewise.
373         * math/s_cexpl.c (__cexpl): Likewise.
374         * math/s_csinl.c (__csinl): Likewise.
375         * math/s_csinhl.c (__csinhl): Likewise.
376         * math/s_ctanl.c (__ctanl): Likewise.
377         * math/s_ctanhl.c (__ctanhl): Likewise.
378
379 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
380
381         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
382         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
383         (_IO_off_t): Define to __off_t, not _G_off_t.
384         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
385         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
386         (_IO_wint_t): Define to wint_t, not _G_wint_t.
387         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
388         type of __dummy and __dummy2 fields.
389         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
390         (_G_ssize_t): Likewise.
391         (_G_off_t): Likewise.
392         (_G_pid_t): Likewise.
393         (_G_uid_t): Likewise.
394         (_G_wchar_t): Likewise.
395         (_G_wint_t): Likewise.
396         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
397         (_G_ssize_t): Likewise.
398         (_G_off_t): Likewise.
399         (_G_pid_t): Likewise.
400         (_G_uid_t): Likewise.
401         (_G_wchar_t): Likewise.
402         (_G_wint_t): Likewise.
403         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
404         (_G_ssize_t): Likewise.
405         (_G_off_t): Likewise.
406         (_G_pid_t): Likewise.
407         (_G_uid_t): Likewise.
408         (_G_wchar_t): Likewise.
409         (_G_wint_t): Likewise.
410
411 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
412
413         * malloc/arena.c: Include malloc-sysdep.h.
414         (shrink_heap): Use check_may_shrink_heap to decide if madvise
415         is sufficient to shrink the heap or an unmap is needed.
416         * sysdeps/generic/malloc-sysdep.h: New file.  Define
417         new function check_may_shrink_heap.
418         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
419         new function check_may_shrink_heap.
420
421 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
422
423         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
424         comments.
425
426 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
427
428         * catgets/test-gencat.sh: Add "set -e".
429         * elf/tst-pathopt.sh: Likewise.
430         * grp/tst_fgetgrent.sh: Likewise.
431         * iconvdata/run-iconv-test.sh: Likewise.
432         * intl/tst-gettext.sh: Likewise.
433         * intl/tst-gettext2.sh: Likewise.
434         * intl/tst-gettext4.sh: Likewise.
435         * intl/tst-gettext6.sh: Likewise.
436         * intl/tst-translit.sh: Likewise.
437         * io/ftwtest-sh: Likewise.
438         * libio/test-freopen.sh: Likewise.
439         * malloc/tst-mtrace.sh: Likewise.
440         * posix/globtest.sh: Likewise.
441         * posix/tst-getconf.sh: Likewise.
442         * posix/wordexp-tst.sh: Likewise.
443         * stdio-common/tst-printf.sh: Likewise.
444         * stdio-common/tst-unbputc.sh: Likewise.
445         * stdlib/tst-fmtmsg.sh: Likewise.
446         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
447         * catgets/Makefile: Do not specify -e option when running
448         testsuite shell scripts.
449         * elf/Makefile: Likewise.
450         * grp/Makefile: Likewise.
451         * iconvdata/Makefile: Likewise.
452         * intl/Makefile: Likewise.
453         * io/Makefile: Likewise.
454         * libio/Makefile: Likewise.
455         * malloc/Makefile: Likewise.
456         * posix/Makefile: Likewise.
457         * stdio-common/Makefile: Likewise.
458         * stdlib/Makefile: Likewise.
459         * sysdeps/x86_64/Makefile: Likewise.
460
461         * io/ftwtest-sh: Add copyright header.
462         * posix/globtest.sh: Likewise.
463         * posix/tst-getconf.sh: Likewise.
464         * posix/wordexp-tst.sh: Likewise.
465         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
466
467 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
468
469         [BZ #13679]
470         * Makeconfig (+link): Defined as $(+link-static) if
471         $(build-shared) isn't yes.
472         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
473         isn't yes.
474         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
475
476         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
477
478         [BZ #14562]
479         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
480         new chunk size with MALLOC_ALIGN_MASK.
481
482 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
483
484         [BZ #5044]
485         * stdio-common/printf_fphex.c: Include <stdbool.h> and
486         <rounding-mode.h>.
487         (__printf_fphex): Determine rounding using get_rounding_mode and
488         round_away.
489         * stdio-common/tst-printf-round.c (struct hex_test): New
490         structure.
491         (hex_tests): New variable.
492         (test_hex_in_one_mode): New function.
493         (do_test): Also run tests for hex float output.
494
495 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
496
497         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
498         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
499         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
500         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
501         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
502         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
503         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
504         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
505
506 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
507
508         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
509         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
510         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
511         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
512
513 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
514
515         [BZ #14579]
516         * elf/rtld.c (dl_main): Limit the check for self loading to normal
517         mode only.
518         * elf/tst-rtld-load-self.sh: New test.
519         * elf/Makefile: Run it.
520
521 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
522
523         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
524         (tst-writev-ENV): Remove.
525         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
526
527 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
528
529         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
530
531 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
532
533         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
534         unconditional.
535         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
536         Likewise.
537         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
538         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
539         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
540         Likewise.
541
542 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
543
544         [BZ #14587]
545         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
546         * config.make.in (have-cpp-asm-debuginfo): Removed.
547         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
548         * configure: Regenerated.
549
550 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
551
552         [BZ #5044]
553         * stdio-common/printf_fp.c: Include <stdbool.h> and
554         <rounding-mode.h>.
555         (___printf_fp): Determine rounding using get_rounding_mode and
556         round_away.
557         * stdio-common/tst-printf-round.c: New file.
558         * stdio-common/Makefile (tests): Add tst-printf-round.
559         (link-libm): New variable.
560         ($(objpfx)tst-printf-round): Depend in $(link-libm).
561
562 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
563
564         [BZ #14576]
565         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
566         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
567         Likewise.
568         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
569         Likewise.
570
571 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
572
573         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
574         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
575         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
576         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
577
578 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
579
580         [BZ #14518]
581         * include/rounding-mode.h: New file.
582         * sysdeps/generic/get-rounding-mode.h: Likewise.
583         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
584         * stdlib/strtod_l.c: Include <rounding-mode.h>.
585         (MAX_VALUE): New macro.
586         (MIN_VALUE): Likewise.
587         (overflow_value): New function.
588         (underflow_value): Likewise.
589         (round_and_return): Use overflow_value and underflow_value to
590         determine return values in overflow and underflow cases.  Use
591         round_away to determine rounding depending on rounding mode.
592         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
593         determine return values in overflow and underflow cases.
594         * stdlib/tst-strtod-round.c: Include <fenv.h>.
595         (struct test_results): New structure.
596         (struct test): Use struct test_results to store expected results
597         for all rounding modes.
598         (TEST): Include expected results for all rounding modes.
599         (test_in_one_mode): New function.
600         (do_test): Use test_in_one_mode to compute and check results.
601         Check results for all rounding modes.
602         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
603         $(link-libm).
604
605 2012-12-09  Allan McRae  <allan@archlinux.org>
606
607         * sysdeps/i386/fpu/libm-test-ulps: Update
608
609 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
610
611         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
612         (_G_int32_t): Likewise.
613         (_G_uint16_t): Likewise.
614         (_G_uint32_t): Likewise.
615         (_G_HAVE_BOOL): Likewise.
616         (_G_HAVE_ATEXIT): Likewise.
617         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
618         (_G_HAVE_IO_FILE_OPEN): Likewise.
619         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
620         (_G_int32_t): Likewise.
621         (_G_uint16_t): Likewise.
622         (_G_uint32_t): Likewise.
623         (_G_HAVE_BOOL): Likewise.
624         (_G_HAVE_ATEXIT): Likewise.
625         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
626         (_G_HAVE_IO_FILE_OPEN): Likewise.
627         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
628         (_G_int32_t): Likewise.
629         (_G_uint16_t): Likewise.
630         (_G_uint32_t): Likewise.
631         (_G_HAVE_BOOL): Likewise.
632         (_G_HAVE_ATEXIT): Likewise.
633         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
634         (_G_HAVE_IO_FILE_OPEN): Likewise.
635
636 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
637
638         * csu/libc-tls.c: Update copyright years.
639
640 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
641
642         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
643         [!_G_USING_THUNKS]: Remove conditional code.
644         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
645         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
646
647         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
648         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
649         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
650         (_G_VTABLE_LABEL_PREFIX): Likewise.
651         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
652         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
653         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
654         (_G_VTABLE_LABEL_PREFIX): Likewise.
655         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
656         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
657         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
658         (_G_VTABLE_LABEL_PREFIX): Likewise.
659         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
660
661 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
662
663         * libio/Makefile: Include ../Makeconfig before tests.
664         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
665         only if $(build-shared) is yes.
666
667         * iconv/gconv_db.c: Update copyright years.
668
669 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
670
671         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
672         unwind info if defined PIC. Fix special cases description.
673         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
674
675         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
676         DP_HI_MASK entry.
677         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
678
679 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
680
681         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
682
683         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
684         is NULL.
685
686         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
687         (LDLIBS-tst-chk4): This.
688         (LDFLAGS-tst-chk5): Renamed to ...
689         (LDLIBS-tst-chk5): This.
690         (LDFLAGS-tst-chk6): Renamed to ...
691         (LDLIBS-tst-chk6): This.
692         (LDFLAGS-tst-lfschk4): Renamed to ...
693         (LDLIBS-tst-lfschk4): This.
694         (LDFLAGS-tst-lfschk5): Renamed to ...
695         (LDLIBS-tst-lfschk5): This.
696         (LDFLAGS-tst-lfschk6): Renamed to ...
697         (LDLIBS-tst-lfschk6): This.
698
699         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
700         on $(common-objpfx)soversions.mk.
701
702 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
703
704         [BZ #10014]
705         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
706         example host name.
707
708 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
709
710         * malloc/arena.c (arena_get_retry): New function that gets
711         another arena for the caller to try its request on.
712         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
713         current arena cannot fulfill the request.
714         (__libc_memalign): Likewise.
715         (__libc_memalign): Likewise.
716         (__libc_pvalloc): Likewise.
717         (__libc_calloc): Likewise.
718
719 2012-09-05  John Tobey  <john.tobey@gmail.com>
720
721         [BZ #13542]
722         * manual/arith.texi (Operations on Complex): Fix description
723         of carg branch cut.
724
725 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
726
727         [BZ #10014]
728         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
729         host name.
730
731         [BZ #10038]
732         * manual/memory.texi (Memory): Make order of menu items match
733         order of sections.
734
735 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
736
737         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
738         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
739         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
740
741 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
742
743         * csu/libc-tls.c (static_dtv): Renamed to ...
744         (_dl_static_dtv): This.  Make it global.
745         (_dl_initial_dtv): Removed.
746         (__libc_setup_tls): Updated.
747         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
748         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
749         DL_INITIAL_DTV.
750
751 2012-09-06  Petr Machata  <pmachata@redhat.com>
752
753         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
754         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
755         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
756         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
757
758 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
759
760         [BZ #14545]
761         * csu/libc-tls.c (_dl_initial_dtv): New variable.
762         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
763         freeing dtv[-1].
764
765 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
766
767         [BZ #14544]
768         * Makeconfig (link-static-before-libc): Replace $(+prector)
769         with $(+prectorT).
770         (link-static-after-libc): Replace $(+postctor) with
771         $(+postctorT).
772         (link-bounded): Replace $(+prector)/$(+postctor) with
773         $(+prectorT)/$(+postctorT).
774         (+prectorT): New macro.
775         (+postctorT): Likewise.
776
777 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
778
779         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
780         (round_str): Handle values above the maximum for IBM long double
781         as inexact.
782         * stdlib/tst-strtod-round.c (tests): Regenerated.
783
784 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
785
786         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
787         assembler flag.
788         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
789         zarch_nohighgprs around the zarch optimized routines.
790         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
791         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
792         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
793         for zarch.
794
795 2012-09-05  David S. Miller  <davem@davemloft.net>
796
797         * sysdeps/sparc/fpu/libm-test-ulps: Update.
798
799         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
800         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
801         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
802         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
803         entries.
804
805 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
806
807         * malloc/arena.c: Fold copyright years.
808         * malloc/mcheck.c, malloc/memusage.c: Likewise.
809
810 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
811
812         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
813
814 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
815
816         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
817
818 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
819
820         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
821         change internal state upon failure.
822
823 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
824
825         * malloc/mcheck.c (mcheck_check_all): Fix typo.
826         * malloc/memusage.c (mmap): Likewise.
827         (mmap64, mremap): Likewise.  Adjust name in comment.
828
829 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
830
831         * libio/fileops.c: Fix typos in comments.
832         * libio/oldfileops.c: Likewise.
833         * libio/wfileops.c: Likewise.
834
835 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
836
837         [BZ #1349]
838         * malloc/Makefile (tests): Add tst-malloc-usable test case.
839         (tst-malloc-usable-ENV): Set environment for test case.
840         * malloc/hooks.c (malloc_check_get_size): New function to get
841         requested size.
842         * malloc/malloc.c (musable): Use malloc_check_get_size.
843         * malloc/tst-malloc-usable.c: New test case.
844
845 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
846
847         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
848
849 2012-09-05  Allan McRae  <allan@archlinux.org>
850
851         [BZ #13966]
852         * configure.in (CXX_SYSINCLUDES): Use compiler output to
853         determine header location.
854         * configure: Regenerated.
855
856 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
857
858         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
859         float format.
860         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
861         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
862         format.
863         (test): Regenerate.
864
865 2012-09-04  David S. Miller  <davem@davemloft.net>
866
867         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
868         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
869         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
870
871 2012-09-04  Florian Weimer  <fweimer@redhat.com>
872
873         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
874         failures.
875
876         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
877
878 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
879
880         [BZ #9914]
881         * libio/iogetdelim.c: Include <limits.h>.
882         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
883         + len + 1 would overflow.
884
885 2012-09-03  Andreas Jaeger  <aj@suse.de>
886
887         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
888         * sysdeps/i386/fpu/libm-test-ulps: Update.
889
890 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
891
892         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
893         Add s_sinf-sse2, s_conf-sse2.
894
895         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
896         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
897         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
898         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
899
900         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
901         for using routine as __sinf_ia32.
902         Use macro for function declaration and weak_alias.
903         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
904         for using routine as __cosf_ia32.
905         Use macro for function declaration and weak_alias.
906
907         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
908         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
909
910         * sysdeps/x86_64/fpu/s_sinf.S: New file.
911         * sysdeps/x86_64/fpu/s_cosf.S: New file.
912         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
913
914         * math/libm-test.inc (cos_test): Add more test cases.
915         (sin_test): Likewise.
916         (sincos_test): Likewise.
917
918 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
919
920         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
921         (IFUNC_RESOLVE): Make pointers to the specialized implementations
922         hidden.
923         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
924
925 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
926
927         [BZ #14538]
928         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
929         first element of the GOT.
930         (elf_machine_load_address): Return the difference between
931         the runtime address of _DYNAMIC and elf_machine_dynamic ().
932
933 2012-09-01  Allan McRae  <allan@archlinux.org>
934
935         [BZ #13412]
936         * configure.in (AWK): Require gawk version 3.0 or later.
937         * configure: Regenerated.
938
939 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
940
941         * sysdeps/unix/sysv/linux/kernel-features.h
942         (__ASSUME_POSIX_CPU_TIMERS): Remove.
943         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
944         [__NR_clock_getres]: Make code unconditional.
945         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
946         (clock_getcpuclockid): Remove code left unreachable by removal of
947         conditionals.
948         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
949         code unconditional.
950         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
951         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
952         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
953         Make code unconditional.
954         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
955         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
956         * sysdeps/unix/sysv/linux/clock_settime.c
957         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
958         conditional code.
959         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
960         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
961
962 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
963
964         [BZ #14476]
965         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
966         scripts/test-installation.pl.
967
968         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
969         and $ld_so_version if it is set.
970
971 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
972
973         [BZ #14516]
974         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
975         failure if reading from procfs failed.
976         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
977
978 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
979
980         * sysdeps/unix/sysv/linux/kernel-features.h
981         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
982         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
983         Remove conditional code.
984         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
985         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
986         Remove conditional code.
987         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
988         * sysdeps/unix/sysv/linux/i386/fxstat.c
989         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
990         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
991         * sysdeps/unix/sysv/linux/i386/fxstatat.c
992         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
993         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
994         * sysdeps/unix/sysv/linux/i386/lxstat.c
995         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
996         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
997         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
998         Remove conditional code.
999         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1000         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1001         Remove conditional code.
1002         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1003         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1004         <kernel-features.h>.
1005         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1006         Remove.
1007         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1008         Remove conditional code.
1009         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1010         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1011         Remove conditional.
1012
1013 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1014
1015         [BZ #5400]
1016         * NEWS: Add fixed bug number.
1017
1018 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1019
1020         [BZ #14519]
1021         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1022         underflowing exponent in case of negative sign.
1023         * stdlib/tst-strtod-round-data: Add more tests.
1024         * stdlib/tst-strtod-round.c (tests): Regenerated.
1025
1026         [BZ #3479]
1027         * stdlib/strtod_l.c (NDIG): Remove.
1028         (HEXNDIG): Likewise.
1029         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1030         smallest representable value.
1031         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1032         lie within an exact representation of 1/2 ulp of the result.
1033         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1034         unconditionally.
1035         (TENS_P9_IDX): Define unconditionally.
1036         (TENS_P9_SIZE): Likewise.
1037         (TENS_P10_IDX): Likewise.
1038         (TENS_P10_SIZE): Likewise.
1039         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1040         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1041         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1042         entries for 10^2^13 and 10^2^14.
1043         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1044         (TENS_P13_IDX): Define.
1045         (TENS_P13_SIZE): Likewise.
1046         (TENS_P14_IDX): Likewise.
1047         (TENS_P14_SIZE): Likewise.
1048         (_fpioconst_pow10): Change array size to
1049         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1050         unconditional.
1051         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1052         1024]: Add entries for 10^2^13 and 10^2^14.
1053         [LAST_POW10 > _LAST_POW10]: Remove #error.
1054         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1055         (_fpioconst_pow10): Change array size to
1056         FPIOCONST_POW10_ARRAY_SIZE.
1057         * stdlib/gen-fpioconst.c: New file.
1058         * stdlib/gen-tst-strtod-round.c: Likewise.
1059         * stdlib/tst-strtod-round-data: Likewise.
1060         * stdlib/tst-strtod-round.c: Likewise.
1061         * stdlib/Makefile (tests): Add tst-strtod-round.
1062
1063         [BZ #14459]
1064         * stdlib/strtod_l.c: Include <stdint.h>.
1065         (NDEBUG): Do not define.
1066         (round_and_return): Change EXPONENT parameter to type intmax_t.
1067         Rearrange calculations to avoid internal overflow possibilities.
1068         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1069         Rearrange calculations to avoid internal overflow possibilities.
1070         Assert that number fits inside MPNSIZE limbs.
1071         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1072         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1073         calculations and add assertions to avoid internal overflow
1074         possibilities.  Add casts to avoid signed/unsigned operations.
1075         * stdlib/tst-strtod-overflow.c: New file.
1076         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1077
1078 2012-08-25  Marek Polacek  <polacek@redhat.com>
1079
1080         * time/time.h: Fix some typos in comments.
1081
1082 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1083
1084         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1085         * posix/tst-rfc3484-2.c: Likewise.
1086         * posix/tst-rfc3484-3.c: Likewise.
1087
1088 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1089
1090         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1091         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1092
1093 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1094
1095         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1096         #include of fxstatat64.c.
1097
1098 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1099
1100         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1101         * shadow/getspent_r.c: Likewise.
1102         * shadow/getspnam.c: Likewise.
1103         * shadow/getspnam_r.c: Likewise.
1104         * gshadow/getsgent.c: Likewise.
1105         * gshadow/getsgent_r.c: Likewise.
1106         * gshadow/getsgnam.c: Likewise.
1107         * gshadow/getsgnam_r.c: Likewise.
1108         * inet/getnetbyad.c: Likewise.
1109         * inet/getnetbyad_r.c: Likewise.
1110         * inet/getnetbynm.c: Likewise.
1111         * inet/getnetbynm_r.c: Likewise.
1112         * inet/getnetent.c: Likewise.
1113         * inet/getnetent_r.c: Likewise.
1114         * inet/getproto.c: Likewise.
1115         * inet/getproto_r.c: Likewise.
1116         * inet/getprtent.c: Likewise.
1117         * inet/getprtent_r.c: Likewise.
1118         * inet/getprtname.c: Likewise.
1119         * inet/getprtname_r.c: Likewise.
1120         * inet/getrpcbyname.c: Likewise.
1121         * inet/getrpcbyname_r.c: Likewise.
1122         * inet/getrpcbynumber.c: Likewise.
1123         * inet/getrpcbynumber_r.c: Likewise.
1124         * inet/getrpcent.c: Likewise.
1125         * inet/getrpcent_r.c: Likewise.
1126         * inet/getaliasent.c: Likewise.
1127         * inet/getaliasent_r.c: Likewise.
1128         * inet/getaliasname.c: Likewise.
1129         * inet/getaliasname_r.c: Likewise.
1130         * nscd/getgrgid_r.c: Likewise.
1131         * nscd/getgrnam_r.c: Likewise.
1132         * nscd/gethstbyad_r.c: Likewise.
1133         * nscd/gethstbynm3_r.c: Likewise.
1134         * nscd/getpwnam_r.c: Likewise.
1135         * nscd/getpwuid_r.c: Likewise.
1136         * nscd/getsrvbynm_r.c: Likewise.
1137         * nscd/getsrvbypt_r.c: Likewise.
1138         * nscd/gai.c: Likewise.
1139
1140         * configure.in (build_nscd): New substituted variable, set
1141         by --disable-build-nscd and defaults to $use_nscd.
1142         * configure: Regenerated.
1143         * config.make.in (build-nscd): New substituted variable.
1144         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1145         Change conditional to require [$(build-nscd) = yes] as well.
1146         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1147
1148         [BZ# 13696]
1149         * configure.in (use_nscd): New substituted variable, set by
1150         --disable-nscd.  If enabled, define USE_NSCD.
1151         * configure: Regenerated.
1152         * config.h.in: Add USE_NSCD.
1153         * config.make.in (use-nscd): New substituted variable.
1154         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1155         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1156         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1157         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1158         (CFLAGS-getgrnam_r.c): Likewise.
1159         (CFLAGS-initgroups.c): Likewise.
1160         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1161         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1162         Variables removed.
1163         * inet/getnetgrent_r.c
1164         (nscd_setnetgrent): New function, broken out of ...
1165         (setnetgrent): ... here.  Call it.
1166         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1167         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1168         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1169         * nscd/Makefile (routines, aux): Move definitions after include of
1170         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1171         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1172         Conditionalize on [USE_NSCD].
1173         (is_nscd, nscd_init_cb): Likewise.
1174         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1175         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1176         * nss/nss_db/db-init.c: Likewise.
1177         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1178         [USE_NSCD].
1179         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1180         (make_request): Use it.
1181         (cache_valid_p): New function.
1182         (__check_pf): Use it.
1183         * NEWS: Add item for --disable-nscd.
1184
1185 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1186
1187         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1188         to support sed >= 4.2.1-20-ga9bf076.
1189         * configure: Regenerated.
1190
1191 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1192
1193         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1194         Conditionalize whole body on [IREL].
1195
1196 2012-08-22  Jeff Law <law@redhat.com>
1197
1198         [BZ #14505]
1199         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1200         if the family is PF_UNSPEC.
1201
1202 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1203
1204         * Makerules (lib-version): Rename from V.
1205         (install-lib-nosubdir): Change V to lib-version.
1206
1207 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1208
1209         [BZ #14252]
1210         * powerpc32/power6/wcschr.c: New file.
1211         * powerpc32/power6/wcscpy.c: New file.
1212         * powerpc32/power6/wcsrchr.c: New file.
1213         * powerpc64/power6/wcschr.c: New file.
1214         * powerpc64/power6/wcscpy.c: New file.
1215         * powerpc64/power6/wcsrchr.c: New file.
1216
1217 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1218
1219         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1220         (two_way_short_needle): Use it.
1221         * string/strstr.c (AVAILABLE1_USES_J): Define.
1222         * string/strcasestr.c: Likewise.
1223
1224         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1225         array references.
1226         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1227
1228         [BZ #11607]
1229         * NEWS: Add an entry.
1230         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1231         define their defaults.
1232         (two_way_short_needle): Detect end-of-string on-the-fly.
1233         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1234         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1235         * string/bug-strcasestr1.c: New test.
1236         * string/Makefile: Run it.
1237
1238 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1239
1240         [BZ #11607]
1241         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1242         the first character.
1243
1244 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1245
1246         * csu/elf-init.c (__libc_csu_irel): Function removed.
1247         * csu/libc-start.c (apply_irel): New function.
1248         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1249
1250 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1251
1252         * sysdeps/unix/sysv/linux/kernel-features.h
1253         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1254         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1255         <kernel-features.h>.
1256         [__NR_fadvise64_64]: Make code unconditional.
1257         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1258         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1259         !__NR_fadvise64_64)]: Likewise.
1260         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1261         !__NR_fadvise64_64))]: Likewise.
1262         [__NR_fadvise64]: Make code unconditional.
1263         [!__NR_fadvise64]: Remove conditional code.
1264         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1265         <kernel-features.h>.
1266         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1267         unconditional.
1268         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1269         conditional code.
1270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1271         not include <kernel-features.h>.
1272         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1273         unconditional.
1274         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1275         conditional code.
1276         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1277         include <kernel-features.h>.
1278         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1279         unconditional.
1280         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1281         conditional code.
1282
1283 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1284
1285         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1286         slight instruction rearrangements per scrollpipe analysis.
1287         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1288
1289 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1290
1291         * manual/syslog.texi (syslog; vsyslog, closelog):
1292         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1293         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1294
1295         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1296         DSOCAPS to match condition on defining it.
1297
1298 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1299
1300         * sysdeps/unix/sysv/linux/kernel-features.h
1301         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1303         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1304         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1306         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1307         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1309         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1310         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1311
1312         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1313         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1314
1315         * sysdeps/unix/sysv/linux/kernel-features.h
1316         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1317         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1318         unconditional.
1319         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1320         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1321         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1322         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1323         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1324         Make code unconditional.
1325         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1326         (__mmap64) [!__NR_mmap2]: Likewise.
1327         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1328         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1329         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1330         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1331         [__NR_mmap2]: Make code unconditional.
1332         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1333         (__mmap64) [!__NR_mmap2]: Likewise.
1334
1335 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1336
1337         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1338
1339 2012-08-18  Andreas Jaeger  <aj@suse.de>
1340
1341         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1342
1343 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1344
1345         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1346         * include/unistd.h (__have_sock_cloexec): Likewise.
1347         (__have_pipe2): Likewise.
1348         (__have_dup3): Likewise.
1349
1350 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1351
1352         [BZ #9685]
1353         * include/unistd.h (__have_pipe2): Change define into an extern int.
1354         (__have_dup3): Likewise.
1355         * socket/have_sock_cloexec.c: Include fcntl.h.
1356         (__have_pipe2): New variable.
1357         (__have_dup3): Likewise.
1358
1359 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1360
1361         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1362
1363 2012-08-17  Marek Polacek  <polacek@redhat.com>
1364
1365         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1366         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1367
1368 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1369
1370         * configure.in: Add AC_SUBST for sysheaders.
1371         * configure: Regenerated.
1372         * config.make.in (sysheaders): New substituted variable.
1373
1374         * sysdeps/unix/mkfifo.c: Moved ...
1375         * sysdeps/posix/mkfifo.c: ... here.
1376         * sysdeps/unix/mkfifoat.c: Moved ...
1377         * sysdeps/posix/mkfifoat.c: ... here.
1378
1379         * sysdeps/unix/utime.c: Moved ...
1380         * sysdeps/posix/utime.c: ... here.
1381
1382         * sysdeps/unix/time.c: Moved ...
1383         * sysdeps/posix/time.c: ... here.
1384         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1385         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1386
1387         * sysdeps/unix/nice.c: Moved ...
1388         * sysdeps/posix/nice.c: ... here.
1389
1390         * sysdeps/unix/alarm.c: Moved ...
1391         * sysdeps/posix/alarm.c: ... here.
1392
1393         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1394
1395 2012-08-17  Jeff Law <law@redhat.com>
1396
1397         * intl/Makefile (codeset_mo): New variable.
1398         ($(codeset_mo)): New target.
1399         (tst-codeset.out): Depend on that.  Remove explicit rule.
1400         (tst-gettext3.out, tst-gettext5.out): Likewise.
1401         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1402         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1403         * intl/tst-codeset.sh: Remove.
1404         * intl/tst-gettext3.sh: Likewise.
1405         * intl/tst-gettext5.sh: Likewise.
1406
1407 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1408
1409         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1410         * sysdeps/unix/syscalls.list: ... here.
1411
1412         * sysdeps/posix/getaddrinfo.c
1413         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1414         (gaiconf_init, gaiconf_reload): Use them.
1415         [!_STATBUF_ST_NSEC]
1416         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1417         Define using time_t rather than struct timespec.
1418
1419         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1420         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1421         Macros removed.
1422         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1423         [!NO_THREADS].
1424         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1425         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1426         Likewise.
1427
1428         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1429         __libc_cleanup_push argument.
1430
1431         * bits/param.h: New file.
1432         * misc/sys/param.h: New file.
1433         * include/sys/param.h: New file.
1434         * misc/Makefile (headers): Add bits/param.h.
1435         * sysdeps/generic/sys/param.h: File removed.
1436         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1437         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1438         * sysdeps/mach/hurd/bits/param.h: New file.
1439         * sysdeps/mach/hurd/sys/param.h: New file.
1440
1441         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1442         last change.
1443
1444         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1445         [_IO_MTSAFE_IO].
1446         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1447         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1448         New macros.
1449
1450         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1451         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1452         rather than -D_IO_MTSAFE_IO conditionally.
1453         * stdio-common/Makefile (CPPFLAGS): Likewise.
1454         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1455         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1456         Use $(libio-mtsafe).
1457         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1458         of -D_IO_MTSAFE_IO.
1459         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1460         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1461         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1462         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1463         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1464         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1465         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1466         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1467         (CFLAGS-fread_u_chk.c): Likewise.
1468         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1469         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1470         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1471         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1472         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1473         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1474         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1475         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1476         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1477
1478         * libio/Makefile: Test [$(libc-reentrant) = yes]
1479         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1480
1481         * Makeconfig
1482         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1483         * sysdeps/pthread/configure: File removed.
1484         * sysdeps/pthread/Makeconfig: New file.
1485         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1486         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1487
1488 2012-08-16  Gary Benson  <gbenson@redhat.com>
1489
1490         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1491         unmapping the first object in a namespace.
1492
1493 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1494
1495         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1496         (__internal_setnetgrent): ... this.  Add internal_function to
1497         definition.  Add libc_hidden_def.
1498         (setnetgrent): Update caller.
1499         (internal_endnetgrent): Renamed to ...
1500         (__internal_endnetgrent): ... this.  Add internal_function to
1501         definition.  Add libc_hidden_def.
1502         (endnetgrent): Update caller.
1503         (internal_getnetgrent_r): Renamed to ...
1504         (__internal_getnetgrent_r): ... this.  Add internal_function to
1505         definition.  Add libc_hidden_def.
1506         (__getnetgrent_r): Update caller.
1507         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1508
1509 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1510
1511         * stdlib/longlong.h: Update from GCC.
1512
1513 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1514
1515         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1516         on _QL, which is set by umul_ppmm but never used.
1517         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1518         variables, which are set by GMP macros but never used.
1519         * stdio-common/_itowa.c (_itowa): Likewise.
1520         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1521         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1522
1523 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1524
1525         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1526         struct La_sh_regs is not constant.
1527         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1528         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1529         and struct La_sparc64_regs are not constant.
1530
1531 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1532
1533         * sysdeps/unix/sysv/linux/kernel-features.h
1534         (__ASSUME_POSIX_TIMERS): Remove.
1535         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1536         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1537         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1538         Make code unconditional.
1539         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1540         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1541         Make code unconditional.
1542         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1543         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1544         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1545         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1546         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1547         Make code unconditional.
1548         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1549         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1550         (__libc_missing_posix_timers): Remove.
1551
1552 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1553
1554         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1555         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1556
1557         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1558
1559         * elf/dl-sym.c: Include <stdlib.h>.
1560
1561         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1562         constants, which avoids warnings in 32-bit builds.
1563
1564         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1565         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1566
1567         * misc/lseek.c: File moved to ...
1568         * io/lseek.c: ... here.
1569
1570         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1571
1572         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1573         shifting LEN more than 31 bits at once.
1574
1575 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1576
1577         [BZ #14195]
1578         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1579         segmentation fault for a case of two empty input strings.
1580         * string/test-strncasecmp.c (check1): Renamed to...
1581         (bz12205): ...this.
1582         (bz14195): Add new testcase for two empty input strings and N > 0.
1583         (test_main): Call new testcase, adapt for renamed function.
1584
1585 2012-08-15  Andreas Jaeger  <aj@suse.de>
1586
1587         [BZ #14090]
1588         * crypt/md5test2.c: New test, based on test supplied by Serge
1589         Belyshev <belyshev@depni.sinp.msu.ru>.
1590         * crypt/Makefile (xtests): Add md5test-giant..
1591         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1592
1593 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1594
1595         [BZ #14090]
1596         * crypt/md5.c (md5_process_block): Don't assume the buffer
1597         length is less than 2**32.
1598         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1599         length is less than 2**64.
1600
1601 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1602
1603         * string/str-two-way.h: Include <sys/param.h>.
1604         (MAX): Macro removed.
1605
1606         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1607         Move #define and #undef of memmove to just before and after
1608         including <string.h>.
1609
1610         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1611         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1612         and after including <string.h>.  Move declarations of
1613         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1614         to before #include "string/memmove.c".
1615
1616         * include/dirent.h: Declare __getdirentries.
1617
1618         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1619         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1620
1621 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1622
1623         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1624         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1625         * sysdeps/i386/configure: Regenerated.
1626         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1627         STABS_CURRENT_FILE, and STABS_FUN.
1628         (END): Remove call to STABS_FUN_END.
1629         (STABS_CURRENT_FILE1): Delete.
1630         (STABS_CURRENT_FILE): Likewise.
1631         (STABS_FUN): Likewise.
1632         (STABS_FUN_END): Likewise.
1633         (STABS_FUN2): Likewise.
1634         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1635         * sysdeps/x86_64/configure: Regenerated.
1636
1637 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1638
1639         * elf/dl-open.c: Include <atomic.h>.
1640         * elf/dl-lookup.c: Likewise.
1641
1642 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1643
1644         * sysdeps/unix/sysv/linux/kernel-features.h
1645         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1646         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1647         unconditionally.
1648         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1649         unconditionally.
1650         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1651         condition on __ASSUME_CLONE_THREAD_FLAGS.
1652
1653 2012-08-14  Andreas Jaeger  <aj@suse.de>
1654
1655         * sysdeps/i386/fpu/libm-test-ulps: Update.
1656
1657 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1658
1659         * include/atomic.h (atomic_exchange_and_add): Split into ...
1660         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1661         New atomic macros.
1662
1663 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1664
1665         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1666
1667 2012-08-13  Jeff Law <law@redhat.com>
1668
1669         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1670         null byte in the output string.
1671
1672 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1673
1674         * sysdeps/unix/sysv/linux/kernel-features.h
1675         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1676         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1677         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1678         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1679         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1680         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1681         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1682
1683 2012-08-09  Jeff Law <law@redhat.com>
1684
1685         [BZ #13939]
1686         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1687         When avoid_arena is set, don't retry in the that arena.  Pick the
1688         next one, whatever it might be.
1689         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1690         (arena_lock): Pass in new parameter to arena_get2.
1691         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1692         arena_get2.
1693         (__libc_malloc): Unify retrying after main arena failure with
1694         __libc_memalign version.
1695         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1696
1697 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1698
1699         [BZ #14166]
1700         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1701         to __redirect_strstr.
1702         (__strstr_sse42): Use typeof __redirect_strstr.
1703         (__strstr_ia32): Likewise.
1704         (__libc_strstr): New prototype.
1705         (strstr): Renamed to ...
1706         (__libc_strstr): This.
1707         (strstr): New strong alias of __libc_strstr.
1708         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1709         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1710         __redirect_time.
1711         Include <time.h>.
1712         (__libc_time): New prototype.
1713         (time_ifunc): Replace time with __libc_time.
1714         (time): New strong alias and hidden definition of __libc_time.
1715         (__GI_time): Remove strong alias.
1716         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1717         Include <stddef.h>.
1718         (memmove): Redefined to __redirect_memmove.
1719         (__memmove_sse2): Use typeof __redirect_memmove.
1720         (__memmove_ssse3): Likewise.
1721         (__memmove_ssse3_back): Likewise.
1722         (__libc_memmove): New prototype.
1723         (memmove): Renamed to ...
1724         (__libc_memmove): This.
1725         (memmove): New strong alias of __libc_memmove.
1726
1727 2012-08-08  Mark Salter  <msalter@redhat.com>
1728
1729         * elf/elf.h
1730         (R_MN10300_TLS_GD): Define.
1731         (R_MN10300_TLS_LD): Likewise.
1732         (R_MN10300_TLS_LDO): Likewise.
1733         (R_MN10300_TLS_GOTIE): Likewise.
1734         (R_MN10300_TLS_IE): Likewise.
1735         (R_MN10300_TLS_LE): Likewise.
1736         (R_MN10300_TLS_DTPMOD): Likewise.
1737         (R_MN10300_TLS_DTPOFF): Likewise.
1738         (R_MN10300_TLS_TPOFF): Likewise.
1739         (R_MN10300_SYM_DIFF): Likewise.
1740         (R_MN10300_ALIGN): Likewise.
1741         (R_MN10300_NUM): Update.
1742
1743 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1744
1745         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1746         Remove.
1747
1748 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1749
1750         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1751
1752         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1753         sysdeps/unix -> sysdeps/posix move.
1754         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1755
1756 2012-08-07      Allan McRae     <allan@archlinux.org>
1757
1758         [BZ #14303]
1759         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1760         (SUNOS_CPP): Likewise.
1761         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1762         not found.
1763         (open_input): Call CPP using execvp.
1764
1765 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1766
1767         * sysdeps/unix/sysv/linux/kernel-features.h
1768         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1769         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1770         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1771         (__ASSUME_WAITID_SYSCALL): Likewise.
1772         * sysdeps/unix/sysv/linux/dl-execstack.c
1773         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1774         code unconditional.
1775         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1776         conditional code.
1777         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1778         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1779         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1780         code.
1781         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1782         unconditional.
1783         [__ASSUME_WAITID_SYSCALL]: Likewise.
1784         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1785
1786 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1787
1788         * sysdeps/unix/closedir.c: Renamed to ...
1789         * sysdeps/posix/closedir.c: ... here.
1790         * sysdeps/unix/dirfd.c: Renamed to ...
1791         * sysdeps/posix/dirfd.c: ... here.
1792         * sysdeps/unix/dirstream.h: Renamed to ...
1793         * sysdeps/posix/dirstream.h: ... here.
1794         * sysdeps/unix/fdopendir.c: Renamed to ...
1795         * sysdeps/posix/fdopendir.c: ... here.
1796         * sysdeps/unix/opendir.c: Renamed to ...
1797         * sysdeps/posix/opendir.c: ... here.
1798         * sysdeps/unix/readdir.c: Renamed to ...
1799         * sysdeps/posix/readdir.c: ... here.
1800         * sysdeps/unix/readdir_r.c: Renamed to ...
1801         * sysdeps/posix/readdir_r.c: ... here.
1802         * sysdeps/unix/rewinddir.c: Renamed to ...
1803         * sysdeps/posix/rewinddir.c: ... here.
1804         * sysdeps/unix/seekdir.c: Renamed to ...
1805         * sysdeps/posix/seekdir.c: ... here.
1806         * sysdeps/unix/telldir.c: Renamed to ...
1807         * sysdeps/posix/telldir.c: ... here.
1808         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1809         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1810         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1811         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1812
1813         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1814         * bits/fcntl.h: ... here.
1815
1816         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1817         not 0.
1818         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1819         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1820         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1821         (struct flock): Move l_start, l_len to the beginning.
1822         Use __pid_t for l_pid.
1823         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1824         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1825         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1826         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1827         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1828         [__USE_LARGEFILE64] (struct flock64): New type.
1829         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1830
1831         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1832         * bits/dirent.h: ... here.
1833
1834         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1835         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1836
1837 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1838
1839         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1840         Change from 2.6.0 to 2.6.16.
1841         * sysdeps/unix/sysv/linux/configure: Regenerated.
1842         * sysdeps/unix/sysv/linux/kernel-features.h
1843         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1844         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1845         version.
1846         (__ASSUME_UTIMES): Likewise.
1847         (__ASSUME_CLONE_STOPPED): Remove.
1848         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1849         architectures, not kernel version.
1850         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1851         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1852         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1853         (__ASSUME_WAITID_SYSCALL): Likewise.
1854         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1855         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1856         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1857         refer to older versions.
1858
1859 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1860
1861         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1862         Define alphasort64 as an alias.
1863         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1864         Define versionsort64 as an alias.
1865         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1866         Define scandir64 as an alias.
1867         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1868         Define scandirat64 as an alias.
1869         * dirent/alphasort64.c (alphasort64):
1870         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1871         * dirent/versionsort64.c: Likewise.
1872         * dirent/scandir64.c: Likewise.
1873         * dirent/scandirat64.c: Likewise.
1874         * sysdeps/wordsize-64/alphasort.c: File removed.
1875         * sysdeps/wordsize-64/alphasort64.c: File removed.
1876         * sysdeps/wordsize-64/scandir.c: File removed.
1877         * sysdeps/wordsize-64/scandir64.c: File removed.
1878         * sysdeps/wordsize-64/scandirat.c: File removed.
1879         * sysdeps/wordsize-64/scandirat64.c: File removed.
1880         * sysdeps/wordsize-64/versionsort.c: File removed.
1881         * sysdeps/wordsize-64/versionsort64.c: File removed.
1882         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1883         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1884         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1885         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1886         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1887         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1888         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1889         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1890
1891         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1892         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1893         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1894         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1895         [defined __arch64__ || defined __sparcv9]
1896         (__INO_T_MATCHES_INO64_T): New macro.
1897         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1898         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1899         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1900         * sysdeps/unix/sysv/linux/bits/dirent.h
1901         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1902         (_DIRENT_MATCHES_DIRENT64): New macro.
1903
1904         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1905         Define lockf64 as an alias.
1906         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1907         Define fseeko64 as an alias.
1908         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1909         Define ftello64 as an alias.
1910         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1911         Define _IO_fgetpos64 and fgetpos64 as aliases.
1912         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1913         Define _IO_fsetpos64 and fsetpos64 as aliases.
1914         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1915         Conditionalize body on this.
1916         * libio/fseeko64.c: Likewise.
1917         * libio/ftello64.c: Likewise.
1918         * libio/iofgetpos64.c: Likewise.
1919         * libio/iofsetpos64.c: Likewise.
1920         * sysdeps/wordsize-64/lockf.c: File removed.
1921         * sysdeps/wordsize-64/lockf64.c: File removed.
1922         * sysdeps/wordsize-64/fseeko.c: File removed.
1923         * sysdeps/wordsize-64/fseeko64.c: File removed.
1924         * sysdeps/wordsize-64/ftello.c: File removed.
1925         * sysdeps/wordsize-64/ftello64.c: File removed.
1926         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1927         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1928         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1929         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1930         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1931         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1932         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1933         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1934         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1935         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1936         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1937         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1938         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1939         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1940
1941         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1942         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1943         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1944         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1945         [defined __arch64__ || defined __sparcv9]
1946         (__OFF_T_MATCHES_OFF64_T): New macro.
1947         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1948         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1949         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1950         (__OFF_T_MATCHES_OFF64_T): New macro.
1951
1952 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1953
1954         * stdlib/secure-getenv.c (__secure_getenv): Replace
1955         GLIBC_2_16 with GLIBC_2_17.
1956
1957 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1958
1959         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1960         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1961
1962 2012-08-03  David S. Miller  <davem@davemloft.net>
1963
1964         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1965
1966 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1967
1968         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1969         Remove.
1970         (__ASSUME_CORRECT_SI_PID): Likewise.
1971         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1972         (__ASSUME_TMPFS_NAME): Likewise.
1973         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1974         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1975         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1976         (HAVE_AUX_SECURE): Make definition unconditional.
1977         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1978         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1979
1980 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1981
1982         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1983         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1984         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1985         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1986         __eloop_threshold instead of SYMLOOP_MAX.
1987
1988         * sysdeps/generic/eloop-threshold.h: New file.
1989         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1990         of MAXSYMLINKS.
1991         * elf/chroot_canon.c (chroot_canon): Likewise.
1992
1993 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1994
1995         [BZ #13717]
1996         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1997         Change to 2.6.0 everywhere.
1998         * sysdeps/unix/sysv/linux/configure: Regenerated.
1999         * sysdeps/unix/sysv/linux/kernel-features.h
2000         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2001         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2002         kernel versions.
2003         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2004         (__ASSUME_FUTEX_REQUEUE): Remove.
2005         (__ASSUME_STATFS64): Define unconditionally.
2006         (__ASSUME_AT_SECURE): Likewise.
2007         (__ASSUME_CORRECT_SI_PID): Likewise.
2008         (__ASSUME_TGKILL): Define without depending on kernel version for
2009         i386.
2010         (__ASSUME_UTIMES): Likewise.
2011         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2012         kernel version.
2013         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2014         (__ASSUME_TMPFS_NAME): Likewise.
2015         * README: Update reference to Linux kernel versions.
2016
2017 2012-08-02  Marek Polacek  <polacek@redhat.com>
2018
2019         [BZ# 14150]
2020         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2021         libc_cv_asm_type_prefix with %.
2022         * configure: Regenerated.
2023         * include/libc-symbols.h: Remove comment about
2024         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2025         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2026         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2027         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2028         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2029         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2030         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2031         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2032         * elf/tst-unique2mod1.c: Likewise.
2033         * elf/tst-unique1mod2.c: Likewise.
2034         * elf/tst-unique1mod1.c: Likewise.
2035         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2036         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2037         Replace ASM_TYPE_DIRECTIVE with .type.
2038         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2039         * sysdeps/i386/sysdep.h: Likewise.
2040         * sysdeps/x86_64/sysdep.h: Likewise.
2041         * sysdeps/sh/sysdep.h: Likewise.
2042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2043         Do not define ASM_TYPE_DIRECTIVE.
2044         * sysdeps/powerpc/sysdep.h: Likewise.
2045         * sysdeps/powerpc/powerpc32/sysdep.h:
2046         Replace ASM_TYPE_DIRECTIVE with .type.
2047         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2048         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2049         * sysdeps/i386/fpu/e_powf.S: Likewise.
2050         * sysdeps/i386/fpu/e_expl.S: Likewise.
2051         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2052         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2053         * sysdeps/i386/fpu/e_pow.S: Likewise.
2054         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2055         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2056         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2057         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2058         * sysdeps/i386/fpu/e_log2.S: Likewise.
2059         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2060         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2061         * sysdeps/i386/fpu/e_powl.S: Likewise.
2062         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2063         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2064         * sysdeps/i386/fpu/e_logl.S: Likewise.
2065         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2066         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2067         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2068         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2069         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2070         * sysdeps/i386/fpu/e_log.S: Likewise.
2071         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2072         * sysdeps/i386/fpu/e_logf.S: Likewise.
2073         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2074         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2075         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2076         * sysdeps/i386/fpu/e_log10.S: Likewise.
2077         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2078         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2079         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2080         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2081         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2082         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2083         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2084         * sysdeps/i386/i686/strtok.S: Likewise.
2085         * sysdeps/i386/i386-mcount.S: Likewise.
2086         * sysdeps/i386/strtok.S: Likewise.
2087         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2088         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2089         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2090         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2091         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2092         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2093         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2094         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2095         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2096         * sysdeps/x86_64/_mcount.S: Likewise.
2097         * sysdeps/x86_64/strtok.S: Likewise.
2098         * sysdeps/sh/_mcount.S: Likewise.
2099
2100 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2101
2102         * libio/iofopen.c: Include <fcntl.h>.
2103         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2104         (_IO_fopen64, fopen64): Define as aliases.
2105         * libio/iofopen64.c: Include <fcntl.h>.
2106         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2107         Conditionalize body on this.
2108         * sysdeps/wordsize-64/iofopen.c: File removed.
2109         * sysdeps/wordsize-64/iofopen64.c: File removed.
2110
2111 2012-08-01  Marek Polacek  <polacek@redhat.com>
2112
2113         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2114         Use dlfcn directly instead of a variable.
2115         (binfmt-subdir): Do not define.
2116         (dlfcn): Likewise.
2117
2118 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2119
2120         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2121         Remove all definitions.
2122         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2123         <kernel-features.h>.
2124         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2125         (miss_F_GETOWN_EX): Remove all definitions.
2126         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2127         macro definition.
2128         [!__ASSUME_FCNTL64]: Remove conditional code.
2129         [__ASSUME_FCNTL64]: Make code unconditional.
2130         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2131         <kernel-features.h>.
2132         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2133         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2134         (lockf64) [__NR_fcntl64]: Make code unconditional.
2135         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2136
2137         * sysdeps/unix/sysv/linux/kernel-features.h
2138         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2139         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2140         Make code unconditional.
2141         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2142         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2144         [__NR_vfork]: Make code unconditional.
2145         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2146         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2148         [__NR_vfork]: Make code unconditional.
2149         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2150         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2151
2152 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2153
2154         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2155         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2156
2157         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2158         Define mkstemp64 as an alias.
2159         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2160         Define mkstemps64 as an alias.
2161         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2162         Define mkostemp64 as an alias.
2163         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2164         Define mkostemps64 as an alias.
2165         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2166         Conditionalize body on this.
2167         * misc/mkostemp64.c: Likewise.
2168         * misc/mkostemps64.c: Likewise.
2169         * misc/mkstemps64.c: Likewise.
2170         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2171         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2172         * sysdeps/wordsize-64/mkostemp.c: File removed.
2173         * sysdeps/wordsize-64/mkstemp.c: File removed.
2174         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2175         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2176         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2177         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2178
2179         [BZ #14138]
2180         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2181         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2182         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2183         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2184
2185         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2186         compat_symbol macros from <shlib-compat.h> rather than the underlying
2187         default_symbol_version and symbol_version macros, so that DEFAULT
2188         lines in shlib-versions are respected.
2189         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2190
2191 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2192
2193         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2194         Declare with warn_unused_result.
2195         (setgid, setregid, setegid, setresgid): Likewise.
2196         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2197         Likewise.
2198         * WUR-REPORT: Remove set*id functions.
2199
2200 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2201
2202         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2203
2204 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2205
2206         * include/sys/socket.h (__libc_accept, __libc_accept4):
2207         Add attribute_hidden.
2208         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2209
2210         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2211         use of PTR_MANGLE.
2212         * inet/getnetgrent_r.c (setup): Likewise.
2213
2214         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2215
2216 2012-07-31  David S. Miller  <davem@davemloft.net>
2217
2218         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2219
2220 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2221
2222         [BZ #13629]
2223         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2224         value between 1.0 and 2.0 and smaller part has absolute value less
2225         than 1.0.
2226         * math/s_clog10.c (__clog10): Likewise.
2227         * math/s_clog10f.c (__clog10f): Likewise.
2228         * math/s_clog10l.c (__clog10l): Likewise.
2229         * math/s_clogf.c (__clogf): Likewise.
2230         * math/s_clogl.c (__clogl): Likewise.
2231         * math/libm-test.inc (clog_test): Add more tests.
2232         (clog10_test): Likewise.
2233         * sysdeps/i386/fpu/libm-test-ulps: Update.
2234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2235
2236 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2237
2238         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2239         Exit with zero in case no suitable GID is found, and write a
2240         message to standard error.
2241
2242 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2243
2244         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2245         rather than to 1.
2246         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2247         (MAXPATHLEN): Removed.
2248         (NOGROUP, NODEV): New macros.
2249         (setbit, clrbit, isset, isclr): New macros.
2250         (howmany, roundup, powerof2): New macros.
2251         (DEV_BSIZE): New macro.
2252
2253         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2254         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2255
2256         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2257         definition on [!__NO_LONG_DOUBLE_MATH].
2258
2259         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2260         PTR_MANGLE and PTR_DEMANGLE.
2261
2262         * socket/accept4.c (accept4): Rename to __libc_accept4.
2263         Define accept4 as a weak alias.
2264
2265         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2266         on [_DIRENT_HAVE_D_TYPE].
2267         * io/ftw.c (ftw_dir): Likewise.
2268
2269         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2270
2271         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2272
2273         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2274         Use the BSD numbers rather than the arbitrary ones we had.
2275         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2276         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2277         (SIGXCPU, SIGXFSZ): New macros.
2278         (_NSIG): Now 32.
2279
2280         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2281         initializer on [_LIBC_REENTRANT].
2282
2283         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2284         definitions inside [_POSIX_MAPPED_FILES].
2285
2286         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2287
2288         * dirent/opendir.c: Include <fcntl.h>.
2289
2290         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2291         (__libc_getspecific): Likewise.
2292         (__libc_key_create): Likewise.
2293
2294         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2295         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2296         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2297         (tmpfile64): Define as alias.
2298         * sysdeps/wordsize-64/tmpfile.c: File removed.
2299         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2300         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2301         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2302
2303         * stdio-common/vfscanf.c: Include <stdbool.h>.
2304         * nss/makedb.c: Likewise.
2305         * stdio-common/_i18n_number.h: Likewise.
2306         * argp/argp-help.c: Likewise.
2307         * posix/wordexp.c: Likewise.
2308         * sysdeps/posix/spawni.c: Likewise.
2309         * nss/nss_files/files-initgroups.c: Likewise.
2310         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2311         * nss/nss_files/files-initgroups.c: Likewise.
2312         * nss/nss_db/db-netgrp.c: Likewise.
2313         * nss/nss_db/db-initgroups.c: Likewise.
2314         * io/fchmodat.c: Include <sys/stat.h>.
2315
2316         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2317         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2318
2319         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2320         [HAVE_MMAP].
2321
2322         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2323         Add multiple inclusion protection.
2324
2325 2012-07-27  David S. Miller  <davem@davemloft.net>
2326
2327         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2328
2329 2012-07-27  Gary Benson  <gbenson@redhat.com>
2330
2331         [BZ #14298]
2332         * elf/rtld.c: Include <stap-probe.h>.
2333         (dl_main): Added static probes "init_start" and "init_complete".
2334         * elf/dl-load.c: Include <stap-probe.h>.
2335         (lose): Take new parameter "nsid".
2336         Added static probe "map_failed".
2337         (_dl_map_object_from_fd): Pass namespace id to lose.
2338         Added static probe "map_start".
2339         (open_verify): Pass namespace id to lose.
2340         * elf/dl-open.c: Include <stap-probe.h>.
2341         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2342         and "reloc_complete".
2343         * elf/dl-close.c: Include <stap-probe.h>.
2344         (_dl_close_worker): Added static probes "unmap_start" and
2345         "unmap_complete".
2346         * elf/rtld-debugger-interface.txt: New file documenting the above.
2347
2348 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2349
2350         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2351         rather than a string variable.
2352         * sunrpc/rpc_main.c (h_output): Likewise.
2353         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2354
2355 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2356
2357         * inet/check_native.c: New file.
2358
2359 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2360
2361         [BZ #13629]
2362         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2363         if larger part has absolute value 1.0.
2364         * math/s_clog10.c (__clog10): Likewise.
2365         * math/s_clog10f.c (__clog10f): Likewise.
2366         * math/s_clog10l.c (__clog10l): Likewise.
2367         * math/s_clogf.c (__clogf): Likewise.
2368         * math/s_clogl.c (__clogl): Likewise.
2369         * math/libm-test.inc (clog_test): Add more tests.
2370         (clog10_test): Likewise.
2371         * sysdeps/i386/fpu/libm-test-ulps: Update.
2372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2373
2374         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2375         (pltexit): Likewise.
2376         (La_regs): Likewise.
2377         (La_retval): Likewise.
2378         (int_retval): Likewise.
2379         Update #error for removed macros to refer only to definitions in
2380         tst-audit.h.
2381         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2382         macro.
2383         (pltexit): Likewise.
2384         (La_regs): Likewise.
2385         (La_retval): Likewise.
2386         (int_retval): Likewise.
2387         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2388         macro.
2389         (pltexit): Likewise.
2390         (La_regs): Likewise.
2391         (La_retval): Likewise.
2392         (int_retval): Likewise.
2393         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2394         macro.
2395         (pltexit): Likewise.
2396         (La_regs): Likewise.
2397         (La_retval): Likewise.
2398         (int_retval): Likewise.
2399         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2400         macro.
2401         (pltexit): Likewise.
2402         (La_regs): Likewise.
2403         (La_retval): Likewise.
2404         (int_retval): Likewise.
2405         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2406         macro.
2407         (pltexit): Likewise.
2408         (La_regs): Likewise.
2409         (La_retval): Likewise.
2410         (int_retval): Likewise.
2411         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2412         macro.
2413         (pltexit): Likewise.
2414         (La_regs): Likewise.
2415         (La_retval): Likewise.
2416         (int_retval): Likewise.
2417         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2418         macro definitions in tst-audit.h.
2419         * sysdeps/i386/tst-audit.h: New file.
2420         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2421         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2422         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2423         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2424         * sysdeps/sh/tst-audit.h: Likewise.
2425         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2426         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2427         * sysdeps/x86_64/tst-audit.h: Likewise.
2428
2429 2012-07-26  Andreas Jaeger  <aj@suse.de>
2430
2431         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2432         ptrace.
2433
2434         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2435         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2436         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2437         PTRACE_O_MASK.
2438         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2439         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2440         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2441
2442         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2443         value.
2444
2445         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2446         _sigsys.
2447         (si_call_addr, si_syscall, si_arch): Define new macro.
2448         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2449         _sigsys.
2450         (si_call_addr, si_syscall, si_arch): Define new marcro.
2451         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2452         _sigsys.
2453         (si_call_addr, si_syscall, si_arch): Define new macro.
2454         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2455         _sigsys.
2456         (si_call_addr, si_syscall, si_arch): Define new macro.
2457
2458 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2459
2460         [BZ #13717]
2461         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2462         Change to 2.4.21 where previously 2.4.1.
2463         * sysdeps/unix/sysv/linux/configure: Regenerated.
2464         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2465         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2466         Linux kernel version.
2467         (__ASSUME_STD_AUXV): Remove.
2468         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2469         kernel version.
2470         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2471         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2472         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2473         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2474         (__ASSUME_NETLINK_SUPPORT): Likewise.
2475         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2476         (__no_netlink_support): Remove conditional definition.
2477         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2478         Remove.
2479         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2480         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2481         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2482         (if_nameindex_ioctl): Remove.
2483         (if_nameindex_netlink): Do not handle __no_netlink_support.
2484         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2485         code.
2486         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2487         Remove conditional code.
2488         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2489         code.
2490         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2491         unconditional.
2492         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2493         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2494         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2495         Remove.
2496         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2497         [!__ASSUME_STD_AUXV]: Remove conditional code.
2498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2499         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2500         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2502         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2503         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2504         code.
2505         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2507         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2508         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2509         conditional code.
2510         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2512         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2513         code.
2514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2515         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2516         conditional code.
2517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2518         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2519         code unconditional.
2520         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2521         conditional code.
2522         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2523         unconditional.
2524         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2525         conditional code.
2526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2527         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2528         unconditional.
2529         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2530         conditional code.
2531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2532         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2533         code unconditional.
2534         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2535         conditional code.
2536         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2537         unconditional.
2538         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2539         conditional code.
2540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2541         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2542         code unconditional.
2543         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2544         conditional code.
2545         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2546         unconditional.
2547         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2548         conditional code.
2549
2550 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2551
2552         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2553         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2554         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2555         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2556         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2557         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2558         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2559         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2560         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2561         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2562         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2563         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2564         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2565         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2566         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2567         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2568         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2569         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2570         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2571         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2572         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2573         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2574         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2575
2576 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2577
2578         * Versions.def: Add GLIBC_2.17.
2579         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2580         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2581         Introduce __libc_secure_getenv.
2582         * stdlib/Versions (2.17): Add secure_getenv
2583         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2584         * stdlib/secure-getenv.c: Rename __secure_getenv to
2585         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2586         symbol __secure_getenv for GLIBC_2.0.
2587         * stdlib/tst-secure-getenv.c: New.
2588         * stdlib/Makefile (tests): Add testcase.
2589         * manual/startup.texi (Environment Access): Document
2590         secure_getenv.
2591         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2592         __libc_secure_getenv.
2593         * inet/ruserpass.c (ruserpass): Likewise.
2594         * malloc/mtrace.c (mtrace): Likewise.
2595         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2596         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2597         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2598         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2599         HAVE_SECURE_GETENV.
2600         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2601         __secure_getenv to __libc_secure_getenv.
2602         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2604         Likewise.
2605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2606         Likewise.
2607         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2608         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2609         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2610         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2611         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2612         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2613         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2614
2615 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2616
2617         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2618         (struct La_i86_retval): Likewise.
2619         (struct La_x86_64_regs): Likewise.
2620         (struct La_x86_64_retval): Likewise.
2621         (struct La_x32_regs): Likewise.
2622         (struct La_x32_retval): Likewise.
2623         (struct La_ppc32_regs): Likewise.
2624         (struct La_ppc32_retval): Likewise.
2625         (struct La_ppc64_regs): Likewise.
2626         (struct La_ppc64_retval): Likewise.
2627         (struct La_sh_regs): Likewise.
2628         (struct La_sh_retval): Likewise.
2629         (struct La_s390_32_regs): Likewise.
2630         (struct La_s390_32_retval): Likewise.
2631         (struct La_s390_64_regs): Likewise.
2632         (struct La_s390_64_retval): Likewise.
2633         (struct La_sparc32_regs): Likewise.
2634         (struct La_sparc32_retval): Likewise.
2635         (struct La_sparc64_regs): Likewise.
2636         (struct La_sparc64_retval): Likewise.
2637         (struct audit_ifaces): Remove architecture-specific pltenter and
2638         pltexit members.
2639         * sysdeps/i386/ldsodefs.h: New file.
2640         * sysdeps/powerpc/ldsodefs.h: Likewise.
2641         * sysdeps/s390/ldsodefs.h: Likewise.
2642         * sysdeps/sh/ldsodefs.h: Likewise.
2643         * sysdeps/sparc/ldsodefs.h: Likewise.
2644         * sysdeps/x86_64/ldsodefs.h: Likewise.
2645
2646 2012-07-25  Marek Polacek  <polacek@redhat.com>
2647
2648         [BZ #6808]
2649         * math/libm-test.inc (yn_test): Add another test.
2650         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2651         to ERANGE when the result is +-Inf.
2652         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2653         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2654         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2655         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2656
2657 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2658
2659         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2660         equal to 0.
2661         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2662         clock_t.
2663         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2664
2665 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2666
2667         * configure.in <sysdeps resolving>: Correct printing
2668         Implies_before.
2669         * configure: Regenerate.
2670
2671 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2672
2673         * math/w_ilogb.c: Include <limits.h>.
2674         * math/w_ilogbl.c: Likewise.
2675
2676 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2677
2678         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2679         va_copy.  Document allowing for unavailable va_copy only as
2680         pre-C99 compatibility.
2681         * manual/string.texi (Copying and Concatenation): Use va_copy
2682         instead of __va_copy in concat example.
2683
2684 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2685
2686         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2687         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2688         it if not null.
2689
2690         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2691         with O_NOLINK passed to __file_name_lookup.
2692
2693         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2694         with O_NOLINK passed to __file_name_lookup.
2695
2696         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2697         negative N or less than NGIDS.
2698
2699         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2700         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2701         enough.  Use memcpy instead of strncpy.
2702
2703 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2704
2705         * elf/Makefile (check-data): Remove.
2706         (localplt.data): New vpath directive.
2707         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2708         instead of $(check-data).
2709         * scripts/data/localplt-generic.data: Move to ...
2710         * sysdeps/generic/localplt.data: ... here.
2711         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2712         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2713         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2715         ... here.
2716         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2718         ... here.
2719         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2720         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2721         ... here.
2722         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2723         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2724         ... here.
2725         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2726         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2727         ... here.
2728         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2729         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2730         ... here.
2731
2732 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2733
2734         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2735         PPC32 and PPC64 files.
2736         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2737         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2738
2739 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2740
2741         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2742         __makecontext_ret to ...
2743         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2744         ... here and call exit if uc_link is NULL.  New file.
2745         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2746         __makecontext_ret.S.
2747         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2748         __makecontext_ret to ...
2749         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2750         ... here and call exit if uc_link is NULL.  New file.
2751         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2752         __makecontext_ret.S.
2753
2754 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2755
2756         * elf/elf.h (R_390_IRELATIVE): New definition.
2757         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2758         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2759         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2760         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2761         (elf_machine_lazy_rel): Likewise.
2762         * sysdeps/s390/dl-irel.h: New file.
2763         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2764         * sysdeps/s390/s390-64/memset.S: New asm code.
2765         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2766         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2767         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2768         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2769         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2770         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2771         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2772         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2773         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2774         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2775         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2776         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2777         * sysdeps/s390/s390-32/memset.S: New asm code.
2778         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2779
2780 2012-07-17  Marek Polacek  <polacek@redhat.com>
2781
2782         [BZ #14349]
2783         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2784         * sysdeps/s390/s390-64/configure.in: Likewise.
2785         * sysdeps/sparc/configure.in: Likewise.
2786         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2787         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2788         * sysdeps/i386/configure.in: Likewise.
2789         * sysdeps/x86_64/configure.in: Likewise.
2790         * sysdeps/sh/configure.in: Likewise.
2791         * sysdeps/s390/s390-32/configure: Regenerated.
2792         * sysdeps/s390/s390-64/configure: Likewise.
2793         * sysdeps/x86_64/configure: Likewise.
2794         * sysdeps/sh/configure: Likewise.
2795         * sysdeps/powerpc/powerpc64/configure: Likewise.
2796         * sysdeps/powerpc/powerpc32/configure: Likewise.
2797         * sysdeps/sparc/configure: Likwise.
2798         * sysdeps/i386/configure: Likewise.
2799
2800         * elf/dl-open.c: Comment fixes.
2801
2802 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2803
2804         * Makefile [CXX] (check-data): Remove.
2805         [CXX] (c++-types.data): New vpath directive.
2806         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2807         vpath.  Do not allow for C++ type data being missing.
2808         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2809         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2810         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2811         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2812         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2813         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2814         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2816         ... here.
2817         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2819         ... here.
2820         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2821         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2822         ... here.
2823         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2824         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2825         ... here.
2826         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2827         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2828         ... here.
2829         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2830         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2831         ... here.
2832         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2833         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2834         ... here.
2835         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2836         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2837
2838         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2839         definitions to architecture-specific files.
2840         (TLS_IE): Likewise.
2841         (TLS_LD): Likewise.
2842         (TLS_GD): Likewise.
2843         * sysdeps/i386/tls-macros.h: New file.
2844         * sysdeps/powerpc/tls-macros.h: Likewise.
2845         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2846         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2847         * sysdeps/sh/tls-macros.h: Likewise.
2848         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2849         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2850         * sysdeps/x86_64/tls-macros.h: Likewise.
2851
2852 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2853
2854         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2855         zero value for regular exit case.
2856
2857         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2858         (__start_context): Preserve zero value for regular exit case.
2859
2860 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2861             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2862
2863         * manual/setjmp.texi (setcontext): Clarify normal process
2864         termination when uc_link is the null pointer.
2865         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2866         exit call.
2867
2868 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2869
2870         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2871         preprocessor.  Test for each exception mask separately.
2872
2873 2012-07-16  Andreas Jaeger  <aj@suse.de>
2874
2875         * po/ru.po: Update from translation team.
2876
2877 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2878
2879         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2880         equal to 0.
2881         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2882         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2883         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2884         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2885         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2886
2887 2012-07-13  Andreas Jaeger  <aj@suse.de>
2888
2889         * po/fr.po: Update from translation team.
2890
2891 2012-07-12  Marek Polacek  <polacek@redhat.com>
2892
2893         [BZ #14173]
2894         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2895         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2896         loop condition.
2897
2898 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2899
2900         [BZ #13717]
2901         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2902         Change to 2.4.1 where previously 2.4.0.
2903         * sysdeps/unix/sysv/linux/configure: Regenerated.
2904         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2905         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2906         version.
2907         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2908         (__ASSUME_AT_CLKTCK): Remove.
2909         (__ASSUME_AT_PAGESIZE): Likewise.
2910         (__ASSUME_AT_XID): Likewise.
2911         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2912         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2913         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2914         unconditionally.
2915         (HAVE_AUX_PAGESIZE): Likewise.
2916         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2917         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2918         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2919
2920 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2921
2922         [BZ #14307]
2923         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2924         the temporary buffer used to invoke __gethostbyname2_r,
2925         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2926         host_data / struct gaih_addrtuple.
2927         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2928         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2929         header file nss/nsswitch.h.
2930         * nss/nsswitch.h (global scope): Add definition of implementation
2931         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2932         resolv/nss_dns/dns-host.c).
2933
2934 2012-07-11  Andreas Jaeger  <aj@suse.de>
2935
2936         * po/fr.po: Update from translation team.
2937
2938         * po/sv.po: Update from translation team
2939         * po/fr.po: Another update from translation team.
2940
2941 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2942
2943         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2944         for subnormals or multiply small sinh result by itself.
2945         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2946         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2947
2948 2012-07-11  David S. Miller  <davem@davemloft.net>
2949
2950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2951
2952 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2953
2954         [BZ #14347]
2955         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2956         (INTERNAL_MARK): Shift it here.
2957
2958 2012-07-10  Marek Polacek  <polacek@redhat.com>
2959
2960         [BZ #14151]
2961         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2962         libc_cv_asm_global_directive with .globl.
2963         * configure: Regenerated.
2964         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2965         with .globl.
2966         * sysdeps/i386/configure: Regenerated.
2967         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2968         with .globl.
2969         * sysdeps/x86_64/configure: Regenerated.
2970         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2971         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2972         * elf/tst-unique2mod2.c: Likewise.
2973         * elf/tst-unique2mod1.c: Likewise.
2974         * elf/tst-unique1mod2.c: Likewise.
2975         * elf/tst-unique1mod1.c: Likewise.
2976         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2977         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2978         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2979         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2980         * sysdeps/mach/sysdep.h: Likewise.
2981         * sysdeps/i386/sysdep.h: Likewise.
2982         * sysdeps/i386/i386-mcount.S: Likewise.
2983         * sysdeps/x86_64/_mcount.S: Likewise.
2984         * sysdeps/x86_64/sysdep.h: Likewise.
2985         * sysdeps/sh/_mcount.S: Likewise.
2986         * sysdeps/sh/sysdep.h: Likewise.
2987         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2988         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2989         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2990         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2991         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2992         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2993         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2994         * locale/localeinfo.h: Likewise.
2995         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2996         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2997
2998 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2999
3000         [BZ #14336]
3001         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3002         system".
3003         * manual/message.texi (The Uniforum approach): Likewise.
3004         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3005         (glibc iconv Implementation): Likewise.
3006
3007 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3008
3009         [BZ #14337]
3010         * math/s_clog.c (__clog): Avoid scaling a value down where that
3011         could result in underflow.
3012         * math/s_clog10.c (__clog10): Likewise.
3013         * math/s_clog10f.c (__clog10f): Likewise.
3014         * math/s_clog10l.c (__clog10l): Likewise.
3015         * math/s_clogf.c (__clogf): Likewise.
3016         * math/s_clogl.c (__clogl): Likewise.
3017         * math/libm-test.inc (clog_test): Add more tests.
3018         (clog10_test): Likewise.
3019         * sysdeps/i386/fpu/libm-test-ulps: Update.
3020         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3021
3022 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3023
3024         [BZ #14283]
3025         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3026         by 7 not 8 to examine high bit of fractional part.
3027
3028         [BZ #14042]
3029         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3030         for call to __mcount_internal.
3031         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3032         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3033         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3034
3035 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3036
3037         [BZ #14154]
3038         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3039         approximation for values within 0x1p-13f of an odd multiple of
3040         pi/4.
3041         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3042         exception.  Add more tests.
3043         * sysdeps/i386/fpu/libm-test-ulps: Update.
3044
3045         [BZ #6778]
3046         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3047         inputs and return -1 for them.  Do not check for +Inf in case not
3048         reachable for +Inf.
3049         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3050         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not 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         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3055         define.
3056         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3057         and return -1 for them.  Do not check for +Inf in case not
3058         reachable for +Inf.
3059         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3060         spurious underflow.
3061         * sysdeps/i386/fpu/libm-test-ulps: Update.
3062         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3063
3064 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3065
3066         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3067
3068 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3069
3070         [BZ #14157]
3071         [BZ #14331]
3072         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3073         could result in spurious underflow.  Scale down values above
3074         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3075         * math/s_csqrtf.c (__csqrtf): Likewise.
3076         * math/s_csqrtl.c (__csqrtl): Likewise.
3077         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3078         spurious underflow.
3079         * sysdeps/i386/fpu/libm-test-ulps: Update.
3080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3081
3082 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3083
3084         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3085         xopen-msg.sed.
3086         * catgets/xopen-msg.awk: New file.
3087         * catgets/xopen-msg.sed: Removed.
3088
3089         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3090         po2text.sed.
3091         * intl/po2test.awk: New file.
3092         * intl/po2test.sed: Removed.
3093
3094 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3095
3096         [BZ #14328]
3097         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3098         or multiply small sinh result by itself.
3099         * math/s_ctanf.c (__ctanf): Likewise.
3100         * math/s_ctanh.c (__ctanh): Likewise.
3101         * math/s_ctanhf.c (__ctanhf): Likewise.
3102         * math/s_ctanhl.c (__ctanhl): Likewise.
3103         * math/s_ctanl.c (__ctanl): Likewise.
3104         * math/libm-test.inc (ctan_test_tonearest): New function.
3105         (ctan_test_towardzero): Likewise.
3106         (ctan_test_downward): Likewise.
3107         (ctan_test_upward): Likewise.
3108         (ctanh_test_tonearest): Likewise.
3109         (ctanh_test_towardzero): Likewise.
3110         (ctanh_test_downward): Likewise.
3111         (ctanh_test_upward): Likewise.
3112         (main): Call these new functions.
3113         * sysdeps/i386/fpu/libm-test-ulps: Update.
3114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3115
3116 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3117
3118         * .gitignore: Delete /ports entry.
3119
3120 2012-07-03  Andreas Jaeger  <aj@suse.de>
3121
3122         * po/bg.po: Update from translation team.
3123         * po/cs.po: Likewise.
3124         * po/de.po: Likewise.
3125         * po/hr.po: Likewise.
3126         * po/nl.pl: Likewise.
3127         * po/pl.po: Likewise.
3128         * po/vi.po: Likewise.
3129
3130 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3131
3132         * Makeconfig [!+link] (+link-before-libc): New variable.
3133         [!+link] (+link-after-libc): Likewise.
3134         [!+link] (+link-tests): Likewise.
3135         [!+link] (+link): Define in terms of $(+link-before-libc) and
3136         $(+link-after-libc).
3137         [!+link-static] (+link-static-before-libc): New variable.
3138         [!+link-static] (+link-static-after-libc): Likewise.
3139         [!+link-static] (+link-static-tests): Likewise.
3140         [!+link-static] (+link-static): Define in terms of
3141         $(+link-static-before-libc) and $(+link-static-after-libc).
3142         [build-shared] (link-libc-before-gnulib): New variable.
3143         [build-shared] (link-libc-tests): Likewise.
3144         [build-shared] (link-libc): Define in terms of
3145         $(link-libc-before-gnulib).
3146         [!build-shared] (link-libc-tests): New variable.
3147         (link-libc-static-tests): New variable.
3148         [!gnulib] (gnulib-arch): New variable.
3149         [!gnulib] (gnulib-tests): Likewise.
3150         [!gnulib] (static-gnulib-arch): Likewise.
3151         [!gnulib] (static-gnulib-tests): Likewise.
3152         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3153         Define with "=" instead of ":=".
3154         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3155         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3156         * Rules (binaries-all-notests): New variable.
3157         (binaries-all-tests): Likewise.
3158         (binaries-static-notests): Likewise.
3159         (binaries-static-tests): Likewise.
3160         (binaries-all): Define using $(binaries-all-notests) and
3161         $(binaries-all-tests).
3162         (binaries-static): Define using $(binaries-static-notests) and
3163         $(binaries-static-tests).
3164         (binaries-shared-tests): New variable.
3165         (binaries-shared-notests): Likewise.
3166         (binaries-shared): Remove variable.
3167         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3168         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3169         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3170         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3171         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3172         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3173         * elf/Makefile (sln-modules): New variable.
3174         (extra-objs): Add $(sln-modules:=.o).
3175         (ldconfig-modules): Add static-stubs.
3176         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3177         * elf/static-stubs.c: New file.
3178
3179         [BZ #14283]
3180         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3181         by 7 not 8 to examine high bit of fractional part.  Use volatile
3182         variables when splitting into final array of floats if
3183         __FLT_EVAL_METHOD__ != 0.
3184         * math/libm-test.inc (cos_test): Add another test.
3185         (sin_test): Likewise.
3186         * sysdeps/i386/fpu/libm-test-ulps: Update.
3187
3188         [BZ #14273]
3189         * math/libm-test.inc (cosh_test): Add more tests.
3190
3191         * version.h (RELEASE): Set to "development".
3192         (VERSION): Set to "2.16.90".
3193
3194 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3195
3196         * NEWS: Update copyright. Remove last-updated date.
3197         Mention math library bug fixes and timezone data changes.
3198         * README: Mention GNU/Hurd, x32, and HPPA support status.
3199
3200 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3201
3202         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3203
3204 2012-06-27  Andreas Jaeger  <aj@suse.de>
3205
3206         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3207
3208 2012-06-25  Andreas Jaeger  <aj@suse.de>
3209
3210         * sysdeps/s390/fpu/libm-test-ulps: Update.
3211
3212 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3213             Thomas Schwinge  <thomas@codesourcery.com>
3214
3215         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3216         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3217         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3218         fanotify_mark.
3219
3220 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3221
3222         * sysdeps/mach/start.c: Remove file.
3223         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3224         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3225         * sysdeps/sh/init-first.c: Likewise.
3226
3227         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3228         registers for frame unwinding purposes, add CFI directives.
3229         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3230         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3231         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3232         Likewise.
3233
3234         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3235         __fortify_fail returning.
3236         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3237
3238         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3239         sysdeps/sh/____longjmp_chk.S.
3240         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3241         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3242         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3243         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3244
3245         * sysdeps/sh/abort-instr.h: New file.
3246         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3247         process in case exit returns.
3248
3249         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3250         initialize the GOT register before use.
3251
3252         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3253         calculation of ARGC > 4.
3254
3255         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3256         meaningful names to some local labels.
3257
3258 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3259             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3260
3261         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3262         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3263         (__arch_compare_and_exchange_val_16_acq): Likewise.
3264         (__arch_compare_and_exchange_val_32_acq): Likewise.
3265         (atomic_exchange_and_add): Fix gUSA sequence.
3266         (atomic_add): Likewise.
3267         (atomic_add_negative): Likewise.
3268         (atomic_add_zero): Likewise.
3269         (atomic_bit_test_set): Likewise.
3270
3271 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3272
3273         [BZ #13579]
3274         * include/link.h (struct link_map): Add l_free_initfini.
3275         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3276         l_initfini.
3277         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3278         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3279         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3280         set.
3281
3282 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3283
3284         * configure.in: Use AC_LANG_SOURCE.
3285         * configure: Regenerate.
3286
3287 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3288
3289         * configure.in (libc_cv_localstatedir): New substituted variable.
3290         * configure: Regenerated.
3291         * config.make.in (localstatedir): New variable, substituted from
3292         libc_cv_localstatedir.
3293         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3294         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3295         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3296         * sysdeps/gnu/configure: Regenerated.
3297
3298 2012-06-21  Jeff Law  <law@redhat.com>
3299
3300         [BZ #14277]
3301         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3302         free.  Simplify list management for _LIBC case.
3303
3304 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3305
3306         [BZ #14273]
3307         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3308         Clear sign bit of 64-bit integer value before comparing against
3309         overflow value.
3310
3311         * sysdeps/mach/configure: Regenerated.
3312
3313 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3314
3315         [BZ #14278]
3316         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3317
3318 2012-06-21  Jeff Law  <law@redhat.com>
3319
3320         [BZ #13882]
3321         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3322         uint16_t for elements in the "seen" array to avoid char overflows.
3323         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3324         * elf/dl-open.c (dl_open_worker): Likewise.
3325
3326 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3327
3328         * scripts/list-sources.sh: Scan PORTS for translations.
3329         * po/libc.pot: Regenerated.
3330
3331 2012-06-21  Andreas Jaeger  <aj@suse.de>
3332
3333         [BZ #12194]
3334         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3335         warning.
3336         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3337         * bits/byteswap-16.h (__bswap_16): Likewise.
3338         * bits/byteswap.h (__bswap_constant_16): Likewise.
3339
3340 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3341
3342         [BZ #14117]
3343         * sysdeps/i386/fpu_control.h: Removed.
3344         * sysdeps/x86_64/fpu_control.h: Moved to ...
3345         * sysdeps/x86/fpu_control.h: Here.
3346
3347         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3348         (_FPU_SETCW): Likewise.
3349
3350 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3351
3352         [BZ #14117]
3353         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3354         * sysdeps/x86/fpu/bits/mathinline.h: This.
3355         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3356
3357         [BZ #14050]
3358         [BZ #14117]
3359         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3360         functions if __x86_64__ is defined.
3361
3362 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3363
3364         * string/endian.h: Add !__ASSEMBLER__ condition for including
3365         conversion interfaces.
3366
3367 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3368
3369         [BZ #14241]
3370         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3371         of ABS(x) in calculating zero to negative powers other than odd
3372         integers.
3373         * math/libm-test.inc (pow_test): Add more tests.
3374
3375 2012-06-15  Andreas Jaeger  <aj@suse.de>
3376
3377         * manual/contrib.texi (Contributors): Update entry of Liubov
3378         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3379         Machado Filho.
3380
3381 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3382
3383         * string/string.h: Add __wur to GNU version of strerror_r.
3384
3385 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3386
3387         [BZ #14229]
3388         * string/Makefile (tests): Add tst-strtok_r.
3389         * string/tst-strtok_r.c: New file.
3390         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3391         RAX_LP/RDX_LP on SAVE_PTR.
3392
3393 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3394
3395         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3396
3397 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3398
3399         * libm_test.inc (csqrt_test): Allow more spurious underflow
3400         exceptions.
3401         (j0_test): Likewise.
3402         (j1_test): Likewise.
3403         (y0_test): Likewise.
3404         (y1_test): Likewise.
3405
3406 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3407
3408         * po/Makefile (libc.pot): Use UTF-8 charset.
3409
3410 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3411
3412         [BZ #14210]
3413         Suppress sign-conversion warning from FD_SET.
3414         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3415         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3416         not unsigned long int.
3417         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3418
3419 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3420
3421         [BZ #14050]
3422         [BZ #14117]
3423         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3424         __extern_always_inline instead of __extern_inline.
3425         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3426         (__signbit): Likewise.
3427         (__signbitl): Support C++ namespace.
3428         (lrintf): New inline function.
3429         (lrint): Likewise.
3430         (llrintf): Likewise.
3431         (llrint): Likewise.
3432         (fmaxf): Likewise.
3433         (fmax): Likewise.
3434         (fminf): Likewise.
3435         (fmin): Likewise.
3436         (rint): Likewise.
3437         (rintf): Likewise.
3438         (ceil): Likewise.
3439         (ceilf): Likewise.
3440         (floor): Likewise.
3441         (floorf): Likewise.
3442         (nearbyint): Likewise.
3443         (nearbyintf): Likewise.
3444
3445 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3446
3447         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3448         non-default versions.
3449
3450 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3451
3452         [BZ #14218]
3453         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3454
3455 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3456
3457         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3458         (FE_UPWARD, FE_DOWNWARD): Don't define.
3459         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3460         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3461
3462         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3463         reading it.
3464         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3465         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3466
3467 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3468
3469         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3470         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3471         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3472         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3473
3474 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3475
3476         [BZ #14117]
3477         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3478         * sysdeps/i386/fpu/Implies: New file.
3479         * sysdeps/x86_64/fpu/Implies: Likewise.
3480         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3481         * sysdeps/x86/fpu/bits/fenv.h: This.
3482
3483         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3484         __SSE_MATH__.
3485
3486 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3487
3488         [BZ #14134]
3489         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3490         character 0xffff that matches the last element of the
3491         conversion table.
3492
3493 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3494
3495         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3496         fmodl commit.
3497
3498 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3499
3500         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3501         values higher than 25.6283.
3502
3503 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3504
3505         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3506         subnormal exponent extraction and add some __builtin_expect.
3507         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3508         Fix for subnormal mantissa calculation.
3509
3510 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3511
3512         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3513         cpu2 is -1 and errno is not ENOSYS.
3514
3515 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3516
3517         [BZ #14117]
3518         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3519         * sysdeps/x86/bits/string.h: This.
3520         * sysdeps/x86_64/bits/string.h: Removed.
3521
3522         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3523         if not compiling for x86-64, but compiling for >= i486.
3524
3525         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3526         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3527
3528         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3529         New macro from Linux kernel 3.4.0.
3530         (FP_XSTATE_MAGIC2): Likewise.
3531         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3532         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3533         (struct _fpx_sw_bytes): New struct.
3534         (struct _xsave_hdr): Likewise.
3535         (struct _ymmh_state): Likewise.
3536         (struct _xstate): Likewise.
3537
3538         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3539         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3540         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3541         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3542         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3543         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3544
3545         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3546         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3547         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3548         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3549         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3550         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3551
3552 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3553
3554         [BZ #13743]
3555         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3556         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3557         (sysdep_headers): Include sys/platform/ppc.h.
3558         * sysdeps/powerpc/test-gettimebase.c: Test for
3559         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3560         * manual/Makefile (appendices): Include platform.texi.
3561         * manual/contrib.texi (Contributors): Update @node pointers.
3562         * manual/maint.texi (Maintenance): Likewise.
3563         (Platform): New node.
3564         * manual/platform.texi: New file.  Document the new features.
3565
3566 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3567             Jakub Jelinek  <jakub@redhat.com>
3568
3569         [BZ #14188]
3570         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3571         where __builtin_expect is unavailable.
3572
3573 2012-06-03  David S. Miller  <davem@davemloft.net>
3574
3575         * stdlib/longlong.h: Updated from GCC.
3576
3577 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3578
3579         [BZ #14042]
3580         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3581         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3582         __mcount_internal.
3583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3584         (GLIBC_2.16): Likewise.
3585
3586 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3587
3588         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3589
3590 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3591
3592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3593         (default-abi): New variable.
3594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3595         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3596         variable.
3597         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3598         Likewise.
3599         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3600         Likewise.
3601         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3602         Likewise.
3603
3604         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3605         definition.  Document in comment.
3606
3607 2012-06-01  David S. Miller  <davem@davemloft.net>
3608
3609         * stdlib/longlong.h: Updated from GCC.
3610
3611 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3612
3613         [BZ #14117]
3614         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3615         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3616         sys/debugreg.h sys/io.h here.
3617         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3618         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3619         sys/io.h.
3620         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3621         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3622         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3623         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3624         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3625         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3626
3627         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3628         Define only if __x86_64__ is defined.
3629
3630 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3631
3632         [BZ #14048]
3633         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3634         Use int64_t for variable i.
3635         * math/libm-test.inc (fmod_test): Add more tests.
3636
3637         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3638         z computation is not scheduled after fetestexcept.
3639         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3640         Use math_force_eval instead of asm to ensure calculation scheduled
3641         before exception test.
3642         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3643         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3644
3645 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3646
3647         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3648         computation is not scheduled after fetestexcept.
3649
3650 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3651
3652         [BZ #14117]
3653         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3654         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3655
3656 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3657
3658         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3659         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3660
3661 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3662
3663         [BZ #14117]
3664         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3665         <bits/wordsize.h>.
3666         (__WCHAR_MIN): Support __WORDSIZE == 64.
3667         (__WCHAR_MAX): Likewise.
3668
3669         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3670         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3671
3672         [BZ #14183]
3673         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3674         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3675
3676         [BZ #14117]
3677         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3678         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3679
3680         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3681         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3682
3683         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3684         Defined to 1 if __x86_64__ isn't defined.
3685         (_STAT_VER_LINUX_OLD): New.
3686         (st_atime): Remove duplicate.
3687         (st_mtime): Likewise.
3688         (st_ctime): Likewise.
3689
3690 2012-05-31  David S. Miller  <davem@davemloft.net>
3691
3692         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3693         entries.
3694
3695 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3696
3697         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3698         gen-libm-test.pl.
3699
3700         [BZ #14132]
3701         * elf/dl-reloc.c: Include <_itoa.h>.
3702         (_dl_reloc_bad_type): Remove use of INTUSE.
3703         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3704         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3705         * stdio-common/psiginfo.c (psiginfo): Likewise.
3706         * stdio-common/psignal.c (psignal): Likewise.
3707         * string/strsignal.c (strsignal): Likewise.
3708         * include/signal.h (_sys_siglist): Declare hidden proto.
3709         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3710         INTVARDEF with libc_hidden_data_def.
3711         * stdio-common/itoa-udigits.c: Likewise.
3712         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3713         (_itoa_lower_digits_internal): Remove declaration.
3714         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3715         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3716         (_sys_sigabbrev_internal): Remove aliases.
3717         (_sys_siglist): Define hidden alias.
3718
3719 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3720
3721         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3722         bits/sysctl.h.
3723
3724 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3725
3726         [BZ #14117]
3727         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3728         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3729
3730         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3731         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3732         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3733         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3734         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3735         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3736
3737         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3738         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3739         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3740
3741         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3742         with __addr.
3743         (insw): Likewise.
3744         (insl): Likewise.
3745         (outsb): Likewise.
3746         (outsw): Likewise.
3747         (outsl): Likewise.
3748
3749         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3750         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3751         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3752
3753         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3754         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3755         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3756         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3757         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3758         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3759
3760         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3761         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3762
3763         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3764         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3765
3766         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3767         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3768         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3769
3770         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3771         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3772         to ...
3773         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3774
3775         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3776         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3777         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3778
3779         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3780         for x86-64.
3781         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3782
3783 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3784
3785         * math/math.h (M_El): Use two more decimal places.
3786         (M_LOG2El): Likewise.
3787         (M_LOG10El): Likewise.
3788         (M_LN2l): Likewise.
3789         (M_LN10l): Likewise.
3790         (M_PIl): Likewise.
3791         (M_PI_2l): Likewise.
3792         (M_PI_4l): Likewise.
3793         (M_1_PIl): Likewise.
3794         (M_2_PIl): Likewise.
3795         (M_2_SQRTPIl): Likewise.
3796         (M_SQRT2l): Likewise.
3797         (M_SQRT1_2l): Likewise.
3798
3799 2012-05-31  David S. Miller  <davem@davemloft.net>
3800
3801         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3802         values between float registers.
3803         * sysdeps/sparc/sparc64/memset.S: Likewise.
3804         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3805
3806 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3807
3808         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3809         -D_FORTIFY_SOURCE=1.
3810         (CPPFLAGS-tst-longjmp_chk.c): Define.
3811         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3812         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3813         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3814         CFLAGS-tst-wchar-h.c.
3815
3816 2012-05-31  Marek Polacek  <polacek@redhat.com>
3817
3818         [BZ #14132]
3819         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3820         __endmntent_internal): Remove declaration.
3821         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3822         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3823         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3824
3825 2012-05-30  David S. Miller  <davem@davemloft.net>
3826
3827         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3828         (___Q_simulate_exceptions): Use real FP ops rather than writing
3829         into the %fsr.
3830         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3831         Likewise.
3832
3833 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3834
3835         [BZ #14117]
3836         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3837         * sysdeps/x86/bits/xtitypes.h: This.
3838
3839         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3840         * sysdeps/x86/bits/wordsize.h: This.
3841
3842         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3843         * sysdeps/x86/bits/huge_vall.h: This.
3844
3845         * sysdeps/i386/bits/select.h: Removed.
3846         * sysdeps/x86_64/bits/select.h: Renamed to ...
3847         * sysdeps/x86/bits/select.h: This.
3848
3849         * sysdeps/i386/bits/setjmp.h: Removed.
3850         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3851         * sysdeps/x86/bits/setjmp.h: This.
3852
3853         * sysdeps/i386/bits/mathdef.h: Removed.
3854         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3855         * sysdeps/x86/bits/mathdef.h: This.
3856
3857 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3858
3859         [BZ #14132]
3860         * include/sys/socket.h (__connect_internal)
3861         (__libc_sa_len_internal): Remove declaration.
3862         (__connect, __libc_sa_len): Declare hidden_proto.
3863         (SA_LEN): Remove use of INTUSE.
3864         * socket/connect.c: Add libc_hidden_def.
3865         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3866         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3867         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3868         alias.
3869         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3870         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3871         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3872         of adding _internal alias.
3873
3874 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3875
3876         [BZ #14117]
3877         * sysdeps/i386/bits/link.h: Removed.
3878         * sysdeps/i386/bits/linkmap.h: Likewise.
3879         * sysdeps/x86_64/bits/link.h: Renamed to ...
3880         * sysdeps/x86/bits/link.h: This.
3881         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3882         * sysdeps/x86/bits/linkmap.h: This.
3883
3884         * sysdeps/i386/bits/endian.h: Removed.
3885         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3886         * sysdeps/x86/bits/endian.h: This.
3887
3888         * sysdeps/i386/bits/byteswap.h: Removed.
3889         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3890         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3891         * sysdeps/x86/bits/byteswap.h: This.
3892         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3893         * sysdeps/x86/bits/byteswap-16.h: This.
3894         * sysdeps/i386/Implies: Add x86.
3895         * sysdeps/x86_64/Implies: Likewise.
3896
3897 2012-05-30  David S. Miller  <davem@davemloft.net>
3898
3899         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3900         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3901         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3902         (FP_TRAPPING_EXCEPTIONS): Define.
3903         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3904         (FP_TRAPPING_EXCEPTIONS): Define.
3905         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3906         subnormals only when inexact has been signalled or underflow
3907         exceptions are enabled.
3908         (_FP_PACK_CANONICAL): Likewise.
3909
3910 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3911
3912         [BZ #14183]
3913         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3914         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3915
3916 2012-05-30  Richard Henderson  <rth@twiddle.net>
3917
3918         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3919         with #ifndef NOT_IN_libc.
3920
3921         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3922         marked to avoid plt entry.
3923
3924 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3925
3926         [BZ #14112]
3927         * Makeconfig (default-abi): New macro.
3928         (abi-includes): Likewise.
3929         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3930         $(abi-$(default-abi)-lib-soname) for soname if defined.
3931         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3932         abi-variants.
3933         * Makefile (installed-stubs): Likewise.
3934         * include/stubs-biarch.h: Removed.
3935         * scripts/lib-names.awk: Only handle one library at a time.
3936         * scripts/soversions.awk: Remove WORDSIZE support.
3937         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3938         entries.
3939         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3940         Removed.
3941         (syscall-list-default-condition): Likewise.
3942         (syscall-list-default-condition): Likewise.
3943         (syscall-list-includes): Likewise.
3944         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3945         syscall-list-* with abi-*.  Handle undefined abi-variants.
3946         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3947         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3948         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3949         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3950         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3951         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3952         Removed.
3953         (syscall-list-32-options): Likewise.
3954         (syscall-list-32-condition): Likewise.
3955         (syscall-list-64-options): Likewise.
3956         (syscall-list-64-condition): Likewise.
3957         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3958         macro.
3959         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3960         Renamed to ...
3961         (abi-*): This.
3962         (abi-64-ld-soname): New macro.
3963         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3964         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3965         Renamed to ...
3966         (abi-*): This.
3967         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3968         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3969
3970 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3971
3972         * sysdeps/unix/sysv/linux/kernel-features.h
3973         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3974         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3975         include <kernel-features.h>.
3976         [!__NR_ftruncate64]: Remove conditional code.
3977         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3978         [__NR_ftruncate64]: Make code unconditional.
3979         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3980         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3981         include <kernel-features.h>.
3982         [!__NR_ftruncate64]: Remove conditional code.
3983         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3984         [__NR_ftruncate64]: Make code unconditional.
3985         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3987         include <kernel-features.h>.
3988         [!__NR_ftruncate64]: Remove conditional code.
3989         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3990         [__NR_ftruncate64]: Make code unconditional.
3991         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3993         include <kernel-features.h>.
3994         [!__NR_ftruncate64]: Remove conditional code.
3995         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3996         [__NR_ftruncate64]: Make code unconditional.
3997         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3998
3999         * configure.in (libc_cv_fpie): Weaken to a compile test using
4000         LIBC_TRY_CC_OPTION.
4001         * configure: Regenerated.
4002
4003 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4004
4005         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4006         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4007         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4008         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4009         Refreshed.
4010         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4011         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4012         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4013         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4014         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4015         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4016         Refreshed.
4017
4018 2012-05-27  David S. Miller  <davem@davemloft.net>
4019
4020         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4021         (___Q_zero): New.
4022         (__Q_simulate_exceptions): Return void.  Change to simulate
4023         exceptions by writing into the %fsr.
4024         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4025         (__Qp_handle_exceptions): Likewise.
4026         (numbers): Delete.
4027         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4028         __Qp_handle_exceptions.
4029         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4030         __Qp_handle_exceptions.
4031         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4032         as unused and give dummy FP_RND_NEAREST initializer.
4033         (FP_INHIBIT_RESULTS): Define.
4034         (___Q_simulate_exceptions): Update declaration.
4035         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4036         formatting.
4037         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4038         as unused and give dummy FP_RND_NEAREST initializer.
4039         (__Qp_handle_exceptions): Update declaration.
4040         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4041         formatting.
4042
4043 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4044
4045         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4046         the temporary FPU control word.
4047         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4048         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4049         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4050         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4051         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4052         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4053         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4054         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4055         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4056         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4057         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4058
4059 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4060
4061         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4062         fields.
4063
4064 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4065
4066         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4067         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4068         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4069         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4070         Likewise.
4071         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4072         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4073         Likewise.
4074
4075 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4076
4077         * po/h.po: Update from translation team.
4078
4079 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4080
4081         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4082
4083         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4084         handling of denormals.
4085         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4086         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4087         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4088         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4089         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4090         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4091         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4092         Likewise.
4093
4094 2012-05-26  Marek Polacek  <polacek@redhat.com>
4095
4096         [BZ #14152]
4097         * math/libm-test.inc (fma_test): Don't always expect underflow
4098         exception.
4099
4100 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4101
4102         [BZ #12416]
4103         * elf/tst-execstack.c: Include stackinfo.h.
4104         (do_test): Adjust test case to ensure that pthread_getattr_np
4105         behaviour remains the same after marking stack executable.
4106
4107 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4108
4109         * sysdeps/unix/sysv/linux/kernel-features.h
4110         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4111         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4112         kernel-features.h.
4113         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4114         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4115         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4116         kernel-features.h.
4117         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4118         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4119
4120 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4121
4122         * configure.in: Define the default includes to being none.
4123         * configure: Regenerated.
4124
4125 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4126
4127         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4128         * sysdeps/x86_64/setjmp.S: Likewise.
4129         * sysdeps/i386/bsd-setjmp.S: Likewise.
4130         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4131         * sysdeps/i386/setjmp.S: Likewise.
4132         * sysdeps/i386/__longjmp.S: Likewise.
4133         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4134         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4135
4136         * include/stap-probe.h: New file.
4137         * configure.in: Handle --enable-systemtap.
4138         * configure: Regenerated.
4139         * config.h.in (USE_STAP_PROBE): New #undef.
4140         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4141         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4142         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4143
4144 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4145
4146         [BZ #13717]
4147         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4148         to 2.4.0 where earlier.
4149         * sysdeps/unix/sysv/linux/configure: Regenerated.
4150         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4151         <kernel-features.h>.
4152         [__ASSUME_32BITUIDS]: Make code unconditional.
4153         [!__ASSUME_32BITUIDS]: Remove conditional code.
4154         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4155         <kernel-features.h>.
4156         [__ASSUME_32BITUIDS]: Make code unconditional.
4157         [!__ASSUME_32BITUIDS]: Remove conditional code.
4158         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4159         [__ASSUME_32BITUIDS]: Make code unconditional.
4160         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4161         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4162         <kernel-features.h>.
4163         [__ASSUME_32BITUIDS]: Make code unconditional.
4164         [!__ASSUME_32BITUIDS]: Remove conditional code.
4165         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4166         <kernel-features.h>.
4167         [__ASSUME_32BITUIDS]: Make code unconditional.
4168         [!__ASSUME_32BITUIDS]: Remove conditional code.
4169         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4170         <kernel-features.h>.
4171         [__ASSUME_32BITUIDS]: Make code unconditional.
4172         [!__ASSUME_32BITUIDS]: Remove conditional code.
4173         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4174         <kernel-features.h>.
4175         [__ASSUME_32BITUIDS]: Make code unconditional.
4176         [!__ASSUME_32BITUIDS]: Remove conditional code.
4177         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4178         <kernel-features.h>.
4179         [__ASSUME_32BITUIDS]: Make code unconditional.
4180         [!__ASSUME_32BITUIDS]: Remove conditional code.
4181         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4182         <kernel-features.h>.
4183         [__ASSUME_32BITUIDS]: Make code unconditional.
4184         [!__ASSUME_32BITUIDS]: Remove conditional code.
4185         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4186         <kernel-features.h>.
4187         [__ASSUME_32BITUIDS]: Make code unconditional.
4188         [!__ASSUME_32BITUIDS]: Remove conditional code.
4189         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4190         <kernel-features.h>.
4191         [__ASSUME_32BITUIDS]: Make code unconditional.
4192         [!__ASSUME_32BITUIDS]: Remove conditional code.
4193         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4194         <kernel-features.h>.
4195         [__ASSUME_32BITUIDS]: Make code unconditional.
4196         [!__ASSUME_32BITUIDS]: Remove conditional code.
4197         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4198         <kernel-features.h>.
4199         [__ASSUME_32BITUIDS]: Make code unconditional.
4200         [!__ASSUME_32BITUIDS]: Remove conditional code.
4201         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4202         <kernel-features.h>.
4203         [__NR_setresgid] (__setresgid): Do not declare.
4204         [__ASSUME_32BITUIDS]: Make code unconditional.
4205         [!__ASSUME_32BITUIDS]: Remove conditional code.
4206         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4207         <kernel-features.h>.
4208         [__NR_setresuid] (__setresuid): Do not declare.
4209         [__ASSUME_32BITUIDS]: Make code unconditional.
4210         [!__ASSUME_32BITUIDS]: Remove conditional code.
4211         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4212         <kernel-features.h>.
4213         [__ASSUME_32BITUIDS]: Make code unconditional.
4214         [!__ASSUME_32BITUIDS]: Remove conditional code.
4215         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4216         <kernel-features.h>.
4217         [__ASSUME_32BITUIDS]: Make code unconditional.
4218         [!__ASSUME_32BITUIDS]: Remove conditional code.
4219         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4220         <kernel-features.h>.
4221         [__ASSUME_32BITUIDS]: Make code unconditional.
4222         [!__ASSUME_32BITUIDS]: Remove conditional code.
4223         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4224         <kernel-features.h>.
4225         [__ASSUME_32BITUIDS]: Make code unconditional.
4226         [!__ASSUME_32BITUIDS]: Remove conditional code.
4227         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4228         <kernel-features.h>.
4229         [__ASSUME_32BITUIDS]: Make code unconditional.
4230         [!__ASSUME_32BITUIDS]: Remove conditional code.
4231         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4232         <kernel-features.h>.
4233         [__ASSUME_32BITUIDS]: Make code unconditional.
4234         [!__ASSUME_32BITUIDS]: Remove conditional code.
4235         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4236         <kernel-features.h>.
4237         [__ASSUME_32BITUIDS]: Make code unconditional.
4238         [!__ASSUME_32BITUIDS]: Remove conditional code.
4239         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4240         <kernel-features.h>.
4241         [__ASSUME_32BITUIDS]: Make code unconditional.
4242         [!__ASSUME_32BITUIDS]: Remove conditional code.
4243         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4244         <kernel-features.h>.
4245         [__ASSUME_32BITUIDS]: Make code unconditional.
4246         [!__ASSUME_32BITUIDS]: Remove conditional code.
4247         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4248         <kernel-features.h>.
4249         [__ASSUME_32BITUIDS]: Make code unconditional.
4250         [!__ASSUME_32BITUIDS]: Remove conditional code.
4251         * sysdeps/unix/sysv/linux/kernel-features.h
4252         (__ASSUME_SETRESUID_SYSCALL): Remove.
4253         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4254         (__ASSUME_32BITUIDS): Likewise.
4255         (__ASSUME_LDT_WORKS): Likewise.
4256         (__ASSUME_O_DIRECTORY): Likewise.
4257         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4258         architecture but not kernel version.
4259         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4260         (__ASSUME_MMAP2_SYSCALL): Likewise.
4261         (__ASSUME_STAT64_SYSCALL): Likewise.
4262         (__ASSUME_IPC64): Likewise.
4263         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4264         <kernel-features.h>.
4265         [__ASSUME_32BITUIDS]: Make code unconditional.
4266         [!__ASSUME_32BITUIDS]: Remove conditional code.
4267         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4268         <kernel-features.h>.
4269         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4270         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4271         132096]: Remove conditional code.
4272         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4273         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4274         <kernel-features.h>.
4275         [__ASSUME_32BITUIDS]: Make code unconditional.
4276         [!__ASSUME_32BITUIDS]: Remove conditional code.
4277         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4278         <kernel-features.h>.
4279         [__ASSUME_32BITUIDS]: Make code unconditional.
4280         [!__ASSUME_32BITUIDS]: Remove conditional code.
4281         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4282         <kernel-features.h>.
4283         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4284         unconditional.
4285         (__setresgid): Do not declare.
4286         [__ASSUME_32BITUIDS]: Make code unconditional.
4287         [!__ASSUME_32BITUIDS]: Remove conditional code.
4288         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4289         <kernel-features.h>.
4290         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4291         unconditional.
4292         (__setresuid): Do not declare.
4293         [__ASSUME_32BITUIDS]: Make code unconditional.
4294         [!__ASSUME_32BITUIDS]: Remove conditional code.
4295         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4296         <kernel-features.h>.
4297         [__ASSUME_32BITUIDS]: Make code unconditional.
4298         [!__ASSUME_32BITUIDS]: Remove conditional code.
4299         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4300         <kernel-features.h>.
4301         [__ASSUME_32BITUIDS]: Make code unconditional.
4302         [!__ASSUME_32BITUIDS]: Remove conditional code.
4303
4304 2012-05-25  Richard Henderson  <rth@twiddle.net>
4305
4306         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4307         dl_hwcap to ifunc resolver.
4308         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4309         elf_ifunc_invoke.
4310         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4311         dl_hwcap to ifunc resolver.
4312         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4313
4314 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4315
4316         [BZ #14153]
4317         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4318         for |x| <= 2**-26, not 2**-57.
4319         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4320         exception.
4321
4322 2012-05-24  Jeff Law  <law@redhat.com>
4323
4324         * stdio-common/Makefile (tests): Add bug25.
4325         * stdio-common/bug25.c: New test.
4326
4327 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4328
4329         [BZ #13576]
4330         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4331         multiple of MALLOC_ALIGNMENT in size.
4332         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4333
4334 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4335
4336         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4337         Require >= 256.
4338         (FILENAME_MAX): Use macro-int-constant.
4339         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4340         (_IOFBF): Use macro-int-constant.
4341         (_IOLBF): Likewise.
4342         (_IONBF): Likewise.
4343         (SEEK_CUR): Likewise.
4344         (SEEK_END): Likewise.
4345         (SEEK_SET): Likewise.
4346         (TMP_MAX): Likewise.
4347         (EOF): Use macro-int-constant.  Require < 0.
4348         (NULL): Use macro-constant.  Require == 0.
4349         (stdin): Require type to be FILE *.
4350         (stdout): Likewise.
4351         (stderr): Likewise.
4352         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4353         macro-int-constant.
4354         (EXIT_SUCCESS): Likewise.
4355         (NULL): Use macro-constant.  Require == 0.
4356         (RAND_MAX): Use macro-int-constant.
4357         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4358         [C99-based standards] (strtof): Require function.
4359         [C99-based standards] (strtold): Likewise.
4360         [C99-based standards] (strtoll): Likewise.
4361         [C99-based standards] (strtoull): Likewise.
4362         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4363         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4364         [ISO || ISO99 || ISO11] (math.h): Likewise.
4365         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4366         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4367         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4368
4369 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4370
4371         [BZ #14132]
4372         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4373         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4374         * intl/dgettext.c (DCGETTEXT): Likewise.
4375         * intl/gettext.c (DCGETTEXT): Likewise.
4376         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4377         * posix/regex_internal.h (gettext): Likewise.
4378         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4379         Remove declaration.
4380         * include/argz.h (__argz_count_internal)
4381         (__argz_stringify_internal): Remove declaration.
4382         (__argz_count, __argz_stringify): Declare hidden proto.
4383         * intl/dcgettext.c: Remove use of INTDEF.
4384         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4385         * string/argz-stringify.c: Likewise.
4386         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4387         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4388         Declare hidden proto.
4389         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4390         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4391         Declare hidden proto.
4392         * include/stdio.h (__asprintf_internal): Don't declare.
4393         (__asprintf): Don't define as macro.  Declare hidden proto.
4394         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4395         (__fsetlocking): Declare hidden proto.
4396         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4397         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4398         hidden proto.
4399         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4400         (_IO_setlinebuf): Remove use of INTUSE.
4401         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4402         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4403         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4404         Remove declaration.
4405         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4406         (_IO_do_flush): Remove use of INTUSE.
4407         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4408         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4409         (_IO_adjust_column, _IO_least_wmarker)
4410         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4411         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4412         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4413         (_IO_default_doallocate, _IO_wdefault_doallocate)
4414         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4415         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4416         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4417         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4418         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4419         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4420         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4421         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4422         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4423         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4424         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4425         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4426         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4427         proto.
4428         (_IO_flush_all_internal, _IO_adjust_column_internal)
4429         (_IO_default_uflow_internal, _IO_default_finish_internal)
4430         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4431         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4432         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4433         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4434         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4435         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4436         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4437         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4438         (_IO_file_close_internal, _IO_file_close_it_internal)
4439         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4440         (_IO_file_init_internal, _IO_file_attach_internal)
4441         (_IO_file_fopen_internal, _IO_file_read_internal)
4442         (_IO_file_sync_internal, _IO_file_seek_internal)
4443         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4444         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4445         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4446         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4447         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4448         (_IO_list_all_internal, _IO_link_in_internal)
4449         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4450         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4451         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4452         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4453         (_IO_do_write_internal, _IO_padn_internal)
4454         (_IO_getline_info_internal, _IO_getline_internal)
4455         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4456         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4457         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4458         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4459         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4460         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4461         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4462         with libc_hidden_ver, remove use of INTUSE.
4463         * libio/genops.c: Likewise.
4464         * libio/freopen.c: Likewise.
4465         * libio/freopen64.c: Likewise.
4466         * libio/iofclose.c: Likewise.
4467         * libio/iofdopen.c: Likewise.
4468         * libio/iofflush.c: Likewise.
4469         * libio/iofflush_u.c: Likewise.
4470         * libio/iofgets.c: Likewise.
4471         * libio/iofgets_u.c: Likewise.
4472         * libio/iofopen.c: Likewise.
4473         * libio/iofopncook.c: Likewise.
4474         * libio/iofread.c: Likewise.
4475         * libio/iofread_u.c: Likewise.
4476         * libio/ioftell.c: Likewise.
4477         * libio/iofwrite.c: Likewise.
4478         * libio/iogetline.c: Likewise.
4479         * libio/iogets.c: Likewise.
4480         * libio/iogetwline.c: Likewise.
4481         * libio/iopadn.c: Likewise.
4482         * libio/iopopen.c: Likewise.
4483         * libio/ioseekoff.c: Likewise.
4484         * libio/ioseekpos.c: Likewise.
4485         * libio/iosetbuffer.c: Likewise.
4486         * libio/iosetvbuf.c: Likewise.
4487         * libio/ioungetc.c: Likewise.
4488         * libio/ioungetwc.c: Likewise.
4489         * libio/iovdprintf.c: Likewise.
4490         * libio/iovsprintf.c: Likewise.
4491         * libio/iovsscanf.c: Likewise.
4492         * libio/memstream.c: Likewise.
4493         * libio/obprintf.c: Likewise.
4494         * libio/oldfileops.c: Likewise.
4495         * libio/oldiofclose.c: Likewise.
4496         * libio/oldiofdopen.c: Likewise.
4497         * libio/oldiofopen.c: Likewise.
4498         * libio/oldiopopen.c: Likewise.
4499         * libio/oldstdfiles.c: Likewise.
4500         * libio/putc.c: Likewise.
4501         * libio/setbuf.c: Likewise.
4502         * libio/setlinebuf.c: Likewise.
4503         * libio/stdfiles.c: Likewise.
4504         * libio/strops.c: Likewise.
4505         * libio/vasprintf.c: Likewise.
4506         * libio/vscanf.c: Likewise.
4507         * libio/vsnprintf.c: Likewise.
4508         * libio/vswprintf.c: Likewise.
4509         * libio/wfiledoalloc.c: Likewise.
4510         * libio/wfileops.c: Likewise.
4511         * libio/wgenops.c: Likewise.
4512         * libio/wmemstream.c: Likewise.
4513         * libio/wstrops.c: Likewise.
4514         * libio/__fpurge.c: Likewise.
4515         * libio/__fsetlocking.c: Likewise.
4516         * assert/assert.c: Likewise.
4517         * debug/fgets_chk.c: Likewise.
4518         * debug/fgets_u_chk.c: Likewise.
4519         * debug/fread_chk.c: Likewise.
4520         * debug/fread_u_chk.c: Likewise.
4521         * debug/gets_chk.c: Likewise.
4522         * debug/obprintf_chk.c: Likewise.
4523         * debug/vasprintf_chk.c: Likewise.
4524         * debug/vdprintf_chk.c: Likewise.
4525         * debug/vsnprintf_chk.c: Likewise.
4526         * debug/vsprintf_chk.c: Likewise.
4527         * malloc/mtrace.c: Likewise.
4528         * misc/error.c: Likewise.
4529         * misc/syslog.c: Likewise.
4530         * stdio-common/asprintf.c: Likewise.
4531         * stdio-common/fxprintf.c: Likewise.
4532         * stdio-common/getw.c: Likewise.
4533         * stdio-common/isoc99_fscanf.c: Likewise.
4534         * stdio-common/isoc99_scanf.c: Likewise.
4535         * stdio-common/isoc99_vfscanf.c: Likewise.
4536         * stdio-common/isoc99_vscanf.c: Likewise.
4537         * stdio-common/isoc99_vsscanf.c: Likewise.
4538         * stdio-common/printf-prs.c: Likewise.
4539         * stdio-common/printf_fp.c: Likewise.
4540         * stdio-common/printf_fphex.c: Likewise.
4541         * stdio-common/printf_size.c: Likewise.
4542         * stdio-common/putw.c: Likewise.
4543         * stdio-common/scanf.c: Likewise.
4544         * stdio-common/sprintf.c: Likewise.
4545         * stdio-common/tmpfile.c: Likewise.
4546         * stdio-common/vfprintf.c: Likewise.
4547         * stdio-common/vfscanf.c: Likewise.
4548         * stdlib/strfmon_l.c: Likewise.
4549         * sunrpc/openchild.c: Likewise.
4550         * sunrpc/xdr_stdio.c: Likewise.
4551         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4552         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4553
4554 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4555
4556         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4557
4558         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4559         in the third column, to generate for the shared library an IFUNC
4560         that uses _dl_vdso_vsym.
4561         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4562         * Makeconfig (object-suffixes-noshared): New variable.
4563
4564         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4565         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4566         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4567         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4568
4569         [BZ #14132]
4570         * include/sys/time.h (__gettimeofday): Remove macro.
4571         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4572         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4573         Remove INTDEF.
4574         (__gettimeofday): Add libc_hidden_def.
4575         (gettimeofday): Add libc_hidden_weak.
4576         * sysdeps/mach/gettimeofday.c: Likewise.
4577         * sysdeps/posix/gettimeofday.c: Likewise.
4578         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4579         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4580         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4581         (__gettimeofday_internal): Remove strong_alias.
4582         (__gettimeofday): Add libc_hidden_def.
4583         (gettimeofday): Add libc_hidden_weak.
4584         * sysdeps/unix/syscalls.list (gettimeofday):
4585         Remove __gettimeofday_internal alias.
4586
4587 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4588             H.J. Lu  <hongjiu.lu@intel.com>
4589
4590         [BZ #12495]
4591         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4592         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4593         (largebin_index_32_big): New.
4594         (largebin_index): Use it for 16-byte alignment.
4595         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4596         correction with front_misalign.
4597
4598 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4599
4600         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4601         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4602         Likewise.
4603         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4604         Likewise.
4605         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4606         Likewise.
4607         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4608         Likewise.
4609         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4610         Likewise.
4611         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4612         Likewise.
4613         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4614         Likewise.
4615         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4616         Likewise.
4617         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4618         Likewise.
4619         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4620         Likewise.
4621         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4622         Likewise.
4623         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4624         Likewise.
4625
4626         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4627         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4628
4629 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4630
4631         [BZ #10846]
4632         [BZ #14036]
4633         * math/libm-test.inc (exp_test): Add test from bug 14036.
4634         (pow_test): Add test from bug 10846.
4635
4636         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4637         and other flags.
4638         (special_function): Do not include flags in test name.
4639         (parse_args): Likewise.
4640         * sysdeps/i386/fpu/libm-test-ulps: Update.
4641         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4642         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4643         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4645
4646         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4647         exceptions.
4648         * math/libm-test.inc ("Philosophy"): Update comment about
4649         exception testing.
4650         (UNDERFLOW_EXCEPTION): New macro.
4651         (UNDERFLOW_EXCEPTION_OK): Likewise.
4652         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4653         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4654         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4655         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4656         (INVALID_EXCEPTION_OK): Update value.
4657         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4658         (OVERFLOW_EXCEPTION_OK): Likewise.
4659         (IGNORE_ZERO_INF_SIGN): Likewise.
4660         (test_exceptions): Handle underflow exceptions.
4661         (acos_test): Update for underflow exception expectations.
4662         (cexp_test): Likewise.
4663         (clog_test): Likewise.
4664         (clog10_test): Likewise.
4665         (csqrt_test): Likewise.
4666         (ctan_test): Likewise.
4667         (ctanh_test): Likewise.
4668         (exp_test): Likewise.
4669         (exp10_test): Likewise.
4670         (exp2_test): Likewise.
4671         (expm1_test): Likewise.
4672         (fma_test): Likewise.
4673         (j0_test): Likewise.
4674         (jn_test): Likewise.
4675         (nexttoward_test): Likewise.
4676         (pow_test): Likewise.
4677         (scalbn_test): Likewise.
4678         (scalbln_test): Likewise.
4679         (tan_test): Likewise.
4680         (y1_test): Likewise.
4681         * sysdeps/i386/fpu/libm-test-ulps: Update.
4682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4683
4684 2012-05-23  David S. Miller  <davem@davemloft.net>
4685
4686         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4687         (__libc_sigaction): Remove unused local variables.
4688
4689 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4690
4691         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4692
4693 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4694
4695         mktime: avoid signed integer overflow
4696         * time/mktime.c (__mktime_internal): Do not mishandle the case
4697         where diff == INT_MIN.
4698
4699         mktime: simplify computation of average
4700         * time/mktime.c (ranged_convert): Use new time_t_avg function
4701         instead of rolling our own (probably-slower) code.
4702
4703         mktime: do not assume signed right shift propagates sign bit
4704         * time/mktime.c (isdst_differ): New static function.
4705         (__mktime_internal): No need to normalize tm_isdst now.
4706         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4707         tm_isdst values.
4708
4709         mktime: merge another wrapv change from gnulib
4710         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4711         from some compilers.
4712
4713         mktime: remove incorrect attempt at unusual arithmetics
4714         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4715         The code didn't really work on such machines anyway.
4716         (TYPE_MINIMUM): Assume two's complement.
4717         (twos_complement_arithmetic): Verify that long_int and time_t
4718         are two's complement (or unsigned, in the latter case).
4719
4720         mktime: check signed shifts on long_int and time_t, too
4721         * time/mktime.c (SHR): Check that shifts work as desired
4722         on the types long_int and time_t too, as SHR is used on
4723         such types.
4724
4725         mktime: do not assume 'long' is wide enough
4726         * time/mktime.c (verify): Move decl up.
4727         (long_int): New type.
4728         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4729         to remove assumption in the code that 'long' is wide enough to
4730         store year values.  This assumption is not true on x32 and on
4731         some non-glibc platforms.
4732
4733         mktime: merge wrapv change from gnulib
4734         * time/mktime.c (WRAPV): New macro.
4735         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4736         (guess_time_tm, __mktime_internal): Do not assume that signed
4737         integer overflow wraps around; modern compilers generate code
4738         where this assumption is no longer valid.
4739
4740 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4741
4742         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4743         Replace "jmp L(pseudo_end)" with "ret".
4744         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4745         Likewise.
4746
4747 2012-05-23  Andreas Jaeger  <aj@suse.de>
4748
4749         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4750         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4751
4752 2012-05-23  Andreas Jaeger  <aj@suse.de>
4753             Maximilian Attems  <max@stro.at>
4754
4755         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4756         New macros.
4757
4758 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4759
4760         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4761         code so that pseudo_end is just ret and the stack pointer is
4762         correct also for static library in error case.
4763
4764 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4765
4766         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4767         move to syscalls.list.
4768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4772
4773         * manual/install.texi (Running make install): Do not mention Linux
4774         kernel version for which pt_chown is not needed.
4775         (Linux): Do not mention problems with nscd with 2.0 kernels.
4776         * INSTALL: Regenerated.
4777
4778 2012-05-23  Andreas Jaeger  <aj@suse.de>
4779
4780         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4781         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4782         macro.
4783         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4784         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4785         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4786         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4787         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4788         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4789         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4790         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4791         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4792         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4793         * sysdeps/unix/sysv/linux/bits/in.h
4794         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4795
4796 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4797
4798         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4799         (PREPARE_VERSION): Just use assert instead, it will be elided
4800         under [NDEBUG] anyway.
4801
4802 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4803
4804         * sysdeps/unix/sysv/linux/Makefile: Include
4805         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4806         (sysdep_routines): Remove sysctl.
4807         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4808         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4809         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4810         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4811         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4812
4813 2012-05-22  Andreas Jaeger  <aj@suse.de>
4814
4815         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4816         that pseudo_end is just ret and the stack pointer is correct also
4817         for static library in error case.
4818
4819 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4820
4821         [BZ #14122]
4822         * nss/nsswitch.c (defconfig_entries): New variable.
4823         (__nss_database_lookup): Don't leak defconfig entries.
4824         (nss_parse_service_list): Don't leak on error paths.
4825         (free_database_entries): New function.
4826         (free_defconfig): New function.
4827         (free_mem): Move common code to free_database_entries.
4828
4829 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4830
4831         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4832         Add arch_prctl.
4833         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4834
4835         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4836         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4837         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4838         New macro.
4839         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4840         (INTERNAL_SYSCALL_TYPES): Likewise.
4841         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4842         (LOAD_REGS_TYPES_[1-6]): Likewise.
4843         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4844         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4845
4846 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4847
4848         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4849         copysignl for GLIBC_2_0.
4850         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4851         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4852         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4853         logbl for GLIBC_2_0.
4854         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4855         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4856
4857 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4858
4859         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4860         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4861
4862         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4863         Use "neg %eax".
4864
4865         * time/mktime.c: Update copyright years.
4866
4867 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4868
4869         mktime: merge comment-quoting-style change from gnulib
4870         * time/mktime.c: Quote 'like this' in comments.
4871         The GNU coding standards suggest that we no longer quote `like this',
4872         as "`" and "'" are typically rendered asymmetrically nowadays.
4873         The typical gnulib style is to quote 'like this' when quoting
4874         code, and "like this" when quoting English.
4875
4876         * time/mktime.c (compile-command): Add "-I.".
4877
4878         mktime: merge mktime-internal.h change from gnulib
4879         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4880
4881         mktime: merge time_r change from gnulib
4882         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4883
4884         mktime: merge DEBUG change from gnulib
4885         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4886         case system <time.h> has a #define.
4887
4888         mktime: merge <sys/types.h> change from gnulib
4889         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4890         since <time.t> is now guaranteed to define time_t.
4891
4892         mktime: merge HAVE_CONFIG_H change from gnulib
4893         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4894
4895 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4896
4897         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4898         Use "neg %eax".
4899
4900         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4901         __rlim_t cast.
4902         (struct rusage): Use anonymous union to pad each field to
4903         __syscall_slong_t.
4904
4905 2012-05-21  David S. Miller  <davem@davemloft.net>
4906
4907         * Makefules (o-iterator): Remove .s cases.
4908         (compile-command.s): Delete.
4909         (COMPILE.s): Delete.
4910         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4911
4912 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4913
4914         * configure.in (libc_cv_predef_stack_protector): Only consider
4915         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4916         * configure: Regenerated.
4917
4918 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4919
4920         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4921         New macro.  Use R*LP on int and pointer.
4922         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4923         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4924         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4925         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4926
4927         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4928         [__WORDSIZE_TIME64_COMPAT32] instead of
4929         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4930         (struct utmp): Likewise.
4931         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4932         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4933         Renamed to ...
4934         (__WORDSIZE_TIME64_COMPAT32): This.
4935         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4936         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4937         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4938         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4939         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4940         (__WORDSIZE_TIME64_COMPAT32): New macro.
4941
4942 2012-05-21  Andreas Jaeger  <aj@suse.de>
4943
4944         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4945         only if [SHARED]. Add prototype for __wcschr_ia32.
4946
4947 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4948
4949         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4950         of %rbp unmolested in the jmp_buf while mangling the low bits.
4951         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4952         unmolested high bits of %rbp while demangling the low bits.
4953         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4954
4955 2012-05-21  Andreas Jaeger  <aj@suse.de>
4956
4957         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4958         * sunrpc/svc_simple.c: Use it for registerrpc.
4959         * sunrpc/xcrypt.c: Use it for passwd2des.
4960
4961         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4962
4963 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4964
4965         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4966         Don't define if [__SYSCALL_WORDSIZE != 32].
4967         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4968         New macro.
4969
4970 2012-05-21  Bruno Haible  <bruno@clisp.org>
4971             Andreas Jaeger  <aj@suse.de>
4972
4973         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4974         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4975         inptr and inend for must_buffer_ch.
4976         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4977         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4978         * stdio-common/Makefile (tests): Remove bug15.
4979         (bug15-ENV): Remove macro.
4980         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4981         anymore.
4982
4983 2012-05-19  Andreas Jaeger  <aj@suse.de>
4984             Roland McGrath  <roland@hack.frob.com>
4985
4986         * manual/contrib.texi: Completely rewritten. It contains now an
4987         alphabetical list of contributors and their contributions.
4988
4989 2012-05-21  Richard Henderson  <rth@twiddle.net>
4990
4991         * misc/getauxval.c (__getauxval): Use unsigned long int.
4992         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4993         (getauxval): Use unsigned long int.
4994
4995 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4996
4997         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4998
4999 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5000
5001         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5002         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5003         __alignof__ (long double).
5004
5005 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5006
5007         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5008
5009 2012-05-20  Richard Henderson  <rth@twiddle.net>
5010
5011         * misc/getauxval.c: New file.
5012         * misc/sys/auxv.h: New file.
5013         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5014         (routines): Add getauxval.
5015         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5016         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5017         * elf/dl-sysdep.c (_dl_auxv): Remove.
5018         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5019         * elf/dl-support.c (_dl_auxv): New variable.
5020         (_dl_aux_init): Initialize it.
5021         * manual/startup.texi (Auxiliary Vector): New node.
5022         * sysdeps/generic/bits/hwcap.h: New file.
5023         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5024         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5025         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5026         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5027         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5028         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5030         Update.
5031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5032         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5033         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5034         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5035         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5036         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5037         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5038         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5039
5040 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5041
5042         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5043
5044 2012-05-19  David S. Miller  <davem@davemloft.net>
5045
5046         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5047
5048 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5049
5050         [BZ #14123]
5051         * math/s_ccosh.c: Include <float.h>
5052         (__ccosh): Avoid internal overflow calculating sinh and cosh
5053         values before multiplying by sin and cos values.
5054         * math/s_ccoshf.c: Likewise.
5055         * math/s_ccoshl.c: Likewise.
5056         * math/s_csin.c: Likewise.
5057         * math/s_csinf.c: Likewise.
5058         * math/s_csinl.c: Likewise.
5059         * math/s_csinh.c: Likewise.
5060         * math/s_csinhf.c: Likewise.
5061         * math/s_csinhl.c: Likewise.
5062         * math/libm-test.inc (ccos_test): Add more tests.
5063         (ccosh_test): Likewise.
5064         (csin_test): Likewise.
5065         (csinh_test): Likewise.
5066         * sysdeps/i386/fpu/libm-test-ulps: Update.
5067         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5068
5069 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5070
5071         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5072         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5073
5074         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5075
5076 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5077
5078         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5079         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5080         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5081         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5082         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5083         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5084         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5085         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5086         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5087         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5088         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5089         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5090         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5091         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5092         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5093         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5094         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5095         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5096         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5097         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5098         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5099         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5100         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5101         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5102         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5103         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5104         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5105         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5106         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5107         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5108         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5109
5110 2012-05-18  Andreas Jaeger  <aj@suse.de>
5111
5112         * csu/.gitignore: Delete.
5113
5114 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5115
5116         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5117         (timex): Use __syscall_slong_t.
5118
5119 2012-05-18  Andreas Jaeger  <aj@suse.de>
5120             Carlos O'Donell  <carlos_odonell@mentor.com>
5121
5122         * manual/install.texi (Configuring and compiling): Update
5123         description about files modified in the source directory.
5124         * INSTALL: Regenerated.
5125
5126 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5127
5128         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5129         value.  Use "or" to set return value to -1.
5130         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5131         negate return value.
5132
5133 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5134
5135         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5136         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5137         failure if the compiler has Graphite support disabled.
5138         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5139         Likewise.
5140         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5141         CFLAGS-memmove.c): Likewise.
5142         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5143         Likewise.
5144
5145 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5146
5147         * sysdeps/x86_64/x32/_itoa.h: New file.
5148
5149         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5150         getdents system call only if kernel and user dirents have the
5151         same d_ino and d_off.
5152
5153         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5154         LLONG_MAX != LONG_MAX.
5155         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5156         (_fitoa_word): Likewise.
5157
5158         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5159         years.
5160         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5161         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5162         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5163
5164         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5165         include <bits/wordsize.h>.  Check __x86_64__ instead of
5166         __WORDSIZE.
5167         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5168         if __x86_64__ is defined.  Use anonymous union on fpstate.
5169
5170         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5171         anonymous union.
5172
5173 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5174
5175         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5176         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5177         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5178         Refer to _rtld_local_ro instead of _rtld_global_ro.
5179         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5180         Likewise.
5181         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5182         Likewise.
5183         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5184         Likewise.
5185         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5186         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5187         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5188
5189         * sysdeps/powerpc/powerpc32/dl-machine.c
5190         (__elf_machine_runtime_setup) [PROF]: Don't reference
5191         _dl_prof_resolve.
5192
5193 2012-05-18  Andreas Jaeger  <aj@suse.de>
5194
5195         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5196         function only available for GCCs before 3.4 since GCC 3.4
5197         introduced a builtin.
5198         (lrint): Likewise.
5199         (llrintf): Likewise.
5200         (llrint): Likewise.
5201         (fmaxf): Likewise.
5202         (fmax): Likewise.
5203         (fminf): Likewise.
5204         (fmin): Likewise.
5205         (rint): Likewise.
5206         (rintf): Likewise.
5207         (nearbyint): Likewise.
5208         (nearbyintf): Likewise.
5209         (ceil): Likewise.
5210         (ceilf): Likewise.
5211         (floor): Likewise.
5212         (floorf): Likewise.
5213
5214 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5215
5216         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5217         on both fields and cast pointer to __syscall_ulong_t.
5218
5219         * bits/types.h (__fsword_t): New type.
5220         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5221         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5222         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5223         (__FSWORD_T_TYPE): Likewise.
5224         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5225         (__FSWORD_T_TYPE): Likewise.
5226         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5227         (__FSWORD_T_TYPE): Likewise.
5228         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5229         (__FSWORD_T_TYPE): Likewise.
5230         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5231         __SWORD_TYPE with __fsword_t.
5232         (statfs64): Likewise.
5233
5234 2012-05-17  David S. Miller  <davem@davemloft.net>
5235
5236         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5237
5238 2012-05-17  Andreas Jaeger  <aj@suse.de>
5239
5240         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5241         warning.
5242
5243 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5244
5245         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5246
5247 2012-05-17  Andreas Jaeger  <aj@suse.de>
5248
5249         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5250         when it is used.
5251
5252 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5253
5254         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5255
5256 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5257
5258         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5259         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5260
5261 2012-05-17  Andreas Jaeger  <aj@suse.de>
5262             Carlos O'Donell  <carlos_odonell@mentor.com>
5263
5264         [BZ #14059]
5265         * sysdeps/x86_64/multiarch/init-arch.h
5266         (bit_YMM_Usable): Rename to...
5267         (bit_AVX_Usable): ... this.
5268         (bit_FMA4_Usable): New macro.
5269         (bit_XMM_state): New macro.
5270         (bit_YMM_state): New macro.
5271         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5272         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5273         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5274         (CPUID_OSXSAVE): New macro.
5275         (CPUID_AVX): New macro.
5276         (CPUID_FMA4): New macro.
5277         (index_YMM_Usable): Rename to...
5278         (index_AVX_Usable): ... this.
5279         (HAS_AVX): Use HAS_ARCH_FEATURE.
5280         (HAS_FMA4): Likewise.
5281         (HAS_YMM_USABLE): Remove.
5282         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5283         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5284         are present.
5285         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5286         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5287         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5288         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5289         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5290
5291 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5292
5293         * math/libm-test.c: Support platforms without multiple rounding modes.
5294         * math/bug-nextafter.c: Support platforms without FP exceptions.
5295         * math/bug-nexttoward.c: Likewise.
5296         * math/test-fenv.c: Likewise.
5297         * math/test-misc.c: Likewise.
5298         * stdlib/bug-getcontext.c: Likewise.
5299
5300 2012-05-17  Andreas Jaeger  <aj@suse.de>
5301
5302         * manual/examples/search.c (critter_cmp): Change signature to
5303         avoid warnings.
5304         * manual/string.texi (Collation Functions): Likewise.
5305
5306 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5307
5308         * bits/types.h: Fold copyright years.
5309         * bits/typesizes.h: Likewise.
5310         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5311         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5312         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5313         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5314         * time/time.h: Likewise.
5315
5316 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5317
5318         [BZ #208]
5319         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5320         in instead of returning them.  Return void.
5321         (__libc_mallinfo): Accumulate over all arenas.
5322         (__malloc_stats): Adjust for change in int_mallinfo interface.
5323
5324 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5325
5326         [BZ #10375]
5327         * configure.in (NM): Add AC_CHECK_TOOL for it.
5328         (libc_extra_cflags): New substituted variable.
5329         Check for -fstack-protector being used implicitly.
5330         * configure: Regenerated.
5331         * config.make.in (config-extra-cflags): New variable,
5332         gets @libc_extra_cflags@.
5333         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5334
5335         [BZ #10375]
5336         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5337         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5338         * configure: Regenerated.
5339         * config.make.in (CPPUNDEFS): New substituted variable.
5340         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5341         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5342         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5343
5344 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5345
5346         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5347         (mq_attr): Use __syscall_slong_t.
5348
5349 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5350
5351         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5352         Check __x86_64__ instead of __WORDSIZE.
5353         (_STAT_VER_LINUX): Likewise.
5354         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5355         __syscall_ulong_t and __syscall_slong_t.
5356         (stat64): Likewise.
5357
5358 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5359
5360         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5361
5362 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5363
5364         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5365
5366 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5367
5368         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5369         __syscall_ulong_t.
5370
5371         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5372         include <bits/wordsize.h>.  Check __x86_64__ instead of
5373         __WORDSIZE.
5374         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5375         defined.
5376         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5377
5378         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5379         include <bits/wordsize.h>.  Check __x86_64__ instead of
5380         __WORDSIZE.
5381         (user_regs_struct): Use "__extension__ unsigned long long"
5382         instead of "unsigned long" if __x86_64__ is defined.
5383         (user): Likewise.  Pad after pointer field if __ILP32__ is
5384         defined.
5385
5386 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5387
5388         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5389         versions 5 to 9.
5390         * configure: Regenerated.
5391         * manual/install.texi (texinfo): Increase version requirement to
5392         4.5 or later.
5393         * INSTALL: Regenerated.
5394
5395         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5396
5397 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5398
5399         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5400
5401         * sysdeps/x86_64/x32/ffs.c: New file.
5402
5403         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5404         __syscall_ulong_t.
5405         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5406         defined.  Use __syscall_ulong_t.
5407         (shminfo): Use __syscall_ulong_t.
5408         (shm_info): Likewise.
5409
5410         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5411         __syscall_ulong_t.
5412
5413         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5414         <bits/wordsize.h>.
5415         (msgqnum_t): Use __syscall_ulong_t.
5416         (msglen_t): Likewise.
5417         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5418         __syscall_ulong_t.
5419
5420         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5421         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5422
5423         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5424
5425         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5426         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5427
5428         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5429         __syscall_slong_t.
5430
5431         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5432         include <bits/wordsize.h>.  Check __x86_64__ instead of
5433         __WORDSIZE.
5434
5435         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5436         "unsigned long long int" if __x86_64__ is defined.
5437         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5438
5439         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5440         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5441         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5442
5443         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5444         <stdint.h>.
5445         (GET_PC): Cast to uintptr_t first.
5446         (GET_FRAME): Likewise.
5447         (GET_STACK): Likewise.
5448
5449         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5450         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5451         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5452         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5453         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5454         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5455         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5456         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5457         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5458         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5459         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5460         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5461         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5462         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5463         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5464         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5465         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5466         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5467         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5468         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5469         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5470         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5471         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5472         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5473         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5474         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5475         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5476         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5477         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5478
5479 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5480
5481         * Makerules (+depfiles): Also collect depfiles from .oS in
5482         $(extra-objs).
5483         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5484         .oS, $(libnldbl-routines)).
5485
5486         * Makerules (native-compile-mkdep-flags): Define.
5487         * sunrpc/Makefile (extra-objs): Add $(addprefix
5488         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5489         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5490         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5491         calling $(make-target-directory).
5492
5493 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5494
5495         * bits/types.h (__snseconds_t): Removed.
5496         * time/time.h (struct timespec): Replace __snseconds_t with
5497         __syscall_slong_t.
5498         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5499         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5500         Likewise.
5501         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5502         (__SNSECONDS_T_TYPE): Likewise.
5503         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5504         (__SNSECONDS_T_TYPE): Likewise.
5505         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5506         (__SNSECONDS_T_TYPE): Likewise.
5507
5508 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5509
5510         * sysdeps/mach/hurd/bits/typesizes.h
5511         (__SYSCALL_SLONG_TYPE): New macro.
5512         (__SYSCALL_ULONG_TYPE): Likewise.
5513
5514 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5515
5516         * bits/types.h (__syscall_slong_t): New type.
5517         (__syscall_ulong_t): Likewise.
5518
5519         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5520         (__SYSCALL_ULONG_TYPE): Likewise.
5521         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5522         (__SYSCALL_SLONG_TYPE): Likewise.
5523         (__SYSCALL_ULONG_TYPE): Likewise.
5524         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5525         (__SYSCALL_SLONG_TYPE): Likewise.
5526         (__SYSCALL_ULONG_TYPE): Likewise.
5527         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5528         (__SYSCALL_SLONG_TYPE): Likewise.
5529         (__SYSCALL_ULONG_TYPE): Likewise.
5530
5531 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5532
5533         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5534         Add sigaltstack-offsets.sym.
5535         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5536         <sigaltstack-offsets.h>.
5537         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5538         longjmp_msg pointer.
5539         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5540         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5541         signal stack.
5542         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5543
5544 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5545
5546         * elf/stackguard-macros.h: Remove file.
5547         * sysdeps/generic/stackguard-macros.h: New file.
5548         * sysdeps/i386/stackguard-macros.h: Likewise.
5549         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5550         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5551         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5552         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5553         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5554         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5555         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5556         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5557         <elf/stackguard-macros.h>.
5558
5559         [BZ #14109]
5560         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5561         __aligned__ in attribute.
5562         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5563         (gregset_t): Likewise.
5564
5565 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5566
5567         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5568         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5569         * sysdeps/x86_64/x32/Implies-after: New file.
5570
5571 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5572
5573         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5574         and access return value for _dl_profile_fixup.  Use R10_LP to
5575         load frame size.
5576
5577 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5578
5579         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5580
5581 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5582
5583         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5584         * sysdeps/x86_64/x32/sysdep.h: New file.
5585
5586 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5587
5588         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5589         * sysdeps/x86_64/setjmp.S: Likewise.
5590
5591 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5592
5593         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5594         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5595         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5596         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5597         remove unused global constant.
5598
5599 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5600
5601         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5602         include of <not-cancel.h>.
5603
5604 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5605
5606         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5607
5608 2012-05-15  Jeff Law  <law@redhat.com>
5609             Andreas Jaeger  <aj@suse.de>
5610
5611         [BZ #13594]
5612         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5613         out from...
5614         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5615         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5616         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5617         code changing __hst_map_handle.map.
5618
5619 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5620
5621         * configure.in (sysnames): Look for Implies-before and Implies-after
5622         files.
5623         * configure: Regenerated.
5624
5625 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5626
5627         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5628         8-byte data alignment with LP_SIZE alignment.
5629
5630 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5631
5632         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5633         into R10_LP.
5634
5635 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5636
5637         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5638
5639 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5640
5641         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5642         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5643         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5644         Likewise.
5645         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5646
5647 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5648
5649         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5650         (stackinfo_sub_sp): Likewise.
5651
5652 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5653
5654         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5655         RAX_LP.
5656
5657 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5658
5659         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5660         into R*_LP.
5661
5662 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5663
5664         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5665         sizes into R*_LP.
5666
5667 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5668
5669         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5670
5671 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5672
5673         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5674         into R11_LP and load __x86_64_shared_cache_size_half into
5675         R8_LP.
5676
5677 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5678
5679         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5680         R8_LP.
5681
5682 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5683
5684         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5685         logb for POWER7.
5686         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5687         logbf for POWER7.
5688         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5689         logbl for POWER7.
5690         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5691         powerpc32/power7/fpu/s_logb.c via #include.
5692         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5693         powerpc32/power7/fpu/s_logbf.c via #include.
5694         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5695         powerpc32/power7/fpu/s_logbl.c via #include.
5696
5697 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5698
5699         * README.libm: Remove file.
5700
5701 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5702
5703         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5704         count for x32.  Use R*_LP and omit operand-size suffix.
5705
5706 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5707
5708         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5709         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5710         * sysdeps/x86_64/x32/shlib-versions: New file.
5711
5712 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5713
5714         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5715         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5716         Use _dl_fatal_printf instead.
5717
5718 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5719
5720         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5721         set if not set by the user.  Do not allow for being unset.
5722         * sysdeps/unix/sysv/linux/configure: Regenerated.
5723
5724 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5725
5726         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5727         the `q' suffix from lea and replace .quad with ASM_ADDR.
5728
5729 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5730
5731         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5732         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5733         instead of $17.
5734         (PTR_DEMANGLE): Likewise.
5735
5736 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5737
5738         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5739         (LP_OP): Likewise.
5740         (ASM_ADDR): Likewise.
5741         (RAX_LP): Likewise.
5742         (RBP_LP): Likewise.
5743         (RBX_LP): Likewise.
5744         (RCX_LP): Likewise.
5745         (RDI_LP): Likewise.
5746         (RSI_LP): Likewise.
5747         (RSP_LP): Likewise.
5748         (R8_LP): Likewise.
5749         (R9_LP): Likewise.
5750         (R10_LP): Likewise.
5751         (R10_LP): Likewise.
5752         (R11_LP): Likewise.
5753         (R12_LP): Likewise.
5754         (R13_LP): Likewise.
5755         (R14_LP): Likewise.
5756         (R15_LP): Likewise.
5757
5758 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5759
5760         * sysdeps/x86_64/x32/dl-machine.h: New file.
5761
5762 2012-05-14  Andreas Jaeger  <aj@suse.de>
5763
5764         * manual/Makefile (subdir): Remove export of subdir.
5765         (all): Remove target.
5766         (.PHONY): Remove all from list.
5767         (mkinstalldirs): Remove.
5768         (.PHONY): Remove installdirs from list.
5769         ($(inst_infodir)/libc.info): Use make-target-directory.
5770         (installdirs): Remove.
5771         (subdir_%): Remove.
5772         (glibc-targets): Remove.
5773         (lib): Remove.
5774         (stubs): Remove.
5775         ($(objpfx)stubs ../po/manual.pot): Remove.
5776         ($(objpfx)stamp%): Remove.
5777         (make-target-directory): Remove.
5778         (subdir_install): Remove.
5779         (routines): Remove.
5780         (aux): Remove.
5781         (sources): Remove.
5782         (objects): Remove.
5783         (headers): Remove.
5784
5785         [BZ #13750]
5786         * manual/.gitignore: Remove, it's not needed anymore.
5787         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5788         all files in it.
5789         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5790         directory.
5791         (texis): Renamed to $(objpfx)texis.
5792         (texis-path): New, contains path to generated files.
5793         (chapters.%): Use texis-path for complete path, add extra argument
5794         libc-texinfo.sh.
5795         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5796         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5797         (summary,texi, stamp-summary): Use complete path of
5798         files. Generate files in build dir.
5799         (dir-add.texi): Build in build dir.
5800         (libm-err.texi,stamp-libm-err): Likewise.
5801         (version.texi, stamp-version): Likewise.
5802         (.%c.texi): Likewise.
5803         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5804         (mostlyclean): Remove target.
5805         (realclean): Remove target.
5806         (generated): Add new variable with contents from mostlyclean and
5807         realclean, remove entries duplicated in common-mostlyclean, add
5808         stamp-libm-err and stamp-version.
5809         (generated-dirs): Add libc directory.
5810         ($(inst_infodir)/libc.info): Install files from build dir.
5811
5812         * manual/install.texi (Configuring and compiling): Adjust since
5813         the info files are not part of the tar ball anymore.
5814
5815 2012-05-14  Andreas Jaeger  <aj@suse.de>
5816
5817         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5818         variable.
5819
5820 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5821
5822         [BZ #13717]
5823         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5824         to 2.2.0 where earlier.
5825         * sysdeps/unix/sysv/linux/configure: Regenerated.
5826         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5827         Remove conditional code.
5828         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5829         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5830         Remove conditional code.
5831         [!__NR_lchown]: Likewise.
5832         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5833         [__NR_lchown]: Likewise.
5834         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5835         comment referencing __ASSUME_LCHOWN_SYSCALL.
5836         * sysdeps/unix/sysv/linux/i386/sigaction.c
5837         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5838         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5839         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5840         Remove conditional code.
5841         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5842         (__protocol_available): Remove #if 0 code.
5843         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5844         conditional code.
5845         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5846         * sysdeps/unix/sysv/linux/kernel-features.h
5847         (__ASSUME_GETCWD_SYSCALL): Don't define.
5848         (__ASSUME_REALTIME_SIGNALS): Likewise.
5849         (__ASSUME_PREAD_SYSCALL): Likewise.
5850         (__ASSUME_PWRITE_SYSCALL): Likewise.
5851         (__ASSUME_POLL_SYSCALL): Likewise.
5852         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5853         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5854         non-SPARC.
5855         (__ASSUME_SIOCGIFNAME): Don't define.
5856         (__ASSUME_MSG_NOSIGNAL): Likewise.
5857         (__ASSUME_SENDFILE): Define unconditionally.
5858         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5859         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5860         conditional code.
5861         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5862         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5863         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5864         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5865         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5866         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5867         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5869         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5870         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5872         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5873         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5875         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5876         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5878         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5879         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5881         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5882         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5884         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5885         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5887         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5888         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5890         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5891         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5892         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5893         Remove conditional code.
5894         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5895         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5896         Remove conditional code.
5897         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5898         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5899         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5900         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5901         Remove conditional code.
5902         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5903         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5904         Remove conditional code.
5905         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5906         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5907         Remove conditional code.
5908         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5909         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5910         Remove conditional code.
5911         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5912         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5913         Remove conditional code.
5914         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5915         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5916         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5917         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5918         * sysdeps/unix/sysv/linux/sigaction.c
5919         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5920         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5921         * sysdeps/unix/sysv/linux/sigpending.c
5922         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5923         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5924         * sysdeps/unix/sysv/linux/sigprocmask.c
5925         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5926         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5927         * sysdeps/unix/sysv/linux/sigsuspend.c
5928         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5929         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5930         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5931         (__libc_missing_rt_sigs): Remove.
5932         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5933         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5934         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5935         Remove conditional code.
5936         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5937         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5938         return 1.
5939         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5940         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5941         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5942         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5943
5944 2012-05-14  Andreas Jaeger  <aj@suse.de>
5945
5946         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5947         it's not used in glibc.
5948         (__coshm1): Likewise.
5949         (__acosh1p): Likewise.
5950         (__sgn): Likewise.
5951
5952         * manual/string.texi (Copying and Concatenation): Add missing
5953         variable in concat example.
5954         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5955
5956 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5957
5958         [BZ #14103]
5959         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5960         __builtin_clzl with __builtin_clzll.
5961
5962 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5963
5964         [BZ #14104]
5965         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5966         libc_freeres_ptr.
5967
5968 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5969
5970         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5971         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5972         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5973         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5974
5975 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5976
5977         * NEWS: Update ia64 info.
5978
5979 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5980
5981         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5982         used as bcopy.
5983
5984 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5985
5986         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5987         * sysdeps/unix/syscalls.list (dup3): Likewise.
5988         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5989         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5990
5991 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5992
5993         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5994         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5995
5996 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5997
5998         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5999         thread pointer.
6000         (TLS_IE): Use mov/add instead of movq/addq to load thread
6001         pointer.
6002         (TLS_GD_PREFIX): New.
6003         (TLS_GD): Use it.
6004
6005 2012-05-11  David S. Miller  <davem@davemloft.net>
6006
6007         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6008         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6009         (_FPU_SETCW): Likewise.
6010
6011 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6012
6013         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6014         is 32-byte aligned.
6015
6016 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6017
6018         [BZ #11837]
6019         * iconvdata/gb18030.c: Update tables.
6020         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6021         characters specially.
6022         (BODY for TO_LOOP): Add encoding of missing ranges.
6023
6024 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6025
6026         [BZ #13673]
6027         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6028         * sysdeps/mach/hurd/dup3.c: Likewise.
6029         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6030         * sysdeps/powerpc/memmove.c:: Likewise.
6031
6032 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6033
6034         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6035         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6036
6037 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6038
6039         * elf/elf.h (R_X86_64_RELATIVE64): New.
6040         (R_X86_64_NUM): Updated.
6041         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6042         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6043         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6044         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6045         tst-quad1pie tst-quad2pie
6046         (modules-names): Add tst-quadmod1 tst-quadmod2.
6047         ($(objpfx)tst-quad1): New dependency.
6048         ($(objpfx)tst-quad2): Likewise.
6049         ($(objpfx)tst-quad1pie): Likewise.
6050         ($(objpfx)tst-quad2pie): Likewise.
6051         * sysdeps/x86_64/tst-quad1.c: New file.
6052         * sysdeps/x86_64/tst-quad1pie.c: New file.
6053         * sysdeps/x86_64/tst-quad2.c: Likewise.
6054         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6055         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6056         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6057         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6058         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6059
6060 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6061
6062         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6063         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6064         * streams/stropts.h (t_scalar_t): Define type.
6065
6066         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6067         (_PATH_PRESERVE): Set to "/var/lib".
6068         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6069
6070         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6071         instead of int.
6072
6073         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6074         if __dir_mkfile succeeded.
6075
6076         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6077         checking for _hurd_dtablesize.  Unlock it right after having
6078         finished _hurd_dtable allocation.
6079
6080 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6081
6082         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6083         * sysdeps/mach/hurd/configure: Regenerated.
6084         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6085         special-casing to...
6086         * sysdeps/gnu/configure.in: ... this new file.
6087         * sysdeps/unix/sysv/linux/configure: Regenerated.
6088         * sysdeps/gnu/configure: New generated file.
6089
6090         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6091         for Linux: use nsec instead of usec, as well as:
6092         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6093         members of type struct timespec.
6094         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6095         New macros.
6096         (struct stat64): Likewise.
6097         (_STATBUF_ST_NSEC): New macro.
6098         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6099
6100         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6101         __strtoul_internal rather than strtoul.
6102
6103 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6104
6105         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6106         and reject them.
6107
6108 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6109
6110         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6111         which preserves existing values.
6112         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6113
6114 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6115
6116         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6117         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6118         greater than FD_SETSIZE.
6119
6120 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6121
6122         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6123         allocated, call __vm_protect to finish enabling the existing space, and
6124         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6125         allocate the remainder.
6126
6127 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6128
6129         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6130         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6131
6132 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6133
6134         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6135         sysdeps/mach/hurd/readlink.c.
6136
6137         * posix/tst-sysconf.c (posix_options): Only use
6138         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6139         _POSIX_SYNCHRONIZED_IO when they are defined
6140         * sysdeps/mach/hurd/bits/posix_opt.h:
6141         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6142         (_XOPEN_REALTIME): Undefine macro.
6143         (_XOPEN_REALTIME_THREADS): Undefine macro.
6144         (_XOPEN_SHM): Undefine macro.
6145         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6146         macro to -1.
6147         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6148         macro to -1.
6149         (_POSIX_ASYNC_IO): Undefine macro.
6150         (_POSIX_PRIORITIZED_IO): Undefine macro.
6151         (_POSIX_SPIN_LOCKS): Define macro to -1.
6152
6153         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6154         SA_NODEFER, SA_RESETHAND.
6155         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6156         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6157         F_DUPFD_CLOEXEC.
6158
6159 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6160
6161         * elf/Makefile (pldd-modules): Define unconditionally.
6162
6163 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6164
6165         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6166
6167 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6168
6169         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6170         Return ENOENT when name is empty.
6171         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6172
6173 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6174
6175         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6176
6177         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6178
6179 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6180
6181         Fix mlock in all cases except non-readable pages.
6182         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6183         instead of VM_PROT_ALL as parameter to __vm_wire function.
6184
6185         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6186         (__mkdir): When path is `/', just fail with EEXIST.
6187         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6188
6189 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6190
6191         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6192         <sys/uio.h> (for writev).
6193         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6194         and <sys/param.h> (for MIN).
6195
6196 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6197
6198         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6199         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6200         if interrupted.
6201
6202 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6203
6204         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6205         Depend on against $(link-rpcuserlibs).
6206
6207 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6208
6209         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6210         (__libc_stack_end): Do not use attribute_relro.
6211         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6212         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6213         to libthread-provided value.
6214         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6215         attribute_relro.
6216
6217 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6218
6219         [BZ #3748]
6220         * bits/libc-lock.h (__libc_once_get): New macro.
6221         * sysdeps/mach/bits/libc-lock.h: Likewise.
6222         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6223         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6224         instead of using implementation details.
6225
6226         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6227         * libio/freopen.c: Likewise.
6228         * libio/freopen64.c: Likewise.
6229         * misc/syslog.c: Likewise.
6230         * nscd/connections.c: Likewise.
6231         * nscd/netgroupcache.c: Likewise.
6232         * sysdeps/posix/getcwd.c: Likewise.
6233
6234 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6235
6236         * math/w_ilogbf.c: Add #include <limits.h>.
6237
6238 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6239
6240         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6241         path instead of returning without unlocking.
6242
6243         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6244         immediate-write ioctls.
6245         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6246
6247 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6248
6249         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6250         __builtin_frame_address instead of making assumptions about the
6251         location of the return address relative to DATA.  Force early load of
6252         the return address.
6253         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6254         __builtin_frame_address.
6255
6256         dup3 for GNU Hurd.
6257         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6258         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6259         implement dup3 and do some further code clean-ups.
6260         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6261         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6262
6263 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6264
6265         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6266
6267         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6268         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6269         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6270         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6271         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6272         d->port.lock.
6273
6274         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6275         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6276         when handler == SIG_ERR, not when handler != SIG_ERR.
6277
6278 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6279
6280         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6281         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6282         definitions.
6283
6284         accept4 for GNU Hurd.
6285         * include/sys/socket.h (__libc_accept4): New prototype.
6286         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6287         to implement __libc_accept4.
6288         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6289         __libc_accept4.
6290         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6291
6292         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6293         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6294         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6295         signal-defines.sym.
6296
6297 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6298
6299         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6300
6301 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6302
6303         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6304         assertion on O_CLOEXEC flag.
6305         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6306         * hurd/intern-fd.c: Likewise.
6307         * hurd/port2fd.c: Likewise.
6308
6309 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6310
6311         [BZ #3906]
6312         * bits/in.h (IPV6_PKTINFO): Define new macro.
6313         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6314
6315 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6316
6317         [BZ #13954]
6318         [BZ #13955]
6319         [BZ #13956]
6320         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6321         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6322         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6323         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6324         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6325         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6326         * math/libm-test.inc (logb_test) : Additional logb tests.
6327
6328 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6329             Andreas Jaeger  <aj@suse.de>
6330
6331         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6332         * configure: Regenerated.
6333         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6334         * config.make.in (link-obsolete-rpc): New substituted variable.
6335         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6336         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6337         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6338         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6339         so that libc.a contains the symbols.
6340         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6341         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6342         * sunrpc/auth_none.c: Likewise.
6343         * sunrpc/auth_unix.c: Likewise.
6344         * sunrpc/authdes_prot.c: Likewise.
6345         * sunrpc/authuxprot.c: Likewise.
6346         * sunrpc/clnt_gen.c: Likewise.
6347         * sunrpc/clnt_perr.c: Likewise.
6348         * sunrpc/clnt_raw.c: Likewise.
6349         * sunrpc/clnt_simp.c: Likewise.
6350         * sunrpc/clnt_tcp.c: Likewise.
6351         * sunrpc/clnt_udp.c: Likewise.
6352         * sunrpc/clnt_unix.c: Likewise.
6353         * sunrpc/des_crypt.c: Likewise.
6354         * sunrpc/des_soft.c: Likewise.
6355         * sunrpc/get_myaddr.c: Likewise.
6356         * sunrpc/key_call.c: Likewise.
6357         * sunrpc/key_prot.c: Likewise.
6358         * sunrpc/netname.c: Likewise.
6359         * sunrpc/pm_getmaps.c: Likewise.
6360         * sunrpc/pm_getport.c: Likewise.
6361         * sunrpc/pmap_clnt.c: Likewise.
6362         * sunrpc/pmap_prot.c: Likewise.
6363         * sunrpc/pmap_prot2.c: Likewise.
6364         * sunrpc/pmap_rmt.c: Likewise.
6365         * sunrpc/publickey.c: Likewise.
6366         * sunrpc/rpc_cmsg.c: Likewise.
6367         * sunrpc/rpc_common.c: Likewise.
6368         * sunrpc/rpc_dtable.c: Likewise.
6369         * sunrpc/rpc_prot.c: Likewise.
6370         * sunrpc/rpc_thread.c: Likewise.
6371         * sunrpc/rtime.c: Likewise.
6372         * sunrpc/svc.c: Likewise.
6373         * sunrpc/svc_auth.c: Likewise.
6374         * sunrpc/svc_raw.c: Likewise.
6375         * sunrpc/svc_run.c: Likewise.
6376         * sunrpc/svc_tcp.c: Likewise.
6377         * sunrpc/svc_udp.c: Likewise.
6378         * sunrpc/svc_unix.c: Likewise.
6379         * sunrpc/svcauth_des.c: Likewise.
6380         * sunrpc/xcrypt.c: Likewise.
6381         * sunrpc/xdr.c: Likewise.
6382         * sunrpc/xdr_array.c: Likewise.
6383         * sunrpc/xdr_float.c: Likewise.
6384         * sunrpc/xdr_intXX_t.c: Likewise.
6385         * sunrpc/xdr_mem.c: Likewise.
6386         * sunrpc/xdr_rec.c: Likewise.
6387         * sunrpc/xdr_ref.c: Likewise.
6388         * sunrpc/xdr_sizeof.c: Likewise.
6389         * sunrpc/xdr_stdio.c: Likewise.
6390
6391 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6392
6393         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6394         change.  Update copyright years.
6395
6396 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6397
6398         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6399
6400 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6401             Joseph Myers  <joseph@codesourcery.com>
6402             Paul Pluzhnikov  <ppluzhnikov@google.com>
6403
6404         [BZ #14012]
6405         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6406         requiring rpcgen.
6407         [cross-compiling] (extra-libs): Likewise.
6408         [cross-compiling] (extra-libs-others): Likewise.
6409         [cross-compiling] (librpcsvc-routines): Likewise.
6410         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6411         [cross-compiling] (omit-deps): Likewise.
6412         (sunrpc-CPPFLAGS): New variable.
6413         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6414         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6415         (cross-rpcgen-objs): New variable.
6416         (extra-objs): Append $(cross-rpcgen-objs).
6417         ($(cross-rpcgen-objs)): New rule.
6418         ($(objpfx)cross-rpcgen): Likewise.
6419         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6420         comment.
6421         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6422         ($(objpfx)x%.stmp): Likewise.
6423         * sunrpc/proto.h [IS_IN_build] (_): Define.
6424         [IS_IN_build] (_libc_intl_domainname): Likewise.
6425
6426 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6427
6428         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6429         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6430         and R_X86_64_TPOFF64.
6431
6432 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6433
6434         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6435         sysdeps/unix/sysv/syscalls.list.
6436         (stime): Likewise.
6437         (utime): Likewise.
6438         * sysdeps/unix/sysv/syscalls.list: Remove file.
6439
6440 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6441
6442         [BZ #3440]
6443         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6444         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6445         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6446         (__LC_IDENTIFICATION): Make these macros useful in #if
6447         expressions, as required by C99.
6448
6449 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6450
6451         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6452         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6453         after this.
6454
6455 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6456
6457         * stdlib/longlong.h: Updated from GCC.
6458
6459 2012-05-09  Andreas Jaeger  <aj@suse.de>
6460
6461         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6462         default is first entry.
6463         (run_mode): Set type.
6464         (main): Remove informal message about syslog.
6465         (options): Fix typo.
6466
6467         [BZ #14053]
6468         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6469         to asm.
6470         (lrint): Likewise.
6471         (llrintf): Likewise.
6472         (llrint): Likewise.
6473         (rint): Likewise.
6474         (rintf): Likewise.
6475         (nearbyint): Likewise.
6476         (nearbyintf): Likewise.
6477
6478 2012-05-09  Andreas Jaeger  <aj@suse.de>
6479             Pedro Alves  <palves@redhat.com>
6480
6481         * nscd/nscd.c (run_mode): Use enum.
6482         (main): Cleanup coding style issue.
6483
6484 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6485             Andreas Jaeger  <aj@suse.de>
6486
6487         * nscd/nscd.c (go_background): Replaced with...
6488         (run_mode): ... this.
6489         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6490         (options): Add -F --foreground.
6491         (main): Implement it.
6492         (parse_opt): Parse it.
6493
6494 2012-05-09  Andreas Jaeger  <aj@suse.de>
6495
6496         [BZ #14083]
6497         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6498         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6499         -Wconversion warning.
6500         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6501         Likewise.
6502
6503 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6504
6505         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6506         == 0.
6507         (LC_ALL): Use macro-int-constant.
6508         (LC_COLLATE): Likewise.
6509         (LC_CTYPE): Likewise.
6510         (LC_MESSAGES): Likewise.
6511         (LC_MONETARY): Likewise.
6512         (LC_NUMERIC): Likewise.
6513         (LC_TIME): Likewise.
6514         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6515         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6516         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6517         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6518         Specify type.
6519         [C99-based standards] (float_t): Expect type.
6520         [C99-based standards] (double_t): Expect type.
6521         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6522         type.
6523         [C99-based standards] (HUGE_VALL): Likewise.
6524         [C99-based standards] (INFINITY): Likewise.
6525         [C99-based standards] (NAN): Likewise.
6526         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6527         [C99-based standards] (FP_NAN): Likewise.
6528         [C99-based standards] (FP_NORMAL): Likewise.
6529         [C99-based standards] (FP_SUBNORMAL): Likewise.
6530         [C99-based standards] (FP_ZERO): Likewise.
6531         [C99-based standards] (FP_FAST_FMA): Use
6532         optional-macro-int-constant.  Specify type.  Require == 1.
6533         [C99-based standards] (FP_FAST_FMAF): Likewise.
6534         [C99-based standards] (FP_FAST_FMAL): Likewise.
6535         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6536         [C99-based standards] (FP_ILOGBNAN): Likewise.
6537         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6538         Specify type.
6539         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6540         [C99-based standards] (math_errhandling): Specify type.
6541         [ISO99 || ISO11] (signgam): Do not allow.
6542         [non-C99-based standards] (copysignf): Do not allow.
6543         [non-C99-based standards] (exp2f): Likewise.
6544         [non-C99-based standards] (log2f): Likewise.
6545         [non-C99-based standards] (modff): Allow.
6546         [non-C99-based standards] (erff): Do not allow.
6547         [non-C99-based standards] (erfcf): Likewise.
6548         [non-C99-based standards] (gammaf): Likewise.
6549         [non-C99-based standards] (hypotf): Likewise.
6550         [non-C99-based standards] (j0f): Likewise.
6551         [non-C99-based standards] (j1f): Likewise.
6552         [non-C99-based standards] (jnf): Likewise.
6553         [non-C99-based standards] (lgammaf): Likewise.
6554         [non-C99-based standards] (tgammaf): Likewise.
6555         [non-C99-based standards] (y0f): Likewise.
6556         [non-C99-based standards] (y1f): Likewise.
6557         [non-C99-based standards] (ynf): Likewise.
6558         [non-C99-based standards] (isnanf): Likewise.
6559         [non-C99-based standards] (acoshf): Likewise.
6560         [non-C99-based standards] (asinhf): Likewise.
6561         [non-C99-based standards] (atanhf): Likewise.
6562         [non-C99-based standards] (cbrtf): Likewise.
6563         [non-C99-based standards] (expm1f): Likewise.
6564         [non-C99-based standards] (ilogbf): Likewise.
6565         [non-C99-based standards] (log1pf): Likewise.
6566         [non-C99-based standards] (logbf): Likewise.
6567         [non-C99-based standards] (nextafterf): Likewise.
6568         [non-C99-based standards] (remainderf): Likewise.
6569         [non-C99-based standards] (rintf): Likewise.
6570         [non-C99-based standards] (scalbf): Likewise.
6571         [non-C99-based standards] (copysignl): Likewise.
6572         [non-C99-based standards] (exp2l): Likewise.
6573         [non-C99-based standards] (log2l): Likewise.
6574         [non-C99-based standards] (modfl): Allow.
6575         [non-C99-based standards] (erfl): Do not allow.
6576         [non-C99-based standards] (erfcl): Likewise.
6577         [non-C99-based standards] (gammal): Likewise.
6578         [non-C99-based standards] (hypotl): Likewise.
6579         [non-C99-based standards] (j0l): Likewise.
6580         [non-C99-based standards] (j1l): Likewise.
6581         [non-C99-based standards] (jnl): Likewise.
6582         [non-C99-based standards] (lgammal): Likewise.
6583         [non-C99-based standards] (tgammal): Likewise.
6584         [non-C99-based standards] (y0l): Likewise.
6585         [non-C99-based standards] (y1l): Likewise.
6586         [non-C99-based standards] (ynl): Likewise.
6587         [non-C99-based standards] (isnanl): Likewise.
6588         [non-C99-based standards] (acoshl): Likewise.
6589         [non-C99-based standards] (asinhl): Likewise.
6590         [non-C99-based standards] (atanhl): Likewise.
6591         [non-C99-based standards] (cbrtl): Likewise.
6592         [non-C99-based standards] (expm1l): Likewise.
6593         [non-C99-based standards] (ilogbl): Likewise.
6594         [non-C99-based standards] (log1pl): Likewise.
6595         [non-C99-based standards] (logbl): Likewise.
6596         [non-C99-based standards] (nextafterl): Likewise.
6597         [non-C99-based standards] (remainderl): Likewise.
6598         [non-C99-based standards] (rintl): Likewise.
6599         [non-C99-based standards] (scalbl): Likewise.
6600         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6601         [non-C99-based standards] (FP_*): Do not allow.
6602         [C99-based standards] (FP_*): Change to
6603         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6604         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6605         allow.
6606         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6607         (SIG_ERR): Likewise.
6608         [X/Open-based standards] (SIG_HOLD): Likewise.
6609         (SIG_IGN): Likewise.
6610         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6611         positive value.
6612         (SIGFPE): Likewise.
6613         (SIGILL): Likewise.
6614         (SIGINT): Likewise.
6615         (SIGSEGV): Likewise.
6616         (SIGTER): Likewise.
6617         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6618         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6619         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6620         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6621         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6622         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6623         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6624         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6625         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6626         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6627         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6628         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6629         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6630         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6631         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6632         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6633         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6634         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6635         [X/Open-based standards] (SIGTRAP): Likewise.
6636         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6637         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6638         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6639         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6640         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6641         allow.
6642
6643 2012-05-08  Ian Wienand  <ianw@vmware.com>
6644
6645         [BZ #14080]
6646         * time/tzset.c (__tzset_parse_tz): Update default rules for
6647         daylight time changes in the Energy Policy Act of 2005.
6648
6649 2012-05-09  Andreas Jaeger  <aj@suse.de>
6650
6651         [BZ #13983]
6652         * elf/ldconfig.c (parse_conf): Change string to make clear that
6653         ldconfig only issued a warning if ld.so.conf does not exist.
6654
6655 2012-05-08  David S. Miller  <davem@davemloft.net>
6656
6657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6658         movxtod instead of popping the value on the stack.
6659
6660         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6661
6662 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6663
6664         * config.h.in: Add HAVE_ARM_PCS_VFP.
6665
6666 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6667
6668         [BZ #13979]
6669         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6670         checking but the checks are disabled for any reason.
6671
6672 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6673
6674         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6675         and ELF64_R_TYPE with ELFW(R_TYPE).
6676
6677 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6678
6679         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6680         (ulimit): Likewise.
6681
6682         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6683         (settimeofday): Likewise.
6684
6685 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6686
6687         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6688         a struct th_u2 inside the union, and move tu_block/tu_code into
6689         a new th_u3 union of tu_block/tu_code inside of that.  Move
6690         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6691         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6692         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6693         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6694         (th_stuff): Change to th_u1.tu_stuff.
6695         (th_data): Define.
6696         (th_msg): Change to th_u1.th_u2.tu_data.
6697
6698 2012-05-07  David S. Miller  <davem@davemloft.net>
6699
6700         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6701
6702         [BZ #14074]
6703         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6704         (SETUP_PIC_REG): Use it.
6705         (SETUP_PIC_REG_LEAF): Use it.
6706
6707 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6708
6709         [BZ #13885]
6710         [BZ #13923]
6711         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6712         USE_AS_EXPM1L.
6713         (EXPL_FINITE): Likewise.
6714         (FLDLOG): Likewise.
6715         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6716         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6717         e_expl.S.
6718         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6719         USE_AS_EXPM1L.
6720         (EXPL_FINITE): Likewise.
6721         (FLDLOG): Likewise.
6722         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6723         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6724         e_expl.S.
6725         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6726         test of -max_value argument for long double.
6727         * sysdeps/i386/fpu/libm-test-ulps: Update.
6728         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6729
6730 2012-05-06  David S. Miller  <davem@davemloft.net>
6731
6732         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6733         quad soft-float symbols whose references which are compiler
6734         generated.
6735         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6736
6737 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6738
6739         [BZ #13884]
6740         [BZ #13914]
6741         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6742         USE_AS_EXP10L.
6743         (EXPL_FINITE): Likewise.
6744         (FLDLOG): Likewise.
6745         (c0): Likewise.
6746         (c1): Likewise.
6747         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6748         Adjust comments for base varying.
6749         (__expl_finite): Change alias to EXPL_FINITE.
6750         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6751         e_expl.S.
6752         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6753         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6754         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6755         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6756         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6757         USE_AS_EXP10L.
6758         (EXPL_FINITE): Likewise.
6759         (FLDLOG): Likewise.
6760         (c0): Likewise.
6761         (c1): Likewise.
6762         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6763         Adjust comments for base varying.
6764         (__expl_finite): Change alias to EXPL_FINITE.
6765         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6766         tests for bugs.
6767         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6768
6769         [BZ #14064]
6770         * math/libm-test.inc (check_float_internal): Correct ulp
6771         calculation for subnormal expected results.
6772
6773 2012-05-06  Andreas Jaeger  <aj@suse.de>
6774
6775         * Makeconfig (+math-flags): New, set to -frounding-math.
6776         (+cflags): Add +math-flags so that all of glibc gets compiled with
6777         it.
6778
6779         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6780
6781 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6782
6783         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6784         Disable one test.
6785
6786         [BZ #13787]
6787         [BZ #13922]
6788         [BZ #14036]
6789         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6790         (__ieee754_expl): Allow for and saturate large arguments.
6791         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6792         (u_threshold): Likewise.
6793         (__exp): Call __ieee754_exp before checking for overflow and
6794         underflow.
6795         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6796         (u_threshold): Likewise.
6797         (__expf): Call __ieee754_expf before checking for overflow and
6798         underflow.
6799         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6800         (u_threshold): Likewise.
6801         (__expl): Call __ieee754_expl before checking for overflow and
6802         underflow.
6803         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6804         (__ieee754_expl): Allow for and saturate large arguments.
6805         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6806         missing overflow exception on overflow.
6807         (expm1_test): Do not allow missing overflow exception on overflow.
6808
6809         * sysdeps/i386/fpu/e_expl.c: Move to ...
6810         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6811         rather than using inline asm.
6812         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6813         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6814         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6815
6816         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6817         (nice): Likewise.
6818         (poll): Likewise.
6819         (signal): Likewise.
6820         (time): Likewise.
6821         (times): Likewise.
6822
6823 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6824
6825         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6826         sysdeps/unix/common/syscalls.list.
6827         (fchmod): Likewise.
6828         (fchown): Likewise.
6829         (ftruncate): Likewise.
6830         (getrusage): Likewise.
6831         (gettimeofday): Likewise.
6832         (setpgid): Likewise.
6833         (setregid): Likewise.
6834         (setreuid): Likewise.
6835         (sigaction): Likewise.
6836         (truncate): Likewise.
6837         (vhangup): Likewise.
6838         * sysdeps/unix/common/syscalls.list: Remove file.
6839         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6840         * sysdeps/unix/sysv/linux/Implies: Likewise.
6841
6842 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6843
6844         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6845         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6846         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6847         Moved to ...
6848         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6849         Here.
6850         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6851         to ...
6852         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6853         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6854         to ...
6855         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6856         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6857         to ...
6858         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6859         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6860         to ...
6861         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6862         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6863         to ...
6864         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6865         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6866         to ...
6867         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6868         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6869         to ...
6870         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6871         Here.
6872         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6873         to ...
6874         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6875         Here.
6876         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6877         to ...
6878         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6879         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6880         Moved to ...
6881         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6882         Here.
6883         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6884         to ...
6885         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6886
6887 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6888
6889         * sysdeps/unix/common/bits/dirent.h: Remove file.
6890         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6891
6892         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6893         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6894         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6895         * sysdeps/unix/bsd/isatty.c: Likewise.
6896         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6897         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6898         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6899
6900 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6901
6902         [BZ #13563]
6903         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6904         long double comparison inaccuracies.
6905         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6906         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6907
6908 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6909
6910         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6911         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6912
6913 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6914
6915         [BZ #14049]
6916         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6917         nonzero digits before rounding a hex value.
6918         * stdlib/tst-strtod.c (tests): Add another test.
6919
6920 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6921
6922         * sysdeps/s390/fpu/libm-test-ulps: Update.
6923
6924 2012-05-03  Andreas Jaeger  <aj@suse.de>
6925
6926         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6927         does not get optimized out.
6928         (malloc_opt_barrier): New.
6929
6930 2012-05-03  Andreas Jaeger  <aj@suse.de>
6931             Roland McGrath  <roland@hack.frob.com>
6932
6933         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6934         intermediate file deletion.
6935         (generated): Add .symlist files.
6936
6937 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6938
6939         [BZ #13775]
6940         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6941         Redirect under this condition.
6942         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6943         [__USE_GNU] (__dprintf_chk): Not under this condition.
6944         [__USE_GNU] (__vdprintf_chk): Likewise.
6945         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6946         under this condition.
6947         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6948         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6949         [__USE_XOPEN2K8] (vdprintf): Likewise.
6950         [__USE_GNU] (__dprintf_chk): Not under this condition.
6951         [__USE_GNU] (__vdprintf_chk): Likewise.
6952         [__USE_GNU] (dprintf): Likewise.
6953         [__USE_GNU] (vdprintf): Likewise.
6954
6955 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6956
6957         * elf/Makefile (common-generated): Set this instead of generated for
6958         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6959         $(all-built-dso)-derived lists.
6960
6961 2012-05-03  Andreas Jaeger  <aj@suse.de>
6962
6963         * sysdeps/i386/fpu/libm-test-ulps: Update.
6964
6965         * FAQ: Removed.
6966         * FAQ.in: Likewise.
6967         * scripts/gen-FAQ.pl: Likewise.
6968         * manual/install.texi (Installation): Point to online location of
6969         FAQ.
6970         * Makefile (files-for-dist): Remove FAQ.
6971         (FAQ): Remove.
6972
6973 2012-05-02  Allan McRae  <allan@archlinux.org>
6974
6975         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6976         (LDFLAGS-reldepmod5.so): Likewise.
6977         (LDFLAGS-reldep6mod1.so): Likewise.
6978         (LDFLAGS-reldep6mod4.so): Likewise.
6979         (LDFLAGS-reldep8mod3.so): Likewise.
6980         (LDFLAGS-unload4mod1.so): Likewise.
6981         (LDFLAGS-unload4mod2.so): Likewise.
6982         (LDFLAGS-tst-initorder): Likewise.
6983         (LDFLAGS-tst-initordera2.so): Likewise.
6984         (LDFLAGS-tst-initordera3.so): Likewise.
6985         (LDFLAGS-tst-initordera4.so): Likewise.
6986         (LDFLAGS-tst-initorderb2.so): Likewise.
6987         (LDFLAGS-noload): Likewise.
6988         (LDFLAGS-next): Likewise.
6989         (LDFLAGS-order2mod1.so): Likewise.
6990         (LDFLAGS-order2mod2.so): Likewise.
6991         (LDFLAGS-tst-initorder2): Likewise.
6992         (LDFLAGS-tst-initorder2a.so): Likewise.
6993         (LDFLAGS-tst-initorder2b.so): Likewise.
6994         (LDFLAGS-tst-initorder2c.so): Likewise.
6995         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6996
6997 2012-05-02  David S. Miller  <davem@davemloft.net>
6998
6999         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7000
7001 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7002
7003         [BZ #14055]
7004         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7005
7006 2012-05-02  Andreas Jaeger  <aj@suse.de>
7007
7008         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7009         since we manipulate rounding mode.
7010         (CPPFLAGS-test-idouble.c): Likewise.
7011         (CPPFLAGS-test-ifloat.c): Likewise.
7012         (CFLAGS-test-ldouble.c): Likewise.
7013         (CFLAGS-test-double.c): Likewise.
7014         (CFLAGS-test-float.c): Likewise.
7015         (CFLAGS-test-misc.c): Likewise.
7016         (CFLAGS-test-test-fenv.c): Likewise.
7017
7018 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7019
7020         [BZ #2550]
7021         [BZ #2570]
7022         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7023         comparisons to determine direction to adjust input.
7024
7025 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7026
7027         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7028         output to the target.
7029
7030         * scripts/localplt.awk: New file.
7031         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7032         (check-localplt-CFLAGS): Variable removed.
7033         ($(all-built-dso:=.jmprel)): New static pattern rule.
7034         (generated): Add those targets.
7035         (localplt-built-dso): New variable.
7036         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7037
7038         * elf/check-localplt.c: File removed.
7039
7040         * scripts/check-execstack.awk: New file.
7041         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7042         (check-execstack-CFLAGS): Variable removed.
7043         ($(objpfx)check-execstack.h): Target removed.
7044         ($(objpfx)execstack-default): New target.
7045         (generated): Add that instead of check-execstack.h.
7046         ($(all-built-dso:=.phdr)): New static pattern rule.
7047         (generated): Add those targets.
7048         * elf/check-execstack.c: File removed.
7049
7050         * scripts/check-textrel.awk: New file.
7051         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7052         (check-textrel-CFLAGS): Variable removed.
7053         (all-built-dso): Use := to define.o
7054         ($(all-built-dso:=.dyn)): New static pattern rule.
7055         (generated): Add those targets.
7056         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7057         * config.make.in (READELF): New substituted variable.
7058         * elf/check-textrel.c: File removed.
7059
7060 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7061
7062         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7063         allow.
7064         * conform/data/ctype.h-data [C99-based standards] (isblank):
7065         Expect function.
7066         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7067         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7068         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7069         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7070         Specify type.  Require positive value.
7071         (EILSEQ): Likewise.
7072         (ERANGE): Likewise.
7073         [ISO || POSIX] (EILSEQ): Do not expect.
7074         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7075         Specify type.  Require positive value.
7076         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7077         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7078         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7079         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7080         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7081         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7082         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7083         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7084         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7085         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7086         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7087         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7088         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7089         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7090         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7091         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7092         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7093         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7094         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7095         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7096         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7097         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7098         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7099         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7100         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7101         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7102         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7103         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7104         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7105         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7106         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7107         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7108         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7109         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7110         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7111         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7112         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7113         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7114         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7115         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7116         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7117         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7118         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7119         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7120         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7121         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7122         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7123         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7124         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7125         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7126         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7127         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7128         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7129         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7130         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7131         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7132         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7133         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7134         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7135         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7136         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7137         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7138         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7139         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7140         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7141         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7142         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7143         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7144         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7145         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7146         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7147         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7148         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7149         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7150         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7151         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7152         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7153         Require >= 2.
7154         (FLT_ROUNDS): Expect as macro, not constant.
7155         (FLT_MANT_DIG): Use macro-int-constant.
7156         (DBL_MANT_DIG): Likewise.
7157         (LDBL_MANT_DIG): Likewise.
7158         (FLT_DIG): Likewise.
7159         (DBL_DIG): Likewise.
7160         (LDBL_DIG): Likewise.
7161         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7162         (DBL_MIN_EXP): Likewise.
7163         (LDBL_MIN_EXP): Likewise.
7164         (FLT_MAX_EXP): Use macro-int-constant.
7165         (DBL_MAX_EXP): Likewise.
7166         (LDBL_MAX_EXP): Likewise.
7167         (FLT_MAX_10_EXP): Likewise.
7168         (DBL_MAX_10_EXP): Likewise.
7169         (LDBL_MAX_10_EXP): Likewise.
7170         (FLT_MAX): Use macro-constant.
7171         (DBL_MAX): Likewise.
7172         (LDBL_MAX): Likewise.
7173         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7174         (DBL_EPSILON): Likewise.
7175         (LDBL_EPSILON): Likewise.
7176         (FLT_MIN): Likewise.
7177         (DBL_MIN): Likewise.
7178         (LDBL_MIN): Likewise.
7179         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7180         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7181         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7182         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7183         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7184         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7185         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7186         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7187         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7188         [ISO11] (FLT_TRUE_MIN): Likewise.
7189         [ISO11] (LDBL_TRUE_MIN): Likewise.
7190         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7191         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7192         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7193         (SCHAR_MAX): Likewise.
7194         (UCHAR_MAX): Likewise.
7195         (CHAR_MIN): Likewise.
7196         (CHAR_MAX): Likewise.
7197         (MB_LEN_MAX): Use macro-int-constant.
7198         (SHRT_MIN): Use macro-int-constant.  Specify type.
7199         (SHRT_MAX): Likewise.
7200         (USHRT_MAX): Likewise.
7201         (INT_MAX): Likewise.
7202         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7203         bound negative.
7204         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7205         bound with "U".
7206         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7207         bound with "L".
7208         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7209         bound negative.  Suffix upper bound with "L".
7210         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7211         bound with "UL".
7212         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7213         Specify type.
7214         [C99-based standards] (LLONG_MAX): Likewise.
7215         [C99-based standards] (ULLONG_MAX): Likewise.
7216         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7217         == 0.
7218         [ISO11] (max_align_t): Require type.
7219         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7220
7221         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7222         from $CFLAGS, without defining away __attribute__ calls.
7223         (checknamespace): Use $CFLAGS_namespace.
7224
7225         * conform/conformtest.pl (@keywords): Only include C99 keywords
7226         for standards based on C99 or C11.
7227
7228         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7229         Disable tests.
7230         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7231         UNIX98]: Likewise.
7232
7233         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7234         usability of symbols in #if.
7235
7236         * conform/conformtest.pl: If macro or constant types start
7237         "promoted:", expect the symbol to be of the following type
7238         promoted by the integer promotions.
7239
7240         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7241         in one place.  Also handle "macro-constant".
7242
7243         * conform/conformtest.pl: Only accept expected macro values with
7244         "==".  Parse all "macro" lines in one place.
7245         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7246
7247         * conform/conformtest.pl: Handle braced types on "constant" lines
7248         instead of handling "typed-constant".
7249         * conform/data/signal.h-data: Use "constant" instead of
7250         "typed-constant".
7251
7252         * conform/conformtest.pl: Handle "optional-" at start of lines in
7253         one place rather than duplicating several cases.  Handle each
7254         format of "macro" line with initial "optional-".
7255
7256         * conform/conformtest.pl: Only accept expected constant or
7257         optional-constant values with "==".  Parse all "constant" lines in
7258         one place.  Parse all "optional-constant" lines in one place.
7259         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7260         * conform/data/fmtmsg.h-data: Likewise.
7261         * conform/data/netinet/in.h-data: Likewise.
7262         * conform/data/tar.h-data: Likewise.
7263         * conform/data/limits.h-data: Use "==" form on "constant" and
7264         "optional-constant" lines.
7265
7266         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7267         Use -std=c99 for XOPEN2K.
7268         (@knownproblems): Remove.
7269         (newtoken): Don't check %isknown.
7270
7271         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7272         Do not expect macro.
7273         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7274         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7275         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7276         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7277         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7278         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7279         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7280         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7281         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7282         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7283         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7284         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7285         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7286         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7287         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7288         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7289         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7290         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7291         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7292         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7293         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7294         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7295         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7296         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7297         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7298         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7299         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7300         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7301         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7302         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7303         [XPG3] (acosh): Likewise.
7304         [XPG3] (asinh): Likewise.
7305         [XPG3] (atanh): Likewise.
7306         [XPG3] (cbrt): Likewise.
7307         [XPG3] (expm1): Likewise.
7308         [XPG3] (ilogb): Likewise.
7309         [XPG3] (log1p): Likewise.
7310         [XPG3] (logb): Likewise.
7311         [XPG3] (nextafter): Likewise.
7312         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7313         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7314         [XPG3] (remainder): Likewise.
7315         [XPG3] (rint): Likewise.
7316         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7317         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7318         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7319         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7320         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7321         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7322         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7323         [UNIX98 || XOPEN2K] (scalb): Expect.
7324         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7325         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7326         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7327         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7328         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7329         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7330         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7331         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7332         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7333         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7334         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7335         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7336         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7337         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7338         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7339         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7340         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7341         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7342         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7343         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7344         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7345         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7346         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7347         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7348         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7349         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7350         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7351         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7352         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7353         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7354         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7355         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7356         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7357         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7358         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7359         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7360         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7361         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7362         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7363         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7364         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7365         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7366         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7367         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7368         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7369         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7370         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7371         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7372         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7373         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7374         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7375         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7376         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7377         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7378         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7379         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7380         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7381         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7382         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7383         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7384         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7385         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7386         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7387         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7388         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7389         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7390         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7391         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7392         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7393         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7394         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7395         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7396         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7397         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7398         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7399         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7400         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7401         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7402         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7403         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7404         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7405         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7406         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7407         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7408         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7409         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7410         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7411         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7412         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7413         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7414         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7415         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7416         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7417         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7418         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7419         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7420         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7421         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7422         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7423         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7424         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7425         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7426         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7427         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7428         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7429         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7430         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7431         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7432         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7433         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7434         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7435         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7436         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7437         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7438         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7439         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7440         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7441         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7442         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7443         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7444         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7445         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7446         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7447         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7448         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7449         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7450         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7451         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7452         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7453         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7454         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7455         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7456         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7457         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7458         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7459         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7460         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7461
7462         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7463         _XOPEN_SOURCE_EXTENDED for XPG4.
7464
7465         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7466
7467         * Makeconfig (localtime): Remove variable.
7468         (inst_localtime-file): Likewise.
7469
7470 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7471
7472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7473         Update.
7474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7475         Update.
7476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7477         Update.
7478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7479         Update.
7480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7481         Update.
7482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7483         Update.
7484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7485         Update.
7486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7487         Update.
7488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7489         Update.
7490
7491 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7492
7493         [BZ #2550]
7494         [BZ #2570]
7495         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7496         comparisons to determine direction to adjust input.
7497         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7498         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7499         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7500         Likewise.
7501         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7502         Likewise.
7503         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7504         Likewise.
7505         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7506         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7507         Likewise.
7508         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7509         Likewise.
7510         * math/libm-test.inc (nexttoward_test): Add more tests.
7511
7512 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7513
7514         [BZ #14040]
7515         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7516         in version GLIBC_2.1, not GLIBC_2.0.
7517         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7518         Likewise.
7519
7520 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7521
7522         [BZ #13942]
7523         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7524         (1 - x) * (1 + x).
7525         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7526         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7527         * math/libm-test.inc (acos_test): Add more tests.
7528         (asin_test): Likewise.
7529         * sysdeps/i386/fpu/libm-test-ulps: Update.
7530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7531
7532         [BZ #14034]
7533         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7534         of square root.
7535         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7536         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7537         * math/libm-test.inc (acos_test_tonearest): New function.
7538         (acos_test_towardzero): Likewise.
7539         (acos_test_downward): Likewise.
7540         (acos_test_upward): Likewise.
7541         (asin_test_tonearest): Likewise.
7542         (asin_test_towardzero): Likewise.
7543         (asin_test_downward): Likewise.
7544         (asin_test_upward): Likewise.
7545         (main): Call the new functions.
7546         * sysdeps/i386/fpu/libm-test-ulps: Update.
7547         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7548
7549         [BZ #13884]
7550         [BZ #13924]
7551         * math/e_exp10.c: Include <float.h>.
7552         (__ieee754_exp10): Handle underflow here rather than multiplying
7553         large negative argument by M_LN10.
7554         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7555         of __ieee754_expf.
7556         * math/e_exp10l.c: Include <float.h>.
7557         (__ieee754_exp10l): Handle underflow here rather than multiplying
7558         large negative argument by M_LN10l.
7559         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7560         spurious overflow exception on underflow.
7561
7562 2012-04-29  Marek Polacek  <polacek@redhat.com>
7563
7564         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7565         (__fortify_function): New macro.
7566         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7567         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7568         __extern_always_inline.
7569         * libio/bits/stdio2.h: Likewise.
7570         * libio/bits/stdio.h: Likewise.
7571         * string/string.h: Likewise.
7572         * string/bits/string3.h: Likewise.
7573         * include/stdio.h: Likewise.
7574         * stdlib/bits/stdlib.h: Likewise.
7575         * stdlib/stdlib.h: Likewise.
7576         * rt/bits/mqueue2.h: Likewise.
7577         * rt/mqueue.h: Likewise.
7578         * posix/bits/unistd.h: Likewise.
7579         * posix/unistd.h: Likewise.
7580         * io/bits/poll2.h: Likewise.
7581         * io/bits/fcntl2.h: Likewise.
7582         * io/fcntl.h: Likewise.
7583         * io/sys/poll.h: Likewise.
7584         * misc/bits/syslog.h: Likewise.
7585         * misc/bits/syslog-ldbl.h: Likewise.
7586         * misc/sys/syslog.h: Likewise.
7587         * socket/bits/socket2.h: Likewise.
7588         * socket/sys/socket.h: Likewise.
7589         * debug/tst-chk1.c: Likewise.
7590         * wcsmbs/bits/wchar2.h: Likewise.
7591         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7592         * wcsmbs/wchar.h: Likewise.
7593
7594 2012-04-29  Andreas Jaeger  <aj@suse.de>
7595
7596         * Makerules (tests): Remove enable-check-abi protection.
7597         (check-abi-warn): Remove.
7598         (check-abi-%): Remove check-abi-warn usage.
7599
7600         * configure.in: Remove check-abi configure option.
7601         * configure: Regenerated.
7602         * config.make.in (enable-check-abi): Remove.
7603
7604 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7605
7606         [BZ #14033]
7607         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7608         double functions to double *_finite functions.
7609
7610         [BZ #13941]
7611         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7612         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7613         LDBL_MIN_EXP.
7614         * stdio-common/Makefile (tests): Add tst-sprintf3.
7615         * stdio-common/tst-sprintf3.c: New file.
7616
7617         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7618         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7619
7620 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7621
7622         * conform/conformtest.pl: Remove duplicate typed-constant
7623         handling.
7624
7625 2012-04-28  David S. Miller  <davem@davemloft.net>
7626
7627         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7628         (check-abi-%): Remove AWK script prerequisite and explicit
7629         abilist directory.
7630         (check-abi): Rewrite to just diff the symlist with the abilist.
7631         (config-tls, config-abi-config): Delete, no longer used.
7632         (update-abi-%): Remove AWK script and explicit abilist directory.
7633         (update-abi): Rewrite to simply compare and conditionally copy the
7634         symlist and the sysdep abilist file.  Remove update-abi-config
7635         checks.
7636         * abilist/ld.abilist: Remove.
7637         * abilist/libBrokenLocale.abilist: Remove.
7638         * abilist/libanl.abilist: Remove.
7639         * abilist/libcrypt.abilist: Remove.
7640         * abilist/libdl.abilist: Remove.
7641         * abilist/librt.abilist: Remove.
7642         * abilist/libthread_db.abilist: Remove.
7643         * abilist/libutil.abilist: Remove.
7644         * scripts/extract-abilist.awk: Remove.
7645         * scripts/merge-abilist.awk: Remove.
7646         * sysdeps/generic/libcidn.abilist: New file.
7647         * sysdeps/generic/libnss_compat.abilist: New file.
7648         * sysdeps/generic/libnss_db.abilist: New file.
7649         * sysdeps/generic/libnss_dns.abilist: New file.
7650         * sysdeps/generic/libnss_files.abilist: New file.
7651         * sysdeps/generic/libnss_hesiod.abilist: New file.
7652         * sysdeps/generic/libnss_nis.abilist: New file.
7653         * sysdeps/generic/libnss_nisplus.abilist: New file.
7654         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7655         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7656         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7657         file.
7658         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7659         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7660         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7661         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7662         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7663         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7664         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7665         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7666         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7667         file.
7668         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7669         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7670         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7671         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7672         file.
7673         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7674         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7675         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7676         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7677         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7678         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7679         file.
7680         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7681         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7682         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7683         file.
7684         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7685         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7686         New file.
7687         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7688         New file.
7689         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7690         New file.
7691         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7692         New file.
7693         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7694         New file.
7695         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7696         New file.
7697         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7698         New file.
7699         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7700         New file.
7701         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7702         New file.
7703         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7704         New file.
7705         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7706         New file.
7707         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7708         New file.
7709         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7710         New file.
7711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7712         file.
7713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7714         New file.
7715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7716         New file.
7717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7718         file.
7719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7720         New file.
7721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7722         New file.
7723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7724         file.
7725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7726         New file.
7727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7728         New file.
7729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7730         New file.
7731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7732         New file.
7733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7734         New file.
7735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7736         New file.
7737         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7738         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7739         file.
7740         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7741         New file.
7742         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7743         file.
7744         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7745         file.
7746         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7747         file.
7748         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7749         file.
7750         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7751         file.
7752         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7753         New file.
7754         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7755         file.
7756         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7757         file.
7758         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7759         New file.
7760         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7761         file.
7762         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7763         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7764         file.
7765         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7766         New file.
7767         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7768         file.
7769         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7770         file.
7771         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7772         file.
7773         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7774         file.
7775         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7776         file.
7777         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7778         New file.
7779         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7780         file.
7781         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7782         file.
7783         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7784         New file.
7785         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7786         file.
7787         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7788         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7789         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7790         file.
7791         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7792         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7793         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7794         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7795         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7796         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7797         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7798         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7799         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7800         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7801         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7802         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7803         file.
7804         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7805         New file.
7806         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7807         file.
7808         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7809         file.
7810         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7811         file.
7812         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7813         file.
7814         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7815         file.
7816         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7817         New file.
7818         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7819         New file.
7820         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7821         file.
7822         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7823         New file.
7824         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7825         file.
7826         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7827         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7828         file.
7829         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7830         New file.
7831         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7832         file.
7833         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7834         file.
7835         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7836         file.
7837         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7838         file.
7839         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7840         file.
7841         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7842         New file.
7843         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7844         New file.
7845         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7846         file.
7847         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7848         New file.
7849         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7850         file.
7851
7852 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7853
7854         * conform/conformtest.pl: Fix typo in handling typed-constant from
7855         allow-header.
7856
7857 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7858
7859         * README: Cut down references to pre-2.6 Linux kernels and
7860         Linuxthreads.  Update lists of configurations in libc and ports
7861         and sort alphabetically.  Say "or newer" with Linux kernel version
7862         requirements.
7863
7864         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7865
7866 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7867
7868         [BZ #887]
7869         * math/libm-test.inc (logb_test_downward): New test to expose
7870         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7871         rounding mode.
7872
7873 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7874
7875         [BZ #14027]
7876         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7877         to be done.
7878         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7879         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7880
7881 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7882
7883         * sysdeps/unix/i386/brk.S: Remove file.
7884         * sysdeps/unix/i386/dl-brk.S: Likewise.
7885         * sysdeps/unix/i386/pipe.S: Likewise.
7886         * sysdeps/unix/i386/sigreturn.S: Likewise.
7887         * sysdeps/unix/i386/syscall.S: Likewise.
7888         * sysdeps/unix/i386/vfork.S: Likewise.
7889         * sysdeps/unix/i386/wait.S: Likewise.
7890
7891         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7892         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7893
7894         * configure.in (arm*-none*): Do not allow without
7895         --enable-hacker-mode.
7896         (netbsd*): Remove case setting base_os.
7897         (386bsd*): Likewise.
7898         (freebsd*): Likewise.
7899         (bsdi*): Likewise.
7900         (osf*): Likewise.
7901         (sunos*): Likewise.
7902         (ultrix*): Likewise.
7903         (newsos*): Likewise.
7904         (dynix*): Likewise.
7905         (*bsd*): Likewise.
7906         (sysv*): Likewise.
7907         (isc*): Likewise.
7908         (esix*): Likewise.
7909         (sco*): Likewise.
7910         (minix*): Likewise.
7911         (irix4*): Likewise.
7912         (irix6*): Likewise.
7913         (solaris[2-9]*): Likewise.
7914         (none): Likewise.
7915         * configure: Regenerated.
7916
7917 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7918
7919         [BZ #11521]
7920         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7921         overflow or cancellation in calculating denominator.
7922         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7923         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7924         down expression to avoid unexpected rounding in newer GCCs.
7925         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7926
7927 2012-04-26  David S. Miller  <davem@davemloft.net>
7928
7929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7930         long-double compat symbols.
7931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7938         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7939         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7940         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7941         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7942         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7943         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7944
7945 2012-04-25  David S. Miller  <davem@davemloft.net>
7946
7947         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7948         HWCAP_* values only after the memory barriers have been defined.
7949         (atomic_full_barrier): Define.
7950         (atomic_read_barrier): Define.
7951         (atomic_write_barrier): Define.
7952
7953 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7954
7955         * shlib-versions: Add libgcc_s version information.
7956         * sysdeps/generic/libgcc_s.h: Remove.
7957         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7958         libgcc_s.h.
7959         * sysdeps/gnu/unwind-resume.c: Likewise.
7960         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7961
7962 2012-04-25  David S. Miller  <davem@davemloft.net>
7963
7964         * sysdeps/unix/sparc/brk.S: Delete.
7965         * sysdeps/unix/sparc/dl-brk.S: Delete.
7966         * sysdeps/unix/sparc/pipe.S: Delete.
7967         * sysdeps/unix/sparc/sysdep.S: Delete.
7968         * sysdeps/unix/sparc/sysdep.h: Delete.
7969         * sysdeps/unix/sparc/vfork.S: Delete.
7970         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7971         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7972         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7973         ret_ERRVAL, r0, r1, MOVE): Define.
7974         (JUMPTARGET): Remove.
7975         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7976         sysdeps/unix/sparc/sysdep.h
7977         (ENTRY, END): Remove.
7978         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7979
7980 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7981
7982         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7983         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7984         -DIS_IN_build.
7985
7986         * timezone/README: Update upstream location and email address for
7987         tzcode and tzdata.
7988         * timezone/zdump.c: Update from tzcode 2012b.
7989         * timezone/zic.c: Likewise.
7990
7991         * configure.in (libc_cv_as_needed): Remove test.
7992         * configure: Regenerated.
7993         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7994         conditional definition.
7995         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7996         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7997         * config.make.in (have-as-needed): Remove variable.
7998
7999 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8000             Paul Pluzhnikov  <ppluzhnikov@google.com>
8001
8002         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8003         strings correctly.
8004
8005 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8006
8007         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8008         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8009         * sysdeps/sh/strlen.S: Likewise.
8010
8011 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8012
8013         * sysdeps/unix/fork.S: Remove file.
8014         * sysdeps/unix/i386/fork.S: Likewise.
8015         * sysdeps/unix/sparc/fork.S: Likewise.
8016
8017         * sysdeps/unix/system.c: Remove file.
8018         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8019
8020         * sysdeps/unix/getegid.S: Remove file.
8021         * sysdeps/unix/geteuid.S: Likewise.
8022
8023 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8024
8025         * scripts/check-localplt.awk: New file.
8026         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8027         of diff.
8028         * scripts/data/localplt-generic.data: Add a comment.
8029
8030         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8031         NODE when __dir_mkfile failed.
8032         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8033         Reported by Ludovic Courtès <ludo@gnu.org>.
8034
8035 2012-04-24  Andreas Jaeger  <aj@suse.de>
8036
8037         * Makerules (common-clean): Also remove gen-as-const-headers
8038         files.
8039
8040 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8041
8042         * Makerules (native-compile): Do not change working directory for
8043         build.  Use $(OUTPUT_OPTION) in command.
8044         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8045
8046 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8047
8048         [BZ #13886]
8049         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8050         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8051         * math/libm-test.inc (floor_test): Add more tests.
8052         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8053
8054 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8055
8056         * sysdeps/unix/getdents.c: Remove file.
8057         * sysdeps/unix/sysv/getdents.c: Likewise.
8058         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8059
8060         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8061         sysdeps/unix/mman/syscalls.list.
8062         (mmap): Likewise.
8063         (mprotect): Likewise.
8064         (msync): Likewise.
8065         (munmap): Likewise.
8066         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8067         * sysdeps/unix/mman/syscalls.list: Remove.
8068         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8069
8070         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8071         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8072         * configure: Regenerated.
8073         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8074         $(libgcc_s_suffix).
8075         * config.make.in (libgcc_s_suffix): Remove variable.
8076
8077 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8078
8079         * sysdeps/unix/sysv/gethostname.c: Move to ...
8080         * sysdeps/posix/gethostname.c: ... here.
8081
8082         * sysdeps/unix/execve.S: Remove file.
8083
8084         * sysdeps/unix/_exit.S: Remove file.
8085
8086 2012-04-23  Andreas Jaeger  <aj@suse.de>
8087
8088         [BZ #13739]
8089         * manual/Makefile: Remove make dist support, there's no
8090         need for a stand-alone documentation tar ball.
8091         (TEXI2DVI): Define always, it's not in Makeconfig.
8092         (dist): Removed.
8093         (tar-it): Removed.
8094         (edition): Removed.
8095         (glibc-doc-$(edition).tar): Removed
8096         (%.Z): Removed.
8097         (%.gz): Removed.
8098         (%.uu): Removed.
8099         (ETAGS): Remove, it's in Makeconfig.
8100         (move-if-change): Remove, it's in Makeconfig.
8101
8102 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8103
8104         [BZ #13970]
8105         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8106         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8107         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8108         (strtod_l, strtof_l, strtold_l): Remove __wur.
8109         It is not necessarily an error to ignore strtol's return value.
8110         One can reliably look at the stored endptr to decide whether
8111         the number had valid syntax.
8112
8113 2012-04-21  Andreas Jaeger  <aj@suse.de>
8114
8115         [BZ #13739]
8116         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8117
8118 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8119
8120         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8121         * sysdeps/unix/sysv/Versions: Remove file.
8122
8123 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8124
8125         [BZ #13927]
8126         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8127
8128 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8129
8130         [BZ #7064]
8131         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8132         version from __vm86.
8133
8134 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8135
8136         * sysdeps/unix/common/lxstat.c: Remove file.
8137         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8138
8139         * sysdeps/unix/sysv/Makefile: Remove file.
8140
8141         * sysdeps/unix/sysv/direct.h: Remove file.
8142
8143         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8144         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8145         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8146         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8147         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8148         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8149         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8150
8151         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8152
8153         * sysdeps/unix/xmknod.c: Remove file.
8154         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8155
8156         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8157
8158         * sysdeps/unix/sysv/i386/time.S: Remove file.
8159
8160         * sysdeps/unix/fxstat.c: Remove file.
8161         * sysdeps/unix/xstat.c: Likewise.
8162         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8163
8164         * sysdeps/unix/sysv/sigaction.c: Remove file.
8165
8166         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8167         (sysdep_headers): Remove variable.
8168         [termio.h not in sysdep_headers] (generated): Likewise.
8169         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8170         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8171         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8172         * sysdeps/unix/sysv/tcflow.c: Likewise.
8173         * sysdeps/unix/sysv/tcflush.c: Likewise.
8174         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8175         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8176         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8177         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8178         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8179
8180         * sysdeps/unix/siglist.c: Remove file.
8181
8182         * sysdeps/unix/getppid.S: Remove file.
8183
8184         * sysdeps/unix/mkdir.c: Remove file.
8185         * sysdeps/unix/rmdir.c: Likewise.
8186
8187 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8188
8189         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8190         ERR_MAX value.
8191         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8192         errlist-compat value.
8193
8194 2012-04-18  David S. Miller  <davem@davemloft.net>
8195
8196         * sysdeps/generic/memcopy.h (reg_char): Delete.
8197         * debug/strcat_chk.c: Use char, not reg_char.
8198         * debug/strcpy_chk.c: Likewise.
8199         * debug/strncat_chk.c: Likewise.
8200         * debug/strncpy_chk.c: Likewise.
8201         * string/memchr.c: Likewise.
8202         * string/memrchr.c: Likewise.
8203         * string/rawmemchr.c: Likewise.
8204         * string/strcat.c: Likewise.
8205         * string/strchr.c: Likewise.
8206         * string/strchrnul.c: Likewise.
8207         * string/strcmp.c: Likewise.
8208         * string/strcpy.c: Likewise.
8209         * string/strncat.c: Likewise.
8210         * string/strncmp.c: Likewise.
8211         * string/strncpy.c: Likewise.
8212
8213 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8214
8215         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8216         __builtin_memcopy is called when src and dest ranges are known to not
8217         overlap.
8218
8219 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8220
8221         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8222         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8223         fwd_align_merge macro call.
8224         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8225         bwd_align_merge macro call.
8226         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8227
8228 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8229
8230         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8231         bwd_align_merge macros.
8232         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8233         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8234         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8235
8236 2012-04-18  David S. Miller  <davem@davemloft.net>
8237
8238         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8239
8240 2012-04-18  Andreas Jaeger  <aj@suse.de>
8241
8242         [BZ# 6794]
8243         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8244         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8245         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8246
8247         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8248         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8249         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8250
8251         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8252         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8253         Adjust for changed ldbl-128 files.
8254
8255         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8256         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8257         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8258
8259 2012-04-17  David S. Miller  <davem@davemloft.net>
8260
8261         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8262
8263 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8264
8265         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8266         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8267         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8268         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8269         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8270         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8271
8272 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8273
8274         [BZ #6794]
8275         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8276         * math/libm-test.inc: Add ilogb errno and exception tests.
8277         * math/w_ilogb.c: New file: ilogb wrapper.
8278         * math/w_ilogbf.c: New file: ilogbf wrapper.
8279         * math/w_ilogbl.c: New file: ilogbl wrapper.
8280         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8281         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8282         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8283         exception being thrown with 0.0 as argument.
8284         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8285         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8286         exception being thrown with 0.0 as argument.
8287         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8288         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8289         exception being thrown with 0.0 as argument.
8290         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8291         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8292         exception being thrown with 0.0 as argument.
8293         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8294         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8295         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8296         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8297         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8298         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8299         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8300         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8301         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8302
8303 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8304
8305         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8306         with altivec.
8307
8308 2012-04-16  Marek Polacek  <polacek@redhat.com>
8309
8310         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8311
8312 2012-04-16  Marek Polacek  <polacek@redhat.com>
8313
8314         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8315         operands of fdivp instruction.
8316
8317 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8318
8319         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8320         * elf/tst-auditmod3b.c: Likewise.
8321         * elf/tst-auditmod4b.c: Likewise.
8322         * elf/tst-auditmod5b.c: Likewise.
8323         * elf/tst-auditmod6b.c: Likewise.
8324         * elf/tst-auditmod6c.c: Likewise.
8325         * elf/tst-auditmod7b.c: Likewise.
8326         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8327         * sysdeps/x86_64/preconfigure.in: Likewise.
8328         * sysdeps/x86_64/preconfigure: Regenerated.
8329
8330 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8331
8332         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8333         __ILP32__.
8334
8335 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8336
8337         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8338         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8339
8340 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8341
8342         [BZ #13973]
8343         * locale/iso-639.def: Fix gl language name. Spotted by
8344         Yaron Shahrabani.
8345
8346 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8347
8348         [BZ #2074]
8349         * libio/libio.h (__io_write_fn): Update comment.
8350
8351 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8352
8353         [BZ #2074]
8354         * stdio.texi (Hook Functions): The user provided writer function
8355         is not allowed to return -1.
8356
8357 2012-04-11  David S. Miller  <davem@davemloft.net>
8358
8359         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8360
8361 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8362
8363         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8364         Add a leading slash to rtkaio.
8365
8366 2012-04-11  Jim Meyering  <meyering@redhat.com>
8367
8368         [BZ #11959]
8369         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8370         It is not necessarily an error to ignore fwrite's return
8371         value.  One can reliably use ferror to test for errors after
8372         the fact.
8373
8374 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8375
8376         * bits/types.h (__snseconds_t): New type.
8377         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8378
8379         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8380         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8381         (__SNSECONDS_T_TYPE): Likewise.
8382         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8383         (__SNSECONDS_T_TYPE): Likewise.
8384         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8385         (__SNSECONDS_T_TYPE): Likewise.
8386
8387 2012-04-10  Andreas Jaeger  <aj@suse.de>
8388
8389         [BZ #2636]
8390         * manual/time.texi (Processor Time): Return type of times is
8391         elapsed real time since an arbitrary point in the past.
8392         (CPU Time): Move CLK_TCK from here...
8393         (Processor Time): ...to here.  Correct description.
8394         * manual/conf.texi (Constants for Sysconf): Correct description of
8395         _SC_CLK_TCK.
8396
8397 2012-04-10  David S. Miller  <davem@davemloft.net>
8398
8399         [BZ #13967]
8400         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8401         where the is a gap between DT_REL(A) and DT_JMPREL.
8402
8403 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8404
8405         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8406         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8407         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8408
8409 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8410
8411         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8412         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8413         (dl_main): Handle --inhibit-cache.
8414         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8415         _dl_inhibit_cache.
8416         * elf/dl-load.c (_dl_map_object): Use it.
8417         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8418
8419 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8420
8421         [BZ #13872]
8422         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8423         (__ieee754_powl): Saturate large exponents rather than testing for
8424         overflow of y*log2(x).
8425         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8426         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8427         exceptions.
8428
8429         [BZ #11521]
8430         * math/s_ctan.c: Include <float.h>.
8431         (__ctan): Avoid internal overflow or cancellation in calculating
8432         denominator.
8433         * math/s_ctanf.c: Likewise.
8434         * math/s_ctanl.c: Likewise.
8435         * math/s_ctanh.c: Likewise.
8436         * math/s_ctanhf.c: Likewise.
8437         * math/s_ctanhl.c: Likewise.
8438         * math/libm-test.inc (ctan_test): Add more tests.
8439         (ctanh_test): Likewise.
8440         * sysdeps/i386/fpu/libm-test-ulps: Update.
8441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8442
8443 2012-04-09  Andreas Jaeger  <aj@suse.de>
8444
8445         [BZ #6894]
8446         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8447         is an optional BSD extension.
8448
8449         [BZ #10254]
8450         * manual/stdio.texi (Opening Streams): Document additional fopen
8451         parameters.
8452
8453 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8454
8455         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8456         %eax without telling the compiler.
8457
8458 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8459
8460         [BZ # 13963]
8461         * manual/install.texi: Use sourceware.org.
8462
8463 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8464
8465         [BZ #13873]
8466         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8467         (__ieee754_pow): Generate overflow and underflow using huge*huge
8468         and tiny*tiny rather than just returning constant infinity or zero
8469         for large exponents.
8470         * math/libm-test.inc (pow_test): Require overflow exceptions for
8471         applicable cases of large exponents.
8472
8473         [BZ #706]
8474         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8475         (__ieee754_pow): Use iterative multiplication algorithm only for
8476         integer exponents with absolute value below 1024.  Check for odd
8477         integer exponents when using algorithm for real exponents.
8478         * math/libm-test.inc (pow_test): Add more tests.
8479         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8480
8481 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8482
8483         [BZ #13705]
8484         * math/libm-test.inc (exp_test): Do not allow overflow exception
8485         on underflow test.
8486
8487 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8488
8489         [BZ #13705]
8490         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8491         instead of __kernel_standard_f.
8492
8493 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8494
8495         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8496         * sysdeps/x86_64/memset_chk.S: Likewise.
8497
8498 2012-04-08  Andreas Jaeger  <aj@suse.de>
8499
8500         [BZ #10153]
8501         * manual/startup.texi (Environment Access): Describe return value
8502         for putenv and setenv.
8503
8504         [BZ #6895]
8505         * manual/filesys.texi (Directory Entries): Add description for
8506         DT_LNK.
8507
8508         [BZ #6890]
8509         * manual/filesys.texi (Directory Entries): Clarify that it's file
8510         system not operating system in the description of DT_UNKNOWN.
8511
8512         [BZ #6578]
8513         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8514
8515 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8516
8517         [BZ #6649]
8518         * manual/llio.texi (Opening and Closing Files): Add cross
8519         reference to explain mode argument.
8520
8521 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8522
8523         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8524         * sysdeps/x86_64/memset_chk.S: Likewise.
8525
8526 2012-04-07  David S. Miller  <davem@davemloft.net>
8527
8528         * elf/elf.h (R_SPARC_WDISP10): Define.
8529         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8530         R_SPARC_SIZE32.
8531         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8532         R_SPARC_SIZE64 and R_SPARC_H34.
8533
8534 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8535
8536         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8537         conditions and remove no longer applicable assertion.
8538
8539 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8540
8541         * bits/byteswap.h: Include <features.h>.
8542         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8543         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8544
8545 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8546
8547         * bits/byteswap.h (__bswap_16): Removed.
8548         Include <bits/byteswap-16.h> to get __bswap_16.
8549         * sysdeps/i386/bits/byteswap.h: Likewise.
8550         * sysdeps/s390/bits/byteswap.h: Likewise.
8551         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8552         * bits/byteswap-16.h: New file.
8553         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8554         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8555         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8556         * string/Makefile (headers): Add bits/byteswap-16.h.
8557
8558 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8559
8560         [BZ #13895]
8561         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8562         extra indirection.
8563         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8564         * nss/tst-nss-static.c: New.
8565
8566 2012-04-06  Robert Millan  <rmh@gnu.org>
8567
8568         [BZ #6486]
8569         * manual/llio.texi (File Position Primitive): lseek
8570         refers to WHENCE when it really means OFFSET.
8571
8572 2012-04-06  Andreas Jaeger  <aj@suse.de>
8573
8574         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8575         strncmp declarations.
8576
8577         * abilist/libc.abilist: Add __poll and __ppoll.
8578
8579 2012-04-05  David S. Miller  <davem@davemloft.net>
8580
8581         * scripts/check-local-headers.sh: Accept a host triplet in the
8582         path matched by the exclude regexp.
8583
8584         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8585         definition.
8586         * sysdeps/powerpc/powerpc32/dl-machine.h
8587         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8588         * sysdeps/s390/s390-32/dl-machine.h
8589         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8590         * sysdeps/sparc/sparc32/dl-machine.h
8591         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8592         * sysdeps/sparc/sparc64/dl-machine.h
8593         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8594
8595         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8596         lazy binding.
8597         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8598         undefined symbol errors.
8599
8600         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8601         DT_NEEDED entries.
8602
8603 2012-04-05  Michael Matz  <matz@suse.de>
8604
8605         [BZ #13592]
8606         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8607
8608 2012-04-05  Andreas Jaeger  <aj@suse.de>
8609
8610         [BZ #13908]
8611         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8612         comment.
8613
8614 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8615
8616         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8617         which ROUND is no valid rounding mode.
8618
8619 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8620
8621         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8622         read again.
8623         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8624
8625 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8626
8627         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8628         an exception using FPU order intentionally.
8629
8630 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8631
8632         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8633         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8634         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8635         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8636
8637 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8638
8639         [BZ #12340]
8640         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8641         EINVAL when BUFLEN is too smal.
8642
8643 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8644
8645         [BZ #13553]
8646         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8647         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8648
8649 2012-04-03  Andreas Jaeger  <aj@suse.de>
8650
8651         [BZ #13938]
8652         * manual/setjmp.texi (System V contexts): Fix sentence.
8653
8654         [BZ #13926]
8655         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8656         New macro for this case.
8657         [!__GNUC__] (__bswap_64): New inline function for this case.
8658         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8659         * bits/byteswap.h: Likewise.
8660         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8661         ull, guard with __GLIBC_HAVE_LONG_LONG.
8662
8663         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8664         __GLIBC_HAVE_LONG_LONG.
8665
8666         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8667         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8668
8669 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8670
8671         [BZ #13691]
8672         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8673         inptr and inend, rather than using last_ch.
8674
8675 2012-04-02  David S. Miller  <davem@davemloft.net>
8676
8677         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8678         * stdio-common/printf-parse.h (read_int): Change return type to
8679         'int', return -1 on INT_MAX overflow.
8680         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8681         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8682         overflows INT_MAX.  Check for overflow of in-format-string precision
8683         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8684         SIZE_MAX not INT_MAX for integer overflow test.
8685         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8686         skip the construct in the format string but do not record anything.
8687         * stdio-common/bug22.c: Adjust to test both width/prevision
8688         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8689         explicitly for proper errno values.
8690
8691 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8692
8693         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8694         CHAR_MAX.
8695         * string/test-strcmp.c [! WIDE]: Likewise.
8696         * time/tst-mktime2.c: Likewise for INT_MAX.
8697         * string/test-string.h: #include <sys/param.h> for MIN.
8698
8699         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8700         * sysdeps/i386/init-first.c (init): Likewise.
8701         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8702         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8703         * sysdeps/sh/init-first.c (init): Likewise.
8704
8705 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8706
8707         * po/ru.po: Update from translation team.
8708         * po/vi.po: Likewise.
8709
8710 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8711
8712         * resolv/nss_dns/dns-host.c: Merge copyright years.
8713
8714 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8715
8716         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8717         Optimize memcpy with prefetch if
8718         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8719         src, dst pointers have unequal 16 byte alignments.
8720
8721 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8722
8723         [BZ #13928]
8724         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8725         from a CNAME entry and return the minimum ttl for the query.
8726         (gaih_getanswer_slice): Likewise.
8727
8728 2012-03-30  Jeff Law  <law@redhat.com>
8729
8730         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8731         due to long keys.
8732         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8733         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8734
8735         * resolv/nss_dns/dns-host.c: Update copyright year.
8736
8737 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8738
8739         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8740         requests to save a system call.  Fix check that all bytes are sent.
8741
8742         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8743         comments for sendmmsg.
8744
8745 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8746
8747         [BZ #13691]
8748         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8749         with only 1 character between 0x0041 and 0x01b0.
8750         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8751         * wcsmbs/tst-mbsnrtowcs.c: New file.
8752
8753 2012-03-29  David S. Miller  <davem@davemloft.net>
8754
8755         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8756         small copies by hand.
8757
8758 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8759
8760         [BZ #13761]
8761         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8762         _nss_compat_initgroups_dyn): Fall back to malloc/free
8763         for large group memberships.
8764
8765 2012-03-28  David S. Miller  <davem@davemloft.net>
8766
8767         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8768         that branches into memcpy.
8769         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8770         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8771         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8772         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8773         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8774         bits.
8775         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8776         implementation too.
8777         * sysdeps/sparc/mempcpy.S: New file.
8778
8779         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8780         the IFUNC routine in the libc case.
8781         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8782
8783         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8784         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8785         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8786         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8787         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8788         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8789         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8790         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8791
8792         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8793         loop to 256 bytes instead of 64 bytes and fix test signedness.
8794
8795         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8796         * sysdeps/sparc/sparc32/Makefile: rather than here...
8797         * sysdeps/sparc/sparc64/Makefile: and here.
8798
8799 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8800
8801         * malloc/mallocbug.c: Avoid warnings about unused variables.
8802
8803 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8804
8805         [BZ #13760]
8806         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8807         in the right place. Discard and retry query if response is
8808         larger than input buffer size.
8809
8810 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8811
8812         [BZ #369]
8813         [BZ #2678]
8814         [BZ #3866]
8815         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8816         x for large integer exponent.
8817         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8818         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8819         sign of result as needed afterwards.
8820         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8821         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8822         result for underflowing pow the same as for overflow.
8823         (__kernel_standard_l): Handle powl overflow and underflow here
8824         rather than calling __kernel_standard.
8825         * math/libm-test.inc (pow_test): Add more tests.
8826
8827         [BZ #3868]
8828         [BZ #13879]
8829         [BZ #13910]
8830         [BZ #13911]
8831         [BZ #13912]
8832         [BZ #13913]
8833         [BZ #13915]
8834         [BZ #13916]
8835         [BZ #13917]
8836         [BZ #13918]
8837         [BZ #13919]
8838         [BZ #13920]
8839         [BZ #13921]
8840         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8841         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8842         (__kernel_standard_l): New function.
8843         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8844         __kernel_standard.
8845         * math/w_acosl.c (__acosl): Likewise.
8846         * math/w_asinl.c (__asinl): Likewise.
8847         * math/w_atan2l.c (__atan2l): Likewise.
8848         * math/w_atanhl.c (__atanhl): Likewise.
8849         * math/w_coshl.c (__coshl): Likewise.
8850         * math/w_exp10l.c (__exp10l): Likewise.
8851         * math/w_exp2l.c (__exp2l): Likewise.
8852         * math/w_fmodl.c (__fmodl): Likewise.
8853         * math/w_hypotl.c (__hypotl): Likewise.
8854         * math/w_j0l.c (__j0l, __y0l): Likewise.
8855         * math/w_j1l.c (__j1l, __y1l): Likewise.
8856         * math/w_jnl.c (__jnl, __ynl): Likewise.
8857         * math/w_lgammal.c (__lgammal): Likewise.
8858         * math/w_log10l.c (__log10l): Likewise.
8859         * math/w_log2l.c (__log2l): Likewise.
8860         * math/w_logl.c (__logl): Likewise.
8861         * math/w_powl.c (__powl): Likewise.
8862         * math/w_remainderl.c (__remainderl): Likewise.
8863         * math/w_scalbl.c (sysv_scalbl): Likewise.
8864         * math/w_sinhl.c (__sinhl): Likewise.
8865         * math/w_sqrtl.c (__sqrtl): Likewise.
8866         * math/w_tgammal.c (__tgammal): Likewise.
8867         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8868         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8869         * math/libm-test.inc (acos_test): Add more tests.
8870         (acosh_test): Likewise.
8871         (asin_test): Likewise.
8872         (atanh_test): Likewise.
8873         (exp_test): Likewise.
8874         (exp10_test): Likewise.
8875         (exp2_test): Likewise.
8876         (expm1_test): Likewise.
8877         (lgamma_test): Likewise.
8878         (log_test): Likewise.
8879         (log10_test): Likewise.
8880         (log1p_test): Likewise.
8881         (log2_test): Likewise.
8882         (pow_test): Do not allow some spurious overflow exceptions.
8883         (sqrt_test): Add more tests.
8884         (tgamma_test): Likewise.
8885         (y0_test): Likewise.
8886         (y1_test): Likewise.
8887         (yn_test): Likewise.
8888
8889 2012-03-27  Anton Blanchard  <anton@samba.org>
8890
8891         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8892         MAP_HUGETLB.
8893         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8894         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8895         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8896
8897 2012-03-27  David S. Miller  <davem@davemloft.net>
8898
8899         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8900
8901         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8902         have-as-vis3 check.
8903
8904 2012-03-27  Andreas Jaeger  <aj@suse.de>
8905
8906         * sysdeps/x86_64/elf/configure.in: Moved to ...
8907         * sysdeps/x86_64/configure.in: ... here.
8908         * sysdeps/x86_64/elf/start.S: Moved to ...
8909         * sysdeps/x86_64/start.S: ... here.
8910         * sysdeps/x86_64/elf/configure: Delete.
8911
8912         * sysdeps/x86_64/configure.in: Merge contents from
8913         sysdeps/i386/configure.in (without i686 check).
8914
8915         * sysdeps/i386/elf/Versions: Merge into ...
8916         * sysdeps/i386/Versions: ... this.
8917         * sysdeps/i386/elf/Versions: Delete file.
8918         * sysdeps/i386/elf/start.S: Moved to ...
8919         * sysdeps/i386/start.S: ...here.
8920         * sysdeps/i386/elf/configure.in: Merge into...
8921         * sysdeps/i386/configure.in: ...here.
8922         * sysdeps/i386/elf/configure.in: Delete file.
8923         * sysdeps/i386/elf/configure: Delete file.
8924
8925         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8926         * debug/backtracesyms.c: ... here.
8927         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8928         * debug/backtracesymsfd.c: ... here.
8929         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8930         * sysdeps/generic/ifunc-sel.h: ... here.
8931
8932         * sysdeps/unix/i386/start.c: Delete file.
8933         * sysdeps/unix/sparc/start.c: Delete file.
8934         * sysdeps/unix/start.c: Delete file.
8935
8936         * sysdeps/sh/elf/configure.in: Moved to ...
8937         * sysdeps/sh/configure.in: ... here.
8938         * sysdeps/sh/elf/start.S: Moved to ...
8939         * sysdeps/sh/start.S: ... here.
8940         * sysdeps/sh/elf/configure: Delete file.
8941
8942         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8943         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8944         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8945         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8946         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8947         * sysdeps/powerpc/powerpc64/start.S: here.
8948         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8949         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8950         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8951         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8952         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8953
8954         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8955         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8956         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8957         * sysdeps/powerpc/powerpc32/start.S: ... here.
8958         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8959         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8960         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8961
8962         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8963         * sysdeps/powerpc/ifunc-sel.h: ... here.
8964         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8965         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8966
8967         * sysdeps/sparc/elf/configure.in: Moved to ...
8968         * sysdeps/sparc/configure.in: ... here.
8969         * sysdeps/sparc/elf/configure: Delete file.
8970         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8971         * sysdeps/sparc/sparc32/start.S: ... here.
8972         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8973         * sysdeps/sparc/sparc64/start.S: ... here.
8974         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8975         * sysdeps/sparc/sparc32/Makefile: ... this.
8976         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8977         * sysdeps/sparc/sparc64/Makefile: ... this.
8978
8979         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8980         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8981         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8982         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8983         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8984         * sysdeps/s390/s390-32/setjmp.S: ... here.
8985         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8986         * sysdeps/s390/s390-32/configure.in: ... here.
8987         * sysdeps/s390/s390-32/elf/configure: Delete file.
8988         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8989         * sysdeps/s390/s390-32/start.S: ... here.
8990
8991         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8992         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8993         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8994         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8995         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8996         * sysdeps/s390/s390-64/setjmp.S: ... here.
8997         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8998         * sysdeps/s390/s390-64/configure.in: ... here
8999         * sysdeps/s390/s390-64/elf/configure: Delete file.
9000         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9001         * sysdeps/s390/s390-64/start.S: ... here.
9002         * sysdeps/s390/s390-64/elf/configure: Delete.
9003
9004         * configure.in: Remove support for elf directories in sysdeps.
9005
9006         * configure: Regenerated.
9007         * sysdeps/i386/configure: Regenerated.
9008         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9009         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9010         * sysdeps/s390/s390-32/configure: Regenerated.
9011         * sysdeps/s390/s390-64/configure: Regenerated.
9012         * sysdeps/sh/configure: Regenerated.
9013         * sysdeps/sparc/configure: Regenerated.
9014         * sysdeps/x86_64/configure: Regenerated.
9015
9016 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9017
9018         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9019
9020         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9021         denormal result into account.
9022
9023 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9024
9025         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9026         Reported by Allan McRae <allan@archlinux.org>.
9027
9028 2012-03-23  Jeff Law  <law@redhat.com>
9029
9030         * nss/getnssent.c (__nss_getent): Fix typo.
9031
9032 2012-03-23  David S. Miller  <davem@davemloft.net>
9033
9034         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9035
9036 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9037
9038         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9039         to pad to uint64_t for each field.
9040         (dl_tls_index): Replace unsigned long with uint64_t.
9041
9042 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9043         Paul Pluzhnikov  <ppluzhnikov@google.com>
9044
9045         [BZ #6528]
9046         * grp/Makefile (otherlibs): Don't set it.
9047         * inet/Makefile (otherlibs): Likewise.
9048         * login/Makefile (otherlibs): Likewise.
9049         * nscd/Makefile (otherlibs): Likewise.
9050         * posix/Makefile (otherlibs): Likewise.
9051         * pwd/Makefile (otherlibs): Likewise.
9052         * rt/Makefile (otherlibs): Likewise.
9053         * sunrpc/Makefile (otherlibs): Likewise.
9054         * nss/Makefile (otherlibs): Likewise.
9055         Add libnss_files to routines and static-only-routines.
9056         ($(objpfx)getent): Remove rule.
9057         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9058         static-only-routines.
9059
9060 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9061
9062         [BZ #13892]
9063         * math/s_cexp.c: Include <float.h>.
9064         (__cexp): Handle exp result overflowing not necessarily
9065         overflowing both real and imaginary parts of result.
9066         * math/s_cexpf.c: Likewise.
9067         * math/s_cexpl.c: Likewise.
9068         * math/libm-test.inc (cexp_test): Add more tests.
9069         * sysdeps/i386/fpu/libm-test-ulps: Update.
9070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9071
9072 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9073
9074         * include/link.h (ELFW): New macro.
9075         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9076         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9077
9078 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9079
9080         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9081         with uint64_t.
9082
9083 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9084
9085         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9086         declaration.
9087         (struct La_x32_retval): Likewise.
9088
9089 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9090
9091         * sysdeps/x86_64/preconfigure.in: New file.
9092         * sysdeps/x86_64/preconfigure: New generated file.
9093
9094 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9095
9096         [BZ #13824]
9097         * math/e_exp2l.c: Include <float.h>.
9098         (__ieee754_exp2l): Handle overflow and underflow cases
9099         separately.  Only pass fractional part of argument to
9100         __ieee754_expl.
9101         * math/libm-test.inc (exp2_test): Add more tests.
9102
9103         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9104         negating x to take absolute value.
9105         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9106         Likewise.
9107         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9108         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9109         Likewise.
9110         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9111         computing low part if x was negated.
9112         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9113
9114 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9115
9116         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9117         la_x32_gnu_pltexit.
9118         (pltexit): Cast int_retval to ptrdiff_t.
9119         * elf/tst-auditmod3b.c: Likewise.
9120         * elf/tst-auditmod4b.c: Likewise.
9121         * elf/tst-auditmod5b.c: Likewise.
9122         * elf/tst-auditmod6b.c: Likewise.
9123         * elf/tst-auditmod6c.c: Likewise.
9124         * elf/tst-auditmod7b.c: Likewise.
9125
9126         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9127         and x32_gnu_pltexit.
9128
9129         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9130         __ELF_NATIVE_CLASS.
9131         (La_x32_regs): New macro.
9132         (La_x32_retval): Likewise.
9133         (la_x32_gnu_pltenter): New function prototype.
9134         (la_x32_gnu_pltexit): Likewise.
9135
9136 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9137
9138         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9139         exponent.
9140
9141         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9142
9143         * configure.in (libc_cv_cc_nofma): Check for option to disable
9144         generation of FMA instructions.
9145         * configure: Regenerate.
9146         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9147         * sysdeps/ieee754/dbl-64/Makefile: New file.
9148         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9149         Remove brandred-fma4.
9150         (CFLAGS-brandred-fma4.c): Remove.
9151         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9152         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9153         define.
9154         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9155         define.
9156
9157 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9158
9159         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9160         LLONG_MAX != LONG_MAX.
9161         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9162         (_fitoa_word): Likewise.
9163         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9164         LLONG_MAX != LONG_MAX.
9165         * stdio-common/_itowa.h: Include <_itoa.h>.
9166         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9167         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9168         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9169         only if not defined.
9170         (_ITOA_WORD_TYPE): Likewise.
9171         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9172         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9173
9174 2012-03-21  David S. Miller  <davem@davemloft.net>
9175
9176         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9177
9178 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9179
9180         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9181         of x86_64 when setting libc_cv_slibdir, libdir and
9182         libc_cv_localedir.
9183         * sysdeps/unix/sysv/linux/configure: Regenerated.
9184
9185 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9186
9187         * manual/lang.texi (Old Varargs): Remove section.
9188         (How Variadic): Update menu.
9189         (va_start): Do not mention varargs.h.
9190
9191 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9192             Joseph Myers  <joseph@codesourcery.com>
9193
9194         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9195         link test.
9196         * configure: Regenerated.
9197
9198 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9199
9200         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9201         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9202         conformtest.pl
9203
9204 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9205
9206         * NOTES: Remove.
9207         * Makefile (files-for-dist): Remove NOTES.
9208         (NOTES): Remove rule.
9209         * README: Don't refer to NOTES.
9210         * manual/creature.texi: Don't include macros.texi.
9211         * manual/intro.texi (creature.texi): Remove comment referring to
9212         NOTES.
9213
9214         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9215         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9216         * configure: Regenerated.
9217         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9218         LIBC_TRY_CC_OPTION.
9219         (libc_cv_as_i686): Likewise.
9220         (libc_cv_cc_avx): Likewise.
9221         (libc_cv_cc_sse2avx): Likewise.
9222         (libc_cv_cc_fma4): Likewise.
9223         (libc_cv_cc_novzeroupper): Likewise.
9224         * sysdeps/i386/configure: Regenerated.
9225
9226         [BZ #13883]
9227         * sysdeps/i386/fpu/s_cexp.S: Remove.
9228         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9229         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9230         * math/libm-test.inc (cexp_test): Add more tests.
9231         * sysdeps/i386/fpu/libm-test-ulps: Update.
9232         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9233
9234 2012-03-21  Allan McRae  <allan@archlinux.org>
9235
9236         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9237
9238 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9239
9240         [BZ #13871]
9241         * math/w_exp2.c: Do not include <float.h>.
9242         (o_threshold, u_threshold): Remove.
9243         (__exp2): Calculate result before checking finiteness and calling
9244         __kernel_standard.
9245         * math/w_exp2f.c: Likewise.
9246         * math/w_exp2l.c: Likewise.
9247         * math/libm-test.inc (exp2_test): Require overflow exception for
9248         1e6 input.
9249
9250         [BZ #3866]
9251         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9252         range of signed 64-bit integers before using fistpll.  Remove
9253         checks for whether integers fit in mantissa bits.
9254         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9255         the range of signed 32-bit integers before using fistpl.  Remove
9256         checks for whether integers fit in mantissa bits.
9257         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9258         (__ieee754_powl): Test for y outside the range of signed 64-bit
9259         integers before using fistpll.  Reduce 64-bit values to 63-bit
9260         ones as needed.
9261         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9262         divide-by-zero is raised for zero to large negative powers.
9263         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9264         (__ieee754_powl): Test for y outside the range of signed 64-bit
9265         integers before using fistpll.  Reduce 64-bit values to 63-bit
9266         ones as needed.
9267         * math/libm-test.inc (pow_test): Add more tests.
9268
9269 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9270
9271         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9272         <stdio-common/_itoa.h>.
9273         * debug/segfault.c: Likewise.
9274         * elf/dl-cache.c: Likewise.
9275         * elf/dl-minimal.c: Likewise.
9276         * elf/dl-misc.c: Likewise.
9277         * elf/dl-sysdep.c: Likewise.
9278         * elf/dl-version.c: Likewise.
9279         * elf/rtld.c: Likewise.
9280         * hurd/hurdsock.c: Likewise.
9281         * hurd/lookup-retry.c: Likewise.
9282         * malloc/malloc.c: Likewise.
9283         * malloc/mtrace.c: Likewise.
9284         * nscd/nscd_getgr_r.c: Likewise.
9285         * nscd/nscd_getpw_r.c: Likewise.
9286         * nscd/nscd_getserv_r.c: Likewise.
9287         * posix/getopt_init.c: Likewise.
9288         * posix/wordexp.c: Likewise.
9289         * stdio-common/_itoa.c: Likewise.
9290         * stdio-common/printf_fphex.c: Likewise.
9291         * stdio-common/vfprintf.c: Likewise.
9292         * string/_strerror.c: Likewise.
9293         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9294         * sysdeps/i386/i686/hp-timing.h: Likewise.
9295         * sysdeps/mach/_strerror.c: Likewise.
9296         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9297         * sysdeps/mach/hurd/sethostid.c: Likewise.
9298         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9299         * sysdeps/mach/xpg-strerror.c: Likewise.
9300         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9301         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9302         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9303         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9304         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9305         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9306         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9307         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9308         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9309         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9310         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9311         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9312         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9313         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9314         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9315         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9316         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9317         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9318         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9319         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9320         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9321
9322         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9323
9324         * stdio-common/_itoa.h: Moved to ...
9325         * sysdeps/generic/_itoa.h: Here.
9326
9327         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9328
9329         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9330         instead of "_itoa.h" and "_itowa.h".
9331         * stdio-common/vfprintf.: Likewise.
9332
9333 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9334
9335         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9336         <bits/wordsize.h>.
9337         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9338         (__signbit): Likwise.
9339         (llrintf): Likwise.
9340         (llrint): Likwise.
9341
9342 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9343
9344         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9345         __WORDSIZE != 64.
9346
9347 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9348
9349         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9350         OVERFLOW_EXCEPTION_OK.
9351         * math/libm-test.inc ("Philosophy"): Update comment about
9352         exception testing.
9353         (OVERFLOW_EXCEPTION): Define.
9354         (OVERFLOW_EXCEPTION_OK): Likewise.
9355         (INVALID_EXCEPTION_OK): Renumber.
9356         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9357         (IGNORE_ZERO_INF_SIGN): Likewise.
9358         (test_exceptions): Handle FE_OVERFLOW.
9359         (exp10_test): Expect overflow exceptions.
9360         (exp2_test): Likewise.
9361         (expm1_test): Likewise.
9362         (nextafter_test): Likewise.
9363         (pow_test): Likewise.
9364         (scalbn_test): Likewise.
9365         (scalbln_test): Likewise.
9366
9367 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9368
9369         * sysdeps/x86_64/bits/atomic.h
9370         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9371         64bit integer.
9372         (atomic_exchange_acq): Likewise.
9373         (__arch_exchange_and_add_body): Likewise.
9374         (__arch_add_body): Likewise.
9375         (atomic_add_negative): Likewise.
9376         (atomic_add_zero): Likewise.
9377
9378 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9379
9380         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9381         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9382
9383 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9384
9385         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9386         Check __x86_64__ instead of __WORDSIZE.
9387
9388 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9389
9390         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9391
9392 2012-03-19  David S. Miller  <davem@davemloft.net>
9393
9394         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9395
9396         * sysdeps/sparc/fpu/fenv_private.h: New file.
9397         * sysdeps/sparc/fpu/math_private.h: Use it.
9398         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9399         Remove.
9400         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9401         (libc_feholdexcept_setroundl): Remove.
9402         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9403         Remove.
9404         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9405         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9406
9407 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9408
9409         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9410         int64_t instead of long int.
9411         (INSERT_WORDS64): Likwise.
9412
9413 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9414
9415         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9416         _Unwind_GetCFA return to _Unwind_Ptr first.
9417
9418 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9419
9420         [BZ #13629]
9421         * math/s_clog.c: Include <float.h>.
9422         (__clog): Scale large or subnormal inputs.
9423         * math/s_clogf.c: Likewise.
9424         * math/s_clogl.c: Likewise.
9425         * math/s_clog10.c: Include <float.h>.
9426         (M_LOG10_2): Define.
9427         (__clog10): Scale large or subnormal inputs.
9428         * math/s_clog10f.c: Likewise.
9429         * math/s_clog10l.c: Likewise.
9430         * math/libm-test.inc (clog_test): Add more tests.
9431         (clog10_test): Likewise.
9432         * sysdeps/i386/fpu/libm-test-ulps: Update.
9433         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9434
9435         [BZ #11451]
9436         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9437         x and y.
9438         * math/libm-test.inc (atan2_test): Add another test.
9439
9440         * Makerules (common-objdir-compile): Remove.
9441         * sysdeps/unix/Makefile (config-generated): Do not add
9442         $(unix-generated) to variable.
9443         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9444         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9445         Remove rule.
9446         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9447         Likewise.
9448         [generic bits/local_lim.h] (before-compile): Do not append to
9449         variable.
9450         [generic bits/local_lim.h] (common-generated): Likewise.
9451         [generic sys/param.h] (before-compile): Do not append to variable.
9452         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9453         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9454         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9455         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9456         include.
9457         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9458         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9459         [generic sys/param.h] ($(addprefix
9460         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9461         [generic sys/param.h] (common-generated): Do not append to
9462         variable.
9463         [generic sys/param.h] (sysdep_headers): Likewise.
9464         [generic bits/errno.h] (before-compile): Do not append to
9465         variable.
9466         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9467         rule.
9468         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9469         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9470         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9471         [generic bits/errno.h] (common-generated): Do not append to
9472         variable.
9473         [generic bits/ioctls.h] (before-compile): Do not append to
9474         variable.
9475         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9476         rule.
9477         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9478         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9479         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9480         rule.
9481         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9482         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9483         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9484         [generic bits/ioctls.h] (common-generated): Do not append to
9485         variable.
9486         [generic sys/syscall.h] (syscall.h): Remove variable.
9487         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9488         rule.
9489         [generic sys/syscall.h] (before-compile): Do not append to
9490         variable.
9491         [generic sys/syscall.h] (common-generated): Likewise.
9492         * sysdeps/unix/errnos-tmpl.c: Remove file.
9493         * sysdeps/unix/errnos.awk: Likewise.
9494         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9495         * sysdeps/unix/ioctls.awk: Likewise.
9496         * sysdeps/unix/mk-local_lim.c: Likewise.
9497         * sysdeps/unix/snarf-ioctls: Likewise.
9498
9499 2012-03-19  Richard Henderson  <rth@twiddle.net>
9500
9501         * sysdeps/i386/fpu/fenv_private.h: New file.
9502         * sysdeps/i386/fpu/math_private.h: Use it.
9503         (math_opt_barrier, math_force_eval): Remove.
9504         (libc_feholdexcept_setround_53bit): Remove.
9505         (libc_feupdateenv_53bit): Remove.
9506         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9507         (math_opt_barrier, math_force_eval): Remove.
9508         (libc_feholdexcept): Remove.
9509         (libc_feholdexcept_setround): Remove.
9510         (libc_fetestexcept, libc_fesetenv): Remove.
9511         (libc_feupdateenv_test): Remove.
9512         (libc_feupdateenv, libc_feholdsetround): Remove.
9513         (libc_feresetround): Remove.
9514
9515         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9516         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9517
9518         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9519         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9520         (libc_feupdateenv_testl): New.
9521         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9522         (libc_feupdateenv_testf): New.
9523         (libc_feupdateenv): Use libc_feupdateenv_test.
9524         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9525         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9526
9527         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9528         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9529         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9530         (libc_feresetround_noex): New.
9531         (libc_feresetround_noexf): New.
9532         (libc_feresetround_noexl): New.
9533         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9534         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9535         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9536         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9537         SET_RESTORE_ROUND.
9538         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9539         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9540         (__cos): Likewise.
9541         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9542         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9543         SET_RESTORE_ROUND_NOEX.
9544         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9545         SET_RESTORE_ROUND_NOEXF.
9546         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9547         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9548         (libc_feholdsetroundf): New.
9549         (libc_feresetround, libc_feresetroundf): New.
9550
9551         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9552         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9553         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9554
9555         * sysdeps/generic/math_private.h: Include <fenv.h>.
9556         (default_libc_feholdexcept): New.
9557         (default_libc_feholdexcept_setround): New.
9558         (default_libc_fesetenv, default_libc_feupdateenv): New.
9559         (libc_feholdexcept): Only define if undefined.
9560         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9561         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9562         (libc_feholdexcept_setroundl): Likewise.
9563         (libc_feholdexcept_setround_53bit): Likewise.
9564         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9565         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9566         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9567         (libc_feupdateenv_53bit): Likewise.
9568         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9569         (libc_feholdexcept): Convert from macro to inline function.
9570         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9571         (libc_fesetenv, libc_feupdateenv): Likewise.
9572
9573         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9574         not previously defined.
9575         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9576         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9577         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9578         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9579         * sysdeps/ieee754/flt-32/math_private.h: New file.
9580         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9581         math_private.h below SET_FLOAT_WORD.
9582         (__isnan, __isinf_ns, __finite): Remove.
9583         (__isnanf, __isinf_nsf, __finitef): Remove.
9584
9585 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9586
9587         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9588
9589 2012-03-17  David S. Miller  <davem@davemloft.net>
9590
9591         [BZ #6471]
9592         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9593         for 2.16.
9594
9595 2012-03-16  David S. Miller  <davem@davemloft.net>
9596
9597         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9598         warnings.
9599
9600         [BZ #6471]
9601         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9602         properly.
9603         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9604         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9605         sysdep_routines when subdir is sysvipc.
9606         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9607         __getshmlba helper.
9608
9609         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9610
9611 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9612
9613         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9614         [__LP64__].
9615
9616 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9617
9618         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9619         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9620         (__lround): Renamed to ...
9621         (__llround): This.  Replace long int with long long int.
9622         Define lround functions as aliases of llround functions.
9623         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9624
9625 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9626
9627         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9628         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9629         adresses to uintptr_t.  Replace "long int" and "unsigned long
9630         int" with "greg_t" on va_arg.
9631
9632 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9633
9634         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9635         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9636
9637         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9638         Move e_machine check before EI_CLASS check.  Handle x32
9639         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9640         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9641         SKIP_EM_IA_64 and include
9642         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9643
9644         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9645         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9646         (add_system_dir): New macro.
9647
9648         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9649         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9650
9651 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9652
9653         [BZ #2551]
9654         [BZ #2552]
9655         [BZ #2553]
9656         [BZ #2554]
9657         [BZ #2562]
9658         [BZ #2563]
9659         [BZ #2565]
9660         [BZ #2566]
9661         [BZ #2576]
9662         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9663         (y0): Likewise.
9664         * math/w_j0f.c (j0f): Likewise.
9665         (y0f): Likewise.
9666         * math/w_j0l.c (__j0l): Likewise.
9667         (__y0l): Likewise.
9668         * math/w_j1.c (j1): Likewise.
9669         (y1): Likewise.
9670         * math/w_j1f.c (j1f): Likewise.
9671         (y1f): Likewise.
9672         * math/w_j1l.c (__j1l): Likewise.
9673         (__y1l): Likewise.
9674         * math/w_jn.c (jn): Likewise.
9675         (yn): Likewise.
9676         * math/w_jnf.c (jnf): Likewise.
9677         (ynf): Likewise.
9678         * math/w_jnl.c (__jnl): Likewise.
9679         (__ynl): Likewise.
9680         * math/libm-test.inc (j0_test): Add more tests.
9681         (j1_test): Likewise.
9682         (jn_test): Likewise.  Add trailing semicolon to existing test.
9683         (y0_test): Likewise.
9684         (y1_test): Likewise.
9685         * sysdeps/i386/fpu/libm-test-ulps: Update.
9686         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9687
9688         [BZ #13851]
9689         [BZ #13854]
9690         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9691         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9692         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9693         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9694         (__tanl): Set errno for infinite argument.
9695         * sysdeps/i386/fpu/mptan.c: Remove.
9696         * sysdeps/i386/fpu/s_tan.S: Likewise.
9697         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9698         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9699         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9700         * math/libm-test.inc (tan_test): Add more tests and enable more
9701         tests for double and long double.
9702         * sysdeps/i386/fpu/libm-test-ulps: Update.
9703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9704
9705 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9706
9707         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9708         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9709
9710 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9711
9712         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9713         * configure.in: Use it for both main tree and add-ons.
9714         * configure: Regenerated.
9715
9716 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9717
9718         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9719
9720 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9721
9722         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9723         in comment.
9724
9725         [BZ #13851]
9726         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9727         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9728         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9729         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9730         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9731         infinite argument.
9732         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9733         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9734         != 0 for prec == 2.
9735         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9736         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9737         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9738         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9739         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9740         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9741         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9742         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9743         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9744         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9745         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9746         * math/libm-test.inc (cos_test): Add more tests and enable more
9747         tests for long double.
9748         (sin_test): Likewise.
9749         (sincos_test): Likewise.
9750         * sysdeps/i386/fpu/libm-test-ulps: Update.
9751         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9752
9753 2012-03-16  David S. Miller  <davem@davemloft.net>
9754
9755         * sysdeps/sparc/fpu/math_private.h: New file.
9756
9757 2012-03-15  David S. Miller  <davem@davemloft.net>
9758
9759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9760         file.
9761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9763         file.
9764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9765         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9766         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9767         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9768         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9769         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9770         sysdep routines.
9771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9772
9773         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9774         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9775
9776         * sysdeps/sparc/sparc-ifunc.h: New file.
9777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9778         sparc-ifunc.h
9779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9781         Likewise.
9782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9783         Likewise.
9784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9788         Likewise.
9789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9794         Likewise.
9795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9796         Likewise.
9797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9801         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9802         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9803         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9804         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9805         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9806         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9807         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9808         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9809         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9810         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9811         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9812         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9813         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9814         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9815         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9816         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9817         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9818         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9819         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9820         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9821
9822 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9823
9824         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9825         scaling.
9826         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9827
9828 2012-03-15  Andreas Jaeger  <aj@suse.de>
9829
9830         [BZ #13852]
9831         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9832         ieee754/flt-32 implementation for sin, cos and sincos.
9833         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9834         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9835         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9836         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9837         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9838         ieee754/flt-32 implementation for tan.
9839
9840         * math/libm-test.inc (cos_test): Enable some large input tests for
9841         float as well
9842         (sin_test): Likewise.
9843         (sincos_test): Likewise.
9844         (tan_test): Add tests for large input.
9845
9846         * sysdeps/i386/fpu/libm-test-ulps: Update.
9847
9848 2012-03-15  Andreas Jaeger  <aj@suse.de>
9849
9850         [BZ #13658]
9851         * math/libm-test.inc (cos_test): Add more test cases.
9852         (sin_test): Likewise.
9853         (sincos_test): Likewise.
9854
9855 2012-03-15  Andreas Jaeger  <aj@suse.de>
9856
9857         [BZ #13837]
9858         * math/libm-test.inc (cos_test): Add a test case for large input
9859         value.
9860         (sin_test): Likewise.
9861         (sincos_test): Likewise.
9862
9863 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9864         Joseph Myers  <joseph@codesourcery.com>
9865
9866         [BZ #13658]
9867         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9868         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9869         * sysdeps/i386/fpu/branred.c: Likewise.
9870         * sysdeps/i386/fpu/dosincos.c: Likewise.
9871         * sysdeps/i386/fpu/mpa.c: Likewise.
9872         * sysdeps/i386/fpu/s_cos.S: Likewise.
9873         * sysdeps/i386/fpu/s_sin.S: Likewise.
9874         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9875         * sysdeps/i386/fpu/sincos32.c: Likewise.
9876
9877         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9878         Define.
9879         (libc_feupdateenv_53bit): Define.
9880         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9881         Define.
9882         (libc_feupdateenv_53bit): Define.
9883
9884         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9885         53 bit (without extend i386 double precision).
9886
9887         * math/libm-test.inc (sincos_test): Add tests for large input.
9888         (sin): Likewise.
9889         (cos): Likewise.
9890
9891         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9892
9893 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9894
9895         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9896
9897 2012-03-15  David S. Miller  <davem@davemloft.net>
9898
9899         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9900         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9901         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9902         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9903         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9904         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9905         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9906         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9907         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9908         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9909         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9910         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9911         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9912         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9913         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9915         file.
9916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9918         file.
9919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9921         file.
9922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9924         file.
9925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9926         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9927         fmin/fmax sysdep routines.
9928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9929
9930 2012-03-14  David S. Miller  <davem@davemloft.net>
9931
9932         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9933         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9934         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9935         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9936         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9937         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9938         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9939         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9940         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9941         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9942         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9943         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9944         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9945         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9946         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9947         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9948         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9949         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9950         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9951         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9952         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9953         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9954         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9955         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9956         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9957         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9958         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9959         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9960         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9961         routines.
9962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9963         file.
9964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9966         file.
9967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9969         file.
9970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9972         file.
9973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9975         file.
9976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9978         file.
9979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9980         file.
9981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9982         file.
9983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9984         file.
9985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9986         New file.
9987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9988         file.
9989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9990         file.
9991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9993         file.
9994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9996         file.
9997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9999         file.
10000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10002         VIS3 routines.
10003
10004         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10005         New file.
10006
10007         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10008
10009         * sysdeps/sparc/configure.in: New file.
10010         * sysdeps/sparc/configure: Generate.
10011         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10012         * configure: Regenerate.
10013         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10014         * config.make.in (have-as-vis3): New.
10015         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10016         available use -Av9d instead of -Av9a.
10017         * sysdeps/sparc/sparc64/Makefile: Likewise.
10018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10020         New file.
10021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10022         file.
10023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10024         New file.
10025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10026         file.
10027         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10028         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10029         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10030         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10031         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10032
10033         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10034         fzeros/fnegs to load 0x80000000 into a float register instead of
10035         using the stack.
10036         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10037
10038 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10039
10040         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10041         bits/syscall.h.
10042         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10043         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10044         ($(inst_includedir)/bits/syscall.h): Remove rule.
10045         ($(objpfx)bits/syscall.d): Include instead of
10046         $(objpfx)syscall-list.d.
10047         (generated): Change syscall-list.h and syscall-list.d to
10048         bits/syscall.h and bits/syscall.d.
10049
10050 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10051
10052         [BZ #13846]
10053         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10054
10055 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10056
10057         [BZ #13841]
10058         * math/s_csqrt.c: Include <float.h>.
10059         (__csqrt): Scale large or subnormal inputs.
10060         * math/s_csqrtf.c: Likewise.
10061         * math/s_csqrtl.c: Likewise.
10062         * math/libm-test.inc (csqrt_test): Add more tests.
10063         * sysdeps/i386/fpu/libm-test-ulps: Update.
10064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10065
10066         [BZ #13840]
10067         * math/libm-test.inc (hypot_test): Add more tests.
10068
10069 2012-03-13  David S. Miller  <davem@davemloft.net>
10070
10071         [BZ #13840]
10072         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10073         double-precision for the calculation instead of scaling.
10074
10075 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10076
10077         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10078         manipulate bits before adding and subtracting TWO52[sx].
10079         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10080         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10081         Likewise.
10082         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10083
10084 2012-03-13  David S. Miller  <davem@davemloft.net>
10085
10086         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10087         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10088         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10089         rtld-global-offsets.h
10090         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10091
10092         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10093         large parameters.
10094
10095         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10096
10097         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10098         'err' in the ifdef scope in which it is actually used.
10099
10100         * nss/nss_db/db-init.c: Include string.h
10101
10102 2012-03-12  David S. Miller  <davem@davemloft.net>
10103
10104         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10105         masking out of the most significant byte of random value used.
10106         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10107         Fix coding style in previous change.
10108
10109         * sysdeps/unix/sysv/linux/kernel-features.h
10110         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10111         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10112         expression.
10113         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10114         later.
10115
10116 2012-03-11  David S. Miller  <davem@davemloft.net>
10117
10118         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10119         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10120         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10121         for 'resultvar' otherwise things get truncated on 64-bit.
10122
10123         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10124         Fix masking out of the most significant byte of random value used.
10125
10126         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10127
10128 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10129
10130         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10131
10132 2012-03-09  David S. Miller  <davem@davemloft.net>
10133
10134         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10135         variables with appropriate CPP guards.
10136         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10137         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10138         on resulting framesize and the management of the outregs buffer for pltexit.
10139         Preserve floating point return values across _dl_call_pltexit call.
10140         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10141         framesize and the management of the outregs buffer for pltexit.
10142         Preserve floating point return values across _dl_call_pltexit
10143         call.
10144         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10145         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10146         (print_exit): Fix format string for return register value.
10147
10148 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10149
10150         * sunrpc/Makefile (others): Add rpcgen.
10151         ($(objpfx)rpcgen): Remove special build rule and dependency on
10152         libc.
10153         * sunrpc/rpcgen.c: New file.
10154
10155 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10156
10157         [BZ #13673]
10158         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10159         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10160         * sysdeps/i386/crti.S: Likewise.
10161         * sysdeps/i386/crtn.S: Likewise.
10162         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10163         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10164         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10165         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10166         * sysdeps/sh/crti.S: Likewise.
10167         * sysdeps/sh/crtn.S: Likewise.
10168         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10169
10170         [BZ #13673]
10171         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10172         with URL.
10173         * locale/programs/locfile-kw.gperf: Likewise.
10174         * locale/programs/charmap-kw.h: Regenerated.
10175         * locale/programs/locfile-kw.h: Likewise.
10176
10177         [BZ #13673]
10178         * intl/plural.y: Replace FSF snail mail address with URL.
10179         * intl/plural.c: Regenerated.
10180
10181 2012-03-09  Richard Henderson  <rth@twiddle.net>
10182
10183         * include/math_private.h: Remove file.
10184         * math/math_private.h: Move file ...
10185         * sysdeps/generic/math_private.h: ... here.
10186
10187         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10188         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10189         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10190
10191         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10192         and <math_private.h>.
10193         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10194         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10195         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10196         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10197         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10198         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10199         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10200         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10201         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10202         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10203         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10204         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10205         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10206         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10207         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10208         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10209         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10210         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10211         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10212         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10213         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10214         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10215         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10216         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10217         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10218         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10219         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10220         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10221         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10222         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10223         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10224         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10225         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10226         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10227         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10228         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10229         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10230         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10231         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10232         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10233         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10234         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10235         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10236         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10237         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10238         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10239         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10240         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10241         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10242         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10243         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10244         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10245         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10246         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10247         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10248         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10249         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10250         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10251         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10252         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10253         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10254         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10255         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10256         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10257         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10258         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10259         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10260         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10261         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10262         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10263         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10264         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10265         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10266         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10267         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10268         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10269         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10270         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10271         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10272         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10273         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10274         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10275         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10276         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10277         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10278         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10279         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10280         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10281         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10282         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10283         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10284         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10285         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10286         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10287         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10288         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10289         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10290         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10291         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10292         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10293         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10294         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10295         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10296         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10297         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10298         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10299         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10300         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10301         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10302         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10303         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10304         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10305         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10306         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10307         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10308         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10309         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10310         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10311         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10312         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10313         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10314         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10315         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10316         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10317         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10318         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10319         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10320         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10321         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10322         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10323         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10324         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10325         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10326         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10327         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10328         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10329         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10330         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10331         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10332         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10333         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10334         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10335         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10336         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10337         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10338         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10339         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10340         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10341         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10342         * sysdeps/ieee754/k_standard.c: Likewise.
10343         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10344         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10345         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10346         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10347         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10348         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10349         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10350         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10351         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10352         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10353         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10354         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10355         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10356         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10357         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10358         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10359         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10360         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10361         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10362         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10363         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10364         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10365         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10366         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10367         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10368         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10369         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10370         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10371         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10372         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10373         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10374         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10375         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10376         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10377         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10378         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10379         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10380         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10381         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10382         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10383         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10384         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10385         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10386         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10387         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10388         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10389         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10390         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10391         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10392         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10393         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10394         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10395         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10396         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10397         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10398         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10399         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10400         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10401         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10402         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10403         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10404         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10405         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10406         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10407         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10408         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10409         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10410         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10411         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10412         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10413         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10414         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10415         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10416         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10417         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10418         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10419         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10420         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10421         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10422         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10423         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10424         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10425         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10426         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10427         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10428         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10429         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10430         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10431         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10432         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10433         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10434         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10435         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10436         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10437         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10438         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10439         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10440         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10441         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10442         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10443         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10444         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10445         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10446         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10447         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10448         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10449         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10450         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10451         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10452         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10453         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10454         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10455         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10456         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10457         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10458         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10459         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10460         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10461         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10462         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10463         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10464         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10465         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10466         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10467         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10468         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10469         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10470         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10471         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10472         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10473         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10474         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10475         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10476         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10477         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10478         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10479         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10480         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10481         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10482         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10483         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10484         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10485         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10486         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10487         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10488         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10489         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10490         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10491         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10492         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10493         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10494         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10495         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10496         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10497         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10498         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10499         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10500         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10501         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10502         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10503         * sysdeps/ieee754/s_lib_version.c: Likewise.
10504         * sysdeps/ieee754/s_matherr.c: Likewise.
10505         * sysdeps/ieee754/s_signgam.c: Likewise.
10506         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10507         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10508         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10509         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10510         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10511         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10512         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10513         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10514         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10515         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10516         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10517         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10518         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10519         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10520         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10521         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10522         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10523         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10524         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10525         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10526         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10527
10528 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10529
10530         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10531         * sunrpc/rpc_main.c: Likewise.
10532         * sunrpc/rpc_svcout.c: Likewise.
10533
10534 2012-03-09  David S. Miller  <davem@davemloft.net>
10535
10536         * include/math_private.h: New file.
10537
10538 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10539
10540         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10541         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10542         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10543         from <bits/socket_type.h>.
10544         (enum __socket_type): Don't define here.
10545         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10546         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10547         bits/socket_type.h.
10548
10549         [BZ #13566]
10550         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10551         checking __USE_GNU.
10552
10553         * Makerules ($(inst_includedir)/%.h): New rule.
10554         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10555         (install-others): Remove variable setting.
10556         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10557
10558 2012-03-08  Richard Henderson  <rth@twiddle.net>
10559
10560         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10561         from macro to inline function; merge with the
10562         !__LIBC_INTERNAL_MATH_INLINES version.
10563         (__ieee754_sqrtf): Likewise.
10564
10565         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10566         to inline function.
10567         (__rintf, __floor, __floorf): Likewise.
10568
10569         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10570         macro to inline function.
10571         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10572
10573         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10574         not <math/math_private.h>.
10575
10576 2012-03-08  David S. Miller  <davem@davemloft.net>
10577
10578         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10579         copyright year.
10580         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10581
10582 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10583
10584         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10585         normalization.
10586         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10587         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10588
10589 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10590
10591         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10592         be defined individually, they must be defined as a block.  Define
10593         S for printing a string instead of hidint the different by using a
10594         macro for adding the 'l'.
10595         * stdio-common/tst-fphex-wide.c: Adjust.
10596
10597 2012-03-07  Marek Polacek  <polacek@redhat.com>
10598
10599         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10600
10601 2012-03-08  Marek Polacek  <polacek@redhat.com>
10602
10603         [BZ #13806]
10604         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10605         * stdio-common/tst-fphex.c: Define a few macros to make the
10606         test reusable.  Use them.
10607         * stdio-common/tst-fphex-wide.c: New file.
10608
10609 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10610
10611         [BZ #6911]
10612         * manual/macros.texi (gnusystems): New macro.
10613         (nongnusystems): Likewise.
10614         (gnulinuxhurdsystems): Likewise.
10615         (gnuhurdsystems): Likewise..
10616         (gnulinuxsystems): Likewise.
10617         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10618         variants of the GNU system, not "GNU system".
10619         * manual/conf.texi: Likewise.
10620         * manual/errno.texi: Likewise.  Update example of errno macro
10621         expansion.
10622         * manual/filesys.texi: Likewise.
10623         (getumask): Document as specific to GNU/Hurd.
10624         * manual/install.texi: Likewise.  Reword some references to
10625         GNU/Linux.
10626         * manual/intro.texi: Likewise.
10627         * manual/io.texi: Likewise.
10628         (File Name Portability): Detail which constraints are inapplicable
10629         to all GNU systems and which are only inapplicable to GNU/Hurd.
10630         * manual/job.texi: Likewise.
10631         * manual/llio.texi: Likewise.
10632         (O_NOCTTY): Document as present on GNU/Linux.
10633         * manual/maint.texi: Likewise.
10634         * manual/memory.texi: Likewise.
10635         * manual/pattern.texi: Likewise.
10636         * manual/pipe.texi: Likewise.
10637         * manual/process.texi: Likewise.
10638         * manual/resource.texi: Likewise.
10639         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10640         child on GNU/Hurd.
10641         * manual/setjmp.texi: Likewise.
10642         * manual/signal.texi: Likewise.
10643         * manual/startup.texi: Likewise.
10644         * manual/stdio.texi: Likewise.
10645         * manual/terminal.texi: Likewise.
10646         (ONLCR): Document as POSIX.
10647         (OXTABS): Document availability on GNU/Linux as XTABS.
10648         (ONOEOT): Document availability separately from other bits.
10649         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10650         * manual/time.texi: Likewise.
10651         * manual/users.texi: Likewise.
10652         * INSTALL: Regenerated.
10653         * sysdeps/gnu/errlist.c: Regenerated.
10654
10655         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10656         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10657         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10658         puts.
10659         * configure: Regenerated.
10660
10661 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10662
10663         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10664         default includes instead of AC_HEADER_CHECK.
10665         * sysdeps/i386/configure: Regenerated.
10666
10667         [BZ #10716]
10668         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10669         * math/s_cacoshf.c (__cacoshf): Likewise.
10670         * math/s_cacoshl.c (__cacoshl): Likewise.
10671         * math/s_casinh.c (__casinh): Set signs of result from argument.
10672         * math/s_casinhf.c (__casinhf): Likewise.
10673         * math/s_casinhl.c (__casinhl): Likewise.
10674         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10675         (casinh_test): Add more tests.
10676         * sysdeps/i386/fpu/libm-test-ulps: Update.
10677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10678
10679 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10680
10681         * po/zh_TW.po: Update from translation team.
10682
10683         * login/Makefile (distribute): Remove variable.
10684         * catgets/Makefile: Likewise.
10685         * mach/Makefile: Likewise.
10686         * malloc/Makefile: Likewise.
10687         * misc/Makefile: Likewise.
10688         * iconv/Makefile: Likewise.
10689         * nscd/Makefile: Likewise.
10690         * hurd/Makefile: Likewise.
10691         * manual/Makefile: Likewise.
10692         * locale/Makefile: Likewise.
10693         * intl/Makefile: Likewise.
10694         * conform/Makefile: Likewise.
10695         * nss/Makefile: Likewise.
10696         * time/Makefile: Likewise.
10697         * soft-fp/Makefile: Likewise.
10698         * dirent/Makefile: Likewise.
10699         * gmon/Makefile: Likewise.
10700         * po/Makefile: Likewise.
10701         * rt/Makefile: Likewise.
10702         * socket/Makefile: Likewise.
10703         * math/Makefile: Likewise.
10704         * signal/Makefile: Likewise.
10705         * debug/Makefile: Likewise.
10706         * elf/Makefile: Likewise.
10707         * timezone/Makefile: Likewise.
10708         * stdlib/Makefile: Likewise.
10709         * iconvdata/Makefile: Likewise.
10710         * sunrpc/Makefile: Likewise.
10711         * io/Makefile: Likewise.
10712         * argp/Makefile: Likewise.
10713         * inet/Makefile: Likewise.
10714         * hesiod/Makefile: Likewise.
10715         * grp/Makefile: Likewise.
10716         * csu/Makefile: Likewise.
10717         * wctype/Makefile: Likewise.
10718         * crypt/Makefile: Likewise.
10719         * libio/Makefile: Likewise.
10720         * string/Makefile: Likewise.
10721         * nis/Makefile: Likewise.
10722         * resolv/Makefile: Likewise.
10723         * stdio-common/Makefile: Likewise.
10724         * wcsmbs/Makefile: Likewise.
10725         * dlfcn/Makefile: Likewise.
10726         * posix/Makefile: Likewise.
10727
10728         [BZ #6959]
10729         * timezone/Makefile: Don't install timezone files, just the programs
10730         and scripts.
10731
10732 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10733
10734         * nss/databases.def: Add missing gshadow entry.
10735
10736         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10737
10738 2012-03-06  Marek Polacek  <polacek@redhat.com>
10739
10740         [BZ #13726]
10741         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10742         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10743         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10744         * stdio-common/tst-long-dbl-fphex.c: New file.
10745
10746 2012-03-06  David S. Miller  <davem@davemloft.net>
10747
10748         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10749         (set_obp_int): New function.
10750         (get_obp_int): New function.
10751         (__get_clockfreq_via_dev_openprom): Likewise.
10752         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10753         Avoid unused variable warnings on 'val' and use builtin_expect.
10754         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10755         __builtin_expect.
10756         (INLINE_CLONE_SYSCALL): Likewise.
10757
10758 2012-03-05  David S. Miller  <davem@davemloft.net>
10759
10760         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10761
10762 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10763
10764         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10765
10766         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10767         only for |x| >= 40.
10768         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10769
10770 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10771
10772         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10773         Replace gettimeofday with __vdso_gettimeofday.
10774
10775         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10776         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10777         __vdso_clock_gettime and __vdso_getcpu.
10778
10779         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10780         time with __vdso_time.
10781
10782 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10783
10784         * manual/lang.texi (size_t): Note types to which size_t may be
10785         equivalent with the GNU C Library, but do not describe when
10786         differences between them are significant.
10787
10788 2012-03-05  Andreas Jaeger  <aj@suse.de>
10789
10790         * sysdeps/i386/fpu/libm-test-ulps: Update.
10791
10792 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10793
10794         [BZ #3976]
10795         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10796         (__ieee754_pow): Save and restore rounding mode and use
10797         round-to-nearest for main computations.
10798         * math/libm-test.inc (pow_test_tonearest): New function.
10799         (pow_test_towardzero): Likewise.
10800         (pow_test_downward): Likewise.
10801         (pow_test_upward): Likewise.
10802         (main): Call the new functions.
10803         * sysdeps/i386/fpu/libm-test-ulps: Update.
10804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10805
10806         [BZ #3976]
10807         * math/libm-test.inc (cosh_test_tonearest): New function.
10808         (cosh_test_towardzero): Likewise.
10809         (cosh_test_downward): Likewise.
10810         (cosh_test_upward): Likewise.
10811         (sinh_test_tonearest): Likewise.
10812         (sinh_test_towardzero): Likewise.
10813         (sinh_test_downward): Likewise.
10814         (sinh_test_upward): Likewise.
10815         (main): Call the new functions.
10816         * sysdeps/i386/fpu/libm-test-ulps: Update.
10817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10818
10819 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10820
10821         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10822         default stack guard is set in last bytes.
10823         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10824
10825 2012-03-05  Kees Cook  <keescook@chromium.org>
10826
10827         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10828
10829         [BZ #13656]
10830         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10831         possibly allocate from heap instead of stack.
10832         * stdio-common/bug-vfprintf-nargs.c: New file.
10833         * stdio-common/Makefile (tests): Add nargs overflow test.
10834
10835 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10836
10837         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10838
10839 2012-03-03  Marek Polacek  <polacek@redhat.com>
10840
10841         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10842         * math/math_private.h: Likewise.
10843         * stdlib/tst-strtod.c: Likewise.
10844         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10845         * sysdeps/x86_64/bits/atomic.h: Likewise.
10846
10847 2012-03-02  David S. Miller  <davem@davemloft.net>
10848
10849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10850         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10851         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10852         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10853         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10854         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10855         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10856         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10857
10858 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10859
10860         [BZ #13792]
10861         * manual/examples/README: New file, says the example source files
10862         can be used under GPL>=2.
10863         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10864         line containing just "*/".
10865         * manual/examples/add.c: Add copyright header (GPL>=2).
10866         * manual/examples/argp-ex1.c: Likewise.
10867         * manual/examples/argp-ex2.c: Likewise.
10868         * manual/examples/argp-ex3.c: Likewise.
10869         * manual/examples/argp-ex4.c: Likewise.
10870         * manual/examples/atexit.c: Likewise.
10871         * manual/examples/db.c: Likewise.
10872         * manual/examples/dir.c: Likewise.
10873         * manual/examples/dir2.c: Likewise.
10874         * manual/examples/execinfo.c: Likewise.
10875         * manual/examples/filecli.c: Likewise.
10876         * manual/examples/filesrv.c: Likewise.
10877         * manual/examples/fmtmsgexpl.c: Likewise.
10878         * manual/examples/genpass.c: Likewise.
10879         * manual/examples/inetcli.c: Likewise.
10880         * manual/examples/inetsrv.c: Likewise.
10881         * manual/examples/isockad.c: Likewise.
10882         * manual/examples/longopt.c: Likewise.
10883         * manual/examples/memopen.c: Likewise.
10884         * manual/examples/memstrm.c: Likewise.
10885         * manual/examples/mkfsock.c: Likewise.
10886         * manual/examples/mkisock.c: Likewise.
10887         * manual/examples/mygetpass.c: Likewise.
10888         * manual/examples/pipe.c: Likewise.
10889         * manual/examples/popen.c: Likewise.
10890         * manual/examples/rprintf.c: Likewise.
10891         * manual/examples/search.c: Likewise.
10892         * manual/examples/select.c: Likewise.
10893         * manual/examples/setjmp.c: Likewise.
10894         * manual/examples/sigh1.c: Likewise.
10895         * manual/examples/sigusr.c: Likewise.
10896         * manual/examples/stpcpy.c: Likewise.
10897         * manual/examples/strdupa.c: Likewise.
10898         * manual/examples/strftim.c: Likewise.
10899         * manual/examples/strncat.c: Likewise.
10900         * manual/examples/subopt.c: Likewise.
10901         * manual/examples/swapcontext.c: Likewise.
10902         * manual/examples/termios.c: Likewise.
10903         * manual/examples/testopt.c: Likewise.
10904         * manual/examples/testpass.c: Likewise.
10905         * manual/examples/timeval_subtract.c: Likewise.
10906
10907         [BZ #13792]
10908         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10909         function to ...
10910         * manual/timeval_subtract.c.texi: ... here, new file.
10911
10912 2012-03-02  David S. Miller  <davem@davemloft.net>
10913
10914         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10915
10916 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10917
10918         [BZ #3976]
10919         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10920         (__sin): Save and restore rounding mode and use round-to-nearest
10921         for all computations.
10922         (__cos): Save and restore rounding mode and use round-to-nearest
10923         for all computations.
10924         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10925         <fenv.h>.
10926         (tan): Save and restore rounding mode and use round-to-nearest for
10927         all computations.
10928         * math/libm-test.inc (cos_test_tonearest): New function.
10929         (cos_test_towardzero): Likewise.
10930         (cos_test_downward): Likewise.
10931         (cos_test_upward): Likewise.
10932         (sin_test_tonearest): Likewise.
10933         (sin_test_towardzero): Likewise.
10934         (sin_test_downward): Likewise.
10935         (sin_test_upward): Likewise.
10936         (tan_test_tonearest): Likewise.
10937         (tan_test_towardzero): Likewise.
10938         (tan_test_downward): Likewise.
10939         (tan_test_upward): Likewise.
10940         (main): Call the new functions.
10941         * sysdeps/i386/fpu/libm-test-ulps: Update.
10942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10943
10944         [BZ #10135]
10945         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10946         small n, then large n, before computing and testing k+n.
10947         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10948         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10949         Likewise.
10950         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10951         Likewise.
10952         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10953         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10954         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10955         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10956         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10957         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10958         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10959         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10960         * math/libm-test.inc (scalbn_test): Add more tests.
10961         (scalbln_test): Likewise.
10962
10963         * manual/filesys.texi (mode_t): Describe constraints on size and
10964         signedness, not exact equivalence to a particular type.
10965         (ino_t): Likewise.
10966         (ino64_t): Likewise.
10967         (dev_t): Likewise.
10968         (nlink_t): Likewise.
10969         (blkcnt_t): Likewise.
10970         (blkcnt64_t): Likewise.
10971         * manual/llio.texi (off_t): Likewise.
10972
10973         [BZ #3976]
10974         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10975         (__ieee754_exp): Save and restore rounding mode and use
10976         round-to-nearest for all computations.
10977         * math/libm-test.inc (exp_test_tonearest): New function.
10978         (exp_test_towardzero): Likewise.
10979         (exp_test_downward): Likewise.
10980         (exp_test_upward): Likewise.
10981         (main): Call the new functions.
10982         * sysdeps/i386/fpu/libm-test-ulps: Update.
10983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10984
10985 2012-03-01  Chris Demetriou  <cgd@google.com>
10986
10987         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10988         have predictable order.
10989
10990 2012-03-01  David S. Miller  <davem@davemloft.net>
10991
10992         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10993
10994         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10995         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10996         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10997         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10998
10999         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11000         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11001         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11002         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11003         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11004         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11005         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11006         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11007         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11008
11009         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11010
11011         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11012         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11013         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11014
11015         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11016         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11017         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11018         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11019         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11020         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11021         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11022         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11023         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11024         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11025         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11026         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11027         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11028         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11029         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11030         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11031         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11032         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11033         * sysdeps/sparc/elf/configure: Regenerated.
11034
11035 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11036
11037         * configure.in (AS, LD): Require binutils 2.20 or later.
11038         * configure: Regenerated.
11039         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11040         as required minimum version.
11041         * INSTALL: Regenerated.
11042
11043         [BZ #2541]
11044         [BZ #4108]
11045         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11046         before squaring exponent.
11047         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11048         bottom long double and 27 bits of top long double before squaring
11049         exponent.
11050         * math/libm-test.inc (erfc_test): Add more tests.
11051         * sysdeps/i386/fpu/libm-test-ulps: Update.
11052         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11053         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11054
11055 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11056
11057         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11058         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11059         containing bit-fields.
11060         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11061         * soft-fp/single.h (_FP_UNION_S): Likewise.
11062         * soft-fp/double.h (_FP_UNION_D): Likewise.
11063
11064 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11065
11066         [BZ #13786]
11067         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11068         not include ../strcmp.S.
11069         [USE_AS_STRNCASECMP_L]: Likewise.
11070         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11071         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11072         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11073         (__strncasecmp_l_ia32): Define as alias to
11074         __strncasecmp_l_nonascii.
11075
11076         [BZ #5794]
11077         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11078         * sysdeps/i386/fpu/libm-test-ulps: Update.
11079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11080
11081         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11083
11084 2012-02-29  Jeff Law  <law@redhat.com>
11085
11086         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11087         out of bounds read.
11088
11089 2012-02-29  Marek Polacek  <polacek@redhat.com>
11090
11091         [BZ #13706]
11092         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11093         * elf/Makefile: Add rules to run tst-unused-dep.out.
11094
11095 2012-02-28  David S. Miller  <davem@davemloft.net>
11096
11097         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11098         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11099         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11100         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11101         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11102         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11103
11104 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11105
11106         * math/libm-test.inc (llround_test): Move one test from
11107         lround_test.  Use TEST_f_L in moved test.
11108         (lround_test): Move misplaced test to llround_test.  Add testcase
11109         from bug 2561.
11110
11111 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11112
11113         * sysdeps/x86_64/fpu/e_expf.S: New file.
11114         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11115
11116 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11117
11118         [BZ #13637]
11119         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11120         of remain_len that may cause incomplete multi-byte character and
11121         false match.
11122         * posix/bug-regex33.c: New file.
11123         * posix/Makefile (tests): Add bug-regex33.
11124
11125 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11126
11127         * manual/macros.texi: New file.
11128         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11129         * manual/libc.texinfo: Include macros.texi.
11130         * manual/creatute.texi: Likewise.
11131         * manual/install.texi: Likewise.
11132         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11133         @glibcadj{} in references to the GNU C Library.
11134         * manual/charset.texi: Likewise.
11135         * manual/conf.texi: Likewise.
11136         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11137         when not using those macros.
11138         * manual/creature.texi: Likewise.
11139         * manual/crypt.texi: Likewise.
11140         * manual/errno.texi: Likewise.
11141         * manual/filesys.texi: Likewise.
11142         * manual/header.texi: Likewise.
11143         * manual/install.texi: Likewise.
11144         * manual/intro.texi: Likewise.
11145         * manual/io.texi: Likewise.
11146         * manual/job.texi: Likewise.
11147         * manual/lang.texi: Likewise.
11148         * manual/libc.texiinfo: Likewise.
11149         * manual/llio.texi: Likewise.
11150         * manual/locale.texi: Likewise.
11151         * manual/maint.texi: Likewise.
11152         * manual/math.texi: Likewise.
11153         * manual/memory.texi: Likewise.
11154         * manual/message.texi: Likewise.
11155         * manual/nss.texi: Likewise.
11156         * manual/pattern.texi: Likewise.
11157         * manual/process.texi: Likewise.
11158         * manual/resource.texi: Likewise.
11159         * manual/search.texi: Likewise.
11160         * manual/setjmp.texi: Likewise.
11161         * manual/signal.texi: Likewise.
11162         * manual/socket.texi: Likewise.
11163         * manual/startup.texi: Likewise.
11164         * manual/stdio.texi: Likewise.
11165         * manual/string.texi: Likewise.
11166         * manual/sysinfo.texi: Likewise.
11167         * manual/syslog.texi: Likewise.
11168         * manual/terminal.texi: Likewise.
11169         * manual/time.texi: Likewise.
11170         * manual/users.texi: Likewise.
11171         * INSTALL: Regenerated.
11172         * NOTES: Regenerated.
11173         * sysdeps/gnu/errlist.c: Regenerated.
11174
11175 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11176
11177         * include/dirent.h: Include <dirstream.h> before
11178         <dirent/dirent.h>.
11179
11180 2012-02-28  David S. Miller  <davem@davemloft.net>
11181
11182         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11183         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11184         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11185         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11186
11187 2012-02-27  David S. Miller  <davem@davemloft.net>
11188
11189         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11190         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11191         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11192         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11193
11194         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11195         frame pointer instead of stack pointer relative arg slot.
11196         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11197         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11198         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11199
11200 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11201
11202         [BZ #3992]
11203         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11204
11205 2012-02-27  David S. Miller  <davem@davemloft.net>
11206
11207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11208         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11209         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11211         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11212         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11213         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11214         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11215
11216 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11217
11218         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11219         later.  Allow versions 5-9.
11220         * configure: Regenerated.
11221         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11222         required minimum version and 4.6 as recommended version.  Do not
11223         mention bugs in GCC 2.7 and 2.8.
11224         * INSTALL: Regenerated.
11225
11226 2012-02-27  David S. Miller  <davem@davemloft.net>
11227
11228         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11229         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11230         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11231         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11232         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11233         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11234         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11235         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11236
11237         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11238         manipulate bits before adding and subtracting TWO112[sx].
11239         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11240
11241 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11242
11243         [BZ #13775]
11244         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11245         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11246         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11247         being in POSIX, because they are in 1003.1-2008.
11248
11249         * rt/tst-aio.c: Include <fcntl.h>.
11250         * rt/tst-aio7.c: Likewise.
11251         * rt/tst-aio64.c: Likewise.
11252
11253         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11254
11255 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11256
11257         * manual/install.texi (--with-headers): Describe headers as
11258         interface headers, not private headers.
11259         (Specific advice for GNU/Linux systems): Describe use of headers
11260         from "make headers_install", not private headers from older
11261         kernels.
11262         * INSTALL: Regenerated.
11263         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11264         Change to 2.6.19.
11265         * sysdeps/unix/sysv/linux/configure: Regenerated.
11266
11267         * manual/llio.texi (fclean): Remove documentation.
11268
11269         * manual/Makefile (libc-texi-generated): New variable.  Include
11270         version.texi.
11271         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11272         $(libc-texi-generated), not duplicated list of files.
11273         (version.texi, stamp-version): New rules.
11274         (realclean): Remove $(libc-texi-generated), not individual files
11275         from that list.  Do not remove dir-add.texinfo.
11276         * manual/libc.texinfo: Comment out uses of edition numbers and
11277         references to printed manual.  Remove last-updated dates.
11278         (EDITION): Comment out.
11279         (ISBN): Likewise.
11280         (VERSION, UPDATED): Remove.
11281         (version.texi): Include.
11282
11283 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11284
11285         * sysdeps/posix/spawni.c: Include <signal.h>.
11286         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11287         * sysdeps/pthread/aio_fsync.c: Likewise.
11288
11289 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11290
11291         * conform/Makefile (tests): Run only when not cross-compiling and
11292         when fast-check is not defined.
11293
11294         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11295         * conform/data/limits.h-data: Fixes for POSIX2008.
11296         * conform/run-conformtest.sh: Run all tests.
11297         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11298         headers.
11299         * include/bits/dlfcn.h: Likewise.
11300         * include/langinfo.h: Likewise.
11301         * include/monetary.h: Likewise.
11302         * include/sys/poll.h: Likewise.
11303
11304         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11305         for __USE_GNU.
11306         * posix/spawn.h: Define __need_sigset_t.
11307         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11308         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11309         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11310         to get sigevent_t only.
11311         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11312         only for __USE_GNU.
11313         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11314         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11315         process_vm_writev only for __USE_GNU.
11316         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11317
11318         * conform/Makefile: For now ignore errors from run-conformtest.
11319         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11320         POSIX to avoid namespace pollution.  Don't prepend headers.
11321         * conform/data/aio.h-data: Fixes for POSIX testing.
11322         * conform/data/fcntl.h-data: Likewise.
11323         * conform/data/glob.h-data: Likewise.
11324         * conform/data/grp.h-data: Likewise.
11325         * conform/data/pthread.h-data: Likewise.
11326         * conform/data/pwd.h-data: Likewise.
11327         * conform/data/signal.h-data: Likewise.
11328         * conform/data/spawn.h-data: Likewise.
11329         * conform/data/stdio.h-data: Likewise.
11330         * conform/data/stdlib.h-data: Likewise.
11331         * conform/data/stropts.h-data: Likewise.
11332         * conform/data/sys/mman.h-data: Likewise.
11333         * conform/data/sys/stat.h-data: Likewise.
11334         * conform/data/sys/types.h-data: Likewise.
11335         * conform/data/sys/wait.h-data: Likewise.
11336         * conform/data/time.h-data: Likewise.
11337         * conform/data/unistd.h-data: Likewise.
11338         * conform/data/utime.h-data: Likewise.
11339
11340         * io/sys/stat.h: fchmod was always in POSIX.
11341         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11342         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11343         * rt/aio.h: Define __need_timespec before including <time.h>.
11344         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11345         struct.  Add forward declaration of pthread_attr_t and use it in
11346         sigevent.
11347         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11348         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11349         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11350         always remove CLK_TCK definition.
11351
11352 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11353
11354         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11355
11356 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11357
11358         * conform/run-conformtest.sh: New file.
11359         * conform/Makefile: Run run-conformtest for tests.
11360         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11361         support.
11362
11363         * conform/data/uchar.h-data: New file.
11364         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11365         * conform/data/arpa/inet.h-data: Likewise.
11366         * conform/data/assert.h-data: Likewise.
11367         * conform/data/complex.h-data: Likewise.
11368         * conform/data/cpio.h-data: Likewise.
11369         * conform/data/ctype.h-data: Likewise.
11370         * conform/data/dirent.h-data: Likewise.
11371         * conform/data/dlfcn.h-data: Likewise.
11372         * conform/data/errno.h-data: Likewise.
11373         * conform/data/fcntl.h-data: Likewise.
11374         * conform/data/float.h-data: Likewise.
11375         * conform/data/fmtmsg.h-data: Likewise.
11376         * conform/data/fnmatch.h-data: Likewise.
11377         * conform/data/ftw.h-data: Likewise.
11378         * conform/data/glob.h-data: Likewise.
11379         * conform/data/grp.h-data: Likewise.
11380         * conform/data/iconv.h-data: Likewise.
11381         * conform/data/inttypes.h-data: Likewise.
11382         * conform/data/langinfo.h-data: Likewise.
11383         * conform/data/libgen.h-data: Likewise.
11384         * conform/data/limits.h-data: Likewise.
11385         * conform/data/locale.h-data: Likewise.
11386         * conform/data/math.h-data: Likewise.
11387         * conform/data/monetary.h-data: Likewise.
11388         * conform/data/mqueue.h-data: Likewise.
11389         * conform/data/ndbm.h-data: Likewise.
11390         * conform/data/net/if.h-data: Likewise.
11391         * conform/data/netdb.h-data: Likewise.
11392         * conform/data/netinet/in.h-data: Likewise.
11393         * conform/data/nl_types.h-data: Likewise.
11394         * conform/data/poll.h-data: Likewise.
11395         * conform/data/pthread.h-data: Likewise.
11396         * conform/data/pwd.h-data: Likewise.
11397         * conform/data/regex.h-data: Likewise.
11398         * conform/data/sched.h-data: Likewise.
11399         * conform/data/search.h-data: Likewise.
11400         * conform/data/semaphore.h-data: Likewise.
11401         * conform/data/setjmp.h-data: Likewise.
11402         * conform/data/signal.h-data: Likewise.
11403         * conform/data/spawn.h-data: Likewise.
11404         * conform/data/stdarg.h-data: Likewise.
11405         * conform/data/stdio.h-data: Likewise.
11406         * conform/data/stdlib.h-data: Likewise.
11407         * conform/data/string.h-data: Likewise.
11408         * conform/data/strings.h-data: Likewise.
11409         * conform/data/stropts.h-data: Likewise.
11410         * conform/data/sys/ipc.h-data: Likewise.
11411         * conform/data/sys/mman.h-data: Likewise.
11412         * conform/data/sys/msg.h-data: Likewise.
11413         * conform/data/sys/resource.h-data: Likewise.
11414         * conform/data/sys/select.h-data: Likewise.
11415         * conform/data/sys/sem.h-data: Likewise.
11416         * conform/data/sys/shm.h-data: Likewise.
11417         * conform/data/sys/socket.h-data: Likewise.
11418         * conform/data/sys/stat.h-data: Likewise.
11419         * conform/data/sys/statvfs.h-data: Likewise.
11420         * conform/data/sys/time.h-data: Likewise.
11421         * conform/data/sys/timeb.h-data: Likewise.
11422         * conform/data/sys/times.h-data: Likewise.
11423         * conform/data/sys/types.h-data: Likewise.
11424         * conform/data/sys/uio.h-data: Likewise.
11425         * conform/data/sys/un.h-data: Likewise.
11426         * conform/data/sys/utsname.h-data: Likewise.
11427         * conform/data/sys/wait.h-data: Likewise.
11428         * conform/data/syslog.h-data: Likewise.
11429         * conform/data/tar.h-data: Likewise.
11430         * conform/data/termios.h-data: Likewise.
11431         * conform/data/utime.h-data: Likewise.
11432         * conform/data/utmpx.h-data: Likewise.
11433         * conform/data/varargs.h-data: Likewise.
11434         * conform/data/wchar.h-data: Likewise.
11435         * conform/data/wctype.h-data: Likewise.
11436         * conform/data/wordexp.h-data: Likewise.
11437
11438         * include/stropts.h: New file.
11439         * include/uchar.h: New file.
11440         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11441         * include/assert.h: Likewise.
11442         * include/ctype.h: Likewise.
11443         * include/dirent.h: Likewise.
11444         * include/dlfcn.h: Likewise.
11445         * include/fcntl.h: Likewise.
11446         * include/fnmatch.h: Likewise.
11447         * include/glob.h: Likewise.
11448         * include/grp.h: Likewise.
11449         * include/libio.h: Likewise.
11450         * include/locale.h: Likewise.
11451         * include/math.h: Likewise.
11452         * include/net/if.h: Likewise.
11453         * include/netdb.h: Likewise.
11454         * include/netinet/in.h: Likewise.
11455         * include/pthread.h: Likewise.
11456         * include/pwd.h: Likewise.
11457         * include/regex.h: Likewise.
11458         * include/sched.h: Likewise.
11459         * include/search.h: Likewise.
11460         * include/setjmp.h: Likewise.
11461         * include/signal.h: Likewise.
11462         * include/stdio.h: Likewise.
11463         * include/stdlib.h: Likewise.
11464         * include/string.h: Likewise.
11465         * include/sys/cdefs.h: Likewise.
11466         * include/sys/mman.h: Likewise.
11467         * include/sys/msg.h: Likewise.
11468         * include/sys/resource.h: Likewise.
11469         * include/sys/select.h: Likewise.
11470         * include/sys/socket.h: Likewise.
11471         * include/sys/stat.h: Likewise.
11472         * include/sys/statvfs.h: Likewise.
11473         * include/sys/time.h: Likewise.
11474         * include/sys/times.h: Likewise.
11475         * include/sys/uio.h: Likewise.
11476         * include/sys/utsname.h: Likewise.
11477         * include/sys/wait.h: Likewise.
11478         * include/termios.h: Likewise.
11479         * include/time.h: Likewise.
11480         * include/ulimit.h: Likewise.
11481         * include/unistd.h: Likewise.
11482         * include/utime.h: Likewise.
11483         * include/wchar.h: Likewise.
11484         * include/wctype.h: Likewise.
11485         * include/wordexp.h: Likewise.
11486
11487         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11488
11489         * time/time.h: TIME_UTC must be a macro.
11490         Make timespec_get available for ISO C11 only as well.
11491
11492 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11493
11494         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11495         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11496
11497 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11498
11499         * configure.in: Use -o not -a in test for unsupported multi-arch.
11500
11501 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11502
11503         * manual/texinfo.tex: Update to version 2012-01-19.16.
11504
11505 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11506
11507         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11508
11509 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11510
11511         [BZ #13738]
11512         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11513         * manual/fdl-1.3.texi: New file.
11514         * manual/fdl-1.1.texi: File removed.
11515
11516         [BZ #13738]
11517         * manual/libc.texinfo (FDL_VERSION): New @set.
11518         Use it for mention of FDL in cover text.
11519         (Documentation License): Use it in @include file name.
11520
11521 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11522             Roland McGrath  <roland@hack.frob.com>
11523
11524         [BZ #5461]
11525         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11526         not LONG_LONG_MAX and LONG_LONG_MIN.
11527         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11528         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11529         name.
11530         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11531
11532 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11533
11534         [BZ #2547]
11535         [BZ #11365]
11536         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11537         manipulate bits before adding and subtracting TWO23[sx].
11538         * math/libm-test.inc (nearbyint_test): Add more tests.
11539
11540 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11541
11542         [BZ #2548]
11543         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11544         bits before adding and subtracting TWO23[sx].
11545         * math/libm-test.inc (rint_test): Add more tests.
11546         (rint_test_tonearest): Likewise.
11547         (rint_test_towardzero): Likewise.
11548         (rint_test_downward): Likewise.
11549         (rint_test_upward: Likewise.
11550
11551 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11552
11553         [BZ #10110]
11554         * include/stdc-predef.h: New file.  Extracted from features.h.
11555         * include/features.h: Include stdc-predef.h.
11556         * Makefile (headers): Add stdc-predef.h.
11557         * CONFORMANCE (Compiler limitations): Update.
11558
11559 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11560
11561         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11562
11563 2012-02-21  David S. Miller  <davem@davemloft.net>
11564
11565         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11566         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11567
11568 2012-02-20  David S. Miller  <davem@davemloft.net>
11569
11570         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11571         using a normal save/restore sequence, rather than allocating a
11572         dummy stack frame just to store a frame pointer and restore.
11573         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11574
11575 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11576
11577         * manual/install.texi: Fix stray word in line-wrapped comment.
11578
11579 2012-02-20  David S. Miller  <davem@davemloft.net>
11580
11581         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11582         both binutils and gcc support GOTDATA.
11583
11584         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11585         "rd %pc" in the PIC register setup sequences.
11586
11587         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11588         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11589         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11590         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11591         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11592         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11593         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11594         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11595         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11596         (SYSCALL_ERROR_HANDLER): Likewise.
11597         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11598         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11599         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11600         (SYSCALL_ERROR_HANDLER): Likewise.
11601
11602         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11603         (HAVE_GCC_GOTDATA): New.
11604         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11605         relocation support in both binutils and gcc.
11606         * sysdeps/sparc/elf/configure: Regenerate.
11607
11608         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11609         * sysdeps/sparc/sparc32/elf/configure: Delete.
11610         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11611         * sysdeps/sparc/sparc64/elf/configure: Delete.
11612         * sysdeps/sparc/elf/configure.in: New file.
11613         * sysdeps/sparc/elf/configure: Generate.
11614
11615         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11616         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11617         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11618         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11619         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11620
11621 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11622
11623         * manual/install.texi: Do not mention specific glibc version
11624         numbers.
11625         * manual/libc.texinfo (VERSION, UPDATED): Update.
11626         (@copying): Use @copyright{} and range of years.
11627
11628 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11629
11630         [BZ #13695]
11631         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11632         [crti.S not in sysdirs] (generated): Do not append.
11633         [crti.S not in sysdirs] (omit-deps): Likewise.
11634         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11635         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11636         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11637         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11638         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11639         Likewise.
11640         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11641         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11642         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11643         * csu/defs.awk: Remove file.
11644         * sysdeps/generic/initfini.c: Likewise.
11645         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11646         variable.
11647         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11648         Likewise.
11649
11650 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11651
11652         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11653         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11654         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11655         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11656         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11657         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11658         <bits/epoll.h>.
11659         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11660         (__EPOLL_PACKED): Define to empty if not defined by
11661         <bits/epoll.h>.
11662         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11663         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11664         bits/epoll.h.
11665
11666 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11667
11668         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11669         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11670         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11671         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11672         <bits/timerfd.h>.
11673         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11674         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11675         bits/timerfd.h.
11676
11677 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11678
11679         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11680         in C locale.
11681         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11682         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11683         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11684         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11685
11686 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11687
11688         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11689         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11690
11691 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11692
11693         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11694         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11695         defined.
11696         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11697         Likewise.
11698         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11699         entry for 2.16.
11700
11701 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11702
11703         * math/w_acos.c: Use non-signaling floating-point comparisons.
11704         * math/w_acosf.c: Likewise.
11705         * math/w_acosh.c: Likewise.
11706         * math/w_acoshf.c: Likewise.
11707         * math/w_acoshl.c: Likewise.
11708         * math/w_acosl.c: Likewise.
11709         * math/w_asin.c: Likewise.
11710         * math/w_asinf.c: Likewise.
11711         * math/w_asinl.c: Likewise.
11712         * math/w_atanh.c: Likewise.
11713         * math/w_atanhf.c: Likewise.
11714         * math/w_atanhl.c: Likewise.
11715         * math/w_exp2.c: Likewise.
11716         * math/w_exp2f.c: Likewise.
11717         * math/w_exp2l.c: Likewise.
11718         * math/w_j0.c: Likewise.
11719         * math/w_j0f.c: Likewise.
11720         * math/w_j0l.c: Likewise.
11721         * math/w_j1.c: Likewise.
11722         * math/w_j1f.c: Likewise.
11723         * math/w_j1l.c: Likewise.
11724         * math/w_jn.c: Likewise.
11725         * math/w_jnf.c: Likewise.
11726         * math/w_log.c: Likewise.
11727         * math/w_log10.c: Likewise.
11728         * math/w_log10f.c: Likewise.
11729         * math/w_log10l.c: Likewise.
11730         * math/w_log2.c: Likewise.
11731         * math/w_log2f.c: Likewise.
11732         * math/w_log2l.c: Likewise.
11733         * math/w_logf.c: Likewise.
11734         * math/w_logl.c: Likewise.
11735         * math/w_sqrt.c: Likewise.
11736         * math/w_sqrtf.c: Likewise.
11737         * math/w_sqrtl.c: Likewise.
11738         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11739         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11740         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11741         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11742         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11743
11744 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11745
11746         [BZ #9739]
11747         * manual/string.texi (strnlen): Use correct parameter name in
11748         equivalent expression.
11749
11750 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11751
11752         [BZ #11174]
11753         * manual/users.texi (seteuid): Consistently use neweuid for
11754         argument name.
11755
11756 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11757
11758         [BZ #13704]
11759         * manual/nss.texi (Services in the NSS configuration): Correct
11760         list of services in example configuration file.
11761
11762 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11763
11764         [BZ #11322]
11765         * manual/arith.texi: Remove statements about negative zero
11766         behaving identically to zero.
11767
11768 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11769
11770         [BZ #5993]
11771         * manual/install.texi: Do not document upgrading from libc5.
11772
11773 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11774
11775         [BZ #4596]
11776         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11777
11778 2012-02-18  David S. Miller  <davem@davemloft.net>
11779
11780         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11781         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11782         %o7 across the call.
11783         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11784         instead.
11785         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11786         SETUP_PIC_REG_LEAF.
11787         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11788         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11789         * sysdeps/sparc/crtn.S: Likewise.
11790
11791 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11792
11793         * aout/Makefile: Remove.
11794
11795 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11796
11797         [BZ #13058]
11798         * manual/examples/argp-ex1.c (main): Format definition in GNU
11799         style.
11800         * manual/examples/argp-ex2.c (main): Likewise.
11801         * manual/examples/argp-ex3.c (main): Likewise.
11802         * manual/examples/argp-ex4.c (main): Likewise.
11803         * manual/examples/longopt.c (main): Use new-style prototype
11804         definition.
11805         * manual/examples/strncat.c (main): Specify return type and use
11806         (void) for arguments.
11807         * manual/examples/subopt.c (main): Use char **argv argument.
11808
11809 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11810
11811         [BZ #5077]
11812         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11813         rounding modes.
11814
11815 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11816
11817         [BZ #6907]
11818         * manual/string.texi (strchr): Change when strchrnul is
11819         recommended.
11820
11821 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11822
11823         [BZ #174]
11824         * manual/locale.texi (setlocale): Document LOCPATH.
11825
11826 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11827
11828         [BZ #10210]
11829         * manual/process.texi (execle): Move @dots{} before last argument.
11830
11831 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11832
11833         [BZ #12047]
11834         * manual/charset.texi (Generic Charset Conversion): Fix typo
11835         (LC_TYPE -> LC_CTYPE).
11836
11837 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11838
11839         [BZ #5805]
11840         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11841         (scalbnf): Likewise.
11842         (scalbnl): Likewise.
11843         (scalbln): Likewise.
11844         (scalblnf): Likewise.
11845         (scalblnl): Likewise.
11846         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11847         (vwarnx): Likewise.
11848         (verr): Likewise.
11849         (verrx): Likewise.
11850         * manual/filesys.texi (telldir): Use braces around return type.
11851         * manual/llio.texi (mmap): Add space after comma.
11852         (mmap64): Likewise.
11853         * manual/math.texi (jn): Use @var{} on parameter names.
11854         (jnf): Likewise.
11855         (jnl): Likewise.
11856         (yn): Likewise.
11857         (ynf): Likewise.
11858         (ynl): Likewise.
11859         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11860         line.
11861         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11862         "...".
11863         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11864         (sched_get_priority_max): Likewise.
11865         * manual/signal.texi (sigvec): Add space after comma.
11866         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11867         names.
11868         (if_indextoname): Likewise.
11869         (if_freenameindex): Likewise.
11870         (sendto): Use ',' instead of '.' in prototype.
11871         * manual/startup.texi (syscall): Use @dots{} instead of literal
11872         "...".
11873         * manual/stdio.texi (__fpending): Separate initial words of
11874         paragraph from @deftypefun line.
11875         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11876         "...".
11877         (vsyslog): Use @var{} on parameter names.
11878         * manual/terminal.texi (stty): Use @var{} on parameter names.
11879         * manual/users.texi (getutmp): Use @var{} on parameter names.
11880         (getutmpx): Likewise.
11881
11882 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11883
11884         [BZ #6884]
11885         * manual/stdio.texi (fopen): Fix typos in description of
11886         ",ccs=STRING".
11887
11888 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11889
11890         [BZ #4026]
11891         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11892         get clock_id definition.
11893
11894 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11895
11896         [BZ #4822]
11897         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11898         (madvise): Cast every argument to void on its own.
11899
11900 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11901
11902         [BZ #9902]
11903         * manual/startup.texi (Exit Status): Fix typo.
11904
11905 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11906
11907         [BZ #10140]
11908         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11909         * manual/examples/argp-ex2.c: Likewise.
11910         * manual/examples/argp-ex3.c: Likewise.
11911
11912 2012-02-16  Richard Henderson  <rth@redhat.com>
11913
11914         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11915         * sysdeps/s390/s390-32/initfini.c: Remove.
11916         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11917         * sysdeps/s390/s390-64/initfini.c: Remove.
11918
11919 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11920
11921         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11922         compiler output for sysdeps/generic/initfini.c.
11923         * sysdeps/sh/elf/initfini.c: Remove file.
11924
11925 2012-02-16  David S. Miller  <davem@davemloft.net>
11926
11927         [BZ #11494]
11928         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11929
11930         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11931         * sysdeps/sparc/crti.S: New file.
11932         * sysdeps/sparc/crtn.S: New file.
11933         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11934         * sysdeps/sparc/sparc64/Makefile: Likewise.
11935
11936 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11937
11938         [BZ #3335]
11939         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11940
11941 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11942
11943         [BZ #4822]
11944         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11945
11946         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11947         (write, read, close): Likewise.
11948         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11949
11950 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11951
11952         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11953         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11954         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11955         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11956         <bits/signalfd.h>.
11957         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11958         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11959         bits/signalfd.h.
11960
11961 2012-02-14  Marek Polacek  <polacek@redhat.com>
11962
11963         * sysdeps/x86_64/crti.S: New file.
11964         * sysdeps/x86_64/crtn.S: New file.
11965         * sysdeps/x86_64/elf/initfini.c: Remove file.
11966
11967 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11968
11969         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11970         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11971         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11972         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11973         <bits/inotify.h>.
11974         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11975         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11976         bits/inotify.h.
11977
11978 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11979
11980         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11981         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11982         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11983         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11984         <bits/eventfd.h>.
11985         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11986         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11987         bits/eventfd.h.
11988
11989 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11990
11991         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11992         __feraiseexcept instead of feraiseexcept.
11993
11994         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11995         nanosleep invocations.
11996         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11997         strings, and add error checking for a nanosleep invocations.
11998
11999 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12000
12001         Replace FSF snail mail address with URLs, as per GNU coding standards.
12002         Most of the snail mail addresses were wrong anyway, and omitting
12003         them makes the source code easier to maintain.  Almost all of the
12004         changes are to license notices and to locale LC_IDENTIFICATION
12005         addresses, except for this one:
12006         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12007         not its snail mail address.
12008
12009 2012-02-09  Richard Henderson  <rth@twiddle.net>
12010
12011         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12012         of kernel-features.h.
12013
12014         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12015
12016 2012-02-08  Marek Polacek  <polacek@redhat.com>
12017
12018         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12019         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12020         * sysdeps/gnu/_G_config.h: Likewise.
12021         * sysdeps/generic/_G_config.h: Likewise.
12022
12023 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12024
12025         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12026         tests.
12027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12028
12029         * sysdeps/powerpc/powerpc32/crti.S: New file.
12030         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12031         * sysdeps/powerpc/powerpc64/crti.S: New file.
12032         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12033
12034         * Makeconfig (have-initfini): Don't set.
12035         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12036         * configure.in (nopic_initfini): Don't substitute.
12037         * config.h.in (HAVE_INITFINI): Don't #undef.
12038         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12039         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12040
12041 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12042
12043         Support crti.S and crtn.S provided directly by architectures.
12044         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12045         [crti.S in sysdirs] (omit-deps): Likewise.
12046         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12047         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12048         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12049         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12050         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12051         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12052         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12053         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12054         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12055         compiler output for sysdeps/generic/initfini.c.
12056         * sysdeps/i386/elf/Makefile: Remove file.
12057         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12058
12059 2012-02-07  Marek Polacek  <polacek@redhat.com>
12060
12061         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12062         * sysdeps/gnu/_G_config.h: Likewise.
12063         * sysdeps/mach/hurd/_G_config.h: Likewise.
12064
12065 2012-02-07  Marek Polacek  <polacek@redhat.com>
12066
12067         * math/Makefile (tests): Add tst-CMPLX2.
12068         * math/tst-CMPLX2.c: New file.
12069
12070 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12071
12072         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12073
12074         * math/libm-test.inc (jn_test): Add missing L suffix.
12075
12076 2012-02-06  Marek Polacek  <polacek@redhat.com>
12077
12078         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12079         * sysdeps/i386/fpu/e_powf.S: Likewise.
12080         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12081         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12082         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12083         * sysdeps/i386/fpu/e_pow.S: Likewise.
12084         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12085         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12086         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12087         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12088         * sysdeps/i386/fpu/e_log2.S: Likewise.
12089         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12090         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12091         * sysdeps/i386/fpu/e_powl.S: Likewise.
12092         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12093         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12094         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12095         * sysdeps/i386/fpu/e_logl.S: Likewise.
12096         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12097         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12098         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12099         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12100         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12101         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12102         * sysdeps/i386/fpu/e_log.S: Likewise.
12103         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12104         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12105         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12106         * sysdeps/i386/fpu/e_logf.S: Likewise.
12107         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12108         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12109         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12110         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12111         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12112         * sysdeps/i386/fpu/e_log10.S: Likewise.
12113         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12114         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12115         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12116         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12117         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12118         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12119         * sysdeps/i386/asm-syntax.h: Likewise.
12120         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12121         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12122         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12123         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12124         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12125         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12126         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12127         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12128         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12129         * sysdeps/powerpc/sysdep.h: Likewise.
12130         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12131         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12132
12133 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12134
12135         [BZ #411]
12136         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12137
12138 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12139
12140         * sysdeps/i386/sysdep.h: Include <features.h>.
12141         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12142         version.
12143
12144 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12145
12146         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12147         Define.
12148         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12149         LOAD_PIC_REG_STR.
12150
12151 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12152
12153         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12154         (SETUP_PIC_REG): Use GET_PC_THUNK.
12155         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12156         macro.
12157
12158 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12159
12160         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12161         for non-PIC compilation.
12162         (SETUP_PIC_REG): Add .p2align directive.
12163         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12164         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12165         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12166         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12167         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12168         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12169         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12170         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12171         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12172         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12173         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12174         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12175         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12176         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12177         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12178         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12179         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12180         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12181         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12182         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12183         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12184         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12185         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12186         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12187         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12188         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12189         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12190         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12191         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12192         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12193         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12194         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12195         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12196         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12197         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12198         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12199         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12200         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12201         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12202         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12203         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12204
12205 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12206
12207         * math/tst-CMPLX.c: Include <stdio.h>.
12208
12209 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12210
12211         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12212         float.
12213         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12214         * sysdeps/sparc/bits/mathdef.h: Likewise.
12215
12216 2012-01-31  Marek Polacek  <polacek@redhat.com>
12217
12218         * libio/libio.h: Don't define _PARAMS.
12219         * locale/programs/config.h: Don't define PARAMS.
12220         * stdlib/strtol_l.c: Likewise.
12221         (__strtol_l): Remove PARAMS from the prototype.
12222
12223 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12224
12225         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12226         names.  Just use the correct names.  Remove unnecessary wrapper
12227         functions.
12228         * malloc/arena.c: Likewise.
12229         * malloc/hooks.c: Likewise.
12230
12231         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12232         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12233         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12234
12235 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12236
12237         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12238         into tail calls.
12239         (update_get_addr): New function.
12240         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12241         GET_ADDR_MODULE parameter.
12242
12243 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12244
12245         * crypt/cert.c: Remove __STDC__ conditionals.
12246         * crypt/crypt-entry.c: Likewise.
12247         * crypt/crypt_util.c: Likewise.
12248         * libio/filedoalloc.c: Likewise.
12249         * libio/fileops.c: Likewise.
12250         * libio/genops.c: Likewise.
12251         * libio/iofclose.c: Likewise.
12252         * libio/iofdopen.c: Likewise.
12253         * libio/iofopen.c: Likewise.
12254         * libio/iofopen64.c: Likewise.
12255         * libio/iogetdelim.c: Likewise.
12256         * libio/iopopen.c: Likewise.
12257         * libio/obprintf.c: Likewise.
12258         * libio/oldfileops.c: Likewise.
12259         * libio/oldiofclose.c: Likewise.
12260         * libio/oldiofdopen.c: Likewise.
12261         * libio/oldiofopen.c: Likewise.
12262         * libio/oldiopopen.c: Likewise.
12263         * libio/wfiledoalloc.c: Likewise.
12264         * libio/wgenops.c: Likewise.
12265         * locale/programs/xmalloc.c: Likewise.
12266         * misc/syslog.c: Likewise.
12267         * stdio-common/xbug.c: Likewise.
12268         * string/memchr.c: Likewise.
12269         * string/memcmp.c: Likewise.
12270         * string/memrchr.c: Likewise.
12271         * string/rawmemchr.c: Likewise.
12272         * sysdeps/posix/getcwd.c: Likewise.
12273         * time/strftime_l.c: Likewise.
12274
12275 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12276
12277         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12278         * config.make.in (config-cflags-sse2avx): Define.
12279         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12280         Fix typo.
12281
12282 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12283
12284         * scripts/config.guess: Update from upstream config git repository.
12285         * scripts/config.sub: Likewise.
12286
12287 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12288
12289         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12290         (EM_NUM): Update.
12291         (R_TILEPRO_*, R_TILEGX_*): New macros.
12292
12293         * scripts/firstversions.awk: Fix bug in version range handling.
12294
12295         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12296
12297         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12298
12299         * include/sys/epoll.h: New file.
12300         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12301         libc_hidden_def.
12302
12303 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12304
12305         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12306         Avoid unnecessary __WORDSIZE == 64 test.
12307         (fmaxf): Use VEX format if possible.
12308         (fmax): Likewise.
12309         (fminf): Likewise.
12310         (fmin): Likewise.
12311
12312         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12313         * math/math_private.h: Remove libc_fegetround* and
12314         libc_fesetround*.
12315         * sysdeps/i386/configure.in: Check for -msse2avx.
12316         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12317         also if SSE2AVX is defined.
12318         Remove libc_fegetround* and libc_fesetround*.
12319         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12320         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12321         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12322         of HAS_YMM_USABLE.
12323         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12324         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12325         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12326         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12327         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12328
12329         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12330
12331 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12332
12333         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12334         size is not set.
12335         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12336
12337 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12338
12339         [BZ #13618]
12340         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12341         relocation.
12342         * Makeconfig (libm): Define.
12343         * elf/Makefile: Add rules to build and run tst-relsort1.
12344         * elf/tst-relsort1.c: New file.
12345         * elf/tst-relsort1mod1.c: New file.
12346         * elf/tst-relsort1mod2.c: New file.
12347
12348 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12349
12350         * math/s_ldexp.c: Remove __STDC__ conditionals.
12351         * math/s_ldexpf.c: Likewise.
12352         * math/s_ldexpl.c: Likewise.
12353         * math/s_nextafter.c: Likewise.
12354         * math/s_nexttowardf.c: Likewise.
12355         * math/s_significand.c: Likewise.
12356         * math/s_significandf.c: Likewise.
12357         * math/s_significandl.c: Likewise.
12358         * math/w_jnl.c: Likewise.
12359         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12360         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12361         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12362         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12363         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12364         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12365         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12366         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12367         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12368         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12369         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12370         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12371         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12372         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12373         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12374         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12375         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12376         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12377         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12378         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12379         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12380         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12381         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12382         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12383         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12384         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12385         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12386         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12387         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12388         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12389         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12390         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12391         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12392         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12393         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12394         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12395         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12396         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12397         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12398         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12399         * sysdeps/ieee754/k_standard.c: Likewise.
12400         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12401         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12402         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12403         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12404         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12405         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12406         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12407         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12408         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12409         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12410         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12411         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12412         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12413         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12414         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12415         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12416         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12417         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12418         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12419         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12420         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12421         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12422         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12423         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12424         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12425         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12426         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12427         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12428         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12429         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12430         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12431         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12432         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12433         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12434         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12435         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12436         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12437         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12438         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12439         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12440         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12441         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12442         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12443         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12444         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12445         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12446         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12447         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12448         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12449         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12450         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12451         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12452         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12453         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12454         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12455         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12456         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12457         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12458         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12459         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12460         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12461         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12462         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12463         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12464         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12465         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12466         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12467         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12468         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12469         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12470         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12471         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12472         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12473         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12474         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12475         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12476         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12477         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12478         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12479         * sysdeps/ieee754/s_matherr.c: Likewise.
12480         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12481         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12482         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12483         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12484
12485 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12486
12487         * crypt/md5.h: Remove __STDC__ conditionals.
12488         * libio/libioP.h: Likewise.
12489         * locale/programs/config.h: Likewise.
12490         * sysdeps/generic/sysdep.h: Likewise.
12491         * sysdeps/i386/asm-syntax.h: Likewise.
12492         * sysdeps/s390/asm-syntax.h: Likewise.
12493         * sysdeps/unix/sysdep.h: Likewise.
12494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12496
12497 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12498
12499         * libio/libio.h: Remove __STDC__ conditionals.
12500         * malloc/obstack.h: Likewise.
12501         * math/complex.h: Likewise.
12502         * math/math.h: Likewise.
12503         * sysdeps/generic/_G_config.h: Likewise.
12504         * sysdeps/gnu/_G_config.h: Likewise.
12505         * sysdeps/mach/hurd/_G_config.h: Likewise.
12506         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12507         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12508         * sysdeps/sparc/bits/mathdef.h: Likewise.
12509
12510 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12511
12512         [BZ #13583]
12513         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12514         Clean up HAS_* macros.
12515         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12516         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12517         possible.
12518         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12519         HAS_AVX.
12520         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12521         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12522         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12523         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12524         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12525
12526 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12527
12528         * elf/tst-unique3.cc (gets): Remove declaration.
12529         * elf/tst-unique3lib.cc (gets): Likewise.
12530         * elf/tst-unique3lib2.cc (gets): Likewise.
12531         * elf/tst-unique4.cc (gets): Likewise.
12532
12533 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12534
12535         * include/stdio.h: Add C++ protection.  Add gets declarations and
12536         definitions.
12537         * debug/tst-chk1.c: Don't declare gets here.
12538         * stdio-common/tst-gets.c: Likewise.
12539
12540 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12541
12542         * posix/glob: Remove directory.
12543
12544 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12545
12546         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12547
12548 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12549
12550         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12551         of the non-standard EPFNOSUPPORT.
12552
12553 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12554
12555         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12556         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12557         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12558
12559 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12560
12561         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12562
12563 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12564
12565         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12566         transient errors.
12567         * nscd/grpcache.c (cache_addgr): Likewise.
12568         * nscd/hstcache.c (cache_addhst): Likewise.
12569         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12570         * nscd/pwdcache.c (cache_addpw): Likewise.
12571         * nscd/servicescache.c (cache_addserv): Likewise.
12572
12573 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12574
12575         * malloc/malloc.c: Various cleanups.
12576         * malloc/hooks.c: Likewise.
12577
12578         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12579         * stdlib/bug-fmtmsg1.c: New file.
12580
12581         * stdlib/fmtmsg.c (init): Add missing unlock.
12582         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12583
12584 2012-01-12  Marek Polacek  <polacek@redhat.com>
12585
12586         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12587         and _GNU_SOURCE.
12588
12589 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12590
12591         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12592         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12593         macro to ensure uniqueness of label name.
12594         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12595         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12596
12597 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12598
12599         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12600
12601         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12602         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12603         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12604         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12605
12606 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12607
12608         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12609
12610         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12611         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12612         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12613
12614         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12615
12616         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12617         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12618         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12619         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12620
12621         * math/bits/math-finite.h: Add ldexp support.
12622
12623 2012-01-10  Marek Polacek  <polacek@redhat.com>
12624
12625         * locale/programs/localedef.h (show_archive_content): Add noreturn
12626         attribute.
12627
12628 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12629
12630         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12631
12632 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12633
12634         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12635
12636         * io/Makefile (headers): Add bits/poll2.h.
12637
12638 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12639
12640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12641         typo #include statement.
12642
12643 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12644
12645         * include/sys/cdefs.h: Define __attribute_alloc_size.
12646         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12647         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12648         * elf/pldd.c: Likewise.
12649         * iconv/iconv_charmap.c: Likewise.
12650         * iconv/iconvconfig.c: Likewise.
12651         * iconv/strtab.c: Likewise.
12652         * locale/programs/locale.c: Likewise.
12653         * locale/programs/localedef.h: Likewise.
12654         * locale/programs/simple-hash.c: Likewise.
12655         * nscd/nscd.h: Likewise.
12656         * nss/makedb.c: Likewise.
12657         * sysdeps/generic/ldconfig.h: Likewise.
12658         * locale/programs/localedef.c: Remove xmalloc prototype.
12659         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12660
12661 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12662
12663         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12664         appropriate.
12665
12666 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12667
12668         * math/Makefile (tests): Add tst-CMPLX.
12669         * math/tst-CMPLX.c: New file.
12670
12671         * math/complex.h (CMPLXL): Fix typo.
12672
12673         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12674         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12675         GLIBC_2.16.
12676         * debug/tst-chk1.c: Add poll and ppoll tests.
12677         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12678         * include/sys/poll.h: Add hidden proto for ppoll.
12679         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12680         * sysdeps/mach/hurd/ppoll.c: Likewise.
12681         * io/ppoll.c: Likewise.
12682         * debug/poll_chk.c: New file.
12683         * debug/ppoll_chk.c: New file.
12684         * include/bits/poll2.h: New file.
12685         * io/bits/poll2.h: New file.
12686
12687         [BZ #1350]
12688         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12689
12690         * configure.in: static is always set to yes.  Remove.
12691         * config.make.in: Don't set build-static.
12692         * Makeconfig: Remove use of build-static.
12693         * dlfcn/Makefile: Likewise.
12694         * elf/Makefile: Likewise.
12695         * math/Makefile: Likewise.
12696         * misc/Makefile: Likewise.
12697         * nptl/Makefile: Likewise.
12698         * sysdeps/mach/hurd/Makefile: Likewise.
12699
12700         * configure.in: PWD_P is not used anymore.
12701         * config.make.in: Remove PWD_P entry.
12702
12703         * configure.in: Remove last remnants of RANLIB.
12704         No need to check for signed size_t anymore.
12705         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12706         and IA-64.
12707         Remove __builtin_expect test because we require at least gcc 3.4.
12708         * aclocal.m4: Likewise.
12709
12710         * wcsmbs/mbrtoc16.c: Implement using towc function.
12711         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12712         * wcsmbs/wcsmbsload.c: Likewise.
12713         * iconv/gconv_simple.c: Likewise.
12714         * iconv/gconv_int.h: Likewise.
12715         * iconv/gconv_builtin.h: Likewise.
12716         * iconv/iconv_prog.c: Remove CHAR16 handling.
12717
12718         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12719
12720         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12721
12722         * configure.in: Remove --with-elf and --enable-bounded options.
12723         Dont set base_machine for ia64.  More non-ELF conditions removed.
12724         Remove testing and setting of leading underscore information.
12725         * config.make.in (build-bounded): Set to no.
12726         * config.h.in: Remove NO_UNDERSCORES entry.
12727         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12728         them.
12729         * csu/start.c: Remove !NO_UNDERSCORE code.
12730         * locale/localeinfo.h: Likewise.
12731         * sysdeps/generic/machine-gmon.h: Likewise.
12732         * sysdeps/generic/sysdep.h: Likewise.
12733         * sysdeps/i386/sysdep.h: Likewise.
12734         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12735         * sysdeps/mach/sysdep.h: Likewise.
12736         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12737         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12738         * sysdeps/sh/sysdep.h: Likewise.
12739         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12740         * sysdeps/unix/i386/sysdep.S: Likewise.
12741         * sysdeps/unix/sparc/start.c: Likewise.
12742         * sysdeps/unix/sparc/sysdep.S: Likewise.
12743         * sysdeps/unix/sparc/sysdep.h: Likewise.
12744         * sysdeps/unix/start.c: Likewise.
12745         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12746         * sysdeps/x86_64/sysdep.h: Likewise.
12747
12748 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12749
12750         [BZ #13553]
12751         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12752         for non-gcc.
12753         * argp/argp-fmtstream.h: Use const instead __const.
12754         * argp/argp.h: Likewise.
12755         * assert/assert.h: Likewise.
12756         * bits/fenv.h: Likewise.
12757         * bits/sched.h: Likewise.
12758         * bits/sigset.h: Likewise.
12759         * bits/sigthread.h: Likewise.
12760         * catgets/nl_types.h: Likewise.
12761         * conform/data/pthread.h-data: Likewise.
12762         * crypt/crypt-private.h: Likewise.
12763         * crypt/crypt.h: Likewise.
12764         * crypt/crypt_util.c: Likewise.
12765         * ctype/ctype.h: Likewise.
12766         * debug/execinfo.h: Likewise.
12767         * debug/mbsnrtowcs_chk.c: Likewise.
12768         * debug/mbsrtowcs_chk.c: Likewise.
12769         * debug/wcsnrtombs_chk.c: Likewise.
12770         * debug/wcsrtombs_chk.c: Likewise.
12771         * debug/wcstombs_chk.c: Likewise.
12772         * dirent/dirent.h: Likewise.
12773         * dlfcn/dlfcn.h: Likewise.
12774         * elf/neededtest4.c: Likewise.
12775         * grp/grp.h: Likewise.
12776         * gshadow/gshadow.h: Likewise.
12777         * iconv/gconv.h: Likewise.
12778         * iconv/gconv_int.h: Likewise.
12779         * iconv/gconv_simple.c: Likewise.
12780         * iconv/iconv.h: Likewise.
12781         * iconv/loop.c: Likewise.
12782         * iconv/skeleton.c: Likewise.
12783         * include/aio.h: Likewise.
12784         * include/aliases.h: Likewise.
12785         * include/argz.h: Likewise.
12786         * include/arpa/inet.h: Likewise.
12787         * include/assert.h: Likewise.
12788         * include/dirent.h: Likewise.
12789         * include/dlfcn.h: Likewise.
12790         * include/execinfo.h: Likewise.
12791         * include/fcntl.h: Likewise.
12792         * include/fenv.h: Likewise.
12793         * include/glob.h: Likewise.
12794         * include/grp.h: Likewise.
12795         * include/libintl.h: Likewise.
12796         * include/mntent.h: Likewise.
12797         * include/netdb.h: Likewise.
12798         * include/pwd.h: Likewise.
12799         * include/rpc/netdb.h: Likewise.
12800         * include/sched.h: Likewise.
12801         * include/search.h: Likewise.
12802         * include/shadow.h: Likewise.
12803         * include/signal.h: Likewise.
12804         * include/stdio.h: Likewise.
12805         * include/stdlib.h: Likewise.
12806         * include/string.h: Likewise.
12807         * include/sys/socket.h: Likewise.
12808         * include/sys/stat.h: Likewise.
12809         * include/sys/statfs.h: Likewise.
12810         * include/sys/statvfs.h: Likewise.
12811         * include/sys/syslog.h: Likewise.
12812         * include/sys/time.h: Likewise.
12813         * include/sys/uio.h: Likewise.
12814         * include/time.h: Likewise.
12815         * include/unistd.h: Likewise.
12816         * include/utmp.h: Likewise.
12817         * include/wchar.h: Likewise.
12818         * include/wctype.h: Likewise.
12819         * inet/aliases.h: Likewise.
12820         * inet/arpa/inet.h: Likewise.
12821         * inet/netinet/ether.h: Likewise.
12822         * inet/netinet/in.h: Likewise.
12823         * intl/libintl.h: Likewise.
12824         * io/bits/fcntl2.h: Likewise.
12825         * io/fcntl.h: Likewise.
12826         * io/ftw.h: Likewise.
12827         * io/sys/poll.h: Likewise.
12828         * io/sys/stat.h: Likewise.
12829         * io/sys/statfs.h: Likewise.
12830         * io/sys/statvfs.h: Likewise.
12831         * io/utime.h: Likewise.
12832         * libio/bits/stdio.h: Likewise.
12833         * libio/bits/stdio2.h: Likewise.
12834         * libio/libio.h: Likewise.
12835         * libio/libioP.h: Likewise.
12836         * libio/stdio.h: Likewise.
12837         * locale/lc-ctype.c: Likewise.
12838         * locale/locale.h: Likewise.
12839         * login/utmp.h: Likewise.
12840         * malloc/arena.c: Likewise.
12841         * malloc/malloc.c: Likewise.
12842         * malloc/malloc.h: Likewise.
12843         * malloc/mcheck.c: Likewise.
12844         * malloc/mtrace.c: Likewise.
12845         * math/bits/mathcalls.h: Likewise.
12846         * math/fenv.h: Likewise.
12847         * math/math_private.h: Likewise.
12848         * misc/bits/error.h: Likewise.
12849         * misc/bits/syslog.h: Likewise.
12850         * misc/err.h: Likewise.
12851         * misc/error.h: Likewise.
12852         * misc/fstab.h: Likewise.
12853         * misc/mntent.h: Likewise.
12854         * misc/regexp.h: Likewise.
12855         * misc/search.h: Likewise.
12856         * misc/sgtty.h: Likewise.
12857         * misc/sys/mman.h: Likewise.
12858         * misc/sys/syslog.h: Likewise.
12859         * misc/sys/uio.h: Likewise.
12860         * misc/sys/xattr.h: Likewise.
12861         * misc/ttyent.h: Likewise.
12862         * nis/rpcsvc/ypclnt.h: Likewise.
12863         * nss/nss.h: Likewise.
12864         * posix/bits/unistd.h: Likewise.
12865         * posix/fnmatch.h: Likewise.
12866         * posix/glob.h: Likewise.
12867         * posix/sched.h: Likewise.
12868         * posix/spawn.h: Likewise.
12869         * posix/sys/wait.h: Likewise.
12870         * posix/unistd.h: Likewise.
12871         * posix/wordexp.h: Likewise.
12872         * pwd/pwd.h: Likewise.
12873         * resolv/netdb.h: Likewise.
12874         * resource/sys/resource.h: Likewise.
12875         * rt/aio.h: Likewise.
12876         * rt/bits/mqueue2.h: Likewise.
12877         * rt/mqueue.h: Likewise.
12878         * shadow/shadow.h: Likewise.
12879         * signal/signal.h: Likewise.
12880         * socket/send.c: Likewise.
12881         * socket/sendto.c: Likewise.
12882         * socket/sys/socket.h: Likewise.
12883         * stdio-common/printf.h: Likewise.
12884         * stdlib/bits/stdlib.h: Likewise.
12885         * stdlib/fmtmsg.h: Likewise.
12886         * stdlib/monetary.h: Likewise.
12887         * stdlib/stdlib.h: Likewise.
12888         * stdlib/ucontext.h: Likewise.
12889         * streams/stropts.h: Likewise.
12890         * string/argz.h: Likewise.
12891         * string/bits/string2.h: Likewise.
12892         * string/string.h: Likewise.
12893         * string/strings.h: Likewise.
12894         * sunrpc/rpc/auth.h: Likewise.
12895         * sunrpc/rpc/auth_des.h: Likewise.
12896         * sunrpc/rpc/clnt.h: Likewise.
12897         * sunrpc/rpc/netdb.h: Likewise.
12898         * sunrpc/rpc/pmap_clnt.h: Likewise.
12899         * sunrpc/rpc/xdr.h: Likewise.
12900         * sysdeps/generic/inttypes.h: Likewise.
12901         * sysdeps/generic/net/if.h: Likewise.
12902         * sysdeps/generic/sys/swap.h: Likewise.
12903         * sysdeps/gnu/net/if.h: Likewise.
12904         * sysdeps/gnu/utmpx.h: Likewise.
12905         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12906         * sysdeps/i386/i486/bits/string.h: Likewise.
12907         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12908         * sysdeps/s390/bits/string.h: Likewise.
12909         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12910         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12911         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12912         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12913         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12914         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12915         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12916         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12917         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12918         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12919         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12920         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12921         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12922         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12923         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12924         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12925         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12926         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12927         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12928         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12929         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12930         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12931         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12932         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12933         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12934         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12935         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12936         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12937         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12938         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12939         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12940         * sysvipc/sys/ipc.h: Likewise.
12941         * sysvipc/sys/msg.h: Likewise.
12942         * sysvipc/sys/sem.h: Likewise.
12943         * sysvipc/sys/shm.h: Likewise.
12944         * termios/termios.h: Likewise.
12945         * time/sys/time.h: Likewise.
12946         * time/time.h: Likewise.
12947         * wcsmbs/bits/wchar2.h: Likewise.
12948         * wcsmbs/uchar.h: Likewise.
12949         * wcsmbs/wchar.h: Likewise.
12950         * wctype/wctype.h: Likewise.
12951
12952         [BZ #13551]
12953         * Makeconfig: Remove all but ELF support including AIX support.
12954         * Makerules: Likewise.
12955         * config.h.in: Likewise.
12956         * config.make.in: Likewise.
12957         * configure: Likewise.
12958         * configure.in: Likewise.
12959         * csu/Makefile: Likewise.
12960         * csu/version.c: Likewise.
12961         * debug/Makefile: Likewise.
12962         * dlfcn/Makefile: Likewise.
12963         * elf/Makefile: Likewise.
12964         * extra-lib.mk: Likewise.
12965         * iconv/Makefile: Likewise.
12966         * include/libc-symbols.h: Likewise.
12967         * include/shlib-compat.h: Likewise.
12968         * resolv/Makefile: Likewise.
12969         * resolv/res_libc.c: Likewise.
12970         * rt/Makefile: Likewise.
12971         * sysdeps/i386/asm-syntax.h: Likewise.
12972         * sysdeps/i386/sysdep.h: Likewise.
12973         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12974         * sysdeps/mach/sysdep.h: Likewise.
12975         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12976         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12977         * sysdeps/s390/asm-syntax.h: Likewise.
12978         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12979         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12980         * sysdeps/sh/sysdep.h: Likewise.
12981         * sysdeps/unix/sparc/sysdep.h: Likewise.
12982         * sysdeps/wordsize-32/divdi3.c: Likewise.
12983         * sysdeps/x86_64/sysdep.h: Likewise.
12984
12985         * argp/Versions: Remove _argp_unlock_xxx.
12986
12987         [BZ #13559]
12988         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12989         * abilist/libBrokenLocale.abilist: Likewise.
12990         * abilist/libanl.abilist: Likewise.
12991         * abilist/libc.abilist: Likewise.
12992         * abilist/libcrypt.abilist: Likewise.
12993         * abilist/libdl.abilist: Likewise.
12994         * abilist/libm.abilist: Likewise.
12995         * abilist/libnsl.abilist: Likewise.
12996         * abilist/libpthread.abilist: Likewise.
12997         * abilist/libresolv.abilist: Likewise.
12998         * abilist/librt.abilist: Likewise.
12999         * abilist/libthread_db.abilist: Likewise.
13000         * abilist/libutil.abilist: Likewise.
13001         * abilist/libnss_db.abilist: New file.
13002
13003         * scripts/abilist.awk: Add support for indirect functions.
13004
13005         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13006
13007         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13008
13009         * shlib-versions: Remove entries for ports architectures.
13010
13011         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13012         files in ports.
13013         * elf/stackguard-macros.h: Remove support for IA-64.
13014         * elf/tst-auditmod1.c: Likewise.
13015         * sysdeps/generic/ldsodefs.h: Likewise.
13016
13017         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13018         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13019         configure files.
13020
13021         [BZ #13552]
13022         * configure.in: Remove --enable-omitfp support.
13023         * FAQ.in: Adjust.
13024         * config.make.in: Likewise.
13025         * Makeconfig: Likewise.
13026         * manual/install.texi: Likewise.
13027
13028         In case anyone cares, the IA-64 architecture could move to ports.
13029         * sysdeps/ia64/*: Removed.
13030         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13031         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13032
13033         [BZ #13555]
13034         * configure.in: Remove entries for unsupported architectures.
13035
13036         [BZ #13533]
13037         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13038         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13039         routines.
13040         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13041         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13042         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13043         fall back to using wcrtomb.
13044         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13045         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13046         renaming.
13047         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13048         * wcsmbs/tst-c16c32-1.c: New file.
13049
13050         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13051         local variable.
13052
13053         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13054
13055         * elf/tst-unique3.cc: Add explicit declaration of gets.
13056         * elf/tst-unique3lib.cc: Likewise.
13057         * elf/tst-unique3lib2.cc: Likewise.
13058         * elf/tst-unique4.cc: Likewise.
13059
13060         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13061
13062 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13063
13064         [BZ #13566]
13065         * assert/assert.h (static_assert): Don't define for C++.
13066         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13067         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13068
13069 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13070
13071         * iconv/loop.c (single loop): Fix assertion in storing of
13072         remaining bytes.
13073
13074         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13075
13076 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13077
13078         * posix/getconf.c: Update copyright year.
13079         * nss/getent.c: Likewise.
13080         * nss/makedb.c: Likewise.
13081         * iconv/iconvconfig.c: Likewise.
13082         * iconv/iconv_prog.c: Likewise.
13083         * elf/ldconfig.c: Likewise.
13084         * elf/pldd.c: Likewise.
13085         * elf/sotruss.ksh: Likewise.
13086         * catgets/gencat.c: Likewise.
13087         * csu/version.c: Likewise.
13088         * elf/ldd.bash.in: Likewise.
13089         * elf/sprof.c (print_version): Likewise.
13090         * locale/programs/locale.c: Likewise.
13091         * locale/programs/localedef.c: Likewise.
13092         * login/programs/pt_chown.c: Likewise.
13093         * nscd/nscd.c (print_version): Likewise.
13094         * debug/xtrace.sh: Likewise.
13095         * malloc/memusage.sh: Likewise.
13096         * malloc/mtrace.pl: Likewise.
13097         * debug/catchsegv.sh: Likewise.
13098
13099 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13100
13101         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13102         pure attribute.
13103
13104 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13105
13106         [BZ #13533]
13107         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13108         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13109         transformations.
13110         * iconv/gconv_int.h: Likewise.
13111         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13112         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13113         from libc for GLIBC_2.16.
13114         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13115         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13116         * wcsmbs/uchar.h: Really define mbstate_t.
13117         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13118         * wcsmbs/c16rtomb.c: New file.
13119         * wcsmbs/mbrtoc16.c: New file.
13120         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13121         for C/POSIX locale.
13122         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13123         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13124
13125         * wcsmbs/wchar.h: Add missing __restrict.
13126
13127 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13128
13129         [BZ #13532]
13130         * time/Makefile (routines): Add timespec_get.
13131         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13132         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13133         timespec for ISO C11.
13134         * time/timespec_get.c: New file.
13135         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13136         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13137
13138         [BZ #13531]
13139         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13140         * stdlib/stdlib.h: Declare aligned_alloc.
13141         * Versions.def: Add GLIBC_2.16 for libc.
13142         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13143
13144         [BZ 13527]
13145         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13146         ISO C11.
13147
13148         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13149         code.
13150
13151         [BZ #13528]
13152         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13153
13154         [BZ #13529]
13155         * assert/assert.h (static_assert): Define.
13156
13157         * version.h: Update for 2.16 development version.
13158
13159         [BZ #13526]
13160         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13161         _ISOC11_SOURCE.
13162
13163         * version.h (RELEASE): Bump for 2.15 release.
13164         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13165
13166         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13167         Patch by Marek Polacek <mpolacek@redhat.com>.
13168
13169         * bits/byteswap.h: Protect long long constants with __extension__.
13170         * sysdeps/i386/bits/byteswap.h: Likewise.
13171         * sysdeps/ia64/bits/byteswap.h: Likewise.
13172         * sysdeps/s390/bits/byteswap.h: Likewise.
13173         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13174
13175 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13176
13177         [BZ #13540]
13178         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13179         destination buffer.
13180         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13181
13182 2011-12-23  Marek Polacek  <polacek@redhat.com>
13183
13184         * elf/dl-addr.c (determine_info): Add inline keyword.
13185         * elf/tst-auditmod4b.c (check_avx): Likewise.
13186         * elf/tst-auditmod6b.c (check_avx): Likewise.
13187         * elf/tst-auditmod6c.c (check_avx): Likewise.
13188         * elf/tst-auditmod7b.c (check_avx): Likewise.
13189
13190 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13191
13192         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13193         !__SSE_MATH__.
13194
13195 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13196
13197         [BZ #13540]
13198         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13199         processing for last bytes.
13200
13201 2011-08-06  Bruno Haible  <bruno@clisp.org>
13202
13203         [BZ #13061]
13204         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13205         U+0385, not to U+1FEE.
13206
13207         [BZ #13062]
13208         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13209         entry for U+00A5 U+0301.
13210
13211 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13212
13213         [BZ #13166]
13214         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13215         buffer for the output is too small.
13216
13217         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13218         optimization.
13219
13220         [BZ #13185]
13221         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13222         SSE flags if possible.
13223
13224 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13225
13226         [BZ #13540]
13227         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13228         processing for last bytes.
13229
13230 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13231
13232         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13233         (syscall-list-default-options, syscall-list-default-condition)
13234         (syscall-list-includes): Define.
13235         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13236         list of ABIs and options and #if conditions for each ABI.  Do not
13237         handle common syscalls between ABIs specially.
13238         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13239         Remove.
13240         (syscall-list-variants, syscall-list-32bit-options)
13241         (syscall-list-32bit-condition, syscall-list-64bit-options)
13242         (syscall-list-64bit-condition): Define.
13243         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): 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/sparc/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         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13253         Remove.
13254         (syscall-list-variants, syscall-list-32bit-options)
13255         (syscall-list-32bit-condition, syscall-list-64bit-options)
13256         (syscall-list-64bit-condition): Define.
13257
13258 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13259
13260         * locale/iso-639.def: Add brx entry.
13261
13262         [BZ #13328]
13263         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13264         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13265
13266         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13267         __feraiseexcept_renamed.
13268
13269 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13270
13271         [BZ #13538]
13272         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13273         EPOLLET with unsigned values.
13274         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13275         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13276
13277         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13278         to large cancellation.
13279         * math/s_cacoshf.c: Likewise.
13280         * math/s_cacoshl.c: Likewise.
13281
13282 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13283
13284         [BZ #13305]
13285         [BZ #12786]
13286         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13287         * math/s_cacoshf.c: Likewise.
13288         * math/s_cacoshl.c: Likewise.
13289
13290 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13291
13292         [BZ #13439]
13293         * iconv/gconv.h: Define __GCONV_SWAP.
13294         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13295         * iconvdata/utf-16.c: Likewise.
13296         * iconvdata/utf-32.c: Likewise.
13297
13298 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13299
13300         [BZ #13524]
13301         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13302         numerator after shifting it by one limb.
13303
13304 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13305
13306         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13307         under [__USE_EXTERN_INLINES].
13308
13309 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13310
13311         [BZ #13446]
13312         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13313
13314 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13315
13316         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13317         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13318         optimized code.
13319         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13320         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13321         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13322         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13323         for strncasecmp/strncasecmp_l compilation.
13324         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13325         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13326
13327 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13328
13329         [BZ #13484]
13330         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13331         of __asm__.
13332
13333 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13334
13335         [BZ #13506]
13336         * time/tzfile.c (__tzfile_read): Check values from file header.
13337
13338 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13339
13340         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13341         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13342         * powerpc/powerpc32/dl-start.S: Likewise.
13343         * powerpc/powerpc32/elf/start.S: Likewise.
13344         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13345         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13346         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13347         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13348         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13349         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13350         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13351         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13352         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13353         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13354         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13355         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13356         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13357         * powerpc/powerpc32/memset.S: Likewise.
13358         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13359         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13360         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13361         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13362         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13363         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13364         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13365         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13366         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13367         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13368         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13369         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13370         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13371
13372 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13373
13374         * math/libm-test.inc: Added more nearbyint tests.
13375         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13376         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13377         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13378         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13379
13380 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13381
13382         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13383         FD_CLOEXEC.
13384
13385 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13386
13387         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13388         Add wcscpy-ssse3 wcscpy-c.
13389         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13390         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13391         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13392         * sysdeps/x86_64/wcschr.S: New file.
13393         * sysdeps/x86_64/wcsrchr.S: New file.
13394         * string/test-strcmp.c: Remove checking of wcscmp function for
13395         wrong alignments.
13396         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13397         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13398         wcsrchr-sse2 wcsrchr-c.
13399         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13400         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13401         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13402         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13403         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13404         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13405         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13406         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13407         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13408         * wcsmbc/wcschr.c (WCSCHR): New macro.
13409
13410 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13411
13412         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13413         * wcsmbs/test-wcsrchr.c: New file.
13414         * string/test-strrchr.c: Add wcsrchr support.
13415         (WIDE): New macro.
13416         * wcsmbs/test-wcscpy.c: New file.
13417         * string/test-strcpy.c: Add wcscpy support.
13418         (WIDE): New macro.
13419
13420 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13421
13422         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13423         the inner loop.
13424
13425 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13426
13427         [BZ #13472]
13428         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13429
13430 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13431
13432         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13433         Minor optimizations.
13434
13435         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13436         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13437         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13438
13439 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13440
13441         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13442         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13443         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13444         for gcc to avoid warnings.
13445         * inet/Makefile (tests): Add tst-checks.
13446         * inet/tst-checks.c: New file.
13447
13448         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13449         warning.
13450
13451         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13452         __wmemcmp_sse2.
13453
13454         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13455         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13456
13457         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13458
13459 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13460
13461         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13462         problem.
13463
13464         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13465
13466 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13467
13468         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13469         conditional on GCC version.
13470         (__arch_compare_and_exchange_val_8_acq)
13471         (__arch_compare_and_exchange_val_16_acq)
13472         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13473         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13474         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13475
13476 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13477
13478         * sysdeps/sh/backtrace.c: New file.
13479
13480 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13481
13482         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13483         parenthesis.
13484
13485 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13486
13487         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13488         falling back to utime.
13489
13490 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13491
13492         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13493         expectations for float.
13494
13495 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13496
13497         * locale/weight.h (findidx): Add parameter len.
13498         * locale/weightwc.h (findidx): Likewise.
13499         * posix/fnmatch_loop.c (FCT): Adjust caller.
13500         * posix/regcomp.c (build_equiv_class): Likewise.
13501         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13502         * posix/regexec.c (check_node_accept_bytes): Likewise.
13503         * string/strcoll_l.c (STRCOLL): Likewise.
13504         * string/strxfrm_l.c (STRXFRM): Likewise.
13505
13506 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13507
13508         * Makefile.in: Remove CVSOPT handling.
13509         * configure.in: Remove use of AC_REVISION.
13510         * iconvdata/Makefile (distribute): No need to filter out CVS.
13511         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13512         handling.
13513
13514 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13515
13516         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13517         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13518         [USE_AS_STRNCASECMP_L]: Likewise.
13519         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13520         NO_TLS_DIRECT_SEG_REFS.
13521         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13522         Fix argument offsets for non-PIC.
13523         [USE_AS_STRNCASECMP_L]: Likewise.
13524         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13525         NO_TLS_DIRECT_SEG_REFS.
13526
13527 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13528
13529         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13530         O_CLOEXEC.
13531         * locale/loadlocale.c (_nl_load_locale): Likewise.
13532
13533 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13534
13535         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13536         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13537         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13538         (SYSCALL_GETTIME): Set errno on error.
13539
13540         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13541         count references to noai6ai_cached.
13542
13543 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13544
13545         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13546
13547         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13548         FD_CLOEXEC for /proc/self/maps.
13549
13550         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13551         FD_CLOEXEC for /proc/meminfo.
13552
13553         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13554         gai.conf.
13555
13556         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13557         FD_CLOEXEC for given file.
13558
13559         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13560
13561         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13562         FD_CLOEXEC for /etc/hosts.
13563         (_gethtent): Likewise.
13564
13565         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13566
13567         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13568         cancellation and set FD_CLOEXEC for /etc/netgroup.
13569
13570         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13571         reading /etc/publickey.
13572
13573         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13574         allow cancellation when reading /etc/group.
13575
13576         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13577         cancellation.
13578         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13579
13580         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13581         when using data file.
13582
13583         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13584
13585         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13586         (write_nis_obj): Use "c" and "e" in fopen.
13587
13588         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13589
13590         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13591
13592         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13593
13594         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13595
13596         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13597         locale.alias.
13598
13599         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13600
13601         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13602
13603         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13604
13605         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13606         file parsing and set FD_CLOEXEC.
13607
13608 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13609
13610         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13611
13612 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13613
13614         * malloc/arena.c (arena_get2): Don't call reused_arena when
13615         _int_new_arena failed.
13616
13617 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13618
13619         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13620         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13621         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13622         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13623         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13624         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13625         to compile strcasecmp and strncasecmp.
13626         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13627         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13628
13629         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13630
13631 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13632
13633         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13634         locale-defines.sym to gen-as-const-headers.
13635         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13636         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13637         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13638         to compile strcasecmp and strncasecmp.
13639         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13640         strcasecmp_l and strncasecmp_l.
13641         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13642         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13643         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13644         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13645         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13646         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13647         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13648         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13649         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13650         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13651         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13652
13653 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13654
13655         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13656         result of SYSDEP_GETTIME_CPU to retval.
13657         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13658         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13659
13660         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13661         variable.
13662
13663         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13664         mantissa words.
13665         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13666
13667         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13668         from unused variable.
13669
13670         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13671         DWARF definitions.
13672         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13673         for assembling.
13674
13675         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13676         over namespaces.
13677
13678         * sunrpc/rpc_prot.c (rejected): Fix case value.
13679
13680         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13681         unsigned long long int to avoid warnings in shift.
13682
13683         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13684         of use of trans.
13685         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13686         variable tmp.
13687
13688         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13689         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13690         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13691
13692         * nis/nis_table.c (nis_list): Use variable of correct type for
13693         result of __follow_path call.
13694
13695 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13696
13697         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13698         of math functions ceil, trunc, floor, round, and sqrt, when
13699         avaliable on the platform.
13700         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13701         name clash.
13702         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13703         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13704         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13705
13706 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13707
13708         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13709         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13710
13711 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13712
13713         * include/unistd.h: Fix __readlink return type.
13714         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13715
13716 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13717
13718         * stdlib/ucontext.h: Undo last change for makecontext.
13719
13720 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13721
13722         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13723
13724         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13725         * setjmp/setjmp.h: Mark functions as non-leaf.
13726         * setjmp/bits/setjmp2.h: Likewise.
13727         * stdlib/ucontext.h: Likewise.
13728
13729 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13730
13731         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13732         (reused_arena): Don't check arena limit.
13733         (arena_get2): Atomically check arena limit.
13734
13735 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13736
13737         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13738         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13739
13740         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13741         instructions.
13742
13743 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13744
13745         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13746         handler when locking.
13747
13748         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13749         Fix size of allocated buffer.
13750
13751 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13752
13753         [BZ #10103]
13754         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13755         declarations for long double functions.
13756         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13757
13758         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13759
13760 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13761
13762         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13763         installed.
13764
13765         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13766         is disabled.
13767
13768 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13769
13770         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13771
13772 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13773
13774         * include/alloca.h (stackinfo_alloca_round): Define.
13775         (extend_alloca): Use it.
13776         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13777         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13778         here.
13779
13780         * scripts/check-local-headers.sh: Ignore libaudit.h.
13781
13782         * nscd/Makefile (extra-objs): Make recursively expanded.
13783
13784 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13785
13786         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13787         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13788
13789         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13790         * posix/tst-rfc3484-2.c: Likewise.
13791         * posix/tst-rfc3484-3.c: Likewise.
13792
13793         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13794         process_vm_writev.
13795         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13796         process_vm_writev.
13797         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13798         process_vm_writev from libc using GLIBC_2.15 version.
13799
13800         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13801
13802 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13803
13804         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13805         stack usage.
13806
13807 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13808
13809         [BZ #13367]
13810         * nss/getent.c (initgroups_keys): Show error message in case no group
13811         names are given.
13812
13813         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13814         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13815         __bump_nl_timestamp.
13816         * nscd/connections (nscd_init): When host database is served open
13817         netlink socket and request notification about configuration changes.
13818         (main_loop_poll): Track netlink file descriptor and bump timestamp
13819         in case data becomes available.
13820         (main_loop_epoll): Likewise.
13821         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13822         (database_pers_head): Add extra_data fileds.
13823         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13824         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13825         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13826         Adjust caller.
13827         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13828         in6ai data, call __free_in6ai.
13829         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13830         Add -DHAVE_NETLINK.
13831         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13832         interface information.  Reuse previous data if netlink timestamp
13833         is not changed.
13834         (__bump_nl_timestamp): New function.
13835         (__free_in6ai): New function.
13836
13837 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13838
13839         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13840         close_not_cancel_no_status here.
13841         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13842
13843 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13844
13845         [BZ #13276]
13846         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13847         return value.
13848
13849         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13850         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13851         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13852
13853 2011-07-03  Andreas Jaeger  <aj@suse.de>
13854
13855         [BZ #10709]
13856         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13857         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13858         * math/libm-test.inc (sin_test): Add test case.
13859
13860 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13861
13862         [BZ #13337]
13863         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13864         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13865
13866         * elf/chroot_canon.c (chroot_canon): Cleanups.
13867
13868         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13869
13870         [BZ #13335]
13871         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13872         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13873
13874         * string/test-strchr.c: Make usable for strchrnul testing.
13875         * string/test-strchrnul.c: New file.
13876         * string/Makefile (strop-tests): Add strchrnul.
13877
13878         * po/it.po: Update from translation team.
13879         * po/es.po: Likewise.
13880
13881 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13882
13883         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13884         the three constants needed as parameters.  Drop the others.
13885         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13886         __m128i_strloadu_tolower.
13887         Create and initialize variable zero and use it in all the places
13888         where _mm_setzero_si128 was used.
13889
13890         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13891         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13892         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13893         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13894         anymore.
13895         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13896         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13897         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13898         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13899         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13900         __mpranred, __mptan.
13901         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13902         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13903         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13904         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13905         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13906         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13907         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13908         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13909         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13910
13911 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13912
13913         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13914         redefine if SHARED.
13915         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13916
13917         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13918         wide char related routines to wcsmbs subdir.
13919
13920 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13921
13922         [BZ #13344]
13923         * misc/sys/cdefs.h (__THROWNL): Define.
13924         * posix/unistd.h: Use __THREADNL instead of __THREAD
13925         for memory synchronization functions.
13926
13927 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13928
13929         [BZ #13349]
13930         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13931         doesn't exist.
13932         * manual/stdio.texi (Obstack Streams): Node removed.
13933
13934 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13935
13936         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13937         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13938         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13939
13940         * math/math_private.h (math_force_eval): Allow non-addressable
13941         arguments.
13942         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13943
13944 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13945
13946         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13947         file is not needed.
13948
13949         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13950         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13951         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13952         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13953         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13954         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13955         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13956         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13957         Add AVX variants.
13958         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13959         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13960         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13961         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13962         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13963         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13964         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13965         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13966         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13967         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13968         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13969         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13970         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13971         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13972         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13973         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13974         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13975         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13976         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13977
13978         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13979         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13980
13981         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13982         place.  Use VEX encoding when compiling for AVX.
13983
13984 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13985
13986         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13987         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13988
13989         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13990
13991 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13992
13993         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13994         useless if() expression.
13995         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13996         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13997         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13998         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13999         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14000         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14001         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14002         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14003         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14004         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14005         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14006         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14007         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14008         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14009         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14010         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14011         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14012         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14013         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14014
14015         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14016
14017 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14018
14019         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14020         condition.
14021         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14022
14023 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14024
14025         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14026         .text section.  Avoid duplicate constants.
14027         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14028         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14029         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14030         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14031         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14032         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14033         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14034         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14035         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14036         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14037         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14038         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14039         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14040         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14041         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14042         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14043         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14044         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14045         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14046         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14047         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14048         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14049         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14050         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14051         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14052         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14053         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14054         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14055         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14056         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14057         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14058         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14059         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14060         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14061         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14062         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14063         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14064         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14065         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14066         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14067         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14068         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14069         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14070         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14071         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14072
14073 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14074
14075         * sysdeps/x86_64/dla.h: Move to ...
14076         * sysdeps/x86_64/fpu/dla.h: ...here.
14077         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14078         situations.  Use __builtin_fma only for gcc 4.6 and up.
14079
14080         * config.make.in: Add have-mfma4 entry.
14081         * configure.in: Substitute libc_cv_cc_fma4.
14082         * math/Makefile (dbl-only-routines): Add sincostab.
14083         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14084         Use __sincostab not sincos.
14085         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14086         name is a macro.
14087         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14088         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14089         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14090         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14091         using __copysign.
14092         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14093         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14094         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14095         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14096         and __inv.
14097         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14098         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14099         __copysign.
14100         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14101         define aliases when function name is a macro.
14102         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14103         sysdeps/ieee754/dbl-64/sincos.tbl.
14104         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14105         fma4-enabled routines.
14106         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14107         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14108         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14109         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14110         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14111         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14112         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14113         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14114         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14115         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14116         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14117         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14118         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14119         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14120         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14121         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14122         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14123         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14124         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14125         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14126         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14127         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14128         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14129         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14130         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14131         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14132         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14133         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14134         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14135         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14136
14137         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14138         rename.
14139         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14140         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14141         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14142         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14143         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14144         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14145         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14146         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14147
14148 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14149
14150         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14151
14152 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14153
14154         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14155
14156         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14157         prediction.
14158         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14159
14160         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14161         Remove unused variable magic_bits.
14162         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14163
14164         * string/strnlen.c: Define and use STRNLEN macro.
14165         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14166         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14167         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14168         * wcsmbs/wcslen.c: Define and use WCSLEN.
14169         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14170         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14171         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14172         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14173         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14174         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14175         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14176
14177 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14178
14179         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14180         strnlen-sse2-no-bsf.
14181         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14182         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14183         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14184         Add strnlen support.
14185         (USE_AS_STRNLEN): New macro.
14186         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14187         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14188         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14189         * sysdeps/x86_64/wcslen.S: New file.
14190
14191 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14192
14193         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14194         XMM-moves are used for copying on small sizes.
14195
14196 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14197
14198         * wcsmbs/Makefile (strop-tests): Add wcschr.
14199         * wcsmbs/test-wcschr.c: New file.
14200         * string/test-strchr.c: Update.
14201         Add wcschr support.
14202         (WIDE): New macro.
14203
14204 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14205
14206         * wcsmbs/Makefile (strop-tests): Add wcslen.
14207         * wcsmbs/test-wcslen.c: New file.
14208         * string/test-strlen.c: Update.
14209         Add wcslen support.
14210         (WIDE): New macro.
14211
14212 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14213
14214         * po/it.po: Update from translation team.
14215
14216 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14217
14218         * sysdeps/x86_64/wcscmp.S: Update.
14219         Fix wrong comparison semantics.
14220         wcscmp shall use signed comparison not unsigned.
14221         Don't use substraction to avoid overflow bug.
14222         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14223         * wcsmbc/wcscmp.c: Likewise.
14224         * string/test-strcmp.c: Likewise.
14225         Add new tests to check cases with negative values.
14226
14227 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14228
14229         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14230         * sysdeps/x86_64/dla.h: ...here.  New file.
14231         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14232         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14233         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14234         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14235         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14236         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14237         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14238         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14239         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14240
14241 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14242
14243         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14244         __ynl_finite aliases.
14245
14246 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14247
14248         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14249
14250         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14251         define DLA_FMA.
14252         [DLA_FMA] (EMULV): Use DLA_FMA.
14253         [DLA_FMA] (MUL12): Use EMULV.
14254         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14255         that are not needed.
14256         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14257         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14258         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14259         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14260         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14261         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14262         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14263
14264 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14265
14266         * math/s_nan.c: Undef __nan.
14267         * math/s_nanf.c: Undef __nanf.
14268         * math/s_nanl.c: Undef __nanl.
14269         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14270         "math_private.h".
14271
14272 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14273
14274         * math/s_catan.c: Add branch predictions.
14275         * math/s_catanf.c: Likewise.
14276         * math/s_catanh.c: Likewise.
14277         * math/s_catanhf.c: Likewise.
14278         * math/s_catanhl.c: Likewise.
14279         * math/s_catanl.c: Likewise.
14280         * math/s_cexp.c: Likewise.
14281         * math/s_cexpf.c: Likewise.
14282         * math/s_cexpl.c: Likewise.
14283         * math/s_clog.c: Likewise.
14284         * math/s_clog10.c: Likewise.
14285         * math/s_clog10f.c: Likewise.
14286         * math/s_clog10l.c: Likewise.
14287         * math/s_clogf.c: Likewise.
14288         * math/s_clogl.c: Likewise.
14289         * math/s_csqrt.c: Likewise.
14290         * math/s_csqrtf.c: Likewise.
14291         * math/s_csqrtl.c: Likewise.
14292         * math/s_ctanf.c: Likewise.
14293         * math/s_ctanh.c: Likewise.
14294         * math/s_ctanhf.c: Likewise.
14295         * math/s_ctanhl.c: Likewise.
14296         * math/s_ctanl.c: Likewise.
14297
14298         * math/math_private.h: Define __nan, __nanf, __nanl.
14299         * math/s_cacosh.c: Include <math_private.h>.
14300         * math/s_cacoshl.c: Likewise.
14301         * math/s_casinh.c: Likewise.
14302         * math/s_casinhf.c: Likewise.
14303         * math/s_casinhl.c: Likewise.
14304         * math/s_ccos.c: Rely entire on ccosh.
14305         * math/s_ccosf.c: Rely entire on ccoshf.
14306         * math/s_ccosl.c: Rely entirely on ccoshl.
14307         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14308         Remove tests for FE_INVALID.
14309         * math/s_ccoshf.c: Likewise.
14310         * math/s_ccoshl.c: Likewise.
14311         * math/s_csin.c: Likewise.
14312         * math/s_csinf.c: Likewise.
14313         * math/s_csinh.c Likewise.
14314         * math/s_csinhf.c: Likewise.
14315         * math/s_csinhl.c: Likewise.
14316         * math/s_csinl.c: Likewise.
14317         * math/s_ctan.c: Likewise.
14318         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14319         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14320         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14321
14322 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14323
14324         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14325         compilation problems.
14326
14327         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14328         __builtin_expect.
14329
14330 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14331
14332         * sysdeps/i386/configure.in: Test for -mfma4 option.
14333         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14334         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14335         COMMON_CPUID_INDEX_80000001.
14336         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14337         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14338         use it if FMA3 is not supported.
14339         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14340
14341         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14342         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14343
14344 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14345
14346         [BZ #12892]
14347         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14348         it would create a cycle with a link time dependency.
14349
14350 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14351
14352         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14353         instruction.
14354         * string/Makefile (strop-tests): Add rawmemchr.
14355         * string/test-rawmemchr.c: New file.
14356
14357         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14358         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14359         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14360         when compiling str{,n}casecmp and when AVX is available.  Hook up
14361         new optimized code in initializers.
14362
14363 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14364
14365         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14366         __feraiseexcept instead of feraiseexcept.
14367
14368 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14369
14370         * math/math_private.h: Define defaults for libc_fetestexcept and
14371         libc_feupdateenv.
14372         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14373         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14374         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14375         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14376         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14377         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14378         libc_fetestexcept and libc_feupdateenv.
14379
14380         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14381         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14382         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14383         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14384         libc_feholdexcept_setround.
14385
14386         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14387         Add s_nearbyint-c and s_nearbyintf-c.
14388         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14389         nearbyintf inlines.
14390         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14391         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14392         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14393         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14394
14395         * math/math_private.h: Define defaults for libc_fegetround,
14396         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14397         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14398         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14399         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14400         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14401         standard functions.
14402         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14403         Remove comments and hacks for old compiler versions.
14404         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14405         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14406         libc_feholdexceptl.
14407
14408 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14409
14410         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14411         (__feraiseexcept_renamed): Add __NTH.
14412         (feraiseexcept): Add __NTH.  Rename local variables to fix
14413         namespace violations.
14414
14415 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14416
14417         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14418
14419         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14420
14421         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14422         recently added interfaces.
14423         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14424
14425         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14426         about macro parameter expansion.
14427
14428         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14429         __NO_MATH_INLINES is defined.  Cleanups.
14430
14431         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14432         and __floorf is target has SSE4.1.
14433         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14434         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14435         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14436         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14437
14438         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14439         name.
14440         (floorf): Likewise.
14441
14442         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14443
14444 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14445
14446         * misc/sys/cdefs.h: Fix last change.
14447
14448         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14449         database lookup.
14450
14451 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14452
14453         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14454
14455         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14456         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14457         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14458         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14459         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14460         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14461         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14462         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14463         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14464         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14465         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14466         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14467         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14468         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14469         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14470         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14471         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14472         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14473         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14474         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14475         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14476         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14477
14478         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14479         ceil, ceilf, floor, floorf.
14480
14481         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14482         Perform IRELATIVE relocations last.
14483
14484         * elf/do-rel.h: Add another parameter nrelative, replacing the
14485         local variable with the same name.  Change name of the function
14486         to end in Rel or Rela (uppercase).
14487         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14488         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14489         elf_dynamic_do_##reloc function.
14490
14491 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14492
14493         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14494         is sufficient, at least on modern CPUs.
14495
14496         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14497
14498         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14499         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14500
14501         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14502         __expl_finite.
14503         * math/bits/math-finite.h: Add entries for exp.
14504         * math/e_expl.c: Add __*_finite alias.
14505         * sysdeps/i386/fpu/e_exp.S: Likewise.
14506         * sysdeps/i386/fpu/e_expf.S: Likewise.
14507         * sysdeps/i386/fpu/e_expl.c: Likewise.
14508         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14509         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14510         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14511         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14512         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14513         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14514         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14515
14516         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14517         is sufficient, at least on modern CPUs.
14518
14519         * ctype/ctype-info.c (__ctype_init): Define.
14520         * include/ctype.h (__ctype_init): Declare.
14521         (__ctype_b_loc): The variable is always initialized.
14522         (__ctype_toupper_loc): Likewise.
14523         (__ctype_tolower_loc): Likewise.
14524         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14525         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14526
14527 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14528
14529         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14530
14531         * configure.in: Also look in $cxxmachine/include for C++ system
14532         headers.
14533
14534 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14535
14536         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14537         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14538         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14539         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14540         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14541         (USE_AS_WMEMCMP): New macro.
14542         Fixing indents.
14543         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14544         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14545         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14546         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14547         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14548         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14549         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14550         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14551         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14552         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14553         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14554         (USE_AS_WMEMCMP): New macro.
14555         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14556         * sysdeps/string/test-memcmp.c: Update.
14557         Fix simple_wmemcmp.
14558         Add new tests.
14559         * wcsmbs/wmemcmp.c: Update.
14560         (WMEMCMP): New macro.
14561         Fix overflow bug.
14562
14563 2011-10-12  Andreas Jaeger  <aj@suse.de>
14564
14565         [BZ #13268]
14566         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14567
14568 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14569
14570         * libio/iofwide.c (do_length): Avoid warning.
14571
14572         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14573
14574 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14575
14576         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14577
14578         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14579         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14580         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14581         * sysdeps/i386/i686/fpu/e_log.S: New file.
14582         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14583         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14584
14585         * ctype/ctype.h: Add support for inlined isXXX functions when
14586         compiling C++ code.
14587
14588 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14589
14590         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14591
14592         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14593
14594 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14595
14596         [BZ #13291]
14597         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14598
14599 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14600
14601         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14602         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14603         feraiseexcept.
14604
14605         * sysdeps/x86_64/memrchr.S: Check for zero size.
14606
14607         * string/stratcliff.c: Add memrchr tests.
14608
14609 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14610
14611         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14612         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14613         rawmemchr-sse2 rawmemchr-sse2-bsf.
14614         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14615         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14616         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14617         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14618         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14619         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14620         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14621         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14622         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14623         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14624         * string/memrchr.c (MEMRCHR): New macro.
14625
14626 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14627
14628         Add integration with gcc's -ffinite-math-only and optimize wrapper
14629         functions in libm.
14630         * Versions.def: Define GLIBC_2.15 version for libm.
14631         * math/Makefile (headers): Add bits/math-finite.h.
14632         * math/bits/math-finite.h: New file.
14633         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14634         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14635         * math/e_acoshl.c: Add __*_finite alias.
14636         * math/e_acosl.c: Likewise.
14637         * math/e_asinl.c: Likewise.
14638         * math/e_atan2l.c: Likewise.
14639         * math/e_atanhl.c: Likewise.
14640         * math/e_coshl.c: Likewise.
14641         * math/e_exp10.c: Likewise.
14642         * math/e_exp10f.c: Likewise.
14643         * math/e_exp10l.c: Likewise.
14644         * math/e_exp2l.c: Likewise.
14645         * math/e_fmodl.c: Likewise.
14646         * math/e_gammal_r.c: Likewise.
14647         * math/e_hypotl.c: Likewise.
14648         * math/e_j0l.c: Likewise.
14649         * math/e_j1l.c: Likewise.
14650         * math/e_jnl.c: Likewise.
14651         * math/e_lgammal_r.c: Likewise.
14652         * math/e_log10l.c: Likewise.
14653         * math/e_log2l.c: Likewise.
14654         * math/e_logl.c: Likewise.
14655         * math/e_powl.c: Likewise.
14656         * math/e_sinhl.c: Likewise.
14657         * math/e_sqrtl.c: Likewise.
14658         * math/e_scalb.c: Completely rewritten and optimized.
14659         * math/e_scalbf.c: Likewise.
14660         * math/e_scalbl.c: Likewise.
14661         * math/w_acos.c: Likewise.
14662         * math/w_acosf.c: Likewise.
14663         * math/w_acosl.c: Likewise.
14664         * math/w_acosh.c: Likewise.
14665         * math/w_acoshf.c: Likewise.
14666         * math/w_acoshl.c: Likewise.
14667         * math/w_asin.c: Likewise.
14668         * math/w_asinf.c: Likewise.
14669         * math/w_asinl.c: Likewise.
14670         * math/w_atan2.c: Likewise.
14671         * math/w_atan2f.c: Likewise.
14672         * math/w_atan2l.c: Likewise.
14673         * math/w_atanh.c: Likewise.
14674         * math/w_atanhf.c: Likewise.
14675         * math/w_atanhl.c: Likewise.
14676         * math/w_exp10.c: Likewise.
14677         * math/w_exp10f.c: Likewise.
14678         * math/w_exp10l.c: Likewise.
14679         * math/w_fmod.c: Likewise.
14680         * math/w_fmodf.c: Likewise.
14681         * math/w_fmodl.c: Likewise.
14682         * math/w_j0.c: Likewise.
14683         * math/w_j0f.c: Likewise.
14684         * math/w_j0l.c: Likewise.
14685         * math/w_j1.c: Likewise.
14686         * math/w_j1f.c: Likewise.
14687         * math/w_j1l.c: Likewise.
14688         * math/w_jn.c: Likewise.
14689         * math/w_jnf.c: Likewise.
14690         * math/w_log.c: Likewise.
14691         * math/w_logf.c: Likewise.
14692         * math/w_logl.c: Likewise.
14693         * math/w_log10.c: Likewise.
14694         * math/w_log10f.c: Likewise.
14695         * math/w_log10l.c: Likewise.
14696         * math/w_log2.c: Likewise.
14697         * math/w_log2f.c: Likewise.
14698         * math/w_log2l.c: Likewise.
14699         * math/w_pow.c: Likewise.
14700         * math/w_powf.c: Likewise.
14701         * math/w_powl.c: Likewise.
14702         * math/w_remainder.c: Likewise.
14703         * math/w_remainderf.c: Likewise.
14704         * math/w_remainderl.c: Likewise.
14705         * math/w_scalb.c: Likewise.
14706         * math/w_scalbf.c: Likewise.
14707         * math/w_scalbl.c: Likewise.
14708         * math/w_sqrt.c: Likewise.
14709         * math/w_sqrtf.c: Likewise.
14710         * math/w_sqrtl.c: Likewise.
14711         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14712         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14713         used.
14714         * math/math_private.h: Declare __kernel_standard_f.
14715         * math/w_cosh.c: Remove cruft and optimize a bit.
14716         * math/w_coshf.c: Likewise.
14717         * math/w_coshl.c: Likewise.
14718         * math/w_exp2.c: Likewise.
14719         * math/w_exp2f.c: Likewise.
14720         * math/w_exp2l.c: Likewise.
14721         * math/w_hypot.c: Likewise.
14722         * math/w_hypotf.c: Likewise.
14723         * math/w_hypotl.c: Likewise.
14724         * math/w_lgamma.c: Likewise.
14725         * math/w_lgamma_r.c: Likewise.
14726         * math/w_lgammaf.c: Likewise.
14727         * math/w_lgammaf_r.c: Likewise.
14728         * math/w_lgammal.c: Likewise.
14729         * math/w_lgammal_r.c: Likewise.
14730         * math/w_sinh.c: Likewise.
14731         * math/w_sinhf.c: Likewise.
14732         * math/w_sinhl.c: Likewise.
14733         * math/w_tgamma.c: Likewise.
14734         * math/w_tgammaf.c: Likewise.
14735         * math/w_tgammal.c: Likewise.
14736         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14737         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14738         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14739         Minor optimizations.  Pretty printing.  Remove cruft.
14740         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14741         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14742         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14743         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14744         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14745         * sysdeps/i386/fpu/e_asin.S: Likewise.
14746         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14747         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14748         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14749         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14750         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14751         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14752         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14753         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14754         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14755         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14756         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14757         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14758         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14759         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14760         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14761         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14762         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14763         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14764         * sysdeps/i386/fpu/e_log.S: Likewise.
14765         * sysdeps/i386/fpu/e_log10.S: Likewise.
14766         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14767         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14768         * sysdeps/i386/fpu/e_log2.S: Likewise.
14769         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14770         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14771         * sysdeps/i386/fpu/e_logf.S: Likewise.
14772         * sysdeps/i386/fpu/e_logl.S: Likewise.
14773         * sysdeps/i386/fpu/e_pow.S: Likewise.
14774         * sysdeps/i386/fpu/e_powf.S: Likewise.
14775         * sysdeps/i386/fpu/e_powl.S: Likewise.
14776         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14777         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14778         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14779         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14780         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14781         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14782         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14783         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14784         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14785         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14786         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14787         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14788         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14789         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14790         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14791         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14792         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14793         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14794         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14795         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14796         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14797         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14798         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14799         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14800         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14801         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14802         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14803         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14804         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14805         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14806         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14807         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14808         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14809         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14810         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14811         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14812         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14813         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14814         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14815         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14816         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14817         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14818         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14819         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14820         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14821         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14822         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14823         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14824         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14825         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14826         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14827         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14828         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14829         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14830         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14831         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14832         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14833         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14834         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14835         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14836         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14837         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14838         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14839         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14840         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14841         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14842         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14843         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14844         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14845         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14846         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14847         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14848         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14849         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14850         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14851         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14852         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14853         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14854         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14855         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14856         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14857         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14858         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14859         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14860         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14861         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14862         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14863         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14864         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14865         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14866         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14867         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14868         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14869         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14870         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14871         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14872         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14873         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14874         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14875         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14876         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14877         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14878         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14879         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14880         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14881         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14882         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14883         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14884         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14885         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14886         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14887         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14888         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14889         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14890         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14891         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14892         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14893         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14894         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14895         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14896         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14897         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14898         (__isnanf): Likewise.
14899         (__isinf_ns): Likewise.
14900         (__isinf_nsf): Likewise.
14901         (__finite): Likewise.
14902         (__finitef): Likewise.
14903         (__ieee754_sqrt): Define as macro.
14904         (__ieee754_sqrtf): Define as macro.
14905         (__ieee754_sqrtl): Define as macro.
14906         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14907         inlined copy.
14908         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14909         __FINITE_MATH_ONLY__ consistent.
14910         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14911
14912 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14913
14914         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14915         of rawmemchr.
14916
14917         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14918
14919 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14920
14921         * po/ja.po: Update from translation team.
14922
14923 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14924
14925         * locale/programs/locarchive.c (prepare_address_space): New function.
14926         (create_archive, enlarge_archive, open_archive): Use it.
14927
14928         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14929         inside [SHARED], where it is used.
14930
14931         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14932
14933         * nss/getent.c (netgroup_keys): Remove unused variable.
14934         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14935
14936 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14937
14938         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14939         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14940         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14941         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14942         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14943         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14944         * math/Makefile (libm-calls): Add s_isinf_ns.
14945         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14946         * math/multc3.c: Likewise.
14947         * math/s_casin.c: Likewise.
14948         * math/s_casinf.c: Likewise.
14949         * math/s_casinl.c: Likewise.
14950         * math/s_ccos.c: Likewise.
14951         * math/s_ccosf.c: Likewise.
14952         * math/s_ccosl.c: Likewise.
14953         * math/s_ctan.c: Likewise.
14954         * math/s_ctanf.c: Likewise.
14955         * math/s_ctanh.c: Likewise.
14956         * math/s_ctanhf.c: Likewise.
14957         * math/s_ctanhl.c: Likewise.
14958         * math/s_ctanl.c: Likewise.
14959         * math/w_fmod.c: Likewise.
14960         * math/w_fmodf.c: Likewise.
14961         * math/w_fmodl.c: Likewise.
14962         * math/w_remainder.c: Likewise.
14963         * math/w_remainderf.c: Likewise.
14964         * math/w_remainderl.c: Likewise.
14965         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14966         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14967         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14968         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14969         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14970         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14971         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14972         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14973
14974         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14975         of the number.
14976         * stdio-common/printf_fphex.c: Likewise.
14977         * stdio-common/printf_size.c: Likewise.
14978
14979         * math/e_exp10.c: Include math_private.h using <...> not "...".
14980         * math/e_exp10f.c: Likewise.
14981         * math/e_exp10l.c: Likewise.
14982         * math/e_exp2l.c: Likewise.
14983         * math/e_j0l.c: Likewise.
14984         * math/e_j1l.c: Likewise.
14985         * math/e_jnl.c: Likewise.
14986         * math/e_lgammal_r.c: Likewise.
14987         * math/e_rem_pio2l.c: Likewise.
14988         * math/e_scalb.c: Likewise.
14989         * math/e_scalbf.c: Likewise.
14990         * math/e_scalbl.c: Likewise.
14991         * math/k_cosl.c: Likewise.
14992         * math/k_sinl.c: Likewise.
14993         * math/k_tanl.c: Likewise.
14994         * math/s_cacoshf.c: Likewise.
14995         * math/s_catan.c: Likewise.
14996         * math/s_catanf.c: Likewise.
14997         * math/s_catanh.c: Likewise.
14998         * math/s_catanhf.c: Likewise.
14999         * math/s_catanhl.c: Likewise.
15000         * math/s_catanl.c: Likewise.
15001         * math/s_ccosh.c: Likewise.
15002         * math/s_ccoshf.c: Likewise.
15003         * math/s_ccoshl.c: Likewise.
15004         * math/s_cexp.c: Likewise.
15005         * math/s_cexpf.c: Likewise.
15006         * math/s_cexpl.c: Likewise.
15007         * math/s_clog.c: Likewise.
15008         * math/s_clog10.c: Likewise.
15009         * math/s_clog10f.c: Likewise.
15010         * math/s_clog10l.c: Likewise.
15011         * math/s_clogf.c: Likewise.
15012         * math/s_clogl.c: Likewise.
15013         * math/s_csin.c: Likewise.
15014         * math/s_csinf.c: Likewise.
15015         * math/s_csinh.c: Likewise.
15016         * math/s_csinhf.c: Likewise.
15017         * math/s_csinhl.c: Likewise.
15018         * math/s_csinl.c: Likewise.
15019         * math/s_csqrt.c: Likewise.
15020         * math/s_csqrtf.c: Likewise.
15021         * math/s_csqrtl.c: Likewise.
15022         * math/s_ctan.c: Likewise.
15023         * math/s_ctanf.c: Likewise.
15024         * math/s_ctanh.c: Likewise.
15025         * math/s_ctanhf.c: Likewise.
15026         * math/s_ctanhl.c: Likewise.
15027         * math/s_ctanl.c: Likewise.
15028         * math/s_ldexp.c: Likewise.
15029         * math/s_ldexpf.c: Likewise.
15030         * math/s_ldexpl.c: Likewise.
15031         * math/s_significand.c: Likewise.
15032         * math/s_significandf.c: Likewise.
15033         * math/s_significandl.c: Likewise.
15034         * math/w_acos.c: Likewise.
15035         * math/w_acosf.c: Likewise.
15036         * math/w_acosh.c: Likewise.
15037         * math/w_acoshf.c: Likewise.
15038         * math/w_acoshl.c: Likewise.
15039         * math/w_acosl.c: Likewise.
15040         * math/w_asin.c: Likewise.
15041         * math/w_asinf.c: Likewise.
15042         * math/w_asinl.c: Likewise.
15043         * math/w_atan2.c: Likewise.
15044         * math/w_atan2f.c: Likewise.
15045         * math/w_atan2l.c: Likewise.
15046         * math/w_atanh.c: Likewise.
15047         * math/w_atanhf.c: Likewise.
15048         * math/w_atanhl.c: Likewise.
15049         * math/w_cosh.c: Likewise.
15050         * math/w_coshf.c: Likewise.
15051         * math/w_coshl.c: Likewise.
15052         * math/w_dremf.c: Likewise.
15053         * math/w_exp10.c: Likewise.
15054         * math/w_exp10f.c: Likewise.
15055         * math/w_exp10l.c: Likewise.
15056         * math/w_exp2.c: Likewise.
15057         * math/w_exp2f.c: Likewise.
15058         * math/w_fmod.c: Likewise.
15059         * math/w_fmodf.c: Likewise.
15060         * math/w_fmodl.c: Likewise.
15061         * math/w_hypot.c: Likewise.
15062         * math/w_hypotf.c: Likewise.
15063         * math/w_hypotl.c: Likewise.
15064         * math/w_j0.c: Likewise.
15065         * math/w_j0f.c: Likewise.
15066         * math/w_j0l.c: Likewise.
15067         * math/w_j1.c: Likewise.
15068         * math/w_j1f.c: Likewise.
15069         * math/w_j1l.c: Likewise.
15070         * math/w_jn.c: Likewise.
15071         * math/w_jnf.c: Likewise.
15072         * math/w_jnl.c: Likewise.
15073         * math/w_lgamma.c: Likewise.
15074         * math/w_lgamma_r.c: Likewise.
15075         * math/w_lgammaf.c: Likewise.
15076         * math/w_lgammaf_r.c: Likewise.
15077         * math/w_lgammal.c: Likewise.
15078         * math/w_lgammal_r.c: Likewise.
15079         * math/w_log.c: Likewise.
15080         * math/w_log10.c: Likewise.
15081         * math/w_log10f.c: Likewise.
15082         * math/w_log10l.c: Likewise.
15083         * math/w_log2.c: Likewise.
15084         * math/w_log2f.c: Likewise.
15085         * math/w_log2l.c: Likewise.
15086         * math/w_logf.c: Likewise.
15087         * math/w_logl.c: Likewise.
15088         * math/w_pow.c: Likewise.
15089         * math/w_powf.c: Likewise.
15090         * math/w_powl.c: Likewise.
15091         * math/w_remainder.c: Likewise.
15092         * math/w_remainderf.c: Likewise.
15093         * math/w_remainderl.c: Likewise.
15094         * math/w_scalb.c: Likewise.
15095         * math/w_scalbf.c: Likewise.
15096         * math/w_scalbl.c: Likewise.
15097         * math/w_sinh.c: Likewise.
15098         * math/w_sinhf.c: Likewise.
15099         * math/w_sinhl.c: Likewise.
15100         * math/w_sqrt.c: Likewise.
15101         * math/w_sqrtf.c: Likewise.
15102         * math/w_sqrtl.c: Likewise.
15103         * math/w_tgamma.c: Likewise.
15104         * math/w_tgammaf.c: Likewise.
15105         * math/w_tgammal.c: Likewise.
15106
15107         * po/ja.po: Update from translation team.
15108
15109 2011-09-29  Andreas Jaeger  <aj@suse.de>
15110
15111         [BZ #13179]
15112         * sunrpc/netname.c (netname2host): Fix logic.
15113
15114         [BZ #6779]
15115         [BZ #6783]
15116         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15117         correctly.
15118         * math/w_remainder.c (__remainder): Likewise.
15119         * math/w_remainderf.c (__remainderf): Likewise.
15120         * math/libm-test.inc (remainder_test): Add test cases.
15121
15122 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15123
15124         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15125         sdiv_qrnnd.
15126
15127 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15128
15129         * string/test-memcmp.c: Avoid unncessary #defines.
15130         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15131
15132 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15133
15134         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15135         Use new sse2 version for core i3 - i7 as it's faster
15136         than sse42 version.
15137         (bit_Prefer_PMINUB_for_stringop): New.
15138         * sysdeps/x86_64/rawmemchr.S: Update.
15139         Replace with faster SSE2 version.
15140         * sysdeps/x86_64/memrchr.S: New file.
15141         * sysdeps/x86_64/memchr.S: Update.
15142         Replace with faster SSE2 version.
15143
15144 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15145
15146         * elf/dl-load.c (lose): Add cast to avoid warning.
15147
15148 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15149
15150         * po/ca.po: Update from translation team.
15151
15152         * inet/getnetgrent_r.c: Hook up nscd.
15153         * nscd/Makefile (routines): Add nscd_netgroup.
15154         (nscd-modules): Add netgroupcache.
15155         (CFLAGS-netgroupcache.c): Define.
15156         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15157         (cache_search): Add const to second parameter.
15158         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15159         INNETGR.
15160         (dbs): Add netgrdb entry.
15161         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15162         (verify_persistent_db): Handle netgrdb.
15163         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15164         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15165         GETFDNETGR.
15166         (netgroup_response_header): Define.
15167         (innetgroup_response_header): Define.
15168         (datahead): Add netgroup_response_header and innetgroup_response_header
15169         elements.
15170         * nscd/nscd.conf: Add entries for netgroup cache.
15171         * nscd/nscd.h (dbtype): Add netgrdb.
15172         (_PATH_NSCD_NETGROUP_DB): Define.
15173         (netgroup_iov_disabled): Declare.
15174         (xmalloc, xcalloc, xrealloc): Move declarations here.
15175         (cache_search): Adjust prototype.
15176         Add netgroup-related prototypes.
15177         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15178         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15179         (__nscd_innetgr): Declare.
15180         * nscd/selinux.c (perms): Use access_vector_t as element type and
15181         add netgroup-related initializers.
15182         * nscd/netgroupcache.c: New file.
15183         * nscd/nscd_netgroup.c: New file.
15184         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15185         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15186         For four parameters use innetgr.
15187         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15188         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15189         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15190         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15191
15192         * nscd/connections.c (register_traced_file): Don't register file
15193         for disabled databases.
15194
15195 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15196
15197         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15198
15199         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15200         from tree and freeing node.
15201
15202 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15203
15204         * nss/nsswitch.c (__nss_database_lookup): Handle
15205         nss_parse_service_list out of memory case.
15206
15207 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15208
15209         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15210         out of memory case.
15211
15212 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15213
15214         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15215         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15216         pass it down.
15217         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15218         elf_machine_rela, elf_machine_lazy_rel.
15219         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15220         (ELF_DYNAMIC_DO_REL): Likewise.
15221         (ELF_DYNAMIC_DO_RELA): Likewise.
15222         (ELF_DYNAMIC_RELOCATE): Likewise.
15223         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15224         to ELF_DYNAMIC_DO_REL.
15225         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15226         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15227         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15228         elf_machine_rela.
15229         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15230         skip_ifunc, don't call ifunc function if non-zero.
15231         (elf_machine_rela): Likewise.
15232         (elf_machine_lazy_rel): Likewise.
15233         (elf_machine_lazy_rela): Likewise.
15234         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15235         (elf_machine_lazy_rel): Likewise.
15236         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15237         Likewise.
15238         (elf_machine_lazy_rel): Likewise.
15239         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15240         Likewise.
15241         (elf_machine_lazy_rel): Likewise.
15242         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15243         (elf_machine_lazy_rel): Likewise.
15244         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15245         (elf_machine_lazy_rel): Likewise.
15246         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15247         (elf_machine_lazy_rel): Likewise.
15248         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15249         (elf_machine_lazy_rel): Likewise.
15250         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15251         (elf_machine_lazy_rel): Likewise.
15252         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15253         (elf_machine_lazy_rel): Likewise.
15254
15255 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15256
15257         * nss/nss_files/files-init.c (_nss_files_init): Use static
15258         initialization for all the *_traced_file variables.
15259
15260 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15261
15262         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15263
15264 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15265
15266         [BZ #13226]
15267         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15268
15269 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15270
15271         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15272         Reread the line before reparsing it.
15273
15274 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15275
15276         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15277
15278 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15279             Maxim Kuvyrkov  <maxim@codesourcery.com>
15280             Joseph Myers  <joseph@codesourcery.com>
15281
15282         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15283         if needed for __stack_chk_guard.
15284
15285 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15286
15287         * sysdeps/posix/spawni.c (script_execute): Always define it.
15288         It will be optimized away if unused.
15289         (maybe_script_execute): New function.
15290         (__spawni): Call it.
15291
15292         * Makerules: Don't include tls.make.
15293         (config-tls): Always set to thread.
15294         * tls.make.c: File removed.
15295
15296 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15297
15298         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15299         * config.make.in (CPPFLAGS-config): New substituted variable.
15300
15301 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15302
15303         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15304
15305         [BZ #13192]
15306         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15307         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15308
15309 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15310
15311         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15312         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15313         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15314         (CALL_FAIL): Likewise.
15315         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15316         (CALL_FAIL): Macro removed.
15317         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15318
15319 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15320
15321         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15322         for __FINITE_MATH_ONLY__ == 1.
15323
15324 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15325
15326         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15327         __ieee754_sqrt instead of sqrt.
15328         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15329         __ieee754_sqrtf instead of sqrtf.
15330         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15331         __floorf instead of floorf.
15332         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15333         __floorf, __truncf instead of floorf, truncf.
15334
15335 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15336
15337         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15338
15339         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15340         __extern_always_inline.
15341         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15342         32-bit.
15343
15344 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15345
15346         * elf/rtld.c (dl_main): Also relocate in dependency order when
15347         doing symbol dependency testing.
15348
15349 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15350
15351         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15352         Always define `refsym'.
15353
15354 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15355
15356         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15357         (__FD_ELT): Renamed from __FDELT.
15358         * misc/bits/select2.h (__FD_ELT): Likewise.
15359         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15360         __FD_MASK instead of __FDELT, __FDMASK.
15361         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15362         Likewise.
15363         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15364         Likewise.
15365
15366         * elf/Makefile (gen-ldd): Fix pattern.
15367
15368         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15369         (init_tls): Likewise.
15370
15371 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15372
15373         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15374
15375 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15376
15377         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15378         `struct cmsghdr *' instead of `void *'.
15379         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15380         Likewise.
15381
15382 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15383
15384         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15385         if non-absolute.
15386         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15387         ldd_rewrite_script.
15388
15389 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15390
15391         * configure.in: Remove --with-tls option.
15392         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15393         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15394         out in case it is missing.
15395         * sysdeps/ia64/elf/configure.in: Likewise.
15396         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15397         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15398         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15399         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15400         * sysdeps/sh/elf/configure.in: Likewise.
15401         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15402         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15403         * sysdeps/x86_64/elf/configure.in: Likewise.
15404         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15405         * sysdeps/mach/hurd/tls.h: Likewise.
15406
15407         [BZ #13067]
15408         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15409
15410         [BZ #13090]
15411         * configure.in: Fix use of AC_INIT.
15412
15413         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15414
15415 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15416
15417         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15418         __set_errno.
15419         * malloc/hooks.c: Likewise.
15420
15421         [BZ #11929]
15422         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15423         variables statically.
15424         (narenas): Initialize.
15425         (list_lock): Initialize.
15426         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15427         initializtion of main_arena and list_lock.  Small cleanups.
15428         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15429         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15430         Add initializers to main_arena and mp_.
15431         (malloc_state): Remove pagesize member.  Change all users to use
15432         GLRO(dl_pagesize).
15433
15434         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15435         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15436         is always initialized.
15437
15438         * malloc/malloc.c: Removed unused configurations and dead code.
15439         * malloc/arena.c: Likewise.
15440         * malloc/hooks.c: Likewise.
15441         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15442
15443         * include/tls.h: Removed.  USE___THREAD must always be defined.
15444         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15445         * elf/dl-libc.c: Likewise.
15446         * elf/dl-tsd.c: Likewise.
15447         * include/errno.h: Likewise.
15448         * include/netdb.h: Likewise.
15449         * include/resolv.h: Likewise.
15450         * inet/herrno-loc.c: Likewise.
15451         * inet/herrno.c: Likewise.
15452         * malloc/arena.c: Likewise.
15453         * malloc/hooks.c: Likewise.
15454         * malloc/malloc.c: Likewise.
15455         * resolv/res-state.c: Likewise.
15456         * resolv/res_libc.c: Likewise.
15457         * sysdeps/i386/dl-machine.h: Likewise.
15458         * sysdeps/ia64/dl-machine.h: Likewise.
15459         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15460         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15461         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15462         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15463         * sysdeps/sh/dl-machine.h: Likewise.
15464         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15465         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15466         * sysdeps/unix/i386/sysdep.S: Likewise.
15467         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15468         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15469         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15470         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15471         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15472         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15473         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15474         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15475         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15476         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15477         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15478         * sysdeps/x86_64/dl-machine.h: Likewise.
15479         * tls.make.c: Likewise.
15480
15481         * configure.in: Remove --with-__thread option.  Make tests for
15482         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15483         tls_model attribute fail if no support is available.  Remove
15484         USE_IN_LIBIO.
15485         * Makeconfig: Adjust for dropped configure option.  All features are
15486         now mandatory.
15487         * Makerules: Likewise.
15488         * Versions.def: Likewise.
15489         * argp/argp-fmtstream.c: Likewise.
15490         * argp/argp-fmtstream.h: Likewise.
15491         * argp/argp-help.c: Likewise.
15492         * assert/assert.c: Likewise.
15493         * config.h.in: Likewise.
15494         * config.make.in: Likewise.
15495         * configure: Likewise.
15496         * configure.in: Likewise.
15497         * csu/Versions: Likewise.
15498         * csu/init.c: Likewise.
15499         * elf/tst-audit2.c: Likewise.
15500         * elf/tst-tls10.c: Likewise.
15501         * elf/tst-tls10.h: Likewise.
15502         * elf/tst-tls11.c: Likewise.
15503         * elf/tst-tls12.c: Likewise.
15504         * elf/tst-tls14.c: Likewise.
15505         * elf/tst-tlsmod11.c: Likewise.
15506         * elf/tst-tlsmod12.c: Likewise.
15507         * elf/tst-tlsmod13.c: Likewise.
15508         * elf/tst-tlsmod13a.c: Likewise.
15509         * elf/tst-tlsmod14a.c: Likewise.
15510         * elf/tst-tlsmod15b.c: Likewise.
15511         * elf/tst-tlsmod16a.c: Likewise.
15512         * elf/tst-tlsmod16b.c: Likewise.
15513         * elf/tst-tlsmod7.c: Likewise.
15514         * elf/tst-tlsmod8.c: Likewise.
15515         * elf/tst-tlsmod9.c: Likewise.
15516         * gmon/gmon.c: Likewise.
15517         * grp/fgetgrent_r.c: Likewise.
15518         * grp/putgrent.c: Likewise.
15519         * hurd/fopenport.c: Likewise.
15520         * include/libc-symbols.h: Likewise.
15521         * include/tls.h: Likewise.
15522         * intl/gettextP.h: Likewise.
15523         * intl/loadinfo.h: Likewise.
15524         * locale/global-locale.c: Likewise.
15525         * locale/localeinfo.h: Likewise.
15526         * mach/devstream.c: Likewise.
15527         * malloc/arena.c: Likewise.
15528         * malloc/set-freeres.c: Likewise.
15529         * misc/err.c: Likewise.
15530         * misc/getttyent.c: Likewise.
15531         * misc/mntent_r.c: Likewise.
15532         * posix/getopt.c: Likewise.
15533         * posix/wordexp.c: Likewise.
15534         * pwd/fgetpwent_r.c: Likewise.
15535         * resolv/Versions: Likewise.
15536         * resolv/res_hconf.c: Likewise.
15537         * shadow/fgetspent_r.c: Likewise.
15538         * shadow/putspent.c: Likewise.
15539         * stdio-common/printf_fphex.c: Likewise.
15540         * stdio-common/tmpfile.c: Likewise.
15541         * stdlib/abort.c: Likewise.
15542         * stdlib/fmtmsg.c: Likewise.
15543         * sunrpc/auth_unix.c: Likewise.
15544         * sunrpc/clnt_perr.c: Likewise.
15545         * sunrpc/clnt_tcp.c: Likewise.
15546         * sunrpc/clnt_udp.c: Likewise.
15547         * sunrpc/clnt_unix.c: Likewise.
15548         * sunrpc/openchild.c: Likewise.
15549         * sunrpc/svc_simple.c: Likewise.
15550         * sunrpc/svc_tcp.c: Likewise.
15551         * sunrpc/svc_udp.c: Likewise.
15552         * sunrpc/svc_unix.c: Likewise.
15553         * sunrpc/xdr.c: Likewise.
15554         * sunrpc/xdr_array.c: Likewise.
15555         * sunrpc/xdr_rec.c: Likewise.
15556         * sunrpc/xdr_ref.c: Likewise.
15557         * sunrpc/xdr_stdio.c: Likewise.
15558
15559 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15560
15561         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15562
15563 2011-07-03  Andreas Jaeger  <aj@suse.de>
15564
15565         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15566         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15567         regenerate with gen-libm-tests.pl.
15568
15569 2010-05-12  Petr Baudis  <pasky@suse.cz>
15570
15571         [BZ #11589]
15572         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15573         around j0() zero points by switching to j1().
15574         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15575         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15576         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15577         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15578
15579 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15580
15581         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15582         instead of 0.
15583         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15584         instead of 0.                              .
15585         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15586         Patch in part by Pavel Roskin <proski@gnu.org>.
15587
15588         [BZ #13138]
15589         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15590         realloc.
15591         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15592         Free memory block if necessary.
15593
15594         [BZ #12847]
15595         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15596         be NULL.  Don't lock in this case.
15597
15598 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15599
15600         * elf/elf.h (ELFOSABI_GNU): New macro.
15601         (ELFOSABI_LINUX): Define to that.
15602
15603 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15604
15605         * string/strncat.c (strncat): Undef the symbol in case it has been
15606         defined in bits/string.h.
15607
15608 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15609
15610         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15611
15612         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15613         link map.
15614
15615 2011-08-17  Andreas Jaeger  <aj@suse.de>
15616
15617         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15618
15619 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15620             Ian Lance Taylor  <iant@google.com>
15621
15622         * math/libm-test.inc (lround_test): New testcase.
15623         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15624
15625 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15626
15627         * Makefile: Remove support for automatic cvs check-ins.
15628         * Makerules: Likewise.
15629         * config.make.in: Likewise.
15630         * configure.in: Likewise.
15631         * intl/Makefile: Likewise.
15632         * locale/Makefile: Likewise.
15633         * po/Makefile: Likewise.
15634         * posix/Makefile: Likewise.
15635         * sysdeps/gnu/Makefile: Likewise.
15636         * sysdeps/mach/hurd/Makefile: Likewise.
15637         * sysdeps/sparc/sparc32/Makefile: Likewise.
15638
15639         [BZ #13118]
15640         * posix/Makefile (bug-regex32-ENV): Define.
15641         Patch by John Stanley <jpsinthemix@verizon.net>.
15642
15643         * misc/Makefile (headers): Add bits/select2.h.
15644         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15645         * misc/bits/select2.h: New file.
15646         * include/bits/select2.h: New file.
15647         * debug/Makefile (routines): Add fdelt_chk.
15648         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15649         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15650         FD_ISSET.
15651         * debug/fdelt_chk.c: New file.
15652
15653         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15654         * wcsmbs/test-wmemcmp.c: Likewise.
15655         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15656         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15657
15658 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15659
15660         * string/Makefile (strop-tests): Add memcmp.
15661         * string/test-wmemcmp.c: New file.
15662         * string/test-memcmp.c: Add wmemcmp support.
15663
15664 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15665
15666         [BZ #13153]
15667         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15668         2011-07-19 change.
15669
15670         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15671         garbage value in a __mach_port_mod_refs call in the cases of the
15672         task-self and thread-self ports.
15673
15674 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15675
15676         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15677
15678 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15679
15680         * elf/dl-load.c (lose): Check for non-null L.
15681
15682 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15683
15684         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15685
15686         * elf/dl-libc.c (dlerror_run): Pass back error code from
15687         dl_catch_error.
15688
15689         [BZ #13123]
15690         * elf/dl-load.c (lose): Free l_origin if it is valid.
15691
15692         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15693         names.
15694         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15695         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15696         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15697         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15698         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15699         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15700
15701 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15702
15703         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15704         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15705         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15706         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15707         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15708         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15709         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15710         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15711         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15712         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15713
15714 2011-08-15  Alan Modra  <amodra@gmail.com>
15715
15716         [BZ #13092]
15717         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15718         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15719         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15720         ppc_mcount to static-only-routines.
15721         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15722         __mcount_internal.
15723         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15724         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15725
15726 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15727
15728         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15729         for finite and infinity parameters.
15730
15731 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15732
15733         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15734         and add nop instructions for throughput optimization.
15735         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15736
15737 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15738
15739         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15740         aligned copy for power7 with vector-scalar instructions.
15741         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15742
15743 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15744
15745         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15746         AVX check.
15747
15748 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15749
15750         [BZ #13144]
15751         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15752         last change.
15753
15754 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15755
15756         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15757         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15758         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15759         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15760         clock_gettime.
15761
15762 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15763
15764         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15765         Forgot to demangle the pointer.
15766
15767         * sysdeps/i386/sysdep.h: Define atom_text_section.
15768         * sysdeps/x86_64/sysdep.h: Likewise.
15769         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15770         section with atom_text_section.
15771         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15772         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15773         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15774         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15775         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15776
15777         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15778         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15779         already be defined.  Change to take two parameters and don't assign
15780         result to variable.  Adjust all users.
15781         Define INTERNAL_GETTIME if not already defined.
15782         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15783         call.
15784         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15785         HAVE_CLOCK_GETTIME_VSYSCALL.
15786         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15787
15788         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15789         gettimeofday vsyscall, just use time.
15790
15791 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15792
15793         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15794         <errno.h>.
15795
15796 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15797
15798         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15799         syscall on x86-64.
15800         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15801         syscall.
15802         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15803         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15804         syscall if possible.
15805
15806 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15807
15808         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15809         e_ident.  Don't pass to find_mapsXX.
15810         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15811
15812 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15813
15814         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15815         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15816         * sysdeps/x86_64/multiarch/strchr.S: Update.
15817         Check bit_slow_BSF bit.
15818         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15819         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15820         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15821
15822 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15823
15824         [BZ #13134]
15825         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15826         before glibc 2.15.
15827         (tryshell): Define.
15828         (__spawni): Change last parameter to be flag.  Test
15829         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15830         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15831         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15832         * posix/spawni.c: Likewise.
15833         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15834         * posix/spawnp.c: Likewise.  Change normal version to use
15835         SPAWN_XFLAGS_USE_PATH.
15836         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15837         SPAWN_XFLAGS_TRY_SHELL.
15838
15839         [BZ #13150]
15840         * posix/glob.h: Remove gcc 1.x support.
15841
15842         [BZ #13068]
15843         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15844
15845 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15846
15847         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15848         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15849         strrchr-sse2-bsf
15850         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15851         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15852         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15853         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15854         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15855         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15856
15857 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15858
15859         * sysdeps/x86_64/wcscmp.S: New file.
15860
15861         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15862         wcscmp-c wcscmp-sse2
15863         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15864         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15865         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15866         * wcsmbs/wcscmp.c: Allow renaming.
15867
15868 2011-09-05  David S. Miller  <davem@davemloft.net>
15869
15870         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15871         stack slot, rather than the struct return pointer slot.
15872         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15873         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15874         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15875         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15876
15877 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15878
15879         * po/ja.po: Update from translation team.
15880
15881         [BZ #13144]
15882         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15883         kernel in 64-bit binaries.
15884
15885 2011-09-01  David S. Miller  <davem@davemloft.net>
15886
15887         * elf/elf.h (HWCAP_SPARC_*): Move to..
15888         * sysdeps/sparc/sysdep.h: this new file and add new values.
15889         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15890         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15891         _DL_HWCAP_COUNT to 24.
15892         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15893         entries.
15894         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15895         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15896         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15897         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15898         instead of magic constants.
15899         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15900
15901 2011-08-31  David S. Miller  <davem@davemloft.net>
15902
15903         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15904         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15905         Reimplement to do errno handling inline.
15906         (SYSCALL_ERROR_HANDLER): New macro.
15907         (__SYSCALL_STRING): Do not do errno handling in asm.
15908         (__CLONE_SYSCALL_STRING): Delete.
15909         (__INTERNAL_SYSCALL_STRING): Delete.
15910         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15911         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15912         (PSEUDO): Reimplement to do errno handling inline.
15913         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15914         (SYSCALL_ERROR_HANDLER): New macro.
15915         (__SYSCALL_STRING): Do not do errno handling in asm.
15916         (__CLONE_SYSCALL_STRING): Delete.
15917         (__INTERNAL_SYSCALL_STRING): Delete.
15918         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15919         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15920         i386.
15921         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15922         (inline_syscall*): Add 'err' argument.
15923         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15924         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15925         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15926         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15927
15928         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15929         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15930
15931 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15932
15933         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15934
15935 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15936
15937         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15938         directive.
15939
15940 2011-08-24  David S. Miller  <davem@davemloft.net>
15941
15942         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15943
15944 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15945
15946         * elf/Makefile: Add rules to build and run unload8 test.
15947         * elf/unload8.c: New file.
15948         * elf/unload8mod1.c: New file.
15949         * elf/unload8mod1x.c: New file.
15950         * elf/unload8mod2.c: New file.
15951         * elf/unload8mod3.c: New file.
15952
15953         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15954         it wasn't used.
15955
15956 2011-08-23  David S. Miller  <davem@davemloft.net>
15957
15958         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15959         subtract stack bias.
15960         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15961         %sp not %fp in calculations.
15962         (_JMPBUF_UNWINDS_ADJ): Likewise.
15963
15964         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15965         (aio_suspend): Call it to force an exception region around the
15966         AIO_MISC_WAIT() invocation.
15967
15968 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15969
15970         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15971         backslash.
15972
15973 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15974
15975         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15976         protection macro.
15977         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15978         and <dl-machine.h>.
15979         (Elf64_FuncDesc): Remove.
15980
15981 2011-08-22  David S. Miller  <davem@davemloft.net>
15982
15983         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15984         sigaltstack check, add missing cfi directives.
15985         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15986         missing cfi directives, and sigaltstack handling.
15987
15988 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15989
15990         [BZ #11724]
15991         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15992         object is seen twice.
15993         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15994
15995         * elf/Makefile (distribute): Add tst-initorder2.c.
15996         (tests): Add tst-initorder2.
15997         (modules-names): Add tst-initorder2a tst-initorder2b
15998         tst-initorder2c tst-initorder2d.  Add rules to build them.
15999         ($(objpfx)tst-initorder2.out): New rule.
16000         * elf/tst-initorder2.c: New file.
16001         * elf/tst-initorder2.exp: New file.
16002
16003 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16004
16005         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16006
16007         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16008         dependencies back to end of function.
16009
16010         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16011         $(elfobjdir)/ld.so.
16012
16013 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16014
16015         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16016         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16017         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16018         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16019         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16020         of __vdso_gettimeofday.
16021         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16022         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16023         attribute_hidden.
16024         (_libc_vdso_platform_setup): Remove initialization of
16025         __vdso_gettimeofday and __vdso_time.
16026
16027 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16028
16029         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16030         and fgetc_unlocked.
16031         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16032         getc_unlocked.
16033
16034         * elf/dl-open.c (add_to_global): Report additions to the global scope
16035         for LD_DEBUG=scopes.
16036         (dl_open_worker): Also print scope of newly loaded dependencies.
16037         (_dl_show_scope): Indicate if there is no scope.
16038
16039         [BZ #13114]
16040         * stdio-common/Makefile (tests): Add bug24.
16041         * stdio-common/bug24.c: New file.
16042
16043 2011-08-19  Andreas Jaeger  <aj@suse.de>
16044
16045         [BZ #13114]
16046         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16047         non-existant file when using close-on-exec mode.
16048
16049 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16050
16051         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16052         the very first instruction.
16053
16054         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16055         the CFI state in the end.
16056         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16057         inclusion of dl-trampoline.h.
16058         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16059
16060 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16061
16062         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16063         expectations for long double.
16064
16065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16066         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16067
16068 2011-08-14  David S. Miller  <davem@davemloft.net>
16069
16070         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16071         artificual limit depends upon the system page size.
16072
16073 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16074
16075         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16076         * resolv/Makefile: Define CFLAGS-libresolv.
16077
16078 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16079
16080         * nss/makedb.c (compute_tables): Make variables used in nested
16081         function static.
16082
16083 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16084
16085         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16086         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16087         if buffer was too small.
16088
16089         * elf/pldd.c (main): Attach to all threads in the process.
16090         Rewrite /proc handling to use *at functions.
16091
16092 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16093
16094         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16095         specifies first scope to show.
16096         (dl_open_worker): Update callers.  Move printing scope of new
16097         object to before the relocation.
16098         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16099         * sysdeps/generic/ldsodefs.h: Update declaration.
16100
16101         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16102         string for the scope number.
16103
16104 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16105
16106         * nscd/servicescache.c (cache_addserv): Make sure written is always
16107         initialized.
16108
16109 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16110
16111         * sysdeps/i386/i486/bits/atomic.h
16112         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16113         statement expression, so as to suppress "set but not used" warning.
16114         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16115
16116         * string/strncat.c (STRNCAT): Use prototype definition.
16117
16118         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16119         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16120         -Iprograms here.
16121         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16122         (localedef-modules): Add localedef.
16123         (locale-modules): Add locale.
16124
16125         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16126         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16127         to avoid a warning.
16128
16129 2011-08-14  David S. Miller  <davem@davemloft.net>
16130
16131         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16132         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16133
16134 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16135
16136         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16137         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16138         * elf/rtld.c (dl_main): Set l_name of vDSO.
16139         Call _dl_show_scope when DL_DEBUG_SCOPES.
16140         (process_dl_debug): Recognize scopes flag and also set it for all.
16141         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16142         Declare _dl_show_scope.
16143
16144         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16145         (do_dlopen): Pass caller_dlopen to dl_open.
16146         (__libc_dlopen_mode): Initialize caller_dlopen.
16147
16148         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16149         of libc.  Make tolower call locale-independent.  Optimize a bit by
16150         using isdigit instead of isalnum.
16151         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16152
16153 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16154
16155         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16156         was a dependency or dynamically loaded.
16157
16158 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16159
16160         * intl/l10nflist.c: Allow architecture-specific pop function.
16161         * sysdeps/x86_64/l10nflist.c: New file.
16162
16163         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16164         classification.
16165
16166 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16167
16168         * include/dirent.h: Add libc_hidden_proto for scandirat and
16169         scandirat64.  Don't declare __scandirat64.
16170         * dirent/scandirat.c: Add libc_hidden_def.
16171         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16172         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16173
16174 2011-08-10  David S. Miller  <davem@davemloft.net>
16175
16176         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16177         enum.
16178         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16179         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16180         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16181
16182 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16183
16184         * Versions.def [libc]: Add GLIBC_2.15.
16185         * dirent/Makefile (routines): Add scandirat and scandirat64.
16186         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16187         GLIBC_2.15.
16188         * dirent/dirent.h: Declare scandirat and scandirat64.
16189         * dirent/scandirat.c: New file.
16190         * dirent/scandirat64.c: New file.
16191         * sysdeps/wordsize-64/scandirat.c: New file.
16192         * sysdeps/wordsize-64/scandirat64.c: New file.
16193         * dirent/opendir.c: Define opendirat.
16194         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16195         using scandirat.
16196         * dirent/scandir64.c: Adjust for scandir.c change.
16197         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16198         __scandirat64, and __scandir_cancel_handler.
16199         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16200         additional parameter and use openat instead of open (outside of ld.so).
16201         Add new __opendir as wrapper around __opendirat.
16202         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16203         here without requiring old scandirat implementation.
16204
16205 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16206
16207         * dirent/scandir.c (cancel_handler): Renamed to
16208         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16209         defined.  Adjust users.
16210         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16211         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16212
16213 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16214
16215         * string/test-string.h (IMPL): Use __STRING to expand name and then
16216         stringify it.
16217
16218         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16219         of cleanups.
16220
16221 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16222
16223         * string/Makefile: Update.
16224         (strop-tests): Append strncat.
16225         * string/test-wcscmp.c: New file.
16226         New comprehensive test for wcscmp.
16227         * string/test-strcmp.c: Update.
16228         (WIDE): New define.
16229
16230 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16231
16232         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16233         line.
16234
16235 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16236
16237         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16238         encoding to ACE if AI_IDN.
16239
16240 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16241
16242         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16243         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16244
16245 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16246
16247         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16248         Fix overflow bug in strncat.
16249         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16250
16251         * string/test-strncat.c: Update.
16252         Add new tests for checking overflow bugs.
16253
16254 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16255
16256         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16257         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16258         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16259         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16260         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16261         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16262         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16263         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16264         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16265
16266         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16267         (USE_AS_STRCAT): Define.
16268         Add strcat and strncat support.
16269         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16270
16271 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16272
16273         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16274         __n bigger than INT_MAX+1.
16275         (__strncmp_g): Likewise.
16276
16277 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16278
16279         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16280         * libio/stido.h: Likewise.
16281
16282         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16283         (AF_NFC): Define.
16284         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16285         (AF_NFC): Define.
16286
16287         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16288         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16289         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16290         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16291         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16292
16293         [BZ #13021]
16294         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16295         installed.
16296
16297         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16298         typo.
16299         (_dl_x86_64_save_sse): Likewise.
16300
16301 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16302
16303         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16304         OSXSAVE.
16305         (_dl_x86_64_save_sse): Likewise.
16306
16307         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16308
16309         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16310
16311 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16312
16313         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16314         change.
16315         (_dl_x86_64_save_sse): Use correct AVX check.
16316
16317 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16318
16319         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16320         bug in strncpy/strncat.
16321         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16322
16323 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16324
16325         * string/tester.c (test_strcat): Add tests for different alignments
16326         of source and destination.
16327         (test_strncat): Likewise.
16328
16329 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16330
16331         [BZ #12852]
16332         * posix/glob.c (glob): Check passed in values before using them in
16333         expressions to avoid some overflows.
16334         (glob_in_dir): Likewise.
16335
16336         [BZ #13007]
16337         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16338         check for AVX enablement so that we don't crash with old kernels and
16339         new hardware.
16340         * elf/tst-audit4.c: Add same checks here.
16341         * elf/tst-audit6.c: Likewise.
16342
16343         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16344
16345 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16346
16347         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16348
16349 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16350
16351         * po/cs.po: Update from translation team.
16352         * po/bg.po: Likewise.
16353
16354 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16355
16356         * misc/sys/cdefs.h: Add support for const attribute.
16357         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16358         to gnu_dev_{major,minor,makedev} functions.
16359
16360 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16361
16362         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16363
16364 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16365
16366         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16367         strlen results.
16368
16369 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16370
16371         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16372         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16373         register in order to avoid conflicts with the soft frame pointer
16374         being held in r11 when necessary.
16375         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16376         (INTERNAL_VSYSCALL_NCS): Likewise.
16377
16378 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16379
16380         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16381         * elf/dl-fini.c (_dl_fini): Adjust caller.
16382         * elf/dl-close.c (_dl_close_worker): Likewise.
16383         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16384
16385 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16386
16387         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16388         "aux_cache->nlibs < 0".
16389
16390         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16391         in the reload-count case.
16392
16393 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16394
16395         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16396         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16397         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16398         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16399         * sysdeps/x86_64/multiarch/strcat.S: New file.
16400         * sysdeps/x86_64/multiarch/strncat.S: New file.
16401         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16402         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16403         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16404         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16405         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16406         (USE_AS_STRCAT): Define.
16407         Add strcat and strncat support.
16408         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16409         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16410         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16411         * string/strncat.c: Update.
16412         (USE_AS_STRNCAT): Define.
16413         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16414         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16415         and i7.
16416         * sysdeps/x86_64/multiarch/init-arch.h
16417         (bit_Prefer_PMINUB_for_stringop): New.
16418         (index_Prefer_PMINUB_for_stringop): Likewise.
16419         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16420         bit_Prefer_PMINUB_for_stringop.
16421
16422 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16423
16424         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16425         buffer64.
16426         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16427         of casting of buffer.
16428         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16429         buffer32 and buffer64.
16430         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16431         writes instead of casting of buffer.
16432         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16433         buffer32.
16434         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16435         casting of buffer.
16436
16437 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16438
16439         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16440
16441 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16442
16443         * nscd/nscd.c (termination_handler): Don't do anything for a database
16444         if it has not yet been initialized.
16445
16446 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16447
16448         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16449
16450 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16451
16452         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16453
16454 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16455
16456         * po/nl.po: Update from translation team.
16457         * po/sv.po: Likewise.
16458
16459 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16460
16461         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16462         now disallowed by GCC.
16463
16464         * configure.in (use-default-link): Default to yes if a test -shared
16465         link meets our qualifications.
16466         * configure: Regenerated.
16467
16468         * config.make.in (output-format): New variable.
16469         * configure.in: Check for ld --print-output-format support.
16470         * configure: Regenerated.
16471         * Makerules ($(common-objpfx)format.lds)
16472         [$(output-format) != unknown]: Just use $(output-format),
16473         instead of the linker-script munging.
16474
16475 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16476
16477         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16478         of $(common-objpfx)shlib.lds.
16479         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16480
16481         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16482         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16483
16484         * configure.in (-z relro check): Adjust test code to add a large
16485         writable data section after it.
16486         * configure: Regenerated.
16487
16488 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16489
16490         * configure.in (-z relro check): Fix test code to make the variable
16491         truly const.
16492         * configure: Regenerated.
16493
16494 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16495
16496         * nscd/nscd.h (struct traced_file): Define.
16497         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16498         elements.  Add traced_files.
16499         (inotify_fd): Declare.
16500         (register_traced_file): Declare.
16501         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16502         (inotify_fd): Export.
16503         (resolv_conf_descr): Remove.
16504         (nscd_init): Move inotify descriptor creation to main.
16505         Don't register files for notification here.
16506         (register_traced_file): New function.
16507         (invalidate_cache): Don't use reset_res to determine whether to call
16508         res_init, go through the list of registered files.
16509         (main_loop_poll): The inotify descriptors are now stored in the
16510         structures for the traced files.
16511         (main_loop_epoll): Likewise
16512         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16513         to __nss_disable_nscd.
16514         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16515         for a database anymore.  Check the records for all the registered
16516         files instead.
16517         * nss/Makefile (libnss_files-routines): Add files-init.
16518         (libnss_db-routines): Add db-init.
16519         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16520         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16521         * nss/nss_db/db-init.c: New file.
16522         * nss/nss_files/files-init.c: New file.
16523         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16524         __nss_lookup_function.
16525         (__nss_lookup_function): Call nss_load_library.
16526         (nss_load_all_libraries): New function.
16527         (__nss_disable_nscd): Take parameter with callback function for files
16528         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16529         used for the cached services.
16530         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16531         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16532         options for features to all the files in nscd.
16533
16534         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16535
16536 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16537
16538         * csu/elf-init.c (__libc_csu_init): Comment typo.
16539
16540 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16541
16542         * po/pl.po: Update from translation team.
16543         * po/ja.po: Likewise.
16544         * po/ru.po: Likewise.
16545         * po/ko.po: Likewise.
16546         * po/fr.po: Likewise.
16547
16548 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16549
16550         * configure.in (.ctors/.dtors header and trailer check):
16551         Use an empirical test on a built program.
16552         * configure: Regenerated.
16553
16554         * configure.in (-z relro check): Use an empirical test on a built DSO.
16555         Detect, but do not require, on ia64.
16556         * configure: Regenerated.
16557
16558         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16559         Update tests that use readelf to use $READELF instead.
16560         * configure: Regenerated.
16561
16562 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16563
16564         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16565         if the result is not used.
16566
16567 2011-07-05  Andreas Jaeger  <aj@suse.de>
16568
16569         [BZ#9696]
16570         * stdlib/tst-strtod.c: Add testcase.
16571
16572 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16573
16574         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16575         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16576         The latter has a higher limit.  Take additional parameter to pass to
16577         the new function.
16578         (__pathconf): Pass file to __statfs_link_max.
16579         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16580         __statfs_link_max.
16581         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16582         __statfs_link_max.
16583
16584         [BZ #12868]
16585         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16586         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16587         Handle Lustre.
16588         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16589         (__statfs_filesize_max): Likewise.
16590         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16591
16592 2011-07-05  Andreas Jaeger  <aj@suse.de>
16593
16594         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16595
16596 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16597
16598         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16599         `status' variable.
16600         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16601         Likewise.
16602
16603 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16604
16605         * Makefile (strop-tests): Add strncat.
16606         * string/test-strncat.c: New file.
16607
16608 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16609
16610         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16611
16612 2011-06-21  Andreas Jaeger  <aj@suse.de>
16613
16614         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16615         Copy rule from iconvdata/Makefile.
16616
16617 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16618
16619         [BZ #12922]
16620         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16621         but no long options are defined, just return 'W'.
16622
16623 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16624
16625         [BZ #9696]
16626         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16627
16628 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16629
16630         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16631         netgroups to read.
16632         (innetgr): Likewise.
16633
16634 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16635
16636         * config.make.in (install_root): Default to $(DESTDIR).
16637
16638 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16639
16640         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16641
16642 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16643
16644         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16645
16646         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16647         containing directory rather than embedding absolute directory names.
16648
16649         * scripts/check-local-headers.sh: Rewritten using awk.
16650         Match by word, not by line.  Print error messages for matches.
16651         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16652
16653         * Makerules [shlib-lds-flags empty]:
16654         ($(common-objpfx)libc_pic.opts): New target.
16655         ($(common-objpfx)libc_pic.os.clean): New target.
16656         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16657
16658         * config.make.in (OBJCOPY): New variable.
16659         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16660         * configure: Regenerated.
16661
16662         * config.make.in (use-default-link): New variable.
16663         * configure.in (use_default_link): Grok --with-default-link to set it.
16664         * configure: Regenerated.
16665         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16666         (shlib-lds, shlib-lds-flags): Define to empty.
16667
16668         * Makerules (shlib-lds): New variable.
16669         (shlib-lds-flags): New variable.
16670         (build-shlib, build-moduile, build-module-asneeded): Use it.
16671         ($(common-objpfx)libc.so): Use $(shlib-lds).
16672         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16673         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16674
16675         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16676         DT_FLAGS/DT_FLAGS_1 with zero flags.
16677
16678         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16679         linker script munging.
16680
16681 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16682
16683         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16684         as 128-bit value.
16685         * crypt/sha512.c (sha512_process_block): Perform total addition using
16686         128-bit if possible.
16687         (__sha512_finish_ctx): Likewise.
16688         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16689         as 64-bit value.
16690         * crypt/sha256.c (SWAP64): Define.
16691         (sha256_process_block): Perform total addition using 64-bit if
16692         possible.
16693         (__sha256_finish_ctx): Likewise.
16694
16695 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16696
16697         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16698         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16699         * nscd/hstcache.c (cache_addhst): Likewise.
16700         * nscd/grpcache.c (cache_addgr): Likewise.
16701         * nscd/aicache.c (addhstaiX): Likewise
16702         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16703
16704 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16705
16706         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16707         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16708         * nscd/hstcache.c (cache_addhst): Likewise.
16709         * nscd/grpcache.c (cache_addgr): Likewise.
16710         * nscd/aicache.c (addhstaiX): Likewise
16711
16712 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16713
16714         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16715         domain only when needed.
16716
16717 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16718
16719         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16720         is always restored.
16721
16722 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16723
16724         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16725         are re-adding the entry.
16726         * nscd/servicescache.c (cache_addserv): Likewise.
16727
16728 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16729
16730         * sysdeps/generic/dl-irel.h: fix protection against multiple
16731         inclusions.
16732         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16733
16734 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16735
16736         [BZ #12935]
16737         * malloc/memusage.sh: Fix quoting in message.
16738         * debug/xtrace.sh: Likewise.
16739
16740         * configure.in: Remove support for --experimental-malloc option, make
16741         it the default.
16742         * config.make.in: Likewise.
16743         * malloc/Makefile: Likewise.
16744
16745 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16746
16747         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16748         two-byte characters.
16749
16750 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16751
16752         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16753         AC_CACHE_CHECK invocation.
16754         * configure: Regenerated.
16755
16756         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16757
16758 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16759
16760         [BZ #12350]
16761         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16762         bit from old_res_options.
16763
16764         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16765
16766         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16767         value type for setfct.
16768
16769 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16770
16771         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16772         __gettimeofday instead of gettimeofday.
16773
16774 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16775
16776         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16777
16778 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16779
16780         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16781
16782         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16783         info.
16784
16785 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16786
16787         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16788         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16789         strcpy-sse2-unaligned strncpy-sse2-unaligned
16790         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16791         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16792         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16793         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16794         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16795         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16796         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16797         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16798         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16799         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16800         (STRCPY): Support SSE2 and SSSE3 versions.
16801
16802 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16803
16804         [BZ #12874]
16805         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16806         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16807         kernels which artificially limit size of requests.
16808
16809 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16810
16811         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16812         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16813         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16814         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16815         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16816         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16817         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16818         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16819         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16820         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16821         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16822         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16823         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16824         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16825         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16826         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16827         Enable unaligned load optimization for Intel Core i3, i5 and i7
16828         processors.
16829         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16830         Define.
16831         (index_Fast_Unaligned_Load): Define.
16832         (HAS_FAST_UNALIGNED_LOAD): Define.
16833
16834 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16835
16836         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16837
16838 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16839
16840         [BZ #12907]
16841         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16842         until it is clear that the information is realy needed.
16843         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16844
16845 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16846
16847         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16848
16849 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16850
16851         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16852         /sys/devices/system/cpu/online if it is usable.
16853
16854         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16855         reading the information from the /proc filesystem to once a second.
16856
16857 2011-06-21  Andreas Jaeger  <aj@suse.de>
16858
16859         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16860         NULL after inclusion of kernel headers.
16861
16862 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16863
16864         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16865         calls to internal_setent.
16866
16867         [BZ #12885]
16868         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16869         addresses using gethostbyname4_r ignore IPv4 addresses.
16870
16871         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16872         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16873
16874         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16875
16876 2011-06-20  David S. Miller  <davem@davemloft.net>
16877
16878         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16879         inclusions.
16880         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16881
16882         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16883         (elf_irel): Use it.
16884         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16885         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16886         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16887         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16888         * sysdeps/x86_64/dl-irel.h: Likewise.
16889
16890         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16891         * elf/dl-sym.c: Likewise.
16892
16893 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16894
16895         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16896         need to dereference resplen2.
16897
16898 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16899
16900         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16901
16902 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16903
16904         * Makeconfig: Define vardbdir and inst_vardbdir.
16905         * nss/Makefile: Add rules to install db-Makefile.
16906
16907         * nss/nss_db/db-XXX.c: Cleanup.
16908
16909         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16910         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16911         GLIBC_PRIVATE.
16912         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16913         * nss/makedb.c: Implement -g option to specify that value strings
16914         are generated and should not be added to table iterated over for
16915         get*ent calls.
16916         * nss/nss_db/db-initgroups.c: New file.
16917
16918         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16919         interface.
16920
16921         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16922         (internal_getgrouplist): Adjust to name change.
16923         Update use_initgroups_entry if this is not the first call.
16924         * nss/databases.def: Add initgroups entry.
16925
16926         * nss/makedb.c (compute_tables): Check result of multiple hash table
16927         sizes to minimize maximum chain length.
16928
16929 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16930
16931         * Versions.def: Add entry for libnss_db.
16932         * shlib-versions: Likewise.
16933         * nss/Makefile: Add rules to build libnss_db.
16934         * nss/Versions: Add libnss_db information.  Organize libnss_files
16935         entries better.
16936         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16937         makedb progra.  Some minor improvements to generate smaller files.
16938         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16939         here from...
16940         * nss/makedb.c: ...here.
16941         Improve database format to be smaller and require less memory at
16942         runtime.
16943         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16944         db anymore.
16945         * nss/nss_db/db-netgrp.c: Likewise.
16946         * nss/nss_db/db-open.c: Likewise.
16947         * nss/nss_files/flies-XXX.x: Adjust comments.
16948         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16949         * nss/nss_files/files-grp.c: Likewise.
16950         * nss/nss_files/files-hosts.c: Likewise.
16951         * nss/nss_files/files-network.c: Likewise.
16952         * nss/nss_files/files-proto.c: Likewise.
16953         * nss/nss_files/files-pwd.c: Likewise.
16954         * nss/nss_files/files-rpc.c: Likewise.
16955         * nss/nss_files/files-service.c: Likewise.
16956         * nss/nss_files/files-sgrp.c: Likewise.
16957         * nss/nss_files/files-spwd.c: Likewise.
16958         * nss/nss_db/db-alias.c: Removed.
16959         * nss/nss_db/dummy-db.h: Removed.
16960
16961 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16962
16963         * nss/makedb.c: Rewritten to not use database library.
16964         * nss/Makefile: Update to build new makedb program.
16965
16966 2011-06-14  Andreas Jaeger  <aj@suse.de>
16967
16968         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16969         memset declaration.
16970
16971 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16972
16973         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16974         tmpbuf.
16975
16976 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16977
16978         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16979         * elf/Makefile ($(objpfx)ld.so): Likewise.
16980
16981         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16982         Don't list ld.so twice in dependencies.
16983
16984         * posix/bug-regex31.c: Include <stdlib.h>.
16985
16986         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16987
16988         * nis/nss_compat/compat-spwd.c
16989         (getspent_next_nss_netgr): Remove unused variable.
16990         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16991
16992         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16993         nonmembers" output to use the right array.
16994
16995         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16996
16997         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16998
16999         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17000         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17001         * catgets/gencat.c (read_input_file): Likewise.
17002         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17003
17004         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17005         variable definition inside #if's controlling its use.
17006
17007         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17008
17009         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17010
17011         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17012
17013         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17014         unreachable code.
17015
17016         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17017
17018         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17019         * configure: Regenerated.
17020
17021         * Makerules: Revert last change.
17022         * elf/Makefile: Likewise.
17023
17024 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17025
17026         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17027         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17028         (reloc-link): Likewise.
17029
17030 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17031
17032         * elf/Makefile: Add rules to build pldd.
17033         * elf/pldd.c: New file.
17034         * elf/pldd-xx.c: New file.
17035
17036 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17037
17038         * version.h: Update for 2.15 development version.
17039
17040 2011-06-07  David S. Miller  <davem@davemloft.net>
17041
17042         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17043         ifuncs.
17044         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17045         elf_machine_lazy_rel): Likewise.
17046         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17047         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17048         elf_machine_lazy_rel): Likewise.
17049         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17050         dl_hwcap via passed in argument.
17051         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17052         Likewise.
17053
17054 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17055
17056         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17057
17058 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17059
17060         [BZ #12849]
17061         * manual/fdl-1.1.texi: New file, verbatim from:
17062         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17063         * manual/lgpl-2.1.texi: New file, verbatim from:
17064         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17065         * manual/Makefile (licenses): New variable, list those new file names.
17066         (texis): Use it.
17067         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17068
17069         * manual/fdl.texi: File removed.
17070         * manual/lesser.texi: File removed.
17071         * manual/libc.texinfo (Copying, Documentation License):
17072         Use new @include file names, put @appendix directive before @include.
17073
17074 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17075
17076         [BZ #12841]
17077         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17078         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17079         (mq_open): Add __NTH.
17080
17081 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17082
17083         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17084         Assume Intel Core i3/i5/i7 processor if AVX is available.
17085
17086 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17087
17088         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17089         typo.
17090
17091 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17092
17093         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17094         memory.  Use alloca_account.  Fix memory leak when retrying.
17095
17096 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17097
17098         * version.h (RELEASE): Bump for 2.14 release.
17099         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17100
17101         * config.make.in (RANLIB): Remove entry.
17102
17103 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17104
17105         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17106         (libc.pot): Work around missing support for .ksh extension in xgettext.
17107
17108         [BZ #12684]
17109         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17110         if both request failed.
17111         (send_dg): In case of server errors clear resplen or *resplen2.
17112
17113         [BZ #12454]
17114         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17115         when there are multiple maps.
17116         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17117         (_dl_fini): Remove test here.
17118
17119         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17120
17121 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17122
17123         [BZ #12350]
17124         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17125         bit from old_res_options.
17126         (gaih_inet): Likewise.
17127
17128         [BZ #11099]
17129         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17130         as signed.
17131
17132         * resolv/res_init.c (res_setoptions): Make the code more compact.
17133
17134         [BZ #11558]
17135         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17136         set RES_USEVC.
17137
17138         [BZ #11634]
17139         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17140
17141         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17142
17143         [BZ #11781]
17144         * malloc/malloc.h: Declare malloc hook variables as volatile.
17145
17146         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17147         in last patch.
17148
17149         [BZ #11799]
17150         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17151         raise in the comment.
17152         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17153         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17154         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17155
17156 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17157
17158         [BZ #12811]
17159         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17160         grow the buffers more if it already has to be sufficient.
17161         (build_wcs_upper_buffer): Likewise.
17162         * posix/regexec.c (check_matching): Likewise.
17163         (clean_state_log_if_needed): Likewise.
17164         (extend_buffers): Don't enlarge buffers beyond size of the input
17165         buffer.
17166         Patches mostly by Emil Wojak <emil@wojak.eu>.
17167         * posix/bug-regex32.c: New file.
17168         * posix/Makefile (tests): Add bug-regex32.
17169
17170         * locale/findlocale.c (_nl_find_locale): Return right away if
17171         _nl_explode_name failed.
17172         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17173
17174         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17175
17176         * debug/xtrace.sh: Unify messages.
17177         * malloc/memusage.sh: Likewise.
17178
17179         [BZ #12813]
17180         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17181         time symbol from vDSO.  Substitute with vsyscall if not available.
17182         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17183         __vdso_time.
17184
17185         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17186         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17187         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17188         Add sendmmsg and internal_sendmmsg.
17189         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17190         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17191         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17192
17193         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17194         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17195         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17196
17197 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17198
17199         [BZ #12813]
17200         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17201         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17202         available.
17203         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17204         __vdso_getcpu.
17205
17206         [BZ #12814]
17207         * iconvdata/Makefile (tests): Add bug-iconv9.
17208         * iconvdata/bug-iconv9.c: New file.
17209
17210 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17211
17212         [BZ #12814]
17213         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17214
17215 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17216
17217         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17218         (struct user_regs_struct): Change intcs field back to cs.
17219
17220 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17221
17222         * po/ja.po: Update from translation team.
17223
17224 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17225
17226         [BZ #12795]
17227         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17228         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17229
17230 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17231
17232         * stdlib/longlong.h: Update from GCC.
17233
17234 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17235
17236         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17237         parameter name.
17238         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17239         Add parameter name.
17240         (__sysconf): Pass it down.
17241
17242 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17243
17244         [BZ #12671]
17245         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17246         some situations.
17247         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17248         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17249         add in in __libc_use_alloca calls.  Adjust callers.
17250         (glob): Use malloc in some situations.
17251
17252         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17253         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17254         pltexit.
17255
17256 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17257
17258         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17259         and CLOCK_BOOTTIME_ALARM.
17260
17261         [BZ #12782]
17262         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17263         is returned.
17264
17265         * string/_strerror.c (__strerror_r): Print negative errors as signed
17266         numbers.
17267
17268         [BZ #12777]
17269         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17270         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17271         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17272
17273         * configure.in: Fix typo in redirection and correct removal of test
17274         files in two cases.
17275
17276         [BZ #12788]
17277         * locale/setlocale.c (new_composite_name): Fix test to check for
17278         identical name of all categories.
17279
17280         [BZ #12792]
17281         * libio/filedoalloc.c (local_isatty): New function.
17282         (_IO_file_doallocate): Use local_isatty.
17283         * stdio-common/perror.c (perror): In case a new stream is used
17284         forward the stream error.
17285         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17286         error flag.
17287
17288 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17289
17290         [BZ #11869]
17291         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17292         alloca.
17293         * include/alloca.h (extend_alloca_account): Define.
17294
17295         [BZ #11857]
17296         * posix/regex.h: Fix comments with documentation of user-accessible
17297         fields after compilation and describe correct free'ing of pattern
17298         after re_compile_pattern.
17299         Patch by Reuben Thomas <rrt@sc3d.org>.
17300
17301 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17302
17303         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17304         and -mno-altivec to prevent the compiler from using Altivec and/or
17305         VSX instructions when the corresponding registers are not available.
17306
17307 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17308
17309         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17310
17311 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17312
17313         * libio/freopen.c (freopen): Use __dup2, not dup2.
17314         * libio/freopen64.c (freopen64): Likewise.
17315
17316 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17317
17318         [BZ #12775]
17319         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17320         * math/Makefile (tests): Add test-powl.
17321         (CFLAGS-test-powl.c): Define.
17322         * math/test-powl.c: New file.
17323
17324 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17325
17326         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17327
17328 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17329
17330         [BZ #11837]
17331         * iconvdata/gb18030.c: Update to GB18020-2005.
17332
17333 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17334
17335         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17336         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17337         Patch by Aharon Robbins <arnold@skeeve.com>.
17338
17339         [BZ #11892]
17340         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17341         on the stack.
17342
17343         [BZ #11895]
17344         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17345         through underflows.
17346
17347         [BZ #12766]
17348         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17349         point to strings before performing equality test for error_one_per_line
17350         mode.
17351
17352         [BZ #11697]
17353         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17354
17355         [BZ #11820]
17356         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17357         (struct user_fpregs_struct): Avoid __uint*_t types.
17358
17359         [BZ #6420]
17360         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17361         symbol info.  Use it instead of calling _dl_addr locally.
17362         (lock_and_info): New function.
17363         (tr_freehook): Call lock_and_info and pass symbol info as additional
17364         parameter to tr_where.
17365         (tr_mallochook): Likewise.
17366         (tr_reallochook): Likewise.
17367         (tr_memalignhook): Likewise.
17368
17369         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17370         used and couldn't be at all thread-safe.
17371
17372 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17373
17374         * libio/freopen.c (freopen): Don't close old file descriptor
17375         before the new one is opened.  Instead dup the new file descriptor
17376         to the old one after the new stream is created.
17377         * libio/freopen64.c (freopen64): Likewise.
17378         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17379         * libio/fileops.c (_IO_new_file_close_it): Handle new
17380         _IO_FLAGS2_NOCLOSE flag.
17381         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17382         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17383         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17384         _IO_FLAGS2_NOCLOSE flag.
17385         * include/unistd.h: Add hidden_proto for dup3.
17386         Define __have_dup3.
17387         * io/dup3.c: Define hidden symbol.
17388         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17389
17390         [BZ #7101]
17391         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17392         when an incomplete long option is used.
17393         * posix/tst-getopt_long1.c: New file.
17394         * posix/Makefile (tests): Add tst-getopt_long1.
17395
17396         [BZ #10138]
17397         * scripts/config.guess: Update from autoconf-2.68.
17398         * scripts/config.sub: Likewise.
17399
17400         [BZ #10157]
17401         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17402         tests into ...
17403         (has_cpuclock): ...this.  New function.
17404         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17405         macro here based on has_cpuclock code.
17406
17407         [BZ #10149]
17408         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17409         First byte (not low byte) is now always NUL.
17410         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17411
17412         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17413         Use non-cancelable interfaces.
17414
17415         [BZ #9809]
17416         * locale/iso-639.def: Add entry for Sorani.
17417
17418         [BZ #11901]
17419         * include/stdlib.h: Move include protection to the right place.
17420         Define abort_msg_s.  Declare __abort_msg with it.
17421         * stdlib/abort.c (__abort_msg): Adjust type.
17422         * assert/assert.c (__assert_fail_base): New function.  Majority
17423         of code from __assert_fail.  Allocate memory for __abort_msg with
17424         mmap.
17425         (__assert_fail): Now call __assert_fail_base.
17426         * assert/assert-perr.c: Remove bulk of implementation.  Use
17427         __assert_fail_base.
17428         * include/assert.hL Declare __assert_fail_base.
17429         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17430         mmap.
17431         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17432
17433 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17434
17435         [BZ #11952]
17436         [BZ #12453]
17437         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17438         until all modules are registered in the DTV.
17439         * elf/Makefile: Add rules to build and run tst-tls19.
17440         * elf/tst-tls19.c: New file.
17441         * elf/tst-tls19mod1.c: New file.
17442         * elf/tst-tls19mod2.c: New file.
17443         * elf/tst-tls19mod3.c: New file.
17444         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17445
17446         [BZ #12083]
17447         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17448         correctly.
17449
17450         [BZ #12601]
17451         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17452         two-byte sequence errors.
17453         * iconvdata/Makefile (tests): Add bug-iconv8.
17454         * iconvdata/bug-iconv8.c: New file.
17455
17456         [BZ #12626]
17457         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17458         buf2 definition.
17459
17460         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17461
17462         [BZ #12432]
17463         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17464         (dummy_getcfa): New function.
17465         (init): Get _Unwind_GetCFA address, use dummy if not found.
17466         (backtrace_helper): In recursion check, also check whether CFA changes.
17467         (__backtrace): Completely initialize arg.
17468
17469         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17470         storing incomplete byte sequence in state object.  Avoid testing for
17471         guaranteed too small input if we know there is enough data available.
17472
17473 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17474
17475         * Makeconfig (+link-pie): Indent.
17476         * Rules (binaries-pie): Define if $(have-fpie) and
17477         $(build-shared).
17478         (binaries-shared): Also filter out $(binaries-pie).
17479         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17480         * nscd/Makefile (others-pie): Add nscd.
17481         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17482         ($(objpfx)nscd): Remove command override.
17483         * login/Makefile (others-pie): Add pt_chown.
17484         ($(objpfx)pt_chown): Remove command override.
17485         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17486         remove command overrides.
17487
17488 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17489
17490         * libio/tst_putwc.c: Fix error messages.
17491
17492         [BZ #12724]
17493         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17494         currently writing and seek to current position when not.
17495         * libio/Makefile (tests): Add bug-fclose1.
17496         * libio/bug-fclose1.c: New file.
17497
17498 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17499
17500         [BZ #12511]
17501         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17502         don't set DF_1_NODELETE here.
17503         (do_lookup_x): When entering new entry test for copy relocation
17504         and if necessary set DF_1_NODELETE flag.
17505         * elf/tst-unique4.cc: New file.
17506         * elf/tst-unique4.h: New file.
17507         * elf/tst-unique4lib.cc: New file.
17508         * elf/Makefile: Add rules to build and run tst-unique4.
17509         Patch by Piotr Bury <pbury@goahead.com>.
17510
17511 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17512
17513         [BZ #12052]
17514         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17515
17516         [BZ #12625]
17517         * misc/mntent_r.c (addmntent): Flush the stream after the output
17518
17519         [BZ #12393]
17520         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17521         (is_trusted_path_normalize): Skip initial colon.  Append slash
17522         to empty buffer.  Duplicate is_trusted_path code but allow
17523         constructed patch to be prefix.
17524         (is_dst): Allow $ORIGIN followed by /.
17525         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17526         Correct testing of result of is_trusted_path_normalize
17527         (decompose_rpath): Fix warning.
17528
17529 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17530
17531         [BZ #11257]
17532         * grp/initgroups.c (internal_getgrouplist): When we found the service
17533         list through the initgroups entry in nsswitch.conf do not always
17534         continue on a successful lookup.  Don't always use the
17535         __nss_group_database value if it is set.
17536         * nss/nsswitch.conf (initgroups): Change action for successful db
17537         lookup to continue for compatibility.
17538
17539 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17540
17541         [BZ #11532]
17542         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17543         and CP774 modules.
17544         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17545         and CP774 modules.
17546         * iconvdata/tst-tables.sh: Likewise.
17547         * iconvdata/cp770.c: New file.
17548         * iconvdata/cp771.c: New file.
17549         * iconvdata/cp772.c: New file.
17550         * iconvdata/cp773.c: New file.
17551         * iconvdata/cp774.c: New file.
17552         * iconvdata/testdata/CP770: New file.
17553         * iconvdata/testdata/CP770..UTF8: New file.
17554         * iconvdata/testdata/CP771: New file.
17555         * iconvdata/testdata/CP771..UTF8: New file.
17556         * iconvdata/testdata/CP772: New file.
17557         * iconvdata/testdata/CP772..UTF8: New file.
17558         * iconvdata/testdata/CP773: New file.
17559         * iconvdata/testdata/CP773..UTF8: New file.
17560         * iconvdata/testdata/CP774: New file.
17561         * iconvdata/testdata/CP774..UTF8: New file.
17562
17563         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17564         END CHARMAP line.
17565         * iconvdata/gen-8bit-gap.sh: Likewise.
17566         * iconvdata/gen-8bit.sh: Likewise.
17567
17568         * locale/iso-639.def: Add ary entry.
17569
17570         [BZ #11258]
17571         * locale/C-translit.h.in: Add U20A1 transliteration.
17572
17573         [BZ #12178]
17574         * locale/iso-639.def: Add wae entry.
17575         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17576
17577         [BZ #12545]
17578         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17579         for n.
17580
17581         [BZ #12711]
17582         * locale/C-translit.h.in: Add entry for U20B9.
17583         Patch by pravin.d.s@gmail.com.
17584
17585 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17586
17587         [BZ #12713]
17588         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17589         ENAMETOOLONG use generic getcwd.
17590         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17591         in rtld.  Use *stat64.
17592         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17593         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17594         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17595         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17596         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17597         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17598         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17599         __fstatat64 macros.
17600         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17601         * dirent/rewinddir.c: Add libc_hidden_def.
17602         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17603         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17604
17605         * include/dirent.h (__alloc_dir): Add flags parameter.
17606         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17607         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17608         __alloc_dir.
17609         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17610         from fdopendir if O_CLOEXEC is already set.
17611
17612 2011-03-15  Alan Modra  <amodra@gmail.com>
17613
17614         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17615         l_tls_firstbyte_offset non-zero.  Save padding offset in
17616         l_tls_firstbyte_offset for later use.
17617         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17618         freeing static tls block.
17619
17620 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17621
17622         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17623         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17624         being defined by the kernel headers.
17625
17626 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17627
17628         [BZ #12734]
17629         * resolv/resolv.h: Define RES_NOTLDQUERY.
17630         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17631         no-tld-query and set RES_NOTLDQUERY.
17632         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17633         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17634         modern BIND to search name as TLD unless forbidden.
17635
17636 2011-05-07  Petr Baudis  <pasky@suse.cz>
17637             Ulrich Drepper  <drepper@gmail.com>
17638
17639         [BZ #12393]
17640         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17641         (is_trusted_path): ...to here.
17642         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17643         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17644         using is_trusted_path_normalize() in setuid scripts.
17645
17646 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17647
17648         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17649         __BEGIN/__END_DECLS.
17650
17651 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17652
17653         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17654         NSS_STATUS_NOTFOUND if no record was found.
17655
17656 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17657
17658         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17659         (headers-not-in-tirpc): Remove rpc/netdb.h
17660         * resolv/netdb.h: Revert last change.
17661
17662 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17663
17664         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17665         circular dependency between libgcc.a and libc.a.
17666
17667 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17668
17669         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17670         * nis/Makefile: Don't install rpcsvc/*.
17671         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17672         instead of <rpc/types.h>.
17673         (MAXHOSTNAMELEN): Define.
17674
17675 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17676
17677         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17678
17679 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17680
17681         [BZ #12714]
17682         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17683         gethostbyname4_r when IPv6 results are possible.
17684
17685 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17686
17687         [BZ #12723]
17688         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17689         _PC_PIPE_BUF handling.
17690
17691 2011-04-30  Bruno Haible  <bruno@clisp.org>
17692
17693         [BZ #12717]
17694         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17695         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17696         to 'int'.
17697         * inet/getnameinfo.c (getnameinfo): Likewise.
17698
17699 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17700
17701         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17702         to groups setting in database lookup.
17703         * nss/nsswitch.conf: Add initgroups entry.
17704
17705 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17706
17707         [BZ #12685]
17708         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17709         mode string.
17710         Patch by Eric Blake <eblake@redhat.com>.
17711
17712 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17713
17714         * sunrpc/Makefile (need-export-routines): Add svc_run.
17715         (routines): Remove svc_run.
17716         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17717         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17718         * sunrpc/svc_run.c (svc_run): Likewise.
17719         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17720
17721 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17722
17723         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17724         problem in reallocation in last patch.
17725
17726 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17727
17728         * sunrpc/Makefile: Move inclusion of Rules.
17729
17730 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17731
17732         * nss/nss_files/files-initgroups.c: New file.
17733         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17734         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17735         _nss_files_initgroups_dyn.
17736
17737 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17738
17739         * elf/elf.h (R_ARM_IRELATIVE): Define.
17740
17741 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17742
17743         * po/ru.po: Update from translation team.
17744
17745 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17746
17747         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17748         dependencies.
17749
17750 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17751
17752         [BZ #12653]
17753         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17754         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17755         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17756         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17757         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17758
17759 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17760
17761         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17762         differing bytes.
17763         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17764         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17765         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17766
17767 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17768
17769         [BZ #12420]
17770         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17771         storing it.
17772         * stdlib/bug-getcontext.c: New file.
17773         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17774
17775 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17776
17777         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17778         instructions into .machine "z9-109".
17779         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17780         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17781
17782 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17783
17784         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17785         between environment variables and auxiliary vector.
17786
17787 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17788
17789         * Makefile: Add rules to build linkobj/libc.so.
17790         * include/libc-symbols.h: Define libc_hidden_nolink.
17791         * include/rpc/auth.h: Mark functions which are to be hidden.
17792         * include/rpc/auth_des.h: Likewise.
17793         * include/rpc/auth_unix.h: Likewise.
17794         * include/rpc/clnt.h: Likewise.
17795         * include/rpc/des_crypt.h: Likewise.
17796         * include/rpc/key_prot.h: Likewise.
17797         * include/rpc/pmap_clnt.h: Likewise.
17798         * include/rpc/pmap_prot.h: Likewise.
17799         * include/rpc/pmap_rmt.h: Likewise.
17800         * include/rpc/rpc_msg.h: Likewise.
17801         * include/rpc/svc.h: Likewise.
17802         * include/rpc/svc_auth.h: Likewise.
17803         * include/rpc/xdr.h: Likewise.
17804         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17805         * nss/Makefile: Likewise.
17806         * sunrpc/Makefile: Don't install headers.  Build library with normal
17807         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17808         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17809         for the compat linking library.  Remove use of INTDEF/INTUSE.
17810         * sunrpc/auth_none.c: Likewise.
17811         * sunrpc/auth_unix.c: Likewise.
17812         * sunrpc/authdes_prot.c: Likewise.
17813         * sunrpc/authuxprot.c: Likewise.
17814         * sunrpc/clnt_gen.c: Likewise.
17815         * sunrpc/clnt_perr.c: Likewise.
17816         * sunrpc/clnt_raw.c: Likewise.
17817         * sunrpc/clnt_simp.c: Likewise.
17818         * sunrpc/clnt_tcp.c: Likewise.
17819         * sunrpc/clnt_udp.c: Likewise.
17820         * sunrpc/clnt_unix.c: Likewise.
17821         * sunrpc/des_crypt.c: Likewise.
17822         * sunrpc/des_soft.c: Likewise.
17823         * sunrpc/get_myaddr.c: Likewise.
17824         * sunrpc/key_call.c: Likewise.
17825         * sunrpc/key_prot.c: Likewise.
17826         * sunrpc/netname.c: Likewise.
17827         * sunrpc/pm_getmaps.c: Likewise.
17828         * sunrpc/pm_getport.c: Likewise.
17829         * sunrpc/pmap_clnt.c: Likewise.
17830         * sunrpc/pmap_prot.c: Likewise.
17831         * sunrpc/pmap_prot2.c: Likewise.
17832         * sunrpc/pmap_rmt.c: Likewise.
17833         * sunrpc/publickey.c: Likewise.
17834         * sunrpc/rpc_cmsg.c: Likewise.
17835         * sunrpc/rpc_common.c: Likewise.
17836         * sunrpc/rpc_dtable.c: Likewise.
17837         * sunrpc/rpc_prot.c: Likewise.
17838         * sunrpc/rpc_thread.c: Likewise.
17839         * sunrpc/rtime.c: Likewise.
17840         * sunrpc/svc.c: Likewise.
17841         * sunrpc/svc_auth.c: Likewise.
17842         * sunrpc/svc_authux.c: Likewise.
17843         * sunrpc/svc_raw.c: Likewise.
17844         * sunrpc/svc_run.c: Likewise.
17845         * sunrpc/svc_simple.c: Likewise.
17846         * sunrpc/svc_tcp.c: Likewise.
17847         * sunrpc/svc_udp.c: Likewise.
17848         * sunrpc/svc_unix.c: Likewise.
17849         * sunrpc/svcauth_des.c: Likewise.
17850         * sunrpc/xcrypt.c: Likewise.
17851         * sunrpc/xdr.c: Likewise.
17852         * sunrpc/xdr_array.c: Likewise.
17853         * sunrpc/xdr_float.c: Likewise.
17854         * sunrpc/xdr_intXX_t.c: Likewise.
17855         * sunrpc/xdr_mem.c: Likewise.
17856         * sunrpc/xdr_rec.c: Likewise.
17857         * sunrpc/xdr_ref.c: Likewise.
17858         * sunrpc/xdr_sizeof.c: Likewise.
17859         * sunrpc/xdr_stdio.c: Likewise.
17860
17861 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17862
17863         [BZ #12650]
17864         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17865         * sysdeps/ia64/dl-tls.h: Likewise.
17866         * sysdeps/powerpc/dl-tls.h: Likewise.
17867         * sysdeps/s390/dl-tls.h: Likewise.
17868         * sysdeps/sh/dl-tls.h: Likewise.
17869         * sysdeps/sparc/dl-tls.h: Likewise.
17870         * sysdeps/x86_64/dl-tls.h: Likewise.
17871         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17872
17873 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17874
17875         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17876         rpath element also skip the following colon.
17877         (expand_dynamic_string_token): Add is_path parameter and pass
17878         down to DL_DST_REQUIRED and _dl_dst_substitute.
17879         (decompose_rpath): Call expand_dynamic_string_token with
17880         non-zero is_path.  Ignore empty rpaths.
17881         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17882         with zero is_path.
17883
17884 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17885
17886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17887         Make cancelable.
17888
17889 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17890
17891         [BZ #12655]
17892         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17893         Patch by Filipe David Manana <fdmanana@apache.org>.
17894
17895 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17896
17897         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17898         Maintain aligned stack.
17899         (CHECK_RSP): Remove unused macro.
17900
17901 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17902
17903         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17904         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17905
17906 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17907
17908         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17909
17910         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17911
17912 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17913
17914         [BZ #12518]
17915         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17916         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17917         * sysdeps/x86_64/memmove.c: New file.
17918         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17919         (memcpy): Renamed to ...
17920         (__new_memcpy): This.
17921         (memcpy): Provide GLIBC_2_14 memcpy.
17922         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17923         (memcpy): Provide GLIBC_2_2_5 memcpy.
17924
17925 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17926
17927         [BZ #12631]
17928         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17929
17930 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17931
17932         * misc/syncfs.c: New file.
17933         * misc/Makefile (routines): Add syncfs.
17934         * posix/unistd.h: Declare syncfs.
17935         * sysdeps/unix/syscalls.list: Add syncfs.
17936
17937 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17938
17939         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17940         open_by_handle_at.
17941         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17942         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17943         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17944         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17945         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17946         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17947         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17948
17949 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17950
17951         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17952         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17953         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17954         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17955         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17956         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17957         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17958
17959         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17960         sync_file_range.c with -fexceptions.
17961         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17962         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17963         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17964         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17965         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17966         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17967         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17968         sync_file_range as cancellation point
17969         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17970         now a wrapper around __call_sync_file_range with cancellation handling.
17971         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17972         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17973         function name to __call_sync_file_range.
17974         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17975         Add call_sync_file_range.
17976
17977 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17978
17979         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17980         bits/timex.h.
17981
17982 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17983
17984         * iconv/iconv.h: Fix typo in comment.
17985         * io/fcntl.h: Likewise.
17986         * libio/stdio.h: Likewise.
17987         * posix/spawn.h: Likewise.
17988         * posix/unistd.h: Likewise.
17989         * stdlib/stdlib.h: Likewise.
17990         * time/time.h: Likewise.
17991         * wcsmbs/wchar.h: Likewise.
17992
17993         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17994         open_by_handle): Add.
17995         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17996         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17997         Augment a few comments.
17998         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17999         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18000         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18001         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18002         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18003         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18004         open_by_handle.
18005
18006         * io/fcntl.h (AT_EMPTY_PATH): Define.
18007
18008 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18009
18010         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18011         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18012         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18013         to...
18014         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18015         * Versions.def: Add GLIBC_2.14.
18016         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18017         Export.
18018
18019 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18020
18021         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18022         round counter.
18023         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18024
18025 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18026
18027         [BZ #12597]
18028         * string/test-strncmp.c (do_page_test): New function.
18029         (check2): Likewise.
18030         (test_main): Call check2.
18031         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18032
18033 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18034
18035         [BZ #12587]
18036         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18037         Handle cache information in CPU leaf 4.
18038         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18039
18040 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18041
18042         [BZ #12583]
18043         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18044         character representation.
18045         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18046
18047 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18048
18049         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18050         END(__isnan) to END(__isnanf) to match function entry point/label
18051         EALIGN(__isnanf,...).
18052
18053 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18054
18055         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18056
18057 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18058
18059         [BZ #12510]
18060         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18061         copy from the symbol referenced in the relocation to initialize the
18062         used variable.
18063         Patch by Piotr Bury <pbury@goahead.com>.
18064         * elf/Makefile: Add rules to build and tst-unique3.
18065         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18066         * elf/tst-unique3.cc: New file.
18067         * elf/tst-unique3.h: New file.
18068         * elf/tst-unique3lib.cc: New file.
18069         * elf/tst-unique3lib2.cc: New file.
18070
18071         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18072
18073 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18074
18075         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18076         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18077         to _start.
18078
18079 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18080
18081         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18082         to-be-loaded object along a path to loader is ld.so.
18083
18084 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18085             Ulrich Drepper  <drepper@gmail.com>
18086
18087         * sysdeps/x86_64/memset.S: After aligning destination, code
18088         branches to different locations depending on the value of
18089         misalignment, when multiarch is enabled. Fix this.
18090
18091 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18092
18093         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18094         Set _x86_64_preferred_memory_instruction for AMD processsors.
18095         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18096         Set bit_Prefer_SSE_for_memop for AMD processors.
18097
18098 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18099
18100         * libio/fmemopen.c (fmemopen): Optimize a bit.
18101
18102 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18103
18104         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18105
18106 2011-03-03  Roland McGrath  <roland@redhat.com>
18107
18108         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18109
18110 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18111
18112         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18113         __bzero_ultra1 instead of __memset_ultra1.
18114
18115 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18116             Ulrich Drepper  <drepper@gmail.com>
18117
18118         [BZ #12509]
18119         * include/link.h (struct link_map): Add l_orig_initfini.
18120         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18121         returning unsuccessfully.
18122         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18123         close of a file loaded at startup, restore the original l_initfini
18124         list.
18125         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18126         list, store the pointer.
18127         * elf/Makefile ($(objpfx)noload-mem): New rule.
18128         (noload-ENV): Define.
18129         (tests): Add $(objpfx)noload-mem.
18130         * elf/noload.c: Include <memcheck.h>.
18131         (main): Call mtrace.  Close all opened handles.
18132
18133 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18134
18135         [BZ #12454]
18136         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18137         dependencies are missing.
18138
18139 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18140
18141         Fix __if_freereq crash: Unlike the generic version which uses free,
18142         Hurd needs munmap.
18143         * sysdeps/mach/hurd/ifreq.h: New file.
18144
18145 2011-01-27  Petr Baudis  <pasky@suse.cz>
18146             Ulrich Drepper  <drepper@gmail.com>
18147
18148         [BZ 12445]#
18149         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18150         to extend_alloca().
18151         * stdio-common/bug23.c: New file.
18152         * stdio-common/Makefile (tests): Add bug23.
18153
18154 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18155             Ulrich Drepper  <drepper@gmail.com>
18156
18157         [BZ #12489]
18158         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18159         before performing relro protection.  At old place add assertion
18160         to make sure nothing changed.
18161
18162 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18163             Glauber de Oliveira Costa  <glommer@gmail.com>
18164
18165         * elf/elf.h: Add new ARM TLS relocs.
18166
18167 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18168
18169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18170         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18171         cast from r3.
18172         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18173         'tests' variable.
18174         * sysdeps/wordsize-64/tst-writev.c: New file.
18175
18176 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18177
18178         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18179         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18180         insns in _dl_start to prevent a TOC reference before relocs are
18181         resolved.
18182
18183 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18184
18185         [BZ #12469]
18186         * Makeconfig: Remove RANLIB definition.
18187         * Makerules: Don't use RANLIB.
18188         * aclocal.m4: Remove ranlib test.
18189         * configure.in: No need to check for ranlib.
18190         * elf/rtld-Rules: Don't use RANLIB.
18191
18192 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18193
18194         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18195         protection macro.
18196         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18197         inclusion protection macro.
18198
18199         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18200         SIGRTMIN and SIGRTMAX and print information in that case only when
18201         SIGRTMIN is defined.
18202
18203 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18204
18205         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18206         arginfo fn returning -1.
18207
18208         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18209         and thousands string is zero terminated.
18210
18211 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18212
18213         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18214         sysdeps/unix/sysv/linux/bits/socket.h.
18215
18216 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18217
18218         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18219         (__CPU_COUNT): Remove old macros.
18220         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18221         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18222         (__CPU_ALLOC, __CPU_FREE): Add macros.
18223         (__sched_cpualloc, __sched_cpufree): Add declarations.
18224
18225 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18226
18227         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18228         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18229         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18230         (readdhstai): Return value of addhstaiX call.
18231         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18232         (addgrbyX): Return value returned by cache_addgr.
18233         (readdgrbyname): Return value returned by addgrbyX.
18234         (readdgrbygid): Likewise.
18235         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18236         (addpwbyX): Return value returned by cache_addpw.
18237         (readdpwbyname): Return value returned by addhstbyX.
18238         (readdpwbyuid): Likewise.
18239         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18240         (addservbyX): Return value returned by cache_addserv.
18241         (readdservbyname): Return value returned by addservbyX:
18242         (readdservbyport): Likewise.
18243         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18244         (addhstbyX): Return value returned by cache_addhst.
18245         (readdhstbyname): Return value returned by addhstbyX.
18246         (readdhstbyaddr): Likewise.
18247         (readdhstbynamev6): Likewise.
18248         (readdhstbyaddrv6): Likewise.
18249         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18250         (readdinitgroups): Return value returned by addinitgroupsX.
18251         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18252         (prune_cache): Keep track of timeout value of re-added entries.
18253         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18254         * nscd/nscd.h: Adjust prototypes of readd* functions.
18255
18256 2011-02-04  Roland McGrath  <roland@redhat.com>
18257
18258         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18259         (nis_stats): Likewise.
18260         * nis/nis_modify.c (nis_modify): Likewise.
18261         * nis/nis_remove.c (nis_remove): Likewise.
18262         * nis/nis_add.c (nis_add): Likewise.
18263
18264         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18265
18266         * posix/fnmatch_loop.c: Add some consts.
18267
18268         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18269
18270 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18271
18272         [BZ #12460]
18273         * config.make.in (config-cflags-novzeroupper): Define.
18274         * configure.in: Substitute libc_cv_cc_novzeroupper.
18275         * elf/Makefile (AVX-CFLAGS): Define.
18276         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18277         (CFLAGS-tst-auditmod4a.c): Likewise.
18278         (CFLAGS-tst-auditmod4b.c): Likewise.
18279         (CFLAGS-tst-auditmod6b.c): Likewise.
18280         (CFLAGS-tst-auditmod6c.c): Likewise.
18281         (CFLAGS-tst-auditmod7b.c): Likewise.
18282         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18283
18284 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18285
18286         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18287         function to the callback.
18288         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18289
18290 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18291
18292         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18293         of errno.
18294
18295 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18296
18297         [BZ #11724]
18298         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18299         of constructors.
18300         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18301         of destructors.
18302         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18303
18304         [BZ #11724]
18305         * elf/Makefile: Add rules to build and run new test.
18306         * elf/tst-initorder.c: New file.
18307         * elf/tst-initorder.exp: New file.
18308         * elf/tst-initordera1.c: New file.
18309         * elf/tst-initordera2.c: New file.
18310         * elf/tst-initordera3.c: New file.
18311         * elf/tst-initordera4.c: New file.
18312         * elf/tst-initorderb1.c: New file.
18313         * elf/tst-initorderb2.c: New file.
18314         * elf/tst-order-a1.c: New file.
18315         * elf/tst-order-a2.c: New file.
18316         * elf/tst-order-a3.c: New file.
18317         * elf/tst-order-a4.c: New file.
18318         * elf/tst-order-b1.c: New file.
18319         * elf/tst-order-b2.c: New file.
18320         * elf/tst-order-main.c: New file.
18321         New test case by George Gensure <werkt0@gmail.com>.
18322
18323 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18324
18325         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18326         decoding ACE if AI_CANONIDN.
18327
18328 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18329
18330         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18331
18332 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18333
18334         * version.h (RELEASE): Bump for 2.13 release.
18335         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18336
18337         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18338
18339         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18340         MADV_NOHUGEPAGE.
18341         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18342         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18343         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18344         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18345         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18346         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18347
18348         * posix/getconf.c: Update copyright year.
18349         * catgets/gencat.c: Likewise.
18350         * csu/version.c: Likewise.
18351         * debug/catchsegv.sh: Likewise.
18352         * debug/xtrace.sh: Likewise.
18353         * elf/ldconfig.c: Likewise.
18354         * elf/ldd.bash.in: Likewise.
18355         * elf/sprof.c (print_version): Likewise.
18356         * iconv/iconv_prog.c: Likewise.
18357         * iconv/iconvconfig.c: Likewise.
18358         * locale/programs/locale.c: Likewise.
18359         * locale/programs/localedef.c: Likewise.
18360         * malloc/memusage.sh: Likewise.
18361         * malloc/mtrace.pl: Likewise.
18362         * nscd/nscd.c (print_version): Likewise.
18363         * nss/getent.c: Likewise.
18364
18365         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18366         PF_CAIF, and PF_ALG.
18367         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18368
18369 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18370
18371         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18372         (modules-names): Use them.
18373         (ifunc-test-modules, ifunc-pie-tests): Define.
18374         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18375         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18376         (test-extras): Likewise.
18377         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18378         $(compile-command.c).
18379         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18380         (all-built-dso): Define.
18381         (check-textrel.out, check-execstack.out): Depend on it.
18382
18383         * configure.in: Don't override --enable-multi-arch.
18384
18385 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18386
18387         [BZ #6812]
18388         * nscd/hstcache.c (tryagain): Define.
18389         (cache_addhst): Return tryagain not notfound for temporary errors.
18390         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18391         failed.
18392
18393 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18394
18395         [BZ #10563]
18396         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18397         to make the syscall.
18398         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18399
18400         [BZ #12378]
18401         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18402         and fall back to matching as normal character if the string ends before
18403         the matching ']' is found.  This is what POSIX requires.
18404         * posix/testfnm.c: Adjust test result.
18405         * posix/globtest.sh: Adjust test result.  Add new test.
18406         * posix/tst-fnmatch.input: Likewise.
18407         * posix/tst-fnmatch2.c: Add new test.
18408
18409 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18410
18411         * elf/Makefile (check-execstack): Revert last change.  Depend on
18412         check-execstack.h.
18413         (check-execstack.h): New target.
18414         (generated): Add check-execstack.h.
18415         * elf/check-execstack.c: Include "check-execstack.h".
18416         (main): Revert last change.
18417         (handle_file): Return zero if GNU_STACK is absent and
18418         DEFAULT_STACK_PERMS doesn't include PF_X.
18419
18420 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18421
18422         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18423         in child fails because the descriptor is already closed.
18424         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18425         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18426         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18427
18428         [BZ #12397]
18429         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18430         syscall.
18431
18432         [BZ #10484]
18433         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18434         temporary buffer used to handle multi lookups locally.
18435         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18436
18437 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18438
18439         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18440         loader is ld.so.
18441
18442 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18443
18444         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18445         alignment for SSE2.
18446
18447 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18448
18449         [BZ #12394]
18450         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18451         characters.  When rounding increased number of integer digits recompute
18452         number of groups.
18453         * stdio-common/tst-grouping.c: New file.
18454         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18455
18456 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18457
18458         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18459         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18460
18461         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18462         void.
18463         * bits/select.h: Likewise.
18464
18465 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18466
18467         * po/ja.po: Update from translation team.
18468
18469 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18470
18471         [BZ #11155]
18472         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18473         implementation just like for lxstat, fxstatat, et al.
18474
18475 2010-12-27  Jim Meyering  <meyering@redhat.com>
18476
18477         [BZ #12348]
18478         * posix/regexec.c (build_trtable): Return failure indication upon
18479         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18480
18481 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18482
18483         [BZ #12201]
18484         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18485         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18486         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18487         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18488
18489         [BZ #12207]
18490         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18491
18492         [BZ #12204]
18493         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18494         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18495
18496 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18497
18498         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18499         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18500         script has SORT_BY_INIT_PRIORITY.
18501         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18502         NO_CTORS_DTORS_SECTIONS is defined.
18503         * elf/soinit.c: Likewise.
18504         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18505         NO_CTORS_DTORS_SECTIONS is defined.
18506         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18507         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18508         * sysdeps/sh/init-first.c: Likewise.
18509         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18510
18511 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18512
18513         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18514         always use the slow path.
18515
18516 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18517
18518         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18519         similar rule which adds the sysdep directories to the header search in
18520         order to pick up the correct platform stackinfo.h.
18521         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18522         perform test if it is, otherwise return successfully without testing.
18523         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18524         DEFAULT_STACK_PERMS define in stackinfo.h.
18525         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18526         defined in stackinfo.h.
18527         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18528         DEFAULT_STACK_PERMS defined in stackinfo.h.
18529         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18530         * sysdeps/ia64/stackinfo.h: Likewise.
18531         * sysdeps/s390/stackinfo.h: Likewise.
18532         * sysdeps/sh/stackinfo.h: Likewise.
18533         * sysdeps/sparc/stackinfo.h: Likewise.
18534         * sysdeps/x86_64/stackinfo.h: Likewise.
18535         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18536         PF_X for powerpc64.  Retain PF_X for powerpc32.
18537
18538 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18539
18540         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18541         accurately.
18542         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18543         GETDENTS_64BIT_ALIGNED.
18544
18545 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18546
18547         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18548
18549 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18550
18551         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18552         _GNU_SOURCE.
18553
18554         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18555         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18556         Remove __restrict.
18557         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18558         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18559
18560 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18561
18562         [BZ #11655]
18563         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18564         are initialized.
18565
18566 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18567
18568         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18569
18570 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18571
18572         * po/it.po: Update from translation team.
18573
18574 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18575
18576         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18577         unused codes.
18578
18579 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18580
18581         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18582
18583 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18584
18585         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18586         specially.
18587         (gaih_getanswer_slice): Likewise.
18588
18589 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18590
18591         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18592
18593 2010-05-31  Petr Baudis  <pasky@suse.cz>
18594
18595         [BZ #11149]
18596         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18597         silently even in the chroot mode.
18598
18599 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18600
18601         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18602         last patch a bit.  Pretty printing
18603
18604 2010-05-31  Petr Baudis <pasky@suse.cz>
18605
18606         [BZ #10085]
18607         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18608         initialization of skip_initgroups_dyn.
18609
18610 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18611
18612         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18613         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18614
18615 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18616
18617         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18618
18619 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18620
18621         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18622         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18623         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18624         ($(objpfx)tst-fnmatch-mem): New rule.
18625         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18626         * posix/tst-fnmatch.c (main): Call mtrace.
18627
18628 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18629
18630         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18631         Support Intel processor model 6 and model 0x2c.
18632
18633 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18634
18635         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18636           signed comparison.
18637
18638 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18639
18640         [BZ #12205]
18641         * string/test-strncasecmp.c (check_result): New function.
18642         (do_one_test): Use it.
18643         (check1): New function.
18644         (test_main): Use it.
18645         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18646         Support strcasecmp and strncasecmp.
18647
18648 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18649
18650         [BZ #12194]
18651         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18652         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18653
18654 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18655
18656         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18657         IFUNC support.
18658         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18659         memset-x86-64.
18660         * sysdeps/x86_64/multiarch/bzero.S: New file.
18661         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18662         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18663         * sysdeps/x86_64/multiarch/memset.S: New file.
18664         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18665         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18666         Set bit_Prefer_SSE_for_memop for Intel processors.
18667         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18668         Define.
18669         (index_Prefer_SSE_for_memop): Define.
18670         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18671
18672 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18673
18674         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18675         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18676
18677 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18678
18679         [BZ #12191]
18680         * sysdeps/i386/i686/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
18685         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18686         (__x86_64_raw_data_cache_size_half): Likewise.
18687         (__x86_64_raw_shared_cache_size): Likewise.
18688         (__x86_64_raw_shared_cache_size_half): Likewise.
18689         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18690         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18691         and __x86_64_raw_shared_cache_size_half.  Round
18692         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18693         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18694         to multiple of 256 bytes.
18695
18696 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18697
18698         [BZ #12167]
18699         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18700         of inacessible symlinks.  Verify result of symlink before returning it.
18701         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18702         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18703
18704 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18705
18706         * math/math.h (isinf): Fix typo in comment.
18707
18708 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18709
18710         * po/da.po: Update from translation team.
18711
18712 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18713
18714         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18715         is added to the list.
18716
18717 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18718             Ulrich Drepper  <drepper@gmail.com>
18719
18720         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18721         the global list here.  Move code to...
18722         (_dl_add_to_namespace_list): ...here.  New function.
18723         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18724         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18725         * elf/dl-load.c (lose): Don't remove the element from the list.
18726         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18727         (_dl_map_object): Likewise.
18728
18729 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18730
18731         [BZ #12159]
18732         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18733         into all bytes of SSE register.
18734         Patch by Richard Li <richardpku@gmail.com>.
18735
18736 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18737
18738         [BZ #12140]
18739         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18740         perturbing.
18741
18742 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18743
18744         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18745         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18746         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18747         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18749         submachine.
18750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18751
18752 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18753
18754         * include/dlfcn.h (__RTLD_SECURE): Define.
18755         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18756         mode & __RTLD_SECURE instead.
18757         (open_path): Rename preloaded parameter to secure.
18758         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18759         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18760         * elf/dl-deps.c (openaux): Likewise.
18761         * elf/rtld.c (struct map_args): Remove is_preloaded.
18762         (map_doit): Don't use it.
18763         (dl_main): Likewise.
18764         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18765         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18766
18767 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18768
18769         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18770         (sysd-rules-targets): Remove duplicates.
18771         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18772         rtld-%.$o dependency.
18773
18774 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18775
18776         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18777         _dl_map_object do it.
18778
18779 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18780
18781         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18782         fast fma builtins, define the macros in the C99 standard.
18783         (FP_FAST_FMAF): Likewise.
18784         (FP_FAST_FMAL): Likewise.
18785         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18786
18787         * bits/mathdef.h: Update copyright year.
18788         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18789
18790 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18791
18792         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18793         builtins, define the macros in the C99 standard.
18794         (FP_FAST_FMAF): Likewise.
18795         (FP_FAST_FMAL): Likewise.
18796         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18797         multiply/add.
18798         (FP_FAST_FMAF): Likewise.
18799
18800 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18801
18802         [BZ #3268]
18803         * math/libm-test.inc (fma_test): Some new testcases.
18804         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18805         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18806         y and infinite z.  Do multiplication by C already in long double.
18807         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18808         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18809         y and infinite z.  Do bitwise or of inexact bit into u.d.
18810         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18811         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18812         * sysdeps/i386/fpu/s_fma.S: Removed.
18813         * sysdeps/i386/fpu/s_fmal.S: Removed.
18814
18815 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18816
18817         [BZ #3268]
18818         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18819         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18820         computation is not scheduled after fetestexcept.  Fix value
18821         of minimum denormal long double.
18822
18823 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18824
18825         [BZ #3268]
18826         * math/libm-test.inc (fma_test): Add some more tests.
18827         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18828         correctly.
18829
18830 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18831
18832         * scripts/data/localplt-s390-linux-gnu.data: New file.
18833         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18834
18835 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18836
18837         [BZ #3268]
18838         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18839         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18840         instead of dbl-64.
18841         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18842         inlines.
18843         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18844         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18845         if one of x and y is very large and the other is subnormal.
18846         * sysdeps/s390/fpu/s_fmaf.c: New file.
18847         * sysdeps/s390/fpu/s_fma.c: New file.
18848         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18849         * sysdeps/powerpc/fpu/s_fma.S: New file.
18850         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18851         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18852         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18853
18854 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18855
18856         [BZ #3268]
18857         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18858         fma tests.
18859         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18860         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18861         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18862         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18863         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18864         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18865         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18866
18867 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18868
18869         [BZ #12078]
18870         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18871         * posix/bug-regex31.input: Add test case.
18872
18873 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18874
18875         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18876         * posix/bug-regex31.input: New file.
18877
18878         [BZ #12078]
18879         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18880         (parse_sub_exp): Fix last change, use postorder.
18881
18882         * posix/bug-regex31.c: New file.
18883         * posix/Makefile: Add rules to build and run bug-regex31.
18884
18885         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18886
18887         [BZ #12078]
18888         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18889
18890         [BZ #12108]
18891         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18892         to have entries in sys_siglist.
18893
18894         [BZ #12093]
18895         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18896         be NULL.
18897
18898 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18899
18900         [BZ #3268]
18901         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18902         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18903         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18904         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18905         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18906         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18907         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18908         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18909         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18910         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18911         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18912         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18913         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18914         * math/ftestexcept.c (fetestexcept): Likewise.
18915         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18916         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18917         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18918         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18919         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18920         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18921         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18922
18923 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18924
18925         [BZ #12107]
18926         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18927         newline.
18928
18929 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18930
18931         * string/bug-strstr1.c: New file.
18932         * string/Makefile: Add rules to build and run bug-strstr1.
18933
18934 2010-10-05  Eric Blake  <eblake@redhat.com>
18935
18936         [BZ #12092]
18937         * string/str-two-way.h (two_way_long_needle): Always clear memory
18938         when skipping input due to the shift table.
18939
18940 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18941
18942         [BZ #12005]
18943         * malloc/mcheck.c: Handle large requests.
18944
18945         [BZ #12077]
18946         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18947         for strncmp and strncasecmp.
18948         * string/stratcliff.c: Add tests for strcmp and strncmp.
18949         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18950
18951 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18952
18953         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18954         __set_fpscr.
18955
18956 2010-09-30  Andreas Jaeger  <aj@suse.de>
18957
18958         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18959         (CGROUP_SUPER_MAGIC): Define.
18960         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18961         Handle btrfs and cgroup file systems.
18962         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18963         Likewise.
18964
18965 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18966
18967         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18968         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18969
18970 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18971
18972         [BZ #12067]
18973         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18974         trying to locate the ELF header.
18975
18976 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18977
18978         [BZ #11611]
18979         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18980         Mask out sign-bit copies when constructing f_fsid.
18981
18982 2010-09-24  Petr Baudis <pasky@suse.cz>
18983
18984         * debug/stack_chk_fail_local.c: Add missing licence exception.
18985         * debug/warning-nop.c: Likewise.
18986
18987 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18988
18989         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18990         implementing getdents64 using getdents syscall, set d_type if
18991         __ASSUME_GETDENTS32_D_TYPE.
18992
18993 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18994
18995         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18996         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18997
18998 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18999
19000         [BZ #12037]
19001         * posix/unistd.h: Undo change of feature selection for ftruncate from
19002         2010-01-11.
19003
19004 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19005
19006         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19007         detection.
19008
19009 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19010
19011         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19012         fanotify_mark.
19013         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19014
19015 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19016
19017         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19018         variables after CHECK_SP call.
19019         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19020
19021 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19022             Ulrich Drepper  <drepper@redhat.com>
19023
19024         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19025         re-relocationg ld.so.
19026         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19027         _dl_init_paths call.
19028         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19029         here anymore.
19030
19031 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19032
19033         * resolv/res_init.c (__res_vinit): Count the default server we added.
19034
19035 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19036             Ulrich Drepper  <drepper@redhat.com>
19037
19038         [BZ #11968]
19039         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19040         (____longjmp_chk): Use %ebx for saving value across system call.
19041         Add unwind info.
19042
19043 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19044
19045         * manual/Makefile: Don't mix pattern rules with normal rules.
19046
19047 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19048
19049         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19050         operation.
19051         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19052         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19053         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19054         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19055         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19056         Likewise.
19057
19058 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19059
19060         [BZ #11979]
19061         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19062         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19063
19064 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19065
19066         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19067         * sysdeps/x86_64/addmul_1.S: Likewise.
19068         * sysdeps/x86_64/lshift.S: Likewise.
19069         * sysdeps/x86_64/mul_1.S: Likewise.
19070         * sysdeps/x86_64/rshift.S: Likewise.
19071         * sysdeps/x86_64/sub_n.S: Likewise.
19072         * sysdeps/x86_64/submul_1.S: Likewise.
19073
19074 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19075
19076         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19077         Define __sched_param instead of SCHED_* and sched_param when
19078         <bits/sched.h> is included with __need_schedparam defined.
19079         * bits/sched.h [__need_schedparam]
19080         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19081         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19082         (__defined_schedparam): Define to 1.
19083         (__sched_param): New structure, identical to sched_param.
19084         (__need_schedparam): Undefine.
19085
19086 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19087
19088         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19089         (epoll_create1): Declare.
19090
19091         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19092
19093 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19094
19095         [BZ #7066]
19096         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19097         shifting retval into place.
19098
19099 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19100
19101         * nis/rpcsvc/nis.h: Update copyright notice.
19102         * nis/rpcsvc/nis.x: Likewise.
19103         * nis/rpcsvc/nis_callback.h: Likewise.
19104         * nis/rpcsvc/nis_callback.x: Likewise.
19105         * nis/rpcsvc/nis_object.x: Likewise.
19106         * nis/rpcsvc/nis_tags.h: Likewise.
19107         * nis/rpcsvc/yp.h: Likewise.
19108         * nis/rpcsvc/yp.x: Likewise.
19109         * nis/rpcsvc/ypupd.h: Likewise.
19110         * nis/yp_xdr.c: Likewise.
19111         * nis/ypupdate_xdr.c: Likewise.
19112
19113         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19114         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19115         (pmap_getport): Use __libc_rpc_getport.
19116         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19117         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19118         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19119
19120 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19121
19122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19123         fanotify_mark.
19124
19125 2010-08-27  Roland McGrath  <roland@redhat.com>
19126
19127         * sysdeps/i386/i686/multiarch/Makefile
19128         (CFLAGS-varshift.c): New variable.
19129
19130 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19131
19132         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19133         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19134
19135         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19136
19137         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19138
19139 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19140
19141         * sysdeps/x86_64/strlen.S: Unroll the loop.
19142         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19143         strlen-sse2 strlen-sse2-bsf.
19144         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19145         __strlen_no_bsf if bit_Slow_BSF is set.
19146         (__strlen_sse42): Removed.
19147         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19148         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19149
19150 2010-08-25  Roland McGrath  <roland@redhat.com>
19151
19152         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19153         * sysdeps/x86_64/multiarch/varshift.c: New file.
19154         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19155         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19156         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19157         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19158
19159 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19160
19161         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19162         strlen-sse2 strlen-sse2-bsf.
19163         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19164         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19165         (__strlen_sse2): Removed.
19166         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19167         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19168         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19169         bit_Slow_BSF for Atom.
19170         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19171         (index_Slow_BSF): Define.
19172         (HAS_SLOW_BSF): Define.
19173
19174 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19175
19176         [BZ #10851]
19177         * resolv/res_init.c (__res_vinit): When no server address at all
19178         is given default to loopback.
19179
19180 2010-08-24  Roland McGrath  <roland@redhat.com>
19181
19182         * configure.in: Remove config-name.h generation.
19183         * configure: Regenerated.
19184         * config-name.in: File removed.
19185         * scripts/config-uname.sh: New file.
19186         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19187         ($(objdir)config-name.h): New target.
19188
19189         * sunrpc/rpc_parse.h: Avoid nested comment.
19190
19191 2010-08-24  Richard Henderson  <rth@redhat.com>
19192             Ulrich Drepper  <drepper@redhat.com>
19193             H.J. Lu  <hongjiu.lu@intel.com>
19194
19195         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19196         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19197         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19198         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19199         _mm_alignr_epi8 with _mm_loadu_si128.
19200         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19201         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19202         (__m128i_shift_right): Removed.
19203         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19204         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19205         * sysdeps/x86_64/multiarch/varshift.h: New file.
19206         * sysdeps/x86_64/multiarch/varshift.S: New file.
19207
19208 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19209
19210         * configure.in: Move assembler checks to before sysdep dir checking.
19211
19212 2010-08-20  Petr Baudis  <pasky@suse.cz>
19213
19214         * LICENSES: Sync the sunrpc license.
19215
19216 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19217
19218         * sunrpc/auth_des.c: Update copyright notice once again.
19219         * sunrpc/auth_none.c: Likewise.
19220         * sunrpc/auth_unix.c: Likewise.
19221         * sunrpc/authdes_prot.c: Likewise.
19222         * sunrpc/authuxprot.c: Likewise.
19223         * sunrpc/bindrsvprt.c: Likewise.
19224         * sunrpc/clnt_gen.c: Likewise.
19225         * sunrpc/clnt_perr.c: Likewise.
19226         * sunrpc/clnt_raw.c: Likewise.
19227         * sunrpc/clnt_simp.c: Likewise.
19228         * sunrpc/clnt_tcp.c: Likewise.
19229         * sunrpc/clnt_udp.c: Likewise.
19230         * sunrpc/clnt_unix.c: Likewise.
19231         * sunrpc/des_crypt.c: Likewise.
19232         * sunrpc/des_soft.c: Likewise.
19233         * sunrpc/get_myaddr.c: Likewise.
19234         * sunrpc/getrpcport.c: Likewise.
19235         * sunrpc/key_call.c: Likewise.
19236         * sunrpc/key_prot.c: Likewise.
19237         * sunrpc/openchild.c: Likewise.
19238         * sunrpc/pm_getmaps.c: Likewise.
19239         * sunrpc/pm_getport.c: Likewise.
19240         * sunrpc/pmap_clnt.c: Likewise.
19241         * sunrpc/pmap_prot.c: Likewise.
19242         * sunrpc/pmap_prot2.c: Likewise.
19243         * sunrpc/pmap_rmt.c: Likewise.
19244         * sunrpc/rpc/auth.h: Likewise.
19245         * sunrpc/rpc/auth_unix.h: Likewise.
19246         * sunrpc/rpc/clnt.h: Likewise.
19247         * sunrpc/rpc/des_crypt.h: Likewise.
19248         * sunrpc/rpc/key_prot.h: Likewise.
19249         * sunrpc/rpc/netdb.h: Likewise.
19250         * sunrpc/rpc/pmap_clnt.h: Likewise.
19251         * sunrpc/rpc/pmap_prot.h: Likewise.
19252         * sunrpc/rpc/pmap_rmt.h: Likewise.
19253         * sunrpc/rpc/rpc.h: Likewise.
19254         * sunrpc/rpc/rpc_des.h: Likewise.
19255         * sunrpc/rpc/rpc_msg.h: Likewise.
19256         * sunrpc/rpc/svc.h: Likewise.
19257         * sunrpc/rpc/svc_auth.h: Likewise.
19258         * sunrpc/rpc/types.h: Likewise.
19259         * sunrpc/rpc/xdr.h: Likewise.
19260         * sunrpc/rpc_clntout.c: Likewise.
19261         * sunrpc/rpc_cmsg.c: Likewise.
19262         * sunrpc/rpc_common.c: Likewise.
19263         * sunrpc/rpc_cout.c: Likewise.
19264         * sunrpc/rpc_dtable.c: Likewise.
19265         * sunrpc/rpc_hout.c: Likewise.
19266         * sunrpc/rpc_main.c: Likewise.
19267         * sunrpc/rpc_parse.c: Likewise.
19268         * sunrpc/rpc_parse.h: Likewise.
19269         * sunrpc/rpc_prot.c: Likewise.
19270         * sunrpc/rpc_sample.c: Likewise.
19271         * sunrpc/rpc_scan.c: Likewise.
19272         * sunrpc/rpc_scan.h: Likewise.
19273         * sunrpc/rpc_svcout.c: Likewise.
19274         * sunrpc/rpc_tblout.c: Likewise.
19275         * sunrpc/rpc_util.c: Likewise.
19276         * sunrpc/rpc_util.h: Likewise.
19277         * sunrpc/rpcinfo.c: Likewise.
19278         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19279         * sunrpc/rpcsvc/key_prot.x: Likewise.
19280         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19281         * sunrpc/rpcsvc/mount.x: Likewise.
19282         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19283         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19284         * sunrpc/rpcsvc/rex.x: Likewise.
19285         * sunrpc/rpcsvc/rstat.x: Likewise.
19286         * sunrpc/rpcsvc/rusers.x: Likewise.
19287         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19288         * sunrpc/rpcsvc/spray.x: Likewise.
19289         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19290         * sunrpc/rtime.c: Likewise.
19291         * sunrpc/svc.c: Likewise.
19292         * sunrpc/svc_auth.c: Likewise.
19293         * sunrpc/svc_authux.c: Likewise.
19294         * sunrpc/svc_raw.c: Likewise.
19295         * sunrpc/svc_run.c: Likewise.
19296         * sunrpc/svc_simple.c: Likewise.
19297         * sunrpc/svc_tcp.c: Likewise.
19298         * sunrpc/svc_udp.c: Likewise.
19299         * sunrpc/svc_unix.c: Likewise.
19300         * sunrpc/svcauth_des.c: Likewise.
19301         * sunrpc/xcrypt.c: Likewise.
19302         * sunrpc/xdr.c: Likewise.
19303         * sunrpc/xdr_array.c: Likewise.
19304         * sunrpc/xdr_float.c: Likewise.
19305         * sunrpc/xdr_mem.c: Likewise.
19306         * sunrpc/xdr_rec.c: Likewise.
19307         * sunrpc/xdr_ref.c: Likewise.
19308         * sunrpc/xdr_sizeof.c: Likewise.
19309         * sunrpc/xdr_stdio.c: Likewise.
19310
19311         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19312         handling.
19313
19314 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19315
19316         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19317
19318 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19319
19320         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19321         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19322         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19323         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19324         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19325         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19326         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19327         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19328         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19329         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19330         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19331         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19332         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19333         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19334
19335 2010-07-26  Anton Blanchard  <anton@samba.org>
19336
19337         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19338         * malloc/arena.c (heap_trim): Likewise.
19339
19340 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19341
19342         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19343         here.  Not...
19344         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19345         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19346
19347 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19348
19349         * sysdeps/i386/elf/Makefile: New file.
19350
19351 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19352
19353         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19354         from fanotify_init.
19355         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19356         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19357
19358 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19359
19360         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19361         of strncasecmp_l.
19362         * sysdeps/multiarch/strcmp.S: Likewise.
19363
19364 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19365
19366         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19367         strncase_l-nonascii.
19368         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19369         Add strncase_l-ssse3.
19370         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19371         * sysdeps/x86_64/strcmp.S: Likewise.
19372         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19373         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19374         * sysdeps/x86_64/strncase.S: New file.
19375         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19376         * sysdeps/x86_64/strncase_l.S: New file.
19377         * string/Makefile (strop-tests): Add strncasecmp.
19378         * string/test-strncasecmp.c: New file.
19379
19380         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19381         warning.
19382
19383         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19384         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19385
19386 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19387
19388         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19389
19390 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19391
19392         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19393         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19394         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19395
19396 2010-05-01  Alan Modra  <amodra@gmail.com>
19397
19398         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19399         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19400         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19401         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19402         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19403         tidying.  Don't tail-call __sigjmp_save for static lib.
19404         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19405         save location.
19406         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19407         (CALL_MCOUNT): Add eh info, and nop after bl.
19408         (TAIL_CALL_SYSCALL_ERROR): New macro.
19409         (PSEUDO_RET): Use it.
19410         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19411         Correct save location of integer regs and cr.
19412         (_dl_profile_resolve): Correct cr save location.  Delete nops
19413         after bl when SHARED.  Reduce cfi size a little by better
19414         placement of cfi directives.
19415         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19416         make a stack frame.  Instead use parm save area as a temp.
19417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19418         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19420         Don't make a stack frame for parent, use parm save area.
19421         Increase child stack frame to 112 bytes.  Don't save unused reg,
19422         and adjust reg usage.  Set up cfi on error recovery and
19423         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19425         (__makecontext): Add dummy nop after jump to exit.
19426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19427         Use correct parm save area and cr save, reduce stack frame.
19428         Correct cfi for possible PSEUDO_RET frame setup.
19429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19430         Branch to local label emitted by PSEUDO_RET rather than
19431         __syscall_error.
19432
19433 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19434
19435         [BZ #11904]
19436         * locale/programs/locale.c (print_assignment): New function.
19437         (show_locale_vars): Use it.
19438
19439 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19440
19441         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19442         field.
19443         (struct statfs64): Likewise.
19444         (_STATFS_F_FLAGS): Define.
19445         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19446         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19447         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19448         (ST_VALID): Define locally.
19449         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19450         __statvfs_getflags, use the provided value.
19451         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19452         __ASSUME_STATFS_F_FLAGS.
19453
19454         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19455
19456         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19457         Add sys/fanotify.h.
19458         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19459         fanotify_mask for GLIBC_2.13.
19460         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19461         fanotify_init and fanotify_mark.
19462         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19463         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19464
19465         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19466         Add prlimit.
19467         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19468         prlimit64 for GLIBC_2.13.
19469         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19470         prlimit64.
19471         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19472         syscall.
19473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19474         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19475         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19476         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19477         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19478         add prlimit alias.
19479         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19480
19481         [BZ #11903]
19482         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19483         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19484
19485         * nss/Makefile: Add rules to build and run tst-nss-test1.
19486         * shlib-versions: Add entry for libnss_test1.
19487         * nss/nss_test1.c: New file.
19488         * nss/tst-nss-test1.c: New file.
19489
19490         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19491         (__nss_configure_lookup): Set appropriate entry in
19492         __nss_configure_lookup to true.
19493         * nss/nsswitch.h: Define enum with indeces of databases in
19494         databases and __nss_database_custom arrays.  Declare
19495         __nss_database_custom.
19496         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19497         to avoid using nscd when custom rules are installed.
19498         * nss/getXXbyYY_r.c: Likewise.
19499         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19500
19501         * nss/nss_files/files-parse.c: Whitespace fixes.
19502
19503 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19504
19505         [BZ #11883]
19506         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19507         * posix/fnmatch_loop.c: Likewise.
19508
19509 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19510
19511         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19512         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19513         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19514         * Versions.def [GLIBC_2.13]: Add.
19515
19516 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19517
19518         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19519         Also fail if tpwd after pwuid call is NULL.
19520
19521 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19522
19523         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19524         when converting to ms.
19525
19526 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19527
19528         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19529         EOPNOTSUPP errors with ENOTTY.
19530         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19531         EOPNOTSUPP errors with ENOTTY.
19532
19533 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19534
19535         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19536         Add strcasecmp_l-ssse3.
19537         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19538         strcasecmp.
19539         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19540         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19541         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19542
19543 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19544
19545         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19546
19547         * string/Makefile (strop-tests): Add strcasecmp.
19548         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19549         strcasecmp_l-nonascii.
19550         (gen-as-const-headers): Add locale-defines.sym.
19551         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19552         * sysdeps/x86_64/strcasecmp.S: New file.
19553         * sysdeps/x86_64/strcasecmp_l.S: New file.
19554         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19555         * sysdeps/x86_64/locale-defines.sym: New file.
19556         * string/test-strcasecmp.c: New file.
19557
19558         * string/test-strcasestr.c: Test both ends of the range of characters.
19559         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19560
19561 2010-07-29  Roland McGrath  <roland@redhat.com>
19562
19563         [BZ #11856]
19564         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19565
19566 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19567
19568         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19569         for ld.so.
19570
19571 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19572
19573         * manual/memory.texi (Malloc Tunable Parameters): Document
19574         M_PERTURB.
19575
19576 2010-07-26  Roland McGrath  <roland@redhat.com>
19577
19578         [BZ #11840]
19579         * configure.in (-fgnu89-inline check): Set and substitute
19580         gnu89_inline, not libc_cv_gnu89_inline.
19581         * configure: Regenerated.
19582         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19583
19584 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19585
19586         * string/test-strnlen.c: New file.
19587         * string/Makefile (strop-tests): Add strnlen.
19588         * string/tester.c (test_strnlen): Add a few more test cases.
19589         * string/tst-strlen.c: Better error reporting.
19590
19591         * sysdeps/x86_64/strnlen.S: New file.
19592
19593 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19594
19595         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19596         lower-latency instructions.
19597
19598 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19599
19600         * string/test-strcasestr.c: New file.
19601         * string/test-strstr.c: New file.
19602         * string/Makefile (strop-tests): Add strstr and strcasestr.
19603         * string/str-two-way.h: Don't undefine MAX.
19604         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19605
19606 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19607
19608         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19609         strcasestr-nonascii.
19610         (CFLAGS-strcasestr-nonascii.c): Define.
19611         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19612         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19613         Remove unused attribute.
19614
19615 2010-07-20  Roland McGrath  <roland@redhat.com>
19616
19617         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19618         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19619         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19620         like LD_HWCAP_MASK can disable hwcaps.
19621
19622 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19623
19624         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19625
19626 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19627
19628         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19629         call in strcasestr.
19630         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19631         __strcasestr_sse42_nonascii.
19632         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19633         strcasestr-nonascii.c.
19634         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19635
19636 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19637
19638         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19639         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19640         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19641         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19642
19643 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19644
19645         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19646         fcntl.
19647
19648 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19649
19650         [BZ #11577]
19651         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19652         dl_signal_cerror.
19653
19654 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19655
19656         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19657         _PC_PIPE_BUF using F_GETPIPE_SZ.
19658
19659 2010-07-05  Roland McGrath  <roland@redhat.com>
19660
19661         * manual/arith.texi (Rounding Functions): Fix rint description
19662         implicit in round description.
19663
19664 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19665
19666         * elf/Makefile: Fix linking for a few tests to make recent linker
19667         happy.
19668
19669 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19670
19671         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19672         $(common-objpfx)libc_nonshared.a.
19673
19674 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19675
19676         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19677         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19678         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19679         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19680         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19681         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19682         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19683         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19698         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19699         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19700         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19701         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19702         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19703         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19704         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19705         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19706         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19707         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19708         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19709         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19724
19725 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19726
19727         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19728         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19729         * string/memmove.c (memmove): Renamed to ...
19730         (MEMMOVE): ...this.  Default to memmove.
19731         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19732         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19733         (END_CHK): Define.
19734         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19735         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19736         mempcpy-ssse3-back memmove-ssse3-back.
19737         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19738         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19739         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19740         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19741         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19742         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19743         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19744         * sysdeps/x86_64/multiarch/memmove.c: New file.
19745         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19746         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19747         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19748         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19749         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19750         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19751         Define.
19752         (index_Fast_Copy_Backward): Define.
19753         (HAS_ARCH_FEATURE): Define.
19754         (HAS_FAST_REP_STRING): Define.
19755         (HAS_FAST_COPY_BACKWARD): Define.
19756
19757 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19758
19759         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19760         Restore proper fallback handling.
19761
19762 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19763
19764         [BZ #11701]
19765         * posix/group_member.c (__group_member): Correct checking loop.
19766
19767         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19768         OOM in getpwuid_r correctly.  Return error number when the caller
19769         should return, otherwise -1.
19770         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19771         call returning > 0 value.
19772         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19773
19774 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19775
19776         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19777         libc_nonshared.a from targets in modules-names.
19778
19779 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19780
19781         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19782         requires it.
19783
19784 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19785
19786         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19787         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19788         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19789         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19790
19791 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19792
19793         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19794
19795 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19796
19797         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19798         and F_GETPIPE_SZ.
19799         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19800         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19801         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19802         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19803         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19804         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19805
19806 2010-06-14  Roland McGrath  <roland@redhat.com>
19807
19808         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19809
19810 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19811
19812         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19813         __REDIRECT followed by __THROW.
19814         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19815         * posix/getopt.h (getopt): Likewise.
19816
19817 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19818
19819         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19820         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19821         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19822         in AT_FLAGS.
19823         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19824         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19825
19826 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19827
19828         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19829
19830 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19831
19832         [BZ #11640]
19833         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19834         Properly check family and model.
19835
19836 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19837
19838         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19839
19840 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19841
19842         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19843
19844 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19845
19846         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19847         symbol reference.
19848
19849 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19850
19851         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19852         symbol reference.
19853
19854 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19855
19856         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19857         and internal_recvmmsg.
19858         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19859         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19860         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19861         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19862
19863         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19864         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19865         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19866
19867 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19868
19869         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19870
19871 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19872
19873         POWER7 optimizations.
19874         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19875         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19876
19877 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19878
19879         * version.h: Update for 2.13 development version.
19880
19881 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19882
19883         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19884         exceptions.  Return 0.
19885
19886 2010-05-07  Roland McGrath  <roland@redhat.com>
19887
19888         * elf/ldconfig.c (main): Add a const.
19889
19890 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19891
19892         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19893         (args_options): Add no-idn option.
19894         (ahosts_keys_int): Add idn_flags to ai_flags.
19895         (parse_option): Handle 'i' option to clear idn_flags.
19896
19897         * malloc/malloc.c (_int_free): Possible race in the most recently
19898         added check.  Only act on the data if no current modification
19899         happened.
19900
19901 See ChangeLog.17 for earlier changes.