Add a testase for BZ #14602
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2
3         [BZ #14602]
4         * string/test-strstr.c (check2): New function.
5         (test_main): Call check2.
6
7         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
8         and bug-strchr1.
9         * string/bug-strcasestr1.c (do_test): Moved to ...
10         * string/test-strcasestr.c (check1): Here.  New function.
11         (do_one_test): Break out result checking code into ...
12         (check_result): This.  New function.
13         (do_one_test): Call check_result.
14         (test_main): Call check1.
15         * string/bug-strchr1.c (do_test): Moved to ...
16         * string/test-strchr.c (check1): Here.  New function.
17         (do_one_test): Break out result checking code into ...
18         (check_result): This.  New function.
19         (do_one_test): Call check_result.
20         (test_main): Call check1.
21         * string/bug-strstr1.c (main): Moved to ...
22         * string/test-strchr.c (check1): Here.  New function.
23         (do_one_test): Break out result checking code into ...
24         (check_result): This.  New function.
25         (do_one_test): Call check_result.
26         (test_main): Call check1.
27         * string/bug-strcasestr1.c: Removed.
28         * string/bug-strchr1.c: Likewise.
29         * string/bug-strstr1.c: Likewise.
30
31         * elf/Makefile (dl-routines): Add hwcaps.
32         * elf/dl-support.c (_dl_important_hwcaps): Removed.
33         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
34         (_dl_important_hwcaps): Moved to ...
35         * elf/dl-hwcaps.c: Here.  New file.
36         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
37
38         [BZ #14557]
39         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
40         if IS_IN_rtld isn't defined.
41
42         * elf/dl-support.c (_dl_sysinfo_map): New.
43         Include "get-dynamic-info.h" and "setup-vdso.h".
44         (_dl_non_dynamic_init): Call setup_vdso.
45         * elf/dynamic-link.h: Don't include <assert.h>.
46         (elf_get_dynamic_info): Moved to ...
47         * elf/get-dynamic-info.h: Here.  New file.
48         * elf/dynamic-link.h: Include "get-dynamic-info.h".
49         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
50         * elf/setup-vdso.h: Here.  New file.
51         * elf/rtld.c: Include "setup-vdso.h".
52         (dl_main): Call setup_vdso.
53
54 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
55
56         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57         creal in comment listing functions tested.  List finite, isinf,
58         isnan, isless, islessequal, isgreater, isgreaterequal,
59         islessgreater, isunordered, lgamma_r and pow10 as functions and
60         macros not tested.  Mention which functions not tested are aliases
61         for other functions.  Fix typo.  Note that signs of NaNs are not
62         tested.
63
64         * scripts/config.guess: Update from config.git.
65         * scripts/config.sub: Likewise.
66
67 2012-10-04  Roland McGrath  <roland@hack.frob.com>
68
69         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
70         * misc/madvise.c (madvise): Renamed to __madvise.
71         Make madvise a weak alias.
72         * include/sys/mman.h: Declare __madvise.
73         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
74         * sysdeps/unix/syscalls.list
75         (madvise): Make __madvise the strong name, and madvise a weak alias.
76         * sysdeps/unix/sysv/linux/syscalls.list
77         (madvise, mmap): Remove redundant entries.
78         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
79         * malloc/malloc.c (mtrim): Likewise.
80         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
81
82 2012-10-03  Roland McGrath  <roland@hack.frob.com>
83
84         * sysdeps/mach/hurd/dl-cache.c: File removed.
85         * config.h.in (USE_LDCONFIG): New #undef.
86         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
87         * configure: Regenerated.
88         * elf/Makefile (dl-routines): Add dl-cache only under
89         [$(use-ldconfig) = yes].
90         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
91         cache on [USE_LDCONFIG].
92         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
93         [USE_LDCONFIG].
94         * elf/rtld.c (dl_main): Likewise.
95
96 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
97
98         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
99         _SC_LEVEL4_CACHE_LINESIZE.
100
101 2012-10-03  Roland McGrath  <roland@hack.frob.com>
102
103         * sysdeps/unix/bsd/confstr.h: File removed.
104
105 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
106
107         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
108         sys/sdt-config.h.
109
110 2012-10-02  Roland McGrath  <roland@hack.frob.com>
111
112         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
113         Make 'mapoff' field ElfW(Off) rather than off_t.
114
115 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
116
117         * nscd/Makefile: Remove nscd-cflags and all its users.
118         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
119         (CFLAGS-nonlib): Add compiler flags for nscd modules.
120
121         [BZ #10631]
122         * malloc.c (malloc_printerr): Clarify error message.
123
124 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
125
126         [BZ #14648]
127         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
128         Set bit_FMA_Usable if FMA is supported.
129         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
130         macro.
131         (bit_FMA4_Usable): Updated.
132         (index_FMA_Usable): New macro.
133         (CPUID_FMA): Likewise
134         (HAS_FMA): Defined with bit_FMA_Usable.
135
136 2012-10-01  Roland McGrath  <roland@hack.frob.com>
137
138         * bits/types.h (__swblk_t): Type removed.
139         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
140         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
141         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
142         (__SWBLK_T_TYPE): Likewise.
143         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
144         (__SWBLK_T_TYPE): Likewise.
145         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
146         (__SWBLK_T_TYPE): Likewise.
147         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
148         (__SWBLK_T_TYPE): Likewise.
149
150 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
151             Honza Horak <hhorak@redhat.com>
152
153         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
154         (xdr_mapname): Use YPMAXMAP as maxsize.
155         (xdr_peername): Use YPMAXPEER as maxsize.
156         (xdr_keydat): Use YPAXRECORD as maxsize.
157         (xdr_valdat): Use YPMAXRECORD as maxsize.
158
159 2012-10-01  Roland McGrath  <roland@hack.frob.com>
160
161         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
162
163         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
164         * csu/init-first.c: ... here.
165         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
166         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
167         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
168         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
169         * sysdeps/i386/init-first.c: File removed.
170         * sysdeps/sh/init-first.c: File removed.
171
172 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
173
174         [BZ #14645]
175         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
176         if x * y might underflow to zero and z is zero.
177         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
178         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
179         * math/libm-test.inc (min_subnorm_value): New variable.
180         (fma_test): Add more tests.
181         (fma_test_towardzero): Likewise.
182         (fma_test_downward): Likewise
183         (fma_test_upward): Likewise.
184         (initialize): Set min_subnorm_value.
185
186 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
187
188         [BZ #14638]
189         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
190         0 + 0.
191         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
192         mode for addition resulting in exact zero.
193         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
194         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
195         exact 0 + 0.
196         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
197         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
198         * math/libm-test.inc (fma_test): Add more tests.
199         (fma_test_towardzero): New function.
200         (fma_test_downward): Likewise.
201         (fma_test_upward): Likewise.
202         (main): Call the new functions.
203
204 2012-09-28  David S. Miller  <davem@davemloft.net>
205
206         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
207
208 2012-09-28  Roland McGrath  <roland@hack.frob.com>
209
210         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
211         instead of SIGALRM.
212
213         * sysdeps/gnu/_G_config.h: Moved to ...
214         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
215         * sysdeps/mach/hurd/_G_config.h: Moved to ...
216         * sysdeps/generic/_G_config.h: ... here.
217
218         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
219
220         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
221
222         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
223         Conditionalize target on [libnss_test1.so-version].
224
225         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
226
227         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
228         (elfobjdir): Move out of conditionals.
229
230         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
231         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
232         (__nss_lookup_function): Conditionalize label remove_from_tree on
233         [!DO_STATIC_NSS || SHARED], matching its only use.
234
235 2012-09-28  David S. Miller  <davem@davemloft.net>
236
237         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
238         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
239         file.
240         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
241         sysdep_routines.
242         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
243         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
244         when HWCAP_SPARC_CRYPTO is present.
245
246 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
247
248         * io/tst-mknodat.c: Create a FIFO instead of a socket.
249
250 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
251
252         [BZ #6530]
253         * stdio-common/vfprintf.c (process_string_arg): Revert
254         2000-07-22 change.
255
256 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
257
258         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
259         for testcase.
260         * stdio-common/tst-sprintf.c: Include <locale.h>
261         (main): Test sprintf's handling of incomplete multibyte
262         characters.
263
264 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
265
266         * elf/dl-runtime.c (VERSYMIDX): Removed.
267         * elf/dl-version.c (VERSYMIDX): Likewise.
268         * elf/do-rel.h (VERSYMIDX): Likewise.
269         (VALIDX): Likewise.
270         * elf/dynamic-link.h (VERSYMIDX): Likewise.
271         * elf/rtld.c (VALIDX): Likewise.
272         (ADDRIDX): Likewise.
273         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
274         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
275         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
276         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
277         (VALIDX): Likewise.
278         (ADDRIDX): Likewise.
279
280 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
281
282         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
283
284 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
285
286         [BZ #11438]
287         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
288         to global scope.
289         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
290         addresses are in the same scope as 192.0.2/24.
291         * posix/gai.conf: Document new scope table defaults.
292
293 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
294
295         [BZ #5298]
296         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
297         for ftell.  Compute offsets from write pointers instead.
298         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
299
300 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
301
302         [BZ #14543]
303         * libio/Makefile (tests): New test case tst-fseek.
304         * libio/tst-fseek.c: New test case to verify that fseek/ftell
305         combination works in wide mode.
306         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
307         state when the external buffer state changes.
308
309 2012-09-27  David S. Miller  <davem@davemloft.net>
310
311         [BZ #14376]
312         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
313         pass reloc->r_addend in as the 'high' argument to
314         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
315
316         * sysdeps/sparc/fpu/libm-test-ulps: Update.
317
318 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
319
320         * rt/tst-aio2.c: Include <pthread.h>.
321         * rt/tst-aio3.c: Likewise.
322
323 2012-09-27  Steve Ellcey  <sellcey@mips.com>
324
325         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
326
327 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
328
329         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
330         contents on [SHARED].
331
332 2012-09-26  Marek Polacek  <polacek@redhat.com>
333
334         [BZ #14530]
335         [BZ #13741]
336         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
337         for C++ and GCC <4.3 as well as for non GCC compilers.
338
339 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
340
341         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
342
343 2012-09-25  Roland McGrath  <roland@hack.frob.com>
344
345         * Makefile.in (all, install): Declare with .PHONY.
346         Reported by Michael Hope <michael.hope@linaro.org>.
347
348 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
349
350         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
351         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
352         system header.
353         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
354         Likewise.
355         (sydep_routines): Add the new and the internal functions.
356         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
357         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
359         (GLIBC_2.17): Add the new function.
360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
361         (GLIBC_2.17): Likewise.
362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
363         (GLIBC_2.17): Likewise.
364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
365         (GLIBC_2.17): Likewise.
366         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
367
368 2012-09-25  Alan Modra  <amodra@gmail.com>
369
370         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
371         Add release barrier before setting once_control to say
372         initialisation is done.  Add hints on lwarx.  Use macro in
373         place of isync.
374         (clear_once_control): Add release barrier.
375
376 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
377
378         [BZ #13629]
379         * math/s_clog.c (__clog): Handle more values close to |z| = 1
380         specially.
381         * math/s_clog10.c (__clog10): Likewise.
382         * math/s_clog10f.c (__clog10f): Likewise.
383         * math/s_clog10l.c (__clog10l): Likewise.
384         * math/s_clogf.c (__clogf): Likewise.
385         * math/s_clogl.c (__clogl): Likewise.
386         * math/Makefile (libm-calls): Add x2y2m1.
387         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
388         (__x2y2m1): Likewise.
389         (__x2y2m1l): Likewise.
390         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
391         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
392         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
393         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
394         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
395         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
396         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
397         * sysdeps/i386/fpu/libm-test-ulps: Update.
398         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
399
400         [BZ #14621]
401         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
402         int as type of variable DEPTH.
403         (glob): Use size_t instead of int as type of variables NEWCOUNT
404         and OLD_PATHC.
405
406 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
407
408         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
409         Add s_sincosf-sse2.
410         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
411         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
412         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
413         macros for using routine as __sincosf_ia32.
414         Use macro for function declaration and weak_alias.
415         * sysdeps/i386/fpu/libm-test-ulps: Update.
416
417         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
418         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
419
420         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
421         subnormal argument.
422         * math/s_cexpf.c (__cexpf): Likewise.
423         * math/s_csinf.c (__csinf): Likewise.
424         * math/s_csinhf.c (__csinhf): Likewise.
425         * math/s_ctanf.c (__ctanf): Likewise.
426         * math/s_ctanhf.c (__ctanhf): Likewise.
427         * math/s_ccosh.c (__ccoshf): Likewise.
428         * math/s_cexp.c (__cexpl): Likewise.
429         * math/s_csin.c (__csin): Likewise.
430         * math/s_csinh.c (__csinh): Likewise.
431         * math/s_ctan.c (__ctan): Likewise.
432         * math/s_ctanh.c (ctanh): Likewise.
433         * math/s_ccoshl.c (__ccoshl): Likewise.
434         * math/s_cexpl.c (__cexpl): Likewise.
435         * math/s_csinl.c (__csinl): Likewise.
436         * math/s_csinhl.c (__csinhl): Likewise.
437         * math/s_ctanl.c (__ctanl): Likewise.
438         * math/s_ctanhl.c (__ctanhl): Likewise.
439
440 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
441
442         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
443         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
444         (_IO_off_t): Define to __off_t, not _G_off_t.
445         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
446         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
447         (_IO_wint_t): Define to wint_t, not _G_wint_t.
448         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
449         type of __dummy and __dummy2 fields.
450         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
451         (_G_ssize_t): Likewise.
452         (_G_off_t): Likewise.
453         (_G_pid_t): Likewise.
454         (_G_uid_t): Likewise.
455         (_G_wchar_t): Likewise.
456         (_G_wint_t): Likewise.
457         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
458         (_G_ssize_t): Likewise.
459         (_G_off_t): Likewise.
460         (_G_pid_t): Likewise.
461         (_G_uid_t): Likewise.
462         (_G_wchar_t): Likewise.
463         (_G_wint_t): Likewise.
464         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
465         (_G_ssize_t): Likewise.
466         (_G_off_t): Likewise.
467         (_G_pid_t): Likewise.
468         (_G_uid_t): Likewise.
469         (_G_wchar_t): Likewise.
470         (_G_wint_t): Likewise.
471
472 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
473
474         * malloc/arena.c: Include malloc-sysdep.h.
475         (shrink_heap): Use check_may_shrink_heap to decide if madvise
476         is sufficient to shrink the heap or an unmap is needed.
477         * sysdeps/generic/malloc-sysdep.h: New file.  Define
478         new function check_may_shrink_heap.
479         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
480         new function check_may_shrink_heap.
481
482 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
483
484         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
485         comments.
486
487 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
488
489         * catgets/test-gencat.sh: Add "set -e".
490         * elf/tst-pathopt.sh: Likewise.
491         * grp/tst_fgetgrent.sh: Likewise.
492         * iconvdata/run-iconv-test.sh: Likewise.
493         * intl/tst-gettext.sh: Likewise.
494         * intl/tst-gettext2.sh: Likewise.
495         * intl/tst-gettext4.sh: Likewise.
496         * intl/tst-gettext6.sh: Likewise.
497         * intl/tst-translit.sh: Likewise.
498         * io/ftwtest-sh: Likewise.
499         * libio/test-freopen.sh: Likewise.
500         * malloc/tst-mtrace.sh: Likewise.
501         * posix/globtest.sh: Likewise.
502         * posix/tst-getconf.sh: Likewise.
503         * posix/wordexp-tst.sh: Likewise.
504         * stdio-common/tst-printf.sh: Likewise.
505         * stdio-common/tst-unbputc.sh: Likewise.
506         * stdlib/tst-fmtmsg.sh: Likewise.
507         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
508         * catgets/Makefile: Do not specify -e option when running
509         testsuite shell scripts.
510         * elf/Makefile: Likewise.
511         * grp/Makefile: Likewise.
512         * iconvdata/Makefile: Likewise.
513         * intl/Makefile: Likewise.
514         * io/Makefile: Likewise.
515         * libio/Makefile: Likewise.
516         * malloc/Makefile: Likewise.
517         * posix/Makefile: Likewise.
518         * stdio-common/Makefile: Likewise.
519         * stdlib/Makefile: Likewise.
520         * sysdeps/x86_64/Makefile: Likewise.
521
522         * io/ftwtest-sh: Add copyright header.
523         * posix/globtest.sh: Likewise.
524         * posix/tst-getconf.sh: Likewise.
525         * posix/wordexp-tst.sh: Likewise.
526         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
527
528 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
529
530         [BZ #13679]
531         * Makeconfig (+link): Defined as $(+link-static) if
532         $(build-shared) isn't yes.
533         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
534         isn't yes.
535         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
536
537         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
538
539         [BZ #14562]
540         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
541         new chunk size with MALLOC_ALIGN_MASK.
542
543 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
544
545         [BZ #5044]
546         * stdio-common/printf_fphex.c: Include <stdbool.h> and
547         <rounding-mode.h>.
548         (__printf_fphex): Determine rounding using get_rounding_mode and
549         round_away.
550         * stdio-common/tst-printf-round.c (struct hex_test): New
551         structure.
552         (hex_tests): New variable.
553         (test_hex_in_one_mode): New function.
554         (do_test): Also run tests for hex float output.
555
556 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
557
558         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
559         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
560         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
561         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
562         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
563         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
564         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
565         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
566
567 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
568
569         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
570         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
571         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
572         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
573
574 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
575
576         [BZ #14579]
577         * elf/rtld.c (dl_main): Limit the check for self loading to normal
578         mode only.
579         * elf/tst-rtld-load-self.sh: New test.
580         * elf/Makefile: Run it.
581
582 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
583
584         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
585         (tst-writev-ENV): Remove.
586         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
587
588 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
589
590         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
591
592 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
593
594         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
595         unconditional.
596         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
597         Likewise.
598         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
599         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
600         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
601         Likewise.
602
603 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
604
605         [BZ #14587]
606         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
607         * config.make.in (have-cpp-asm-debuginfo): Removed.
608         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
609         * configure: Regenerated.
610
611 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
612
613         [BZ #5044]
614         * stdio-common/printf_fp.c: Include <stdbool.h> and
615         <rounding-mode.h>.
616         (___printf_fp): Determine rounding using get_rounding_mode and
617         round_away.
618         * stdio-common/tst-printf-round.c: New file.
619         * stdio-common/Makefile (tests): Add tst-printf-round.
620         (link-libm): New variable.
621         ($(objpfx)tst-printf-round): Depend in $(link-libm).
622
623 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
624
625         [BZ #14576]
626         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
627         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
628         Likewise.
629         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
630         Likewise.
631
632 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
633
634         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
635         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
636         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
637         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
638
639 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
640
641         [BZ #14518]
642         * include/rounding-mode.h: New file.
643         * sysdeps/generic/get-rounding-mode.h: Likewise.
644         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
645         * stdlib/strtod_l.c: Include <rounding-mode.h>.
646         (MAX_VALUE): New macro.
647         (MIN_VALUE): Likewise.
648         (overflow_value): New function.
649         (underflow_value): Likewise.
650         (round_and_return): Use overflow_value and underflow_value to
651         determine return values in overflow and underflow cases.  Use
652         round_away to determine rounding depending on rounding mode.
653         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
654         determine return values in overflow and underflow cases.
655         * stdlib/tst-strtod-round.c: Include <fenv.h>.
656         (struct test_results): New structure.
657         (struct test): Use struct test_results to store expected results
658         for all rounding modes.
659         (TEST): Include expected results for all rounding modes.
660         (test_in_one_mode): New function.
661         (do_test): Use test_in_one_mode to compute and check results.
662         Check results for all rounding modes.
663         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
664         $(link-libm).
665
666 2012-12-09  Allan McRae  <allan@archlinux.org>
667
668         * sysdeps/i386/fpu/libm-test-ulps: Update
669
670 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
671
672         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
673         (_G_int32_t): Likewise.
674         (_G_uint16_t): Likewise.
675         (_G_uint32_t): Likewise.
676         (_G_HAVE_BOOL): Likewise.
677         (_G_HAVE_ATEXIT): Likewise.
678         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
679         (_G_HAVE_IO_FILE_OPEN): Likewise.
680         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
681         (_G_int32_t): Likewise.
682         (_G_uint16_t): Likewise.
683         (_G_uint32_t): Likewise.
684         (_G_HAVE_BOOL): Likewise.
685         (_G_HAVE_ATEXIT): Likewise.
686         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
687         (_G_HAVE_IO_FILE_OPEN): Likewise.
688         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
689         (_G_int32_t): Likewise.
690         (_G_uint16_t): Likewise.
691         (_G_uint32_t): Likewise.
692         (_G_HAVE_BOOL): Likewise.
693         (_G_HAVE_ATEXIT): Likewise.
694         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
695         (_G_HAVE_IO_FILE_OPEN): Likewise.
696
697 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
698
699         * csu/libc-tls.c: Update copyright years.
700
701 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
702
703         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
704         [!_G_USING_THUNKS]: Remove conditional code.
705         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
706         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
707
708         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
709         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
710         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
711         (_G_VTABLE_LABEL_PREFIX): Likewise.
712         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
713         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
714         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
715         (_G_VTABLE_LABEL_PREFIX): Likewise.
716         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
717         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
718         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
719         (_G_VTABLE_LABEL_PREFIX): Likewise.
720         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
721
722 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
723
724         * libio/Makefile: Include ../Makeconfig before tests.
725         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
726         only if $(build-shared) is yes.
727
728         * iconv/gconv_db.c: Update copyright years.
729
730 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
731
732         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
733         unwind info if defined PIC. Fix special cases description.
734         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
735
736         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
737         DP_HI_MASK entry.
738         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
739
740 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
741
742         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
743
744         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
745         is NULL.
746
747         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
748         (LDLIBS-tst-chk4): This.
749         (LDFLAGS-tst-chk5): Renamed to ...
750         (LDLIBS-tst-chk5): This.
751         (LDFLAGS-tst-chk6): Renamed to ...
752         (LDLIBS-tst-chk6): This.
753         (LDFLAGS-tst-lfschk4): Renamed to ...
754         (LDLIBS-tst-lfschk4): This.
755         (LDFLAGS-tst-lfschk5): Renamed to ...
756         (LDLIBS-tst-lfschk5): This.
757         (LDFLAGS-tst-lfschk6): Renamed to ...
758         (LDLIBS-tst-lfschk6): This.
759
760         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
761         on $(common-objpfx)soversions.mk.
762
763 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
764
765         [BZ #10014]
766         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
767         example host name.
768
769 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
770
771         * malloc/arena.c (arena_get_retry): New function that gets
772         another arena for the caller to try its request on.
773         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
774         current arena cannot fulfill the request.
775         (__libc_memalign): Likewise.
776         (__libc_memalign): Likewise.
777         (__libc_pvalloc): Likewise.
778         (__libc_calloc): Likewise.
779
780 2012-09-05  John Tobey  <john.tobey@gmail.com>
781
782         [BZ #13542]
783         * manual/arith.texi (Operations on Complex): Fix description
784         of carg branch cut.
785
786 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
787
788         [BZ #10014]
789         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
790         host name.
791
792         [BZ #10038]
793         * manual/memory.texi (Memory): Make order of menu items match
794         order of sections.
795
796 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
797
798         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
799         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
800         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
801
802 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
803
804         * csu/libc-tls.c (static_dtv): Renamed to ...
805         (_dl_static_dtv): This.  Make it global.
806         (_dl_initial_dtv): Removed.
807         (__libc_setup_tls): Updated.
808         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
809         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
810         DL_INITIAL_DTV.
811
812 2012-09-06  Petr Machata  <pmachata@redhat.com>
813
814         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
815         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
816         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
817         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
818
819 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
820
821         [BZ #14545]
822         * csu/libc-tls.c (_dl_initial_dtv): New variable.
823         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
824         freeing dtv[-1].
825
826 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
827
828         [BZ #14544]
829         * Makeconfig (link-static-before-libc): Replace $(+prector)
830         with $(+prectorT).
831         (link-static-after-libc): Replace $(+postctor) with
832         $(+postctorT).
833         (link-bounded): Replace $(+prector)/$(+postctor) with
834         $(+prectorT)/$(+postctorT).
835         (+prectorT): New macro.
836         (+postctorT): Likewise.
837
838 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
839
840         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
841         (round_str): Handle values above the maximum for IBM long double
842         as inexact.
843         * stdlib/tst-strtod-round.c (tests): Regenerated.
844
845 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
846
847         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
848         assembler flag.
849         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
850         zarch_nohighgprs around the zarch optimized routines.
851         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
852         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
853         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
854         for zarch.
855
856 2012-09-05  David S. Miller  <davem@davemloft.net>
857
858         * sysdeps/sparc/fpu/libm-test-ulps: Update.
859
860         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
861         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
862         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
863         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
864         entries.
865
866 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
867
868         * malloc/arena.c: Fold copyright years.
869         * malloc/mcheck.c, malloc/memusage.c: Likewise.
870
871 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
872
873         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
874
875 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
876
877         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
878
879 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
880
881         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
882         change internal state upon failure.
883
884 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
885
886         * malloc/mcheck.c (mcheck_check_all): Fix typo.
887         * malloc/memusage.c (mmap): Likewise.
888         (mmap64, mremap): Likewise.  Adjust name in comment.
889
890 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
891
892         * libio/fileops.c: Fix typos in comments.
893         * libio/oldfileops.c: Likewise.
894         * libio/wfileops.c: Likewise.
895
896 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
897
898         [BZ #1349]
899         * malloc/Makefile (tests): Add tst-malloc-usable test case.
900         (tst-malloc-usable-ENV): Set environment for test case.
901         * malloc/hooks.c (malloc_check_get_size): New function to get
902         requested size.
903         * malloc/malloc.c (musable): Use malloc_check_get_size.
904         * malloc/tst-malloc-usable.c: New test case.
905
906 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
907
908         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
909
910 2012-09-05  Allan McRae  <allan@archlinux.org>
911
912         [BZ #13966]
913         * configure.in (CXX_SYSINCLUDES): Use compiler output to
914         determine header location.
915         * configure: Regenerated.
916
917 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
918
919         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
920         float format.
921         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
922         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
923         format.
924         (test): Regenerate.
925
926 2012-09-04  David S. Miller  <davem@davemloft.net>
927
928         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
929         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
930         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
931
932 2012-09-04  Florian Weimer  <fweimer@redhat.com>
933
934         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
935         failures.
936
937         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
938
939 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
940
941         [BZ #9914]
942         * libio/iogetdelim.c: Include <limits.h>.
943         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
944         + len + 1 would overflow.
945
946 2012-09-03  Andreas Jaeger  <aj@suse.de>
947
948         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
949         * sysdeps/i386/fpu/libm-test-ulps: Update.
950
951 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
952
953         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
954         Add s_sinf-sse2, s_conf-sse2.
955
956         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
957         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
958         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
959         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
960
961         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
962         for using routine as __sinf_ia32.
963         Use macro for function declaration and weak_alias.
964         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
965         for using routine as __cosf_ia32.
966         Use macro for function declaration and weak_alias.
967
968         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
969         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
970
971         * sysdeps/x86_64/fpu/s_sinf.S: New file.
972         * sysdeps/x86_64/fpu/s_cosf.S: New file.
973         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
974
975         * math/libm-test.inc (cos_test): Add more test cases.
976         (sin_test): Likewise.
977         (sincos_test): Likewise.
978
979 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
980
981         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
982         (IFUNC_RESOLVE): Make pointers to the specialized implementations
983         hidden.
984         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
985
986 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
987
988         [BZ #14538]
989         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
990         first element of the GOT.
991         (elf_machine_load_address): Return the difference between
992         the runtime address of _DYNAMIC and elf_machine_dynamic ().
993
994 2012-09-01  Allan McRae  <allan@archlinux.org>
995
996         [BZ #13412]
997         * configure.in (AWK): Require gawk version 3.0 or later.
998         * configure: Regenerated.
999
1000 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1001
1002         * sysdeps/unix/sysv/linux/kernel-features.h
1003         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1004         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1005         [__NR_clock_getres]: Make code unconditional.
1006         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1007         (clock_getcpuclockid): Remove code left unreachable by removal of
1008         conditionals.
1009         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1010         code unconditional.
1011         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1012         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1013         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1014         Make code unconditional.
1015         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1016         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1017         * sysdeps/unix/sysv/linux/clock_settime.c
1018         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1019         conditional code.
1020         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1021         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1022
1023 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1024
1025         [BZ #14476]
1026         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1027         scripts/test-installation.pl.
1028
1029         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1030         and $ld_so_version if it is set.
1031
1032 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1033
1034         [BZ #14516]
1035         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1036         failure if reading from procfs failed.
1037         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1038
1039 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1040
1041         * sysdeps/unix/sysv/linux/kernel-features.h
1042         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1043         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1044         Remove conditional code.
1045         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1046         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1047         Remove conditional code.
1048         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1049         * sysdeps/unix/sysv/linux/i386/fxstat.c
1050         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1051         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1052         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1053         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1054         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1055         * sysdeps/unix/sysv/linux/i386/lxstat.c
1056         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1057         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1058         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1059         Remove conditional code.
1060         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1061         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1062         Remove conditional code.
1063         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1064         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1065         <kernel-features.h>.
1066         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1067         Remove.
1068         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1069         Remove conditional code.
1070         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1071         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1072         Remove conditional.
1073
1074 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1075
1076         [BZ #5400]
1077         * NEWS: Add fixed bug number.
1078
1079 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1080
1081         [BZ #14519]
1082         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1083         underflowing exponent in case of negative sign.
1084         * stdlib/tst-strtod-round-data: Add more tests.
1085         * stdlib/tst-strtod-round.c (tests): Regenerated.
1086
1087         [BZ #3479]
1088         * stdlib/strtod_l.c (NDIG): Remove.
1089         (HEXNDIG): Likewise.
1090         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1091         smallest representable value.
1092         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1093         lie within an exact representation of 1/2 ulp of the result.
1094         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1095         unconditionally.
1096         (TENS_P9_IDX): Define unconditionally.
1097         (TENS_P9_SIZE): Likewise.
1098         (TENS_P10_IDX): Likewise.
1099         (TENS_P10_SIZE): Likewise.
1100         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1101         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1102         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1103         entries for 10^2^13 and 10^2^14.
1104         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1105         (TENS_P13_IDX): Define.
1106         (TENS_P13_SIZE): Likewise.
1107         (TENS_P14_IDX): Likewise.
1108         (TENS_P14_SIZE): Likewise.
1109         (_fpioconst_pow10): Change array size to
1110         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1111         unconditional.
1112         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1113         1024]: Add entries for 10^2^13 and 10^2^14.
1114         [LAST_POW10 > _LAST_POW10]: Remove #error.
1115         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1116         (_fpioconst_pow10): Change array size to
1117         FPIOCONST_POW10_ARRAY_SIZE.
1118         * stdlib/gen-fpioconst.c: New file.
1119         * stdlib/gen-tst-strtod-round.c: Likewise.
1120         * stdlib/tst-strtod-round-data: Likewise.
1121         * stdlib/tst-strtod-round.c: Likewise.
1122         * stdlib/Makefile (tests): Add tst-strtod-round.
1123
1124         [BZ #14459]
1125         * stdlib/strtod_l.c: Include <stdint.h>.
1126         (NDEBUG): Do not define.
1127         (round_and_return): Change EXPONENT parameter to type intmax_t.
1128         Rearrange calculations to avoid internal overflow possibilities.
1129         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1130         Rearrange calculations to avoid internal overflow possibilities.
1131         Assert that number fits inside MPNSIZE limbs.
1132         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1133         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1134         calculations and add assertions to avoid internal overflow
1135         possibilities.  Add casts to avoid signed/unsigned operations.
1136         * stdlib/tst-strtod-overflow.c: New file.
1137         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1138
1139 2012-08-25  Marek Polacek  <polacek@redhat.com>
1140
1141         * time/time.h: Fix some typos in comments.
1142
1143 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1144
1145         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1146         * posix/tst-rfc3484-2.c: Likewise.
1147         * posix/tst-rfc3484-3.c: Likewise.
1148
1149 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1150
1151         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1152         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1153
1154 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1155
1156         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1157         #include of fxstatat64.c.
1158
1159 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1160
1161         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1162         * shadow/getspent_r.c: Likewise.
1163         * shadow/getspnam.c: Likewise.
1164         * shadow/getspnam_r.c: Likewise.
1165         * gshadow/getsgent.c: Likewise.
1166         * gshadow/getsgent_r.c: Likewise.
1167         * gshadow/getsgnam.c: Likewise.
1168         * gshadow/getsgnam_r.c: Likewise.
1169         * inet/getnetbyad.c: Likewise.
1170         * inet/getnetbyad_r.c: Likewise.
1171         * inet/getnetbynm.c: Likewise.
1172         * inet/getnetbynm_r.c: Likewise.
1173         * inet/getnetent.c: Likewise.
1174         * inet/getnetent_r.c: Likewise.
1175         * inet/getproto.c: Likewise.
1176         * inet/getproto_r.c: Likewise.
1177         * inet/getprtent.c: Likewise.
1178         * inet/getprtent_r.c: Likewise.
1179         * inet/getprtname.c: Likewise.
1180         * inet/getprtname_r.c: Likewise.
1181         * inet/getrpcbyname.c: Likewise.
1182         * inet/getrpcbyname_r.c: Likewise.
1183         * inet/getrpcbynumber.c: Likewise.
1184         * inet/getrpcbynumber_r.c: Likewise.
1185         * inet/getrpcent.c: Likewise.
1186         * inet/getrpcent_r.c: Likewise.
1187         * inet/getaliasent.c: Likewise.
1188         * inet/getaliasent_r.c: Likewise.
1189         * inet/getaliasname.c: Likewise.
1190         * inet/getaliasname_r.c: Likewise.
1191         * nscd/getgrgid_r.c: Likewise.
1192         * nscd/getgrnam_r.c: Likewise.
1193         * nscd/gethstbyad_r.c: Likewise.
1194         * nscd/gethstbynm3_r.c: Likewise.
1195         * nscd/getpwnam_r.c: Likewise.
1196         * nscd/getpwuid_r.c: Likewise.
1197         * nscd/getsrvbynm_r.c: Likewise.
1198         * nscd/getsrvbypt_r.c: Likewise.
1199         * nscd/gai.c: Likewise.
1200
1201         * configure.in (build_nscd): New substituted variable, set
1202         by --disable-build-nscd and defaults to $use_nscd.
1203         * configure: Regenerated.
1204         * config.make.in (build-nscd): New substituted variable.
1205         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1206         Change conditional to require [$(build-nscd) = yes] as well.
1207         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1208
1209         [BZ# 13696]
1210         * configure.in (use_nscd): New substituted variable, set by
1211         --disable-nscd.  If enabled, define USE_NSCD.
1212         * configure: Regenerated.
1213         * config.h.in: Add USE_NSCD.
1214         * config.make.in (use-nscd): New substituted variable.
1215         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1216         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1217         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1218         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1219         (CFLAGS-getgrnam_r.c): Likewise.
1220         (CFLAGS-initgroups.c): Likewise.
1221         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1222         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1223         Variables removed.
1224         * inet/getnetgrent_r.c
1225         (nscd_setnetgrent): New function, broken out of ...
1226         (setnetgrent): ... here.  Call it.
1227         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1228         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1229         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1230         * nscd/Makefile (routines, aux): Move definitions after include of
1231         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1232         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1233         Conditionalize on [USE_NSCD].
1234         (is_nscd, nscd_init_cb): Likewise.
1235         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1236         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1237         * nss/nss_db/db-init.c: Likewise.
1238         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1239         [USE_NSCD].
1240         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1241         (make_request): Use it.
1242         (cache_valid_p): New function.
1243         (__check_pf): Use it.
1244         * NEWS: Add item for --disable-nscd.
1245
1246 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1247
1248         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1249         to support sed >= 4.2.1-20-ga9bf076.
1250         * configure: Regenerated.
1251
1252 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1253
1254         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1255         Conditionalize whole body on [IREL].
1256
1257 2012-08-22  Jeff Law <law@redhat.com>
1258
1259         [BZ #14505]
1260         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1261         if the family is PF_UNSPEC.
1262
1263 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1264
1265         * Makerules (lib-version): Rename from V.
1266         (install-lib-nosubdir): Change V to lib-version.
1267
1268 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1269
1270         [BZ #14252]
1271         * powerpc32/power6/wcschr.c: New file.
1272         * powerpc32/power6/wcscpy.c: New file.
1273         * powerpc32/power6/wcsrchr.c: New file.
1274         * powerpc64/power6/wcschr.c: New file.
1275         * powerpc64/power6/wcscpy.c: New file.
1276         * powerpc64/power6/wcsrchr.c: New file.
1277
1278 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1279
1280         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1281         (two_way_short_needle): Use it.
1282         * string/strstr.c (AVAILABLE1_USES_J): Define.
1283         * string/strcasestr.c: Likewise.
1284
1285         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1286         array references.
1287         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1288
1289         [BZ #11607]
1290         * NEWS: Add an entry.
1291         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1292         define their defaults.
1293         (two_way_short_needle): Detect end-of-string on-the-fly.
1294         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1295         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1296         * string/bug-strcasestr1.c: New test.
1297         * string/Makefile: Run it.
1298
1299 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1300
1301         [BZ #11607]
1302         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1303         the first character.
1304
1305 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1306
1307         * csu/elf-init.c (__libc_csu_irel): Function removed.
1308         * csu/libc-start.c (apply_irel): New function.
1309         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1310
1311 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1312
1313         * sysdeps/unix/sysv/linux/kernel-features.h
1314         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1315         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1316         <kernel-features.h>.
1317         [__NR_fadvise64_64]: Make code unconditional.
1318         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1319         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1320         !__NR_fadvise64_64)]: Likewise.
1321         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1322         !__NR_fadvise64_64))]: Likewise.
1323         [__NR_fadvise64]: Make code unconditional.
1324         [!__NR_fadvise64]: Remove conditional code.
1325         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1326         <kernel-features.h>.
1327         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1328         unconditional.
1329         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1330         conditional code.
1331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1332         not include <kernel-features.h>.
1333         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1334         unconditional.
1335         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1336         conditional code.
1337         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1338         include <kernel-features.h>.
1339         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1340         unconditional.
1341         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1342         conditional code.
1343
1344 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1345
1346         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1347         slight instruction rearrangements per scrollpipe analysis.
1348         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1349
1350 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1351
1352         * manual/syslog.texi (syslog; vsyslog, closelog):
1353         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1354         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1355
1356         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1357         DSOCAPS to match condition on defining it.
1358
1359 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1360
1361         * sysdeps/unix/sysv/linux/kernel-features.h
1362         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1364         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1365         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1367         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1368         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1370         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1371         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1372
1373         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1374         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1375
1376         * sysdeps/unix/sysv/linux/kernel-features.h
1377         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1378         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1379         unconditional.
1380         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1381         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1382         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1383         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1384         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1385         Make code unconditional.
1386         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1387         (__mmap64) [!__NR_mmap2]: Likewise.
1388         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1389         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1390         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1391         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1392         [__NR_mmap2]: Make code unconditional.
1393         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1394         (__mmap64) [!__NR_mmap2]: Likewise.
1395
1396 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1397
1398         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1399
1400 2012-08-18  Andreas Jaeger  <aj@suse.de>
1401
1402         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1403
1404 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1405
1406         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1407         * include/unistd.h (__have_sock_cloexec): Likewise.
1408         (__have_pipe2): Likewise.
1409         (__have_dup3): Likewise.
1410
1411 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1412
1413         [BZ #9685]
1414         * include/unistd.h (__have_pipe2): Change define into an extern int.
1415         (__have_dup3): Likewise.
1416         * socket/have_sock_cloexec.c: Include fcntl.h.
1417         (__have_pipe2): New variable.
1418         (__have_dup3): Likewise.
1419
1420 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1421
1422         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1423
1424 2012-08-17  Marek Polacek  <polacek@redhat.com>
1425
1426         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1427         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1428
1429 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1430
1431         * configure.in: Add AC_SUBST for sysheaders.
1432         * configure: Regenerated.
1433         * config.make.in (sysheaders): New substituted variable.
1434
1435         * sysdeps/unix/mkfifo.c: Moved ...
1436         * sysdeps/posix/mkfifo.c: ... here.
1437         * sysdeps/unix/mkfifoat.c: Moved ...
1438         * sysdeps/posix/mkfifoat.c: ... here.
1439
1440         * sysdeps/unix/utime.c: Moved ...
1441         * sysdeps/posix/utime.c: ... here.
1442
1443         * sysdeps/unix/time.c: Moved ...
1444         * sysdeps/posix/time.c: ... here.
1445         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1446         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1447
1448         * sysdeps/unix/nice.c: Moved ...
1449         * sysdeps/posix/nice.c: ... here.
1450
1451         * sysdeps/unix/alarm.c: Moved ...
1452         * sysdeps/posix/alarm.c: ... here.
1453
1454         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1455
1456 2012-08-17  Jeff Law <law@redhat.com>
1457
1458         * intl/Makefile (codeset_mo): New variable.
1459         ($(codeset_mo)): New target.
1460         (tst-codeset.out): Depend on that.  Remove explicit rule.
1461         (tst-gettext3.out, tst-gettext5.out): Likewise.
1462         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1463         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1464         * intl/tst-codeset.sh: Remove.
1465         * intl/tst-gettext3.sh: Likewise.
1466         * intl/tst-gettext5.sh: Likewise.
1467
1468 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1469
1470         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1471         * sysdeps/unix/syscalls.list: ... here.
1472
1473         * sysdeps/posix/getaddrinfo.c
1474         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1475         (gaiconf_init, gaiconf_reload): Use them.
1476         [!_STATBUF_ST_NSEC]
1477         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1478         Define using time_t rather than struct timespec.
1479
1480         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1481         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1482         Macros removed.
1483         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1484         [!NO_THREADS].
1485         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1486         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1487         Likewise.
1488
1489         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1490         __libc_cleanup_push argument.
1491
1492         * bits/param.h: New file.
1493         * misc/sys/param.h: New file.
1494         * include/sys/param.h: New file.
1495         * misc/Makefile (headers): Add bits/param.h.
1496         * sysdeps/generic/sys/param.h: File removed.
1497         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1498         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1499         * sysdeps/mach/hurd/bits/param.h: New file.
1500         * sysdeps/mach/hurd/sys/param.h: New file.
1501
1502         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1503         last change.
1504
1505         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1506         [_IO_MTSAFE_IO].
1507         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1508         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1509         New macros.
1510
1511         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1512         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1513         rather than -D_IO_MTSAFE_IO conditionally.
1514         * stdio-common/Makefile (CPPFLAGS): Likewise.
1515         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1516         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1517         Use $(libio-mtsafe).
1518         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1519         of -D_IO_MTSAFE_IO.
1520         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1521         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1522         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1523         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1524         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1525         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1526         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1527         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1528         (CFLAGS-fread_u_chk.c): Likewise.
1529         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1530         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1531         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1532         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1533         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1534         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1535         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1536         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1537         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1538
1539         * libio/Makefile: Test [$(libc-reentrant) = yes]
1540         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1541
1542         * Makeconfig
1543         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1544         * sysdeps/pthread/configure: File removed.
1545         * sysdeps/pthread/Makeconfig: New file.
1546         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1547         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1548
1549 2012-08-16  Gary Benson  <gbenson@redhat.com>
1550
1551         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1552         unmapping the first object in a namespace.
1553
1554 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1555
1556         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1557         (__internal_setnetgrent): ... this.  Add internal_function to
1558         definition.  Add libc_hidden_def.
1559         (setnetgrent): Update caller.
1560         (internal_endnetgrent): Renamed to ...
1561         (__internal_endnetgrent): ... this.  Add internal_function to
1562         definition.  Add libc_hidden_def.
1563         (endnetgrent): Update caller.
1564         (internal_getnetgrent_r): Renamed to ...
1565         (__internal_getnetgrent_r): ... this.  Add internal_function to
1566         definition.  Add libc_hidden_def.
1567         (__getnetgrent_r): Update caller.
1568         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1569
1570 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1571
1572         * stdlib/longlong.h: Update from GCC.
1573
1574 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1575
1576         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1577         on _QL, which is set by umul_ppmm but never used.
1578         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1579         variables, which are set by GMP macros but never used.
1580         * stdio-common/_itowa.c (_itowa): Likewise.
1581         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1582         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1583
1584 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1585
1586         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1587         struct La_sh_regs is not constant.
1588         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1589         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1590         and struct La_sparc64_regs are not constant.
1591
1592 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1593
1594         * sysdeps/unix/sysv/linux/kernel-features.h
1595         (__ASSUME_POSIX_TIMERS): Remove.
1596         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1597         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1598         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1599         Make code unconditional.
1600         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1601         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1602         Make code unconditional.
1603         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1604         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1605         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1606         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1607         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1608         Make code unconditional.
1609         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1610         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1611         (__libc_missing_posix_timers): Remove.
1612
1613 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1614
1615         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1616         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1617
1618         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1619
1620         * elf/dl-sym.c: Include <stdlib.h>.
1621
1622         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1623         constants, which avoids warnings in 32-bit builds.
1624
1625         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1626         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1627
1628         * misc/lseek.c: File moved to ...
1629         * io/lseek.c: ... here.
1630
1631         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1632
1633         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1634         shifting LEN more than 31 bits at once.
1635
1636 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1637
1638         [BZ #14195]
1639         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1640         segmentation fault for a case of two empty input strings.
1641         * string/test-strncasecmp.c (check1): Renamed to...
1642         (bz12205): ...this.
1643         (bz14195): Add new testcase for two empty input strings and N > 0.
1644         (test_main): Call new testcase, adapt for renamed function.
1645
1646 2012-08-15  Andreas Jaeger  <aj@suse.de>
1647
1648         [BZ #14090]
1649         * crypt/md5test2.c: New test, based on test supplied by Serge
1650         Belyshev <belyshev@depni.sinp.msu.ru>.
1651         * crypt/Makefile (xtests): Add md5test-giant..
1652         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1653
1654 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1655
1656         [BZ #14090]
1657         * crypt/md5.c (md5_process_block): Don't assume the buffer
1658         length is less than 2**32.
1659         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1660         length is less than 2**64.
1661
1662 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1663
1664         * string/str-two-way.h: Include <sys/param.h>.
1665         (MAX): Macro removed.
1666
1667         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1668         Move #define and #undef of memmove to just before and after
1669         including <string.h>.
1670
1671         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1672         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1673         and after including <string.h>.  Move declarations of
1674         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1675         to before #include "string/memmove.c".
1676
1677         * include/dirent.h: Declare __getdirentries.
1678
1679         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1680         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1681
1682 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1683
1684         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1685         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1686         * sysdeps/i386/configure: Regenerated.
1687         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1688         STABS_CURRENT_FILE, and STABS_FUN.
1689         (END): Remove call to STABS_FUN_END.
1690         (STABS_CURRENT_FILE1): Delete.
1691         (STABS_CURRENT_FILE): Likewise.
1692         (STABS_FUN): Likewise.
1693         (STABS_FUN_END): Likewise.
1694         (STABS_FUN2): Likewise.
1695         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1696         * sysdeps/x86_64/configure: Regenerated.
1697
1698 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1699
1700         * elf/dl-open.c: Include <atomic.h>.
1701         * elf/dl-lookup.c: Likewise.
1702
1703 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1704
1705         * sysdeps/unix/sysv/linux/kernel-features.h
1706         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1707         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1708         unconditionally.
1709         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1710         unconditionally.
1711         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1712         condition on __ASSUME_CLONE_THREAD_FLAGS.
1713
1714 2012-08-14  Andreas Jaeger  <aj@suse.de>
1715
1716         * sysdeps/i386/fpu/libm-test-ulps: Update.
1717
1718 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1719
1720         * include/atomic.h (atomic_exchange_and_add): Split into ...
1721         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1722         New atomic macros.
1723
1724 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1725
1726         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1727
1728 2012-08-13  Jeff Law <law@redhat.com>
1729
1730         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1731         null byte in the output string.
1732
1733 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1734
1735         * sysdeps/unix/sysv/linux/kernel-features.h
1736         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1737         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1738         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1739         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1740         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1741         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1742         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1743
1744 2012-08-09  Jeff Law <law@redhat.com>
1745
1746         [BZ #13939]
1747         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1748         When avoid_arena is set, don't retry in the that arena.  Pick the
1749         next one, whatever it might be.
1750         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1751         (arena_lock): Pass in new parameter to arena_get2.
1752         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1753         arena_get2.
1754         (__libc_malloc): Unify retrying after main arena failure with
1755         __libc_memalign version.
1756         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1757
1758 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1759
1760         [BZ #14166]
1761         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1762         to __redirect_strstr.
1763         (__strstr_sse42): Use typeof __redirect_strstr.
1764         (__strstr_ia32): Likewise.
1765         (__libc_strstr): New prototype.
1766         (strstr): Renamed to ...
1767         (__libc_strstr): This.
1768         (strstr): New strong alias of __libc_strstr.
1769         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1770         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1771         __redirect_time.
1772         Include <time.h>.
1773         (__libc_time): New prototype.
1774         (time_ifunc): Replace time with __libc_time.
1775         (time): New strong alias and hidden definition of __libc_time.
1776         (__GI_time): Remove strong alias.
1777         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1778         Include <stddef.h>.
1779         (memmove): Redefined to __redirect_memmove.
1780         (__memmove_sse2): Use typeof __redirect_memmove.
1781         (__memmove_ssse3): Likewise.
1782         (__memmove_ssse3_back): Likewise.
1783         (__libc_memmove): New prototype.
1784         (memmove): Renamed to ...
1785         (__libc_memmove): This.
1786         (memmove): New strong alias of __libc_memmove.
1787
1788 2012-08-08  Mark Salter  <msalter@redhat.com>
1789
1790         * elf/elf.h
1791         (R_MN10300_TLS_GD): Define.
1792         (R_MN10300_TLS_LD): Likewise.
1793         (R_MN10300_TLS_LDO): Likewise.
1794         (R_MN10300_TLS_GOTIE): Likewise.
1795         (R_MN10300_TLS_IE): Likewise.
1796         (R_MN10300_TLS_LE): Likewise.
1797         (R_MN10300_TLS_DTPMOD): Likewise.
1798         (R_MN10300_TLS_DTPOFF): Likewise.
1799         (R_MN10300_TLS_TPOFF): Likewise.
1800         (R_MN10300_SYM_DIFF): Likewise.
1801         (R_MN10300_ALIGN): Likewise.
1802         (R_MN10300_NUM): Update.
1803
1804 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1805
1806         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1807         Remove.
1808
1809 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1810
1811         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1812
1813         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1814         sysdeps/unix -> sysdeps/posix move.
1815         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1816
1817 2012-08-07      Allan McRae     <allan@archlinux.org>
1818
1819         [BZ #14303]
1820         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1821         (SUNOS_CPP): Likewise.
1822         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1823         not found.
1824         (open_input): Call CPP using execvp.
1825
1826 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1827
1828         * sysdeps/unix/sysv/linux/kernel-features.h
1829         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1830         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1831         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1832         (__ASSUME_WAITID_SYSCALL): Likewise.
1833         * sysdeps/unix/sysv/linux/dl-execstack.c
1834         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1835         code unconditional.
1836         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1837         conditional code.
1838         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1839         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1840         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1841         code.
1842         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1843         unconditional.
1844         [__ASSUME_WAITID_SYSCALL]: Likewise.
1845         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1846
1847 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1848
1849         * sysdeps/unix/closedir.c: Renamed to ...
1850         * sysdeps/posix/closedir.c: ... here.
1851         * sysdeps/unix/dirfd.c: Renamed to ...
1852         * sysdeps/posix/dirfd.c: ... here.
1853         * sysdeps/unix/dirstream.h: Renamed to ...
1854         * sysdeps/posix/dirstream.h: ... here.
1855         * sysdeps/unix/fdopendir.c: Renamed to ...
1856         * sysdeps/posix/fdopendir.c: ... here.
1857         * sysdeps/unix/opendir.c: Renamed to ...
1858         * sysdeps/posix/opendir.c: ... here.
1859         * sysdeps/unix/readdir.c: Renamed to ...
1860         * sysdeps/posix/readdir.c: ... here.
1861         * sysdeps/unix/readdir_r.c: Renamed to ...
1862         * sysdeps/posix/readdir_r.c: ... here.
1863         * sysdeps/unix/rewinddir.c: Renamed to ...
1864         * sysdeps/posix/rewinddir.c: ... here.
1865         * sysdeps/unix/seekdir.c: Renamed to ...
1866         * sysdeps/posix/seekdir.c: ... here.
1867         * sysdeps/unix/telldir.c: Renamed to ...
1868         * sysdeps/posix/telldir.c: ... here.
1869         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1870         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1871         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1872         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1873
1874         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1875         * bits/fcntl.h: ... here.
1876
1877         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1878         not 0.
1879         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1880         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1881         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1882         (struct flock): Move l_start, l_len to the beginning.
1883         Use __pid_t for l_pid.
1884         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1885         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1886         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1887         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1888         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1889         [__USE_LARGEFILE64] (struct flock64): New type.
1890         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1891
1892         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1893         * bits/dirent.h: ... here.
1894
1895         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1896         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1897
1898 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1899
1900         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1901         Change from 2.6.0 to 2.6.16.
1902         * sysdeps/unix/sysv/linux/configure: Regenerated.
1903         * sysdeps/unix/sysv/linux/kernel-features.h
1904         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1905         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1906         version.
1907         (__ASSUME_UTIMES): Likewise.
1908         (__ASSUME_CLONE_STOPPED): Remove.
1909         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1910         architectures, not kernel version.
1911         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1912         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1913         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1914         (__ASSUME_WAITID_SYSCALL): Likewise.
1915         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1916         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1917         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1918         refer to older versions.
1919
1920 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1921
1922         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1923         Define alphasort64 as an alias.
1924         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1925         Define versionsort64 as an alias.
1926         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1927         Define scandir64 as an alias.
1928         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1929         Define scandirat64 as an alias.
1930         * dirent/alphasort64.c (alphasort64):
1931         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1932         * dirent/versionsort64.c: Likewise.
1933         * dirent/scandir64.c: Likewise.
1934         * dirent/scandirat64.c: Likewise.
1935         * sysdeps/wordsize-64/alphasort.c: File removed.
1936         * sysdeps/wordsize-64/alphasort64.c: File removed.
1937         * sysdeps/wordsize-64/scandir.c: File removed.
1938         * sysdeps/wordsize-64/scandir64.c: File removed.
1939         * sysdeps/wordsize-64/scandirat.c: File removed.
1940         * sysdeps/wordsize-64/scandirat64.c: File removed.
1941         * sysdeps/wordsize-64/versionsort.c: File removed.
1942         * sysdeps/wordsize-64/versionsort64.c: File removed.
1943         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1944         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1945         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1946         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1947         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1948         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1949         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1950         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1951
1952         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1953         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1954         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1955         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1956         [defined __arch64__ || defined __sparcv9]
1957         (__INO_T_MATCHES_INO64_T): New macro.
1958         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1959         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1960         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1961         * sysdeps/unix/sysv/linux/bits/dirent.h
1962         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1963         (_DIRENT_MATCHES_DIRENT64): New macro.
1964
1965         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1966         Define lockf64 as an alias.
1967         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1968         Define fseeko64 as an alias.
1969         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1970         Define ftello64 as an alias.
1971         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1972         Define _IO_fgetpos64 and fgetpos64 as aliases.
1973         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1974         Define _IO_fsetpos64 and fsetpos64 as aliases.
1975         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1976         Conditionalize body on this.
1977         * libio/fseeko64.c: Likewise.
1978         * libio/ftello64.c: Likewise.
1979         * libio/iofgetpos64.c: Likewise.
1980         * libio/iofsetpos64.c: Likewise.
1981         * sysdeps/wordsize-64/lockf.c: File removed.
1982         * sysdeps/wordsize-64/lockf64.c: File removed.
1983         * sysdeps/wordsize-64/fseeko.c: File removed.
1984         * sysdeps/wordsize-64/fseeko64.c: File removed.
1985         * sysdeps/wordsize-64/ftello.c: File removed.
1986         * sysdeps/wordsize-64/ftello64.c: File removed.
1987         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1988         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1989         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1990         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1991         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1992         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1993         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1994         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1995         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1996         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1997         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1998         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1999         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2000         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2001
2002         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2003         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2004         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2005         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2006         [defined __arch64__ || defined __sparcv9]
2007         (__OFF_T_MATCHES_OFF64_T): New macro.
2008         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2009         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2010         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2011         (__OFF_T_MATCHES_OFF64_T): New macro.
2012
2013 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2014
2015         * stdlib/secure-getenv.c (__secure_getenv): Replace
2016         GLIBC_2_16 with GLIBC_2_17.
2017
2018 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2019
2020         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2021         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2022
2023 2012-08-03  David S. Miller  <davem@davemloft.net>
2024
2025         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2026
2027 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2028
2029         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2030         Remove.
2031         (__ASSUME_CORRECT_SI_PID): Likewise.
2032         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2033         (__ASSUME_TMPFS_NAME): Likewise.
2034         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2035         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2036         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2037         (HAVE_AUX_SECURE): Make definition unconditional.
2038         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2039         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2040
2041 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2042
2043         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2044         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2045         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2046         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2047         __eloop_threshold instead of SYMLOOP_MAX.
2048
2049         * sysdeps/generic/eloop-threshold.h: New file.
2050         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2051         of MAXSYMLINKS.
2052         * elf/chroot_canon.c (chroot_canon): Likewise.
2053
2054 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2055
2056         [BZ #13717]
2057         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2058         Change to 2.6.0 everywhere.
2059         * sysdeps/unix/sysv/linux/configure: Regenerated.
2060         * sysdeps/unix/sysv/linux/kernel-features.h
2061         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2062         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2063         kernel versions.
2064         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2065         (__ASSUME_FUTEX_REQUEUE): Remove.
2066         (__ASSUME_STATFS64): Define unconditionally.
2067         (__ASSUME_AT_SECURE): Likewise.
2068         (__ASSUME_CORRECT_SI_PID): Likewise.
2069         (__ASSUME_TGKILL): Define without depending on kernel version for
2070         i386.
2071         (__ASSUME_UTIMES): Likewise.
2072         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2073         kernel version.
2074         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2075         (__ASSUME_TMPFS_NAME): Likewise.
2076         * README: Update reference to Linux kernel versions.
2077
2078 2012-08-02  Marek Polacek  <polacek@redhat.com>
2079
2080         [BZ# 14150]
2081         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2082         libc_cv_asm_type_prefix with %.
2083         * configure: Regenerated.
2084         * include/libc-symbols.h: Remove comment about
2085         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2086         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2087         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2088         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2089         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2090         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2091         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2092         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2093         * elf/tst-unique2mod1.c: Likewise.
2094         * elf/tst-unique1mod2.c: Likewise.
2095         * elf/tst-unique1mod1.c: Likewise.
2096         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2097         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2098         Replace ASM_TYPE_DIRECTIVE with .type.
2099         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2100         * sysdeps/i386/sysdep.h: Likewise.
2101         * sysdeps/x86_64/sysdep.h: Likewise.
2102         * sysdeps/sh/sysdep.h: Likewise.
2103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2104         Do not define ASM_TYPE_DIRECTIVE.
2105         * sysdeps/powerpc/sysdep.h: Likewise.
2106         * sysdeps/powerpc/powerpc32/sysdep.h:
2107         Replace ASM_TYPE_DIRECTIVE with .type.
2108         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2109         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2110         * sysdeps/i386/fpu/e_powf.S: Likewise.
2111         * sysdeps/i386/fpu/e_expl.S: Likewise.
2112         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2113         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2114         * sysdeps/i386/fpu/e_pow.S: Likewise.
2115         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2116         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2117         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2118         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2119         * sysdeps/i386/fpu/e_log2.S: Likewise.
2120         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2121         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2122         * sysdeps/i386/fpu/e_powl.S: Likewise.
2123         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2124         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2125         * sysdeps/i386/fpu/e_logl.S: Likewise.
2126         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2127         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2128         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2129         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2130         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2131         * sysdeps/i386/fpu/e_log.S: Likewise.
2132         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2133         * sysdeps/i386/fpu/e_logf.S: Likewise.
2134         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2135         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2136         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2137         * sysdeps/i386/fpu/e_log10.S: Likewise.
2138         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2139         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2140         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2141         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2142         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2143         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2144         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2145         * sysdeps/i386/i686/strtok.S: Likewise.
2146         * sysdeps/i386/i386-mcount.S: Likewise.
2147         * sysdeps/i386/strtok.S: Likewise.
2148         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2149         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2150         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2151         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2152         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2153         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2154         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2155         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2156         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2157         * sysdeps/x86_64/_mcount.S: Likewise.
2158         * sysdeps/x86_64/strtok.S: Likewise.
2159         * sysdeps/sh/_mcount.S: Likewise.
2160
2161 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2162
2163         * libio/iofopen.c: Include <fcntl.h>.
2164         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2165         (_IO_fopen64, fopen64): Define as aliases.
2166         * libio/iofopen64.c: Include <fcntl.h>.
2167         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2168         Conditionalize body on this.
2169         * sysdeps/wordsize-64/iofopen.c: File removed.
2170         * sysdeps/wordsize-64/iofopen64.c: File removed.
2171
2172 2012-08-01  Marek Polacek  <polacek@redhat.com>
2173
2174         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2175         Use dlfcn directly instead of a variable.
2176         (binfmt-subdir): Do not define.
2177         (dlfcn): Likewise.
2178
2179 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2180
2181         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2182         Remove all definitions.
2183         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2184         <kernel-features.h>.
2185         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2186         (miss_F_GETOWN_EX): Remove all definitions.
2187         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2188         macro definition.
2189         [!__ASSUME_FCNTL64]: Remove conditional code.
2190         [__ASSUME_FCNTL64]: Make code unconditional.
2191         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2192         <kernel-features.h>.
2193         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2194         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2195         (lockf64) [__NR_fcntl64]: Make code unconditional.
2196         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2197
2198         * sysdeps/unix/sysv/linux/kernel-features.h
2199         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2200         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2201         Make code unconditional.
2202         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2203         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2205         [__NR_vfork]: Make code unconditional.
2206         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2207         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2209         [__NR_vfork]: Make code unconditional.
2210         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2211         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2212
2213 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2214
2215         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2216         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2217
2218         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2219         Define mkstemp64 as an alias.
2220         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2221         Define mkstemps64 as an alias.
2222         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2223         Define mkostemp64 as an alias.
2224         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2225         Define mkostemps64 as an alias.
2226         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2227         Conditionalize body on this.
2228         * misc/mkostemp64.c: Likewise.
2229         * misc/mkostemps64.c: Likewise.
2230         * misc/mkstemps64.c: Likewise.
2231         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2232         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2233         * sysdeps/wordsize-64/mkostemp.c: File removed.
2234         * sysdeps/wordsize-64/mkstemp.c: File removed.
2235         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2236         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2237         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2238         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2239
2240         [BZ #14138]
2241         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2242         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2243         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2244         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2245
2246         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2247         compat_symbol macros from <shlib-compat.h> rather than the underlying
2248         default_symbol_version and symbol_version macros, so that DEFAULT
2249         lines in shlib-versions are respected.
2250         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2251
2252 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2253
2254         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2255         Declare with warn_unused_result.
2256         (setgid, setregid, setegid, setresgid): Likewise.
2257         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2258         Likewise.
2259         * WUR-REPORT: Remove set*id functions.
2260
2261 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2262
2263         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2264
2265 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2266
2267         * include/sys/socket.h (__libc_accept, __libc_accept4):
2268         Add attribute_hidden.
2269         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2270
2271         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2272         use of PTR_MANGLE.
2273         * inet/getnetgrent_r.c (setup): Likewise.
2274
2275         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2276
2277 2012-07-31  David S. Miller  <davem@davemloft.net>
2278
2279         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2280
2281 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2282
2283         [BZ #13629]
2284         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2285         value between 1.0 and 2.0 and smaller part has absolute value less
2286         than 1.0.
2287         * math/s_clog10.c (__clog10): Likewise.
2288         * math/s_clog10f.c (__clog10f): Likewise.
2289         * math/s_clog10l.c (__clog10l): Likewise.
2290         * math/s_clogf.c (__clogf): Likewise.
2291         * math/s_clogl.c (__clogl): Likewise.
2292         * math/libm-test.inc (clog_test): Add more tests.
2293         (clog10_test): Likewise.
2294         * sysdeps/i386/fpu/libm-test-ulps: Update.
2295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2296
2297 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2298
2299         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2300         Exit with zero in case no suitable GID is found, and write a
2301         message to standard error.
2302
2303 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2304
2305         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2306         rather than to 1.
2307         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2308         (MAXPATHLEN): Removed.
2309         (NOGROUP, NODEV): New macros.
2310         (setbit, clrbit, isset, isclr): New macros.
2311         (howmany, roundup, powerof2): New macros.
2312         (DEV_BSIZE): New macro.
2313
2314         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2315         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2316
2317         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2318         definition on [!__NO_LONG_DOUBLE_MATH].
2319
2320         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2321         PTR_MANGLE and PTR_DEMANGLE.
2322
2323         * socket/accept4.c (accept4): Rename to __libc_accept4.
2324         Define accept4 as a weak alias.
2325
2326         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2327         on [_DIRENT_HAVE_D_TYPE].
2328         * io/ftw.c (ftw_dir): Likewise.
2329
2330         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2331
2332         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2333
2334         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2335         Use the BSD numbers rather than the arbitrary ones we had.
2336         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2337         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2338         (SIGXCPU, SIGXFSZ): New macros.
2339         (_NSIG): Now 32.
2340
2341         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2342         initializer on [_LIBC_REENTRANT].
2343
2344         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2345         definitions inside [_POSIX_MAPPED_FILES].
2346
2347         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2348
2349         * dirent/opendir.c: Include <fcntl.h>.
2350
2351         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2352         (__libc_getspecific): Likewise.
2353         (__libc_key_create): Likewise.
2354
2355         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2356         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2357         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2358         (tmpfile64): Define as alias.
2359         * sysdeps/wordsize-64/tmpfile.c: File removed.
2360         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2361         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2362         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2363
2364         * stdio-common/vfscanf.c: Include <stdbool.h>.
2365         * nss/makedb.c: Likewise.
2366         * stdio-common/_i18n_number.h: Likewise.
2367         * argp/argp-help.c: Likewise.
2368         * posix/wordexp.c: Likewise.
2369         * sysdeps/posix/spawni.c: Likewise.
2370         * nss/nss_files/files-initgroups.c: Likewise.
2371         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2372         * nss/nss_files/files-initgroups.c: Likewise.
2373         * nss/nss_db/db-netgrp.c: Likewise.
2374         * nss/nss_db/db-initgroups.c: Likewise.
2375         * io/fchmodat.c: Include <sys/stat.h>.
2376
2377         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2378         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2379
2380         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2381         [HAVE_MMAP].
2382
2383         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2384         Add multiple inclusion protection.
2385
2386 2012-07-27  David S. Miller  <davem@davemloft.net>
2387
2388         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2389
2390 2012-07-27  Gary Benson  <gbenson@redhat.com>
2391
2392         [BZ #14298]
2393         * elf/rtld.c: Include <stap-probe.h>.
2394         (dl_main): Added static probes "init_start" and "init_complete".
2395         * elf/dl-load.c: Include <stap-probe.h>.
2396         (lose): Take new parameter "nsid".
2397         Added static probe "map_failed".
2398         (_dl_map_object_from_fd): Pass namespace id to lose.
2399         Added static probe "map_start".
2400         (open_verify): Pass namespace id to lose.
2401         * elf/dl-open.c: Include <stap-probe.h>.
2402         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2403         and "reloc_complete".
2404         * elf/dl-close.c: Include <stap-probe.h>.
2405         (_dl_close_worker): Added static probes "unmap_start" and
2406         "unmap_complete".
2407         * elf/rtld-debugger-interface.txt: New file documenting the above.
2408
2409 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2410
2411         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2412         rather than a string variable.
2413         * sunrpc/rpc_main.c (h_output): Likewise.
2414         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2415
2416 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2417
2418         * inet/check_native.c: New file.
2419
2420 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2421
2422         [BZ #13629]
2423         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2424         if larger part has absolute value 1.0.
2425         * math/s_clog10.c (__clog10): Likewise.
2426         * math/s_clog10f.c (__clog10f): Likewise.
2427         * math/s_clog10l.c (__clog10l): Likewise.
2428         * math/s_clogf.c (__clogf): Likewise.
2429         * math/s_clogl.c (__clogl): Likewise.
2430         * math/libm-test.inc (clog_test): Add more tests.
2431         (clog10_test): Likewise.
2432         * sysdeps/i386/fpu/libm-test-ulps: Update.
2433         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2434
2435         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2436         (pltexit): Likewise.
2437         (La_regs): Likewise.
2438         (La_retval): Likewise.
2439         (int_retval): Likewise.
2440         Update #error for removed macros to refer only to definitions in
2441         tst-audit.h.
2442         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2443         macro.
2444         (pltexit): Likewise.
2445         (La_regs): Likewise.
2446         (La_retval): Likewise.
2447         (int_retval): Likewise.
2448         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2449         macro.
2450         (pltexit): Likewise.
2451         (La_regs): Likewise.
2452         (La_retval): Likewise.
2453         (int_retval): Likewise.
2454         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2455         macro.
2456         (pltexit): Likewise.
2457         (La_regs): Likewise.
2458         (La_retval): Likewise.
2459         (int_retval): Likewise.
2460         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2461         macro.
2462         (pltexit): Likewise.
2463         (La_regs): Likewise.
2464         (La_retval): Likewise.
2465         (int_retval): Likewise.
2466         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2467         macro.
2468         (pltexit): Likewise.
2469         (La_regs): Likewise.
2470         (La_retval): Likewise.
2471         (int_retval): Likewise.
2472         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2473         macro.
2474         (pltexit): Likewise.
2475         (La_regs): Likewise.
2476         (La_retval): Likewise.
2477         (int_retval): Likewise.
2478         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2479         macro definitions in tst-audit.h.
2480         * sysdeps/i386/tst-audit.h: New file.
2481         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2482         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2483         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2484         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2485         * sysdeps/sh/tst-audit.h: Likewise.
2486         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2487         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2488         * sysdeps/x86_64/tst-audit.h: Likewise.
2489
2490 2012-07-26  Andreas Jaeger  <aj@suse.de>
2491
2492         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2493         ptrace.
2494
2495         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2496         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2497         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2498         PTRACE_O_MASK.
2499         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2500         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2501         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2502
2503         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2504         value.
2505
2506         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2507         _sigsys.
2508         (si_call_addr, si_syscall, si_arch): Define new macro.
2509         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2510         _sigsys.
2511         (si_call_addr, si_syscall, si_arch): Define new marcro.
2512         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2513         _sigsys.
2514         (si_call_addr, si_syscall, si_arch): Define new macro.
2515         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2516         _sigsys.
2517         (si_call_addr, si_syscall, si_arch): Define new macro.
2518
2519 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2520
2521         [BZ #13717]
2522         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2523         Change to 2.4.21 where previously 2.4.1.
2524         * sysdeps/unix/sysv/linux/configure: Regenerated.
2525         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2526         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2527         Linux kernel version.
2528         (__ASSUME_STD_AUXV): Remove.
2529         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2530         kernel version.
2531         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2532         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2533         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2534         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2535         (__ASSUME_NETLINK_SUPPORT): Likewise.
2536         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2537         (__no_netlink_support): Remove conditional definition.
2538         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2539         Remove.
2540         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2541         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2542         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2543         (if_nameindex_ioctl): Remove.
2544         (if_nameindex_netlink): Do not handle __no_netlink_support.
2545         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2546         code.
2547         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2548         Remove conditional code.
2549         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2550         code.
2551         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2552         unconditional.
2553         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2554         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2555         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2556         Remove.
2557         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2558         [!__ASSUME_STD_AUXV]: Remove conditional code.
2559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2560         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2561         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2563         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2564         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2565         code.
2566         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2568         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2569         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2570         conditional code.
2571         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2573         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2574         code.
2575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2576         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2577         conditional code.
2578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2579         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2580         code unconditional.
2581         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2582         conditional code.
2583         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2584         unconditional.
2585         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2586         conditional code.
2587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2588         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2589         unconditional.
2590         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2591         conditional code.
2592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2593         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2594         code unconditional.
2595         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2596         conditional code.
2597         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2598         unconditional.
2599         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2600         conditional code.
2601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2602         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2603         code unconditional.
2604         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2605         conditional code.
2606         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2607         unconditional.
2608         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2609         conditional code.
2610
2611 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2612
2613         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2614         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2615         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2616         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2617         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2618         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2619         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2620         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2621         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2622         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2623         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2624         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2625         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2626         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2627         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2628         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2629         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2630         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2631         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2632         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2633         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2634         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2635         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2636
2637 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2638
2639         * Versions.def: Add GLIBC_2.17.
2640         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2641         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2642         Introduce __libc_secure_getenv.
2643         * stdlib/Versions (2.17): Add secure_getenv
2644         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2645         * stdlib/secure-getenv.c: Rename __secure_getenv to
2646         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2647         symbol __secure_getenv for GLIBC_2.0.
2648         * stdlib/tst-secure-getenv.c: New.
2649         * stdlib/Makefile (tests): Add testcase.
2650         * manual/startup.texi (Environment Access): Document
2651         secure_getenv.
2652         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2653         __libc_secure_getenv.
2654         * inet/ruserpass.c (ruserpass): Likewise.
2655         * malloc/mtrace.c (mtrace): Likewise.
2656         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2657         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2658         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2659         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2660         HAVE_SECURE_GETENV.
2661         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2662         __secure_getenv to __libc_secure_getenv.
2663         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2665         Likewise.
2666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2667         Likewise.
2668         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2669         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2670         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2671         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2672         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2673         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2674         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2675
2676 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2677
2678         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2679         (struct La_i86_retval): Likewise.
2680         (struct La_x86_64_regs): Likewise.
2681         (struct La_x86_64_retval): Likewise.
2682         (struct La_x32_regs): Likewise.
2683         (struct La_x32_retval): Likewise.
2684         (struct La_ppc32_regs): Likewise.
2685         (struct La_ppc32_retval): Likewise.
2686         (struct La_ppc64_regs): Likewise.
2687         (struct La_ppc64_retval): Likewise.
2688         (struct La_sh_regs): Likewise.
2689         (struct La_sh_retval): Likewise.
2690         (struct La_s390_32_regs): Likewise.
2691         (struct La_s390_32_retval): Likewise.
2692         (struct La_s390_64_regs): Likewise.
2693         (struct La_s390_64_retval): Likewise.
2694         (struct La_sparc32_regs): Likewise.
2695         (struct La_sparc32_retval): Likewise.
2696         (struct La_sparc64_regs): Likewise.
2697         (struct La_sparc64_retval): Likewise.
2698         (struct audit_ifaces): Remove architecture-specific pltenter and
2699         pltexit members.
2700         * sysdeps/i386/ldsodefs.h: New file.
2701         * sysdeps/powerpc/ldsodefs.h: Likewise.
2702         * sysdeps/s390/ldsodefs.h: Likewise.
2703         * sysdeps/sh/ldsodefs.h: Likewise.
2704         * sysdeps/sparc/ldsodefs.h: Likewise.
2705         * sysdeps/x86_64/ldsodefs.h: Likewise.
2706
2707 2012-07-25  Marek Polacek  <polacek@redhat.com>
2708
2709         [BZ #6808]
2710         * math/libm-test.inc (yn_test): Add another test.
2711         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2712         to ERANGE when the result is +-Inf.
2713         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2714         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2715         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2716         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2717
2718 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2719
2720         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2721         equal to 0.
2722         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2723         clock_t.
2724         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2725
2726 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2727
2728         * configure.in <sysdeps resolving>: Correct printing
2729         Implies_before.
2730         * configure: Regenerate.
2731
2732 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2733
2734         * math/w_ilogb.c: Include <limits.h>.
2735         * math/w_ilogbl.c: Likewise.
2736
2737 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2738
2739         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2740         va_copy.  Document allowing for unavailable va_copy only as
2741         pre-C99 compatibility.
2742         * manual/string.texi (Copying and Concatenation): Use va_copy
2743         instead of __va_copy in concat example.
2744
2745 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2746
2747         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2748         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2749         it if not null.
2750
2751         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2752         with O_NOLINK passed to __file_name_lookup.
2753
2754         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2755         with O_NOLINK passed to __file_name_lookup.
2756
2757         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2758         negative N or less than NGIDS.
2759
2760         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2761         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2762         enough.  Use memcpy instead of strncpy.
2763
2764 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2765
2766         * elf/Makefile (check-data): Remove.
2767         (localplt.data): New vpath directive.
2768         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2769         instead of $(check-data).
2770         * scripts/data/localplt-generic.data: Move to ...
2771         * sysdeps/generic/localplt.data: ... here.
2772         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2773         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2774         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2776         ... here.
2777         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2779         ... here.
2780         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2781         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2782         ... here.
2783         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2784         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2785         ... here.
2786         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2787         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2788         ... here.
2789         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2790         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2791         ... here.
2792
2793 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2794
2795         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2796         PPC32 and PPC64 files.
2797         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2798         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2799
2800 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2801
2802         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2803         __makecontext_ret to ...
2804         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2805         ... here and call exit if uc_link is NULL.  New file.
2806         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2807         __makecontext_ret.S.
2808         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2809         __makecontext_ret to ...
2810         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2811         ... here and call exit if uc_link is NULL.  New file.
2812         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2813         __makecontext_ret.S.
2814
2815 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2816
2817         * elf/elf.h (R_390_IRELATIVE): New definition.
2818         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2819         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2820         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2821         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2822         (elf_machine_lazy_rel): Likewise.
2823         * sysdeps/s390/dl-irel.h: New file.
2824         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2825         * sysdeps/s390/s390-64/memset.S: New asm code.
2826         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2827         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2828         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2829         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2830         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2831         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2832         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2833         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2834         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2835         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2836         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2837         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2838         * sysdeps/s390/s390-32/memset.S: New asm code.
2839         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2840
2841 2012-07-17  Marek Polacek  <polacek@redhat.com>
2842
2843         [BZ #14349]
2844         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2845         * sysdeps/s390/s390-64/configure.in: Likewise.
2846         * sysdeps/sparc/configure.in: Likewise.
2847         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2848         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2849         * sysdeps/i386/configure.in: Likewise.
2850         * sysdeps/x86_64/configure.in: Likewise.
2851         * sysdeps/sh/configure.in: Likewise.
2852         * sysdeps/s390/s390-32/configure: Regenerated.
2853         * sysdeps/s390/s390-64/configure: Likewise.
2854         * sysdeps/x86_64/configure: Likewise.
2855         * sysdeps/sh/configure: Likewise.
2856         * sysdeps/powerpc/powerpc64/configure: Likewise.
2857         * sysdeps/powerpc/powerpc32/configure: Likewise.
2858         * sysdeps/sparc/configure: Likwise.
2859         * sysdeps/i386/configure: Likewise.
2860
2861         * elf/dl-open.c: Comment fixes.
2862
2863 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2864
2865         * Makefile [CXX] (check-data): Remove.
2866         [CXX] (c++-types.data): New vpath directive.
2867         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2868         vpath.  Do not allow for C++ type data being missing.
2869         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2870         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2871         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2872         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2873         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2874         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2875         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2877         ... here.
2878         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2880         ... here.
2881         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2882         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2883         ... here.
2884         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2885         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2886         ... here.
2887         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2888         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2889         ... here.
2890         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2891         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2892         ... here.
2893         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2894         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2895         ... here.
2896         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2897         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2898
2899         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2900         definitions to architecture-specific files.
2901         (TLS_IE): Likewise.
2902         (TLS_LD): Likewise.
2903         (TLS_GD): Likewise.
2904         * sysdeps/i386/tls-macros.h: New file.
2905         * sysdeps/powerpc/tls-macros.h: Likewise.
2906         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2907         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2908         * sysdeps/sh/tls-macros.h: Likewise.
2909         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2910         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2911         * sysdeps/x86_64/tls-macros.h: Likewise.
2912
2913 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2914
2915         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2916         zero value for regular exit case.
2917
2918         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2919         (__start_context): Preserve zero value for regular exit case.
2920
2921 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2922             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2923
2924         * manual/setjmp.texi (setcontext): Clarify normal process
2925         termination when uc_link is the null pointer.
2926         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2927         exit call.
2928
2929 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2930
2931         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2932         preprocessor.  Test for each exception mask separately.
2933
2934 2012-07-16  Andreas Jaeger  <aj@suse.de>
2935
2936         * po/ru.po: Update from translation team.
2937
2938 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2939
2940         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2941         equal to 0.
2942         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2943         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2944         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2945         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2946         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2947
2948 2012-07-13  Andreas Jaeger  <aj@suse.de>
2949
2950         * po/fr.po: Update from translation team.
2951
2952 2012-07-12  Marek Polacek  <polacek@redhat.com>
2953
2954         [BZ #14173]
2955         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2956         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2957         loop condition.
2958
2959 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2960
2961         [BZ #13717]
2962         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2963         Change to 2.4.1 where previously 2.4.0.
2964         * sysdeps/unix/sysv/linux/configure: Regenerated.
2965         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2966         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2967         version.
2968         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2969         (__ASSUME_AT_CLKTCK): Remove.
2970         (__ASSUME_AT_PAGESIZE): Likewise.
2971         (__ASSUME_AT_XID): Likewise.
2972         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2973         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2974         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2975         unconditionally.
2976         (HAVE_AUX_PAGESIZE): Likewise.
2977         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2978         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2979         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2980
2981 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2982
2983         [BZ #14307]
2984         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2985         the temporary buffer used to invoke __gethostbyname2_r,
2986         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2987         host_data / struct gaih_addrtuple.
2988         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2989         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2990         header file nss/nsswitch.h.
2991         * nss/nsswitch.h (global scope): Add definition of implementation
2992         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2993         resolv/nss_dns/dns-host.c).
2994
2995 2012-07-11  Andreas Jaeger  <aj@suse.de>
2996
2997         * po/fr.po: Update from translation team.
2998
2999         * po/sv.po: Update from translation team
3000         * po/fr.po: Another update from translation team.
3001
3002 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3003
3004         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3005         for subnormals or multiply small sinh result by itself.
3006         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3007         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3008
3009 2012-07-11  David S. Miller  <davem@davemloft.net>
3010
3011         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3012
3013 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3014
3015         [BZ #14347]
3016         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3017         (INTERNAL_MARK): Shift it here.
3018
3019 2012-07-10  Marek Polacek  <polacek@redhat.com>
3020
3021         [BZ #14151]
3022         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3023         libc_cv_asm_global_directive with .globl.
3024         * configure: Regenerated.
3025         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3026         with .globl.
3027         * sysdeps/i386/configure: Regenerated.
3028         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3029         with .globl.
3030         * sysdeps/x86_64/configure: Regenerated.
3031         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3032         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3033         * elf/tst-unique2mod2.c: Likewise.
3034         * elf/tst-unique2mod1.c: Likewise.
3035         * elf/tst-unique1mod2.c: Likewise.
3036         * elf/tst-unique1mod1.c: Likewise.
3037         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3038         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3039         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3040         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3041         * sysdeps/mach/sysdep.h: Likewise.
3042         * sysdeps/i386/sysdep.h: Likewise.
3043         * sysdeps/i386/i386-mcount.S: Likewise.
3044         * sysdeps/x86_64/_mcount.S: Likewise.
3045         * sysdeps/x86_64/sysdep.h: Likewise.
3046         * sysdeps/sh/_mcount.S: Likewise.
3047         * sysdeps/sh/sysdep.h: Likewise.
3048         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3049         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3050         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3051         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3052         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3053         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3054         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3055         * locale/localeinfo.h: Likewise.
3056         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3057         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3058
3059 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3060
3061         [BZ #14336]
3062         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3063         system".
3064         * manual/message.texi (The Uniforum approach): Likewise.
3065         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3066         (glibc iconv Implementation): Likewise.
3067
3068 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3069
3070         [BZ #14337]
3071         * math/s_clog.c (__clog): Avoid scaling a value down where that
3072         could result in underflow.
3073         * math/s_clog10.c (__clog10): Likewise.
3074         * math/s_clog10f.c (__clog10f): Likewise.
3075         * math/s_clog10l.c (__clog10l): Likewise.
3076         * math/s_clogf.c (__clogf): Likewise.
3077         * math/s_clogl.c (__clogl): Likewise.
3078         * math/libm-test.inc (clog_test): Add more tests.
3079         (clog10_test): Likewise.
3080         * sysdeps/i386/fpu/libm-test-ulps: Update.
3081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3082
3083 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3084
3085         [BZ #14283]
3086         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3087         by 7 not 8 to examine high bit of fractional part.
3088
3089         [BZ #14042]
3090         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3091         for call to __mcount_internal.
3092         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3093         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3094         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3095
3096 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3097
3098         [BZ #14154]
3099         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3100         approximation for values within 0x1p-13f of an odd multiple of
3101         pi/4.
3102         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3103         exception.  Add more tests.
3104         * sysdeps/i386/fpu/libm-test-ulps: Update.
3105
3106         [BZ #6778]
3107         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3108         inputs and return -1 for them.  Do not check for +Inf in case not
3109         reachable for +Inf.
3110         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3111         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3112         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3113         and return -1 for them.  Do not check for +Inf in case not
3114         reachable for +Inf.
3115         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3116         define.
3117         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3118         and return -1 for them.  Do not check for +Inf in case not
3119         reachable for +Inf.
3120         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3121         spurious underflow.
3122         * sysdeps/i386/fpu/libm-test-ulps: Update.
3123         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3124
3125 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3126
3127         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3128
3129 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3130
3131         [BZ #14157]
3132         [BZ #14331]
3133         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3134         could result in spurious underflow.  Scale down values above
3135         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3136         * math/s_csqrtf.c (__csqrtf): Likewise.
3137         * math/s_csqrtl.c (__csqrtl): Likewise.
3138         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3139         spurious underflow.
3140         * sysdeps/i386/fpu/libm-test-ulps: Update.
3141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3142
3143 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3144
3145         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3146         xopen-msg.sed.
3147         * catgets/xopen-msg.awk: New file.
3148         * catgets/xopen-msg.sed: Removed.
3149
3150         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3151         po2text.sed.
3152         * intl/po2test.awk: New file.
3153         * intl/po2test.sed: Removed.
3154
3155 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3156
3157         [BZ #14328]
3158         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3159         or multiply small sinh result by itself.
3160         * math/s_ctanf.c (__ctanf): Likewise.
3161         * math/s_ctanh.c (__ctanh): Likewise.
3162         * math/s_ctanhf.c (__ctanhf): Likewise.
3163         * math/s_ctanhl.c (__ctanhl): Likewise.
3164         * math/s_ctanl.c (__ctanl): Likewise.
3165         * math/libm-test.inc (ctan_test_tonearest): New function.
3166         (ctan_test_towardzero): Likewise.
3167         (ctan_test_downward): Likewise.
3168         (ctan_test_upward): Likewise.
3169         (ctanh_test_tonearest): Likewise.
3170         (ctanh_test_towardzero): Likewise.
3171         (ctanh_test_downward): Likewise.
3172         (ctanh_test_upward): Likewise.
3173         (main): Call these new functions.
3174         * sysdeps/i386/fpu/libm-test-ulps: Update.
3175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3176
3177 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3178
3179         * .gitignore: Delete /ports entry.
3180
3181 2012-07-03  Andreas Jaeger  <aj@suse.de>
3182
3183         * po/bg.po: Update from translation team.
3184         * po/cs.po: Likewise.
3185         * po/de.po: Likewise.
3186         * po/hr.po: Likewise.
3187         * po/nl.pl: Likewise.
3188         * po/pl.po: Likewise.
3189         * po/vi.po: Likewise.
3190
3191 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3192
3193         * Makeconfig [!+link] (+link-before-libc): New variable.
3194         [!+link] (+link-after-libc): Likewise.
3195         [!+link] (+link-tests): Likewise.
3196         [!+link] (+link): Define in terms of $(+link-before-libc) and
3197         $(+link-after-libc).
3198         [!+link-static] (+link-static-before-libc): New variable.
3199         [!+link-static] (+link-static-after-libc): Likewise.
3200         [!+link-static] (+link-static-tests): Likewise.
3201         [!+link-static] (+link-static): Define in terms of
3202         $(+link-static-before-libc) and $(+link-static-after-libc).
3203         [build-shared] (link-libc-before-gnulib): New variable.
3204         [build-shared] (link-libc-tests): Likewise.
3205         [build-shared] (link-libc): Define in terms of
3206         $(link-libc-before-gnulib).
3207         [!build-shared] (link-libc-tests): New variable.
3208         (link-libc-static-tests): New variable.
3209         [!gnulib] (gnulib-arch): New variable.
3210         [!gnulib] (gnulib-tests): Likewise.
3211         [!gnulib] (static-gnulib-arch): Likewise.
3212         [!gnulib] (static-gnulib-tests): Likewise.
3213         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3214         Define with "=" instead of ":=".
3215         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3216         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3217         * Rules (binaries-all-notests): New variable.
3218         (binaries-all-tests): Likewise.
3219         (binaries-static-notests): Likewise.
3220         (binaries-static-tests): Likewise.
3221         (binaries-all): Define using $(binaries-all-notests) and
3222         $(binaries-all-tests).
3223         (binaries-static): Define using $(binaries-static-notests) and
3224         $(binaries-static-tests).
3225         (binaries-shared-tests): New variable.
3226         (binaries-shared-notests): Likewise.
3227         (binaries-shared): Remove variable.
3228         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3229         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3230         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3231         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3232         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3233         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3234         * elf/Makefile (sln-modules): New variable.
3235         (extra-objs): Add $(sln-modules:=.o).
3236         (ldconfig-modules): Add static-stubs.
3237         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3238         * elf/static-stubs.c: New file.
3239
3240         [BZ #14283]
3241         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3242         by 7 not 8 to examine high bit of fractional part.  Use volatile
3243         variables when splitting into final array of floats if
3244         __FLT_EVAL_METHOD__ != 0.
3245         * math/libm-test.inc (cos_test): Add another test.
3246         (sin_test): Likewise.
3247         * sysdeps/i386/fpu/libm-test-ulps: Update.
3248
3249         [BZ #14273]
3250         * math/libm-test.inc (cosh_test): Add more tests.
3251
3252         * version.h (RELEASE): Set to "development".
3253         (VERSION): Set to "2.16.90".
3254
3255 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3256
3257         * NEWS: Update copyright. Remove last-updated date.
3258         Mention math library bug fixes and timezone data changes.
3259         * README: Mention GNU/Hurd, x32, and HPPA support status.
3260
3261 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3262
3263         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3264
3265 2012-06-27  Andreas Jaeger  <aj@suse.de>
3266
3267         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3268
3269 2012-06-25  Andreas Jaeger  <aj@suse.de>
3270
3271         * sysdeps/s390/fpu/libm-test-ulps: Update.
3272
3273 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3274             Thomas Schwinge  <thomas@codesourcery.com>
3275
3276         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3277         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3278         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3279         fanotify_mark.
3280
3281 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3282
3283         * sysdeps/mach/start.c: Remove file.
3284         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3285         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3286         * sysdeps/sh/init-first.c: Likewise.
3287
3288         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3289         registers for frame unwinding purposes, add CFI directives.
3290         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3291         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3292         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3293         Likewise.
3294
3295         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3296         __fortify_fail returning.
3297         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3298
3299         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3300         sysdeps/sh/____longjmp_chk.S.
3301         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3302         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3303         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3304         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3305
3306         * sysdeps/sh/abort-instr.h: New file.
3307         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3308         process in case exit returns.
3309
3310         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3311         initialize the GOT register before use.
3312
3313         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3314         calculation of ARGC > 4.
3315
3316         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3317         meaningful names to some local labels.
3318
3319 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3320             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3321
3322         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3323         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3324         (__arch_compare_and_exchange_val_16_acq): Likewise.
3325         (__arch_compare_and_exchange_val_32_acq): Likewise.
3326         (atomic_exchange_and_add): Fix gUSA sequence.
3327         (atomic_add): Likewise.
3328         (atomic_add_negative): Likewise.
3329         (atomic_add_zero): Likewise.
3330         (atomic_bit_test_set): Likewise.
3331
3332 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3333
3334         [BZ #13579]
3335         * include/link.h (struct link_map): Add l_free_initfini.
3336         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3337         l_initfini.
3338         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3339         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3340         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3341         set.
3342
3343 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3344
3345         * configure.in: Use AC_LANG_SOURCE.
3346         * configure: Regenerate.
3347
3348 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3349
3350         * configure.in (libc_cv_localstatedir): New substituted variable.
3351         * configure: Regenerated.
3352         * config.make.in (localstatedir): New variable, substituted from
3353         libc_cv_localstatedir.
3354         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3355         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3356         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3357         * sysdeps/gnu/configure: Regenerated.
3358
3359 2012-06-21  Jeff Law  <law@redhat.com>
3360
3361         [BZ #14277]
3362         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3363         free.  Simplify list management for _LIBC case.
3364
3365 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3366
3367         [BZ #14273]
3368         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3369         Clear sign bit of 64-bit integer value before comparing against
3370         overflow value.
3371
3372         * sysdeps/mach/configure: Regenerated.
3373
3374 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3375
3376         [BZ #14278]
3377         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3378
3379 2012-06-21  Jeff Law  <law@redhat.com>
3380
3381         [BZ #13882]
3382         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3383         uint16_t for elements in the "seen" array to avoid char overflows.
3384         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3385         * elf/dl-open.c (dl_open_worker): Likewise.
3386
3387 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3388
3389         * scripts/list-sources.sh: Scan PORTS for translations.
3390         * po/libc.pot: Regenerated.
3391
3392 2012-06-21  Andreas Jaeger  <aj@suse.de>
3393
3394         [BZ #12194]
3395         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3396         warning.
3397         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3398         * bits/byteswap-16.h (__bswap_16): Likewise.
3399         * bits/byteswap.h (__bswap_constant_16): Likewise.
3400
3401 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3402
3403         [BZ #14117]
3404         * sysdeps/i386/fpu_control.h: Removed.
3405         * sysdeps/x86_64/fpu_control.h: Moved to ...
3406         * sysdeps/x86/fpu_control.h: Here.
3407
3408         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3409         (_FPU_SETCW): Likewise.
3410
3411 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3412
3413         [BZ #14117]
3414         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3415         * sysdeps/x86/fpu/bits/mathinline.h: This.
3416         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3417
3418         [BZ #14050]
3419         [BZ #14117]
3420         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3421         functions if __x86_64__ is defined.
3422
3423 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3424
3425         * string/endian.h: Add !__ASSEMBLER__ condition for including
3426         conversion interfaces.
3427
3428 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3429
3430         [BZ #14241]
3431         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3432         of ABS(x) in calculating zero to negative powers other than odd
3433         integers.
3434         * math/libm-test.inc (pow_test): Add more tests.
3435
3436 2012-06-15  Andreas Jaeger  <aj@suse.de>
3437
3438         * manual/contrib.texi (Contributors): Update entry of Liubov
3439         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3440         Machado Filho.
3441
3442 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3443
3444         * string/string.h: Add __wur to GNU version of strerror_r.
3445
3446 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3447
3448         [BZ #14229]
3449         * string/Makefile (tests): Add tst-strtok_r.
3450         * string/tst-strtok_r.c: New file.
3451         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3452         RAX_LP/RDX_LP on SAVE_PTR.
3453
3454 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3455
3456         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3457
3458 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3459
3460         * libm_test.inc (csqrt_test): Allow more spurious underflow
3461         exceptions.
3462         (j0_test): Likewise.
3463         (j1_test): Likewise.
3464         (y0_test): Likewise.
3465         (y1_test): Likewise.
3466
3467 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3468
3469         * po/Makefile (libc.pot): Use UTF-8 charset.
3470
3471 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3472
3473         [BZ #14210]
3474         Suppress sign-conversion warning from FD_SET.
3475         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3476         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3477         not unsigned long int.
3478         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3479
3480 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3481
3482         [BZ #14050]
3483         [BZ #14117]
3484         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3485         __extern_always_inline instead of __extern_inline.
3486         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3487         (__signbit): Likewise.
3488         (__signbitl): Support C++ namespace.
3489         (lrintf): New inline function.
3490         (lrint): Likewise.
3491         (llrintf): Likewise.
3492         (llrint): Likewise.
3493         (fmaxf): Likewise.
3494         (fmax): Likewise.
3495         (fminf): Likewise.
3496         (fmin): Likewise.
3497         (rint): Likewise.
3498         (rintf): Likewise.
3499         (ceil): Likewise.
3500         (ceilf): Likewise.
3501         (floor): Likewise.
3502         (floorf): Likewise.
3503         (nearbyint): Likewise.
3504         (nearbyintf): Likewise.
3505
3506 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3507
3508         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3509         non-default versions.
3510
3511 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3512
3513         [BZ #14218]
3514         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3515
3516 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3517
3518         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3519         (FE_UPWARD, FE_DOWNWARD): Don't define.
3520         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3521         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3522
3523         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3524         reading it.
3525         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3526         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3527
3528 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3529
3530         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3531         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3532         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3533         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3534
3535 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3536
3537         [BZ #14117]
3538         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3539         * sysdeps/i386/fpu/Implies: New file.
3540         * sysdeps/x86_64/fpu/Implies: Likewise.
3541         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3542         * sysdeps/x86/fpu/bits/fenv.h: This.
3543
3544         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3545         __SSE_MATH__.
3546
3547 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3548
3549         [BZ #14134]
3550         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3551         character 0xffff that matches the last element of the
3552         conversion table.
3553
3554 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3555
3556         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3557         fmodl commit.
3558
3559 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3560
3561         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3562         values higher than 25.6283.
3563
3564 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3565
3566         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3567         subnormal exponent extraction and add some __builtin_expect.
3568         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3569         Fix for subnormal mantissa calculation.
3570
3571 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3572
3573         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3574         cpu2 is -1 and errno is not ENOSYS.
3575
3576 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3577
3578         [BZ #14117]
3579         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3580         * sysdeps/x86/bits/string.h: This.
3581         * sysdeps/x86_64/bits/string.h: Removed.
3582
3583         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3584         if not compiling for x86-64, but compiling for >= i486.
3585
3586         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3587         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3588
3589         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3590         New macro from Linux kernel 3.4.0.
3591         (FP_XSTATE_MAGIC2): Likewise.
3592         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3593         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3594         (struct _fpx_sw_bytes): New struct.
3595         (struct _xsave_hdr): Likewise.
3596         (struct _ymmh_state): Likewise.
3597         (struct _xstate): Likewise.
3598
3599         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3600         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3601         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3602         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3603         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3604         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3605
3606         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3607         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3608         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3609         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3610         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3611         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3612
3613 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3614
3615         [BZ #13743]
3616         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3617         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3618         (sysdep_headers): Include sys/platform/ppc.h.
3619         * sysdeps/powerpc/test-gettimebase.c: Test for
3620         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3621         * manual/Makefile (appendices): Include platform.texi.
3622         * manual/contrib.texi (Contributors): Update @node pointers.
3623         * manual/maint.texi (Maintenance): Likewise.
3624         (Platform): New node.
3625         * manual/platform.texi: New file.  Document the new features.
3626
3627 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3628             Jakub Jelinek  <jakub@redhat.com>
3629
3630         [BZ #14188]
3631         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3632         where __builtin_expect is unavailable.
3633
3634 2012-06-03  David S. Miller  <davem@davemloft.net>
3635
3636         * stdlib/longlong.h: Updated from GCC.
3637
3638 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3639
3640         [BZ #14042]
3641         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3642         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3643         __mcount_internal.
3644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3645         (GLIBC_2.16): Likewise.
3646
3647 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3648
3649         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3650
3651 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3652
3653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3654         (default-abi): New variable.
3655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3656         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3657         variable.
3658         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3659         Likewise.
3660         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3661         Likewise.
3662         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3663         Likewise.
3664
3665         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3666         definition.  Document in comment.
3667
3668 2012-06-01  David S. Miller  <davem@davemloft.net>
3669
3670         * stdlib/longlong.h: Updated from GCC.
3671
3672 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3673
3674         [BZ #14117]
3675         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3676         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3677         sys/debugreg.h sys/io.h here.
3678         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3679         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3680         sys/io.h.
3681         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3682         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3683         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3684         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3685         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3686         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3687
3688         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3689         Define only if __x86_64__ is defined.
3690
3691 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3692
3693         [BZ #14048]
3694         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3695         Use int64_t for variable i.
3696         * math/libm-test.inc (fmod_test): Add more tests.
3697
3698         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3699         z computation is not scheduled after fetestexcept.
3700         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3701         Use math_force_eval instead of asm to ensure calculation scheduled
3702         before exception test.
3703         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3704         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3705
3706 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3707
3708         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3709         computation is not scheduled after fetestexcept.
3710
3711 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3712
3713         [BZ #14117]
3714         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3715         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3716
3717 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3718
3719         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3720         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3721
3722 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3723
3724         [BZ #14117]
3725         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3726         <bits/wordsize.h>.
3727         (__WCHAR_MIN): Support __WORDSIZE == 64.
3728         (__WCHAR_MAX): Likewise.
3729
3730         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3731         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3732
3733         [BZ #14183]
3734         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3735         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3736
3737         [BZ #14117]
3738         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3739         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3740
3741         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3742         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3743
3744         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3745         Defined to 1 if __x86_64__ isn't defined.
3746         (_STAT_VER_LINUX_OLD): New.
3747         (st_atime): Remove duplicate.
3748         (st_mtime): Likewise.
3749         (st_ctime): Likewise.
3750
3751 2012-05-31  David S. Miller  <davem@davemloft.net>
3752
3753         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3754         entries.
3755
3756 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3757
3758         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3759         gen-libm-test.pl.
3760
3761         [BZ #14132]
3762         * elf/dl-reloc.c: Include <_itoa.h>.
3763         (_dl_reloc_bad_type): Remove use of INTUSE.
3764         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3765         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3766         * stdio-common/psiginfo.c (psiginfo): Likewise.
3767         * stdio-common/psignal.c (psignal): Likewise.
3768         * string/strsignal.c (strsignal): Likewise.
3769         * include/signal.h (_sys_siglist): Declare hidden proto.
3770         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3771         INTVARDEF with libc_hidden_data_def.
3772         * stdio-common/itoa-udigits.c: Likewise.
3773         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3774         (_itoa_lower_digits_internal): Remove declaration.
3775         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3776         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3777         (_sys_sigabbrev_internal): Remove aliases.
3778         (_sys_siglist): Define hidden alias.
3779
3780 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3781
3782         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3783         bits/sysctl.h.
3784
3785 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3786
3787         [BZ #14117]
3788         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3789         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3790
3791         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3792         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3793         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3794         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3795         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3796         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3797
3798         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3799         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3800         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3801
3802         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3803         with __addr.
3804         (insw): Likewise.
3805         (insl): Likewise.
3806         (outsb): Likewise.
3807         (outsw): Likewise.
3808         (outsl): Likewise.
3809
3810         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3811         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3812         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3813
3814         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3815         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3816         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3817         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3818         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3819         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3820
3821         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3822         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3823
3824         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3825         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3826
3827         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3828         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3829         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3830
3831         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3832         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3833         to ...
3834         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3835
3836         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3837         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3838         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3839
3840         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3841         for x86-64.
3842         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3843
3844 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3845
3846         * math/math.h (M_El): Use two more decimal places.
3847         (M_LOG2El): Likewise.
3848         (M_LOG10El): Likewise.
3849         (M_LN2l): Likewise.
3850         (M_LN10l): Likewise.
3851         (M_PIl): Likewise.
3852         (M_PI_2l): Likewise.
3853         (M_PI_4l): Likewise.
3854         (M_1_PIl): Likewise.
3855         (M_2_PIl): Likewise.
3856         (M_2_SQRTPIl): Likewise.
3857         (M_SQRT2l): Likewise.
3858         (M_SQRT1_2l): Likewise.
3859
3860 2012-05-31  David S. Miller  <davem@davemloft.net>
3861
3862         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3863         values between float registers.
3864         * sysdeps/sparc/sparc64/memset.S: Likewise.
3865         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3866
3867 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3868
3869         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3870         -D_FORTIFY_SOURCE=1.
3871         (CPPFLAGS-tst-longjmp_chk.c): Define.
3872         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3873         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3874         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3875         CFLAGS-tst-wchar-h.c.
3876
3877 2012-05-31  Marek Polacek  <polacek@redhat.com>
3878
3879         [BZ #14132]
3880         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3881         __endmntent_internal): Remove declaration.
3882         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3883         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3884         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3885
3886 2012-05-30  David S. Miller  <davem@davemloft.net>
3887
3888         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3889         (___Q_simulate_exceptions): Use real FP ops rather than writing
3890         into the %fsr.
3891         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3892         Likewise.
3893
3894 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3895
3896         [BZ #14117]
3897         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3898         * sysdeps/x86/bits/xtitypes.h: This.
3899
3900         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3901         * sysdeps/x86/bits/wordsize.h: This.
3902
3903         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3904         * sysdeps/x86/bits/huge_vall.h: This.
3905
3906         * sysdeps/i386/bits/select.h: Removed.
3907         * sysdeps/x86_64/bits/select.h: Renamed to ...
3908         * sysdeps/x86/bits/select.h: This.
3909
3910         * sysdeps/i386/bits/setjmp.h: Removed.
3911         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3912         * sysdeps/x86/bits/setjmp.h: This.
3913
3914         * sysdeps/i386/bits/mathdef.h: Removed.
3915         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3916         * sysdeps/x86/bits/mathdef.h: This.
3917
3918 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3919
3920         [BZ #14132]
3921         * include/sys/socket.h (__connect_internal)
3922         (__libc_sa_len_internal): Remove declaration.
3923         (__connect, __libc_sa_len): Declare hidden_proto.
3924         (SA_LEN): Remove use of INTUSE.
3925         * socket/connect.c: Add libc_hidden_def.
3926         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3927         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3928         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3929         alias.
3930         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3931         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3932         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3933         of adding _internal alias.
3934
3935 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3936
3937         [BZ #14117]
3938         * sysdeps/i386/bits/link.h: Removed.
3939         * sysdeps/i386/bits/linkmap.h: Likewise.
3940         * sysdeps/x86_64/bits/link.h: Renamed to ...
3941         * sysdeps/x86/bits/link.h: This.
3942         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3943         * sysdeps/x86/bits/linkmap.h: This.
3944
3945         * sysdeps/i386/bits/endian.h: Removed.
3946         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3947         * sysdeps/x86/bits/endian.h: This.
3948
3949         * sysdeps/i386/bits/byteswap.h: Removed.
3950         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3951         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3952         * sysdeps/x86/bits/byteswap.h: This.
3953         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3954         * sysdeps/x86/bits/byteswap-16.h: This.
3955         * sysdeps/i386/Implies: Add x86.
3956         * sysdeps/x86_64/Implies: Likewise.
3957
3958 2012-05-30  David S. Miller  <davem@davemloft.net>
3959
3960         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3961         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3962         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3963         (FP_TRAPPING_EXCEPTIONS): Define.
3964         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3965         (FP_TRAPPING_EXCEPTIONS): Define.
3966         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3967         subnormals only when inexact has been signalled or underflow
3968         exceptions are enabled.
3969         (_FP_PACK_CANONICAL): Likewise.
3970
3971 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3972
3973         [BZ #14183]
3974         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3975         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3976
3977 2012-05-30  Richard Henderson  <rth@twiddle.net>
3978
3979         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3980         with #ifndef NOT_IN_libc.
3981
3982         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3983         marked to avoid plt entry.
3984
3985 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3986
3987         [BZ #14112]
3988         * Makeconfig (default-abi): New macro.
3989         (abi-includes): Likewise.
3990         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3991         $(abi-$(default-abi)-lib-soname) for soname if defined.
3992         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3993         abi-variants.
3994         * Makefile (installed-stubs): Likewise.
3995         * include/stubs-biarch.h: Removed.
3996         * scripts/lib-names.awk: Only handle one library at a time.
3997         * scripts/soversions.awk: Remove WORDSIZE support.
3998         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3999         entries.
4000         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4001         Removed.
4002         (syscall-list-default-condition): Likewise.
4003         (syscall-list-default-condition): Likewise.
4004         (syscall-list-includes): Likewise.
4005         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4006         syscall-list-* with abi-*.  Handle undefined abi-variants.
4007         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4008         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4009         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4010         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4011         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4012         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4013         Removed.
4014         (syscall-list-32-options): Likewise.
4015         (syscall-list-32-condition): Likewise.
4016         (syscall-list-64-options): Likewise.
4017         (syscall-list-64-condition): Likewise.
4018         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4019         macro.
4020         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4021         Renamed to ...
4022         (abi-*): This.
4023         (abi-64-ld-soname): New macro.
4024         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4025         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4026         Renamed to ...
4027         (abi-*): This.
4028         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4029         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4030
4031 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4032
4033         * sysdeps/unix/sysv/linux/kernel-features.h
4034         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4035         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4036         include <kernel-features.h>.
4037         [!__NR_ftruncate64]: Remove conditional code.
4038         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4039         [__NR_ftruncate64]: Make code unconditional.
4040         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4041         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4042         include <kernel-features.h>.
4043         [!__NR_ftruncate64]: Remove conditional code.
4044         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4045         [__NR_ftruncate64]: Make code unconditional.
4046         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4048         include <kernel-features.h>.
4049         [!__NR_ftruncate64]: Remove conditional code.
4050         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4051         [__NR_ftruncate64]: Make code unconditional.
4052         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4054         include <kernel-features.h>.
4055         [!__NR_ftruncate64]: Remove conditional code.
4056         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4057         [__NR_ftruncate64]: Make code unconditional.
4058         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4059
4060         * configure.in (libc_cv_fpie): Weaken to a compile test using
4061         LIBC_TRY_CC_OPTION.
4062         * configure: Regenerated.
4063
4064 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4065
4066         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4067         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4068         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4069         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4070         Refreshed.
4071         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4072         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4073         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4074         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4075         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4076         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4077         Refreshed.
4078
4079 2012-05-27  David S. Miller  <davem@davemloft.net>
4080
4081         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4082         (___Q_zero): New.
4083         (__Q_simulate_exceptions): Return void.  Change to simulate
4084         exceptions by writing into the %fsr.
4085         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4086         (__Qp_handle_exceptions): Likewise.
4087         (numbers): Delete.
4088         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4089         __Qp_handle_exceptions.
4090         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4091         __Qp_handle_exceptions.
4092         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4093         as unused and give dummy FP_RND_NEAREST initializer.
4094         (FP_INHIBIT_RESULTS): Define.
4095         (___Q_simulate_exceptions): Update declaration.
4096         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4097         formatting.
4098         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4099         as unused and give dummy FP_RND_NEAREST initializer.
4100         (__Qp_handle_exceptions): Update declaration.
4101         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4102         formatting.
4103
4104 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4105
4106         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4107         the temporary FPU control word.
4108         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4109         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4110         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4111         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4112         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4113         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4114         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4115         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4116         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4117         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4118         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4119
4120 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4121
4122         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4123         fields.
4124
4125 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4126
4127         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4128         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4129         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4130         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4131         Likewise.
4132         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4133         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4134         Likewise.
4135
4136 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4137
4138         * po/h.po: Update from translation team.
4139
4140 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4141
4142         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4143
4144         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4145         handling of denormals.
4146         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4147         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4148         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4149         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4150         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4151         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4152         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4153         Likewise.
4154
4155 2012-05-26  Marek Polacek  <polacek@redhat.com>
4156
4157         [BZ #14152]
4158         * math/libm-test.inc (fma_test): Don't always expect underflow
4159         exception.
4160
4161 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4162
4163         [BZ #12416]
4164         * elf/tst-execstack.c: Include stackinfo.h.
4165         (do_test): Adjust test case to ensure that pthread_getattr_np
4166         behaviour remains the same after marking stack executable.
4167
4168 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4169
4170         * sysdeps/unix/sysv/linux/kernel-features.h
4171         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4172         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4173         kernel-features.h.
4174         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4175         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4176         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4177         kernel-features.h.
4178         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4179         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4180
4181 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4182
4183         * configure.in: Define the default includes to being none.
4184         * configure: Regenerated.
4185
4186 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4187
4188         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4189         * sysdeps/x86_64/setjmp.S: Likewise.
4190         * sysdeps/i386/bsd-setjmp.S: Likewise.
4191         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4192         * sysdeps/i386/setjmp.S: Likewise.
4193         * sysdeps/i386/__longjmp.S: Likewise.
4194         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4195         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4196
4197         * include/stap-probe.h: New file.
4198         * configure.in: Handle --enable-systemtap.
4199         * configure: Regenerated.
4200         * config.h.in (USE_STAP_PROBE): New #undef.
4201         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4202         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4203         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4204
4205 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4206
4207         [BZ #13717]
4208         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4209         to 2.4.0 where earlier.
4210         * sysdeps/unix/sysv/linux/configure: Regenerated.
4211         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
4220         [__ASSUME_32BITUIDS]: Make code unconditional.
4221         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4222         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4223         <kernel-features.h>.
4224         [__ASSUME_32BITUIDS]: Make code unconditional.
4225         [!__ASSUME_32BITUIDS]: Remove conditional code.
4226         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4227         <kernel-features.h>.
4228         [__ASSUME_32BITUIDS]: Make code unconditional.
4229         [!__ASSUME_32BITUIDS]: Remove conditional code.
4230         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4231         <kernel-features.h>.
4232         [__ASSUME_32BITUIDS]: Make code unconditional.
4233         [!__ASSUME_32BITUIDS]: Remove conditional code.
4234         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4235         <kernel-features.h>.
4236         [__ASSUME_32BITUIDS]: Make code unconditional.
4237         [!__ASSUME_32BITUIDS]: Remove conditional code.
4238         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4239         <kernel-features.h>.
4240         [__ASSUME_32BITUIDS]: Make code unconditional.
4241         [!__ASSUME_32BITUIDS]: Remove conditional code.
4242         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4243         <kernel-features.h>.
4244         [__ASSUME_32BITUIDS]: Make code unconditional.
4245         [!__ASSUME_32BITUIDS]: Remove conditional code.
4246         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4247         <kernel-features.h>.
4248         [__ASSUME_32BITUIDS]: Make code unconditional.
4249         [!__ASSUME_32BITUIDS]: Remove conditional code.
4250         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4251         <kernel-features.h>.
4252         [__ASSUME_32BITUIDS]: Make code unconditional.
4253         [!__ASSUME_32BITUIDS]: Remove conditional code.
4254         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4255         <kernel-features.h>.
4256         [__ASSUME_32BITUIDS]: Make code unconditional.
4257         [!__ASSUME_32BITUIDS]: Remove conditional code.
4258         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4259         <kernel-features.h>.
4260         [__ASSUME_32BITUIDS]: Make code unconditional.
4261         [!__ASSUME_32BITUIDS]: Remove conditional code.
4262         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4263         <kernel-features.h>.
4264         [__NR_setresgid] (__setresgid): Do not declare.
4265         [__ASSUME_32BITUIDS]: Make code unconditional.
4266         [!__ASSUME_32BITUIDS]: Remove conditional code.
4267         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4268         <kernel-features.h>.
4269         [__NR_setresuid] (__setresuid): Do not declare.
4270         [__ASSUME_32BITUIDS]: Make code unconditional.
4271         [!__ASSUME_32BITUIDS]: Remove conditional code.
4272         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4273         <kernel-features.h>.
4274         [__ASSUME_32BITUIDS]: Make code unconditional.
4275         [!__ASSUME_32BITUIDS]: Remove conditional code.
4276         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4277         <kernel-features.h>.
4278         [__ASSUME_32BITUIDS]: Make code unconditional.
4279         [!__ASSUME_32BITUIDS]: Remove conditional code.
4280         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4281         <kernel-features.h>.
4282         [__ASSUME_32BITUIDS]: Make code unconditional.
4283         [!__ASSUME_32BITUIDS]: Remove conditional code.
4284         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4285         <kernel-features.h>.
4286         [__ASSUME_32BITUIDS]: Make code unconditional.
4287         [!__ASSUME_32BITUIDS]: Remove conditional code.
4288         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4289         <kernel-features.h>.
4290         [__ASSUME_32BITUIDS]: Make code unconditional.
4291         [!__ASSUME_32BITUIDS]: Remove conditional code.
4292         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4293         <kernel-features.h>.
4294         [__ASSUME_32BITUIDS]: Make code unconditional.
4295         [!__ASSUME_32BITUIDS]: Remove conditional code.
4296         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4297         <kernel-features.h>.
4298         [__ASSUME_32BITUIDS]: Make code unconditional.
4299         [!__ASSUME_32BITUIDS]: Remove conditional code.
4300         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4301         <kernel-features.h>.
4302         [__ASSUME_32BITUIDS]: Make code unconditional.
4303         [!__ASSUME_32BITUIDS]: Remove conditional code.
4304         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4305         <kernel-features.h>.
4306         [__ASSUME_32BITUIDS]: Make code unconditional.
4307         [!__ASSUME_32BITUIDS]: Remove conditional code.
4308         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4309         <kernel-features.h>.
4310         [__ASSUME_32BITUIDS]: Make code unconditional.
4311         [!__ASSUME_32BITUIDS]: Remove conditional code.
4312         * sysdeps/unix/sysv/linux/kernel-features.h
4313         (__ASSUME_SETRESUID_SYSCALL): Remove.
4314         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4315         (__ASSUME_32BITUIDS): Likewise.
4316         (__ASSUME_LDT_WORKS): Likewise.
4317         (__ASSUME_O_DIRECTORY): Likewise.
4318         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4319         architecture but not kernel version.
4320         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4321         (__ASSUME_MMAP2_SYSCALL): Likewise.
4322         (__ASSUME_STAT64_SYSCALL): Likewise.
4323         (__ASSUME_IPC64): Likewise.
4324         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4325         <kernel-features.h>.
4326         [__ASSUME_32BITUIDS]: Make code unconditional.
4327         [!__ASSUME_32BITUIDS]: Remove conditional code.
4328         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4329         <kernel-features.h>.
4330         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4331         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4332         132096]: Remove conditional code.
4333         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4334         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4335         <kernel-features.h>.
4336         [__ASSUME_32BITUIDS]: Make code unconditional.
4337         [!__ASSUME_32BITUIDS]: Remove conditional code.
4338         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4339         <kernel-features.h>.
4340         [__ASSUME_32BITUIDS]: Make code unconditional.
4341         [!__ASSUME_32BITUIDS]: Remove conditional code.
4342         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4343         <kernel-features.h>.
4344         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4345         unconditional.
4346         (__setresgid): Do not declare.
4347         [__ASSUME_32BITUIDS]: Make code unconditional.
4348         [!__ASSUME_32BITUIDS]: Remove conditional code.
4349         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4350         <kernel-features.h>.
4351         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4352         unconditional.
4353         (__setresuid): Do not declare.
4354         [__ASSUME_32BITUIDS]: Make code unconditional.
4355         [!__ASSUME_32BITUIDS]: Remove conditional code.
4356         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4357         <kernel-features.h>.
4358         [__ASSUME_32BITUIDS]: Make code unconditional.
4359         [!__ASSUME_32BITUIDS]: Remove conditional code.
4360         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4361         <kernel-features.h>.
4362         [__ASSUME_32BITUIDS]: Make code unconditional.
4363         [!__ASSUME_32BITUIDS]: Remove conditional code.
4364
4365 2012-05-25  Richard Henderson  <rth@twiddle.net>
4366
4367         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4368         dl_hwcap to ifunc resolver.
4369         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4370         elf_ifunc_invoke.
4371         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4372         dl_hwcap to ifunc resolver.
4373         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4374
4375 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4376
4377         [BZ #14153]
4378         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4379         for |x| <= 2**-26, not 2**-57.
4380         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4381         exception.
4382
4383 2012-05-24  Jeff Law  <law@redhat.com>
4384
4385         * stdio-common/Makefile (tests): Add bug25.
4386         * stdio-common/bug25.c: New test.
4387
4388 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4389
4390         [BZ #13576]
4391         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4392         multiple of MALLOC_ALIGNMENT in size.
4393         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4394
4395 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4396
4397         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4398         Require >= 256.
4399         (FILENAME_MAX): Use macro-int-constant.
4400         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4401         (_IOFBF): Use macro-int-constant.
4402         (_IOLBF): Likewise.
4403         (_IONBF): Likewise.
4404         (SEEK_CUR): Likewise.
4405         (SEEK_END): Likewise.
4406         (SEEK_SET): Likewise.
4407         (TMP_MAX): Likewise.
4408         (EOF): Use macro-int-constant.  Require < 0.
4409         (NULL): Use macro-constant.  Require == 0.
4410         (stdin): Require type to be FILE *.
4411         (stdout): Likewise.
4412         (stderr): Likewise.
4413         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4414         macro-int-constant.
4415         (EXIT_SUCCESS): Likewise.
4416         (NULL): Use macro-constant.  Require == 0.
4417         (RAND_MAX): Use macro-int-constant.
4418         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4419         [C99-based standards] (strtof): Require function.
4420         [C99-based standards] (strtold): Likewise.
4421         [C99-based standards] (strtoll): Likewise.
4422         [C99-based standards] (strtoull): Likewise.
4423         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4424         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4425         [ISO || ISO99 || ISO11] (math.h): Likewise.
4426         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4427         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4428         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4429
4430 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4431
4432         [BZ #14132]
4433         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4434         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4435         * intl/dgettext.c (DCGETTEXT): Likewise.
4436         * intl/gettext.c (DCGETTEXT): Likewise.
4437         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4438         * posix/regex_internal.h (gettext): Likewise.
4439         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4440         Remove declaration.
4441         * include/argz.h (__argz_count_internal)
4442         (__argz_stringify_internal): Remove declaration.
4443         (__argz_count, __argz_stringify): Declare hidden proto.
4444         * intl/dcgettext.c: Remove use of INTDEF.
4445         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4446         * string/argz-stringify.c: Likewise.
4447         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4448         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4449         Declare hidden proto.
4450         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4451         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4452         Declare hidden proto.
4453         * include/stdio.h (__asprintf_internal): Don't declare.
4454         (__asprintf): Don't define as macro.  Declare hidden proto.
4455         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4456         (__fsetlocking): Declare hidden proto.
4457         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4458         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4459         hidden proto.
4460         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4461         (_IO_setlinebuf): Remove use of INTUSE.
4462         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4463         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4464         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4465         Remove declaration.
4466         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4467         (_IO_do_flush): Remove use of INTUSE.
4468         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4469         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4470         (_IO_adjust_column, _IO_least_wmarker)
4471         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4472         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4473         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4474         (_IO_default_doallocate, _IO_wdefault_doallocate)
4475         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4476         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4477         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4478         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4479         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4480         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4481         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4482         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4483         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4484         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4485         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4486         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4487         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4488         proto.
4489         (_IO_flush_all_internal, _IO_adjust_column_internal)
4490         (_IO_default_uflow_internal, _IO_default_finish_internal)
4491         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4492         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4493         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4494         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4495         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4496         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4497         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4498         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4499         (_IO_file_close_internal, _IO_file_close_it_internal)
4500         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4501         (_IO_file_init_internal, _IO_file_attach_internal)
4502         (_IO_file_fopen_internal, _IO_file_read_internal)
4503         (_IO_file_sync_internal, _IO_file_seek_internal)
4504         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4505         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4506         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4507         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4508         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4509         (_IO_list_all_internal, _IO_link_in_internal)
4510         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4511         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4512         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4513         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4514         (_IO_do_write_internal, _IO_padn_internal)
4515         (_IO_getline_info_internal, _IO_getline_internal)
4516         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4517         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4518         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4519         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4520         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4521         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4522         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4523         with libc_hidden_ver, remove use of INTUSE.
4524         * libio/genops.c: Likewise.
4525         * libio/freopen.c: Likewise.
4526         * libio/freopen64.c: Likewise.
4527         * libio/iofclose.c: Likewise.
4528         * libio/iofdopen.c: Likewise.
4529         * libio/iofflush.c: Likewise.
4530         * libio/iofflush_u.c: Likewise.
4531         * libio/iofgets.c: Likewise.
4532         * libio/iofgets_u.c: Likewise.
4533         * libio/iofopen.c: Likewise.
4534         * libio/iofopncook.c: Likewise.
4535         * libio/iofread.c: Likewise.
4536         * libio/iofread_u.c: Likewise.
4537         * libio/ioftell.c: Likewise.
4538         * libio/iofwrite.c: Likewise.
4539         * libio/iogetline.c: Likewise.
4540         * libio/iogets.c: Likewise.
4541         * libio/iogetwline.c: Likewise.
4542         * libio/iopadn.c: Likewise.
4543         * libio/iopopen.c: Likewise.
4544         * libio/ioseekoff.c: Likewise.
4545         * libio/ioseekpos.c: Likewise.
4546         * libio/iosetbuffer.c: Likewise.
4547         * libio/iosetvbuf.c: Likewise.
4548         * libio/ioungetc.c: Likewise.
4549         * libio/ioungetwc.c: Likewise.
4550         * libio/iovdprintf.c: Likewise.
4551         * libio/iovsprintf.c: Likewise.
4552         * libio/iovsscanf.c: Likewise.
4553         * libio/memstream.c: Likewise.
4554         * libio/obprintf.c: Likewise.
4555         * libio/oldfileops.c: Likewise.
4556         * libio/oldiofclose.c: Likewise.
4557         * libio/oldiofdopen.c: Likewise.
4558         * libio/oldiofopen.c: Likewise.
4559         * libio/oldiopopen.c: Likewise.
4560         * libio/oldstdfiles.c: Likewise.
4561         * libio/putc.c: Likewise.
4562         * libio/setbuf.c: Likewise.
4563         * libio/setlinebuf.c: Likewise.
4564         * libio/stdfiles.c: Likewise.
4565         * libio/strops.c: Likewise.
4566         * libio/vasprintf.c: Likewise.
4567         * libio/vscanf.c: Likewise.
4568         * libio/vsnprintf.c: Likewise.
4569         * libio/vswprintf.c: Likewise.
4570         * libio/wfiledoalloc.c: Likewise.
4571         * libio/wfileops.c: Likewise.
4572         * libio/wgenops.c: Likewise.
4573         * libio/wmemstream.c: Likewise.
4574         * libio/wstrops.c: Likewise.
4575         * libio/__fpurge.c: Likewise.
4576         * libio/__fsetlocking.c: Likewise.
4577         * assert/assert.c: Likewise.
4578         * debug/fgets_chk.c: Likewise.
4579         * debug/fgets_u_chk.c: Likewise.
4580         * debug/fread_chk.c: Likewise.
4581         * debug/fread_u_chk.c: Likewise.
4582         * debug/gets_chk.c: Likewise.
4583         * debug/obprintf_chk.c: Likewise.
4584         * debug/vasprintf_chk.c: Likewise.
4585         * debug/vdprintf_chk.c: Likewise.
4586         * debug/vsnprintf_chk.c: Likewise.
4587         * debug/vsprintf_chk.c: Likewise.
4588         * malloc/mtrace.c: Likewise.
4589         * misc/error.c: Likewise.
4590         * misc/syslog.c: Likewise.
4591         * stdio-common/asprintf.c: Likewise.
4592         * stdio-common/fxprintf.c: Likewise.
4593         * stdio-common/getw.c: Likewise.
4594         * stdio-common/isoc99_fscanf.c: Likewise.
4595         * stdio-common/isoc99_scanf.c: Likewise.
4596         * stdio-common/isoc99_vfscanf.c: Likewise.
4597         * stdio-common/isoc99_vscanf.c: Likewise.
4598         * stdio-common/isoc99_vsscanf.c: Likewise.
4599         * stdio-common/printf-prs.c: Likewise.
4600         * stdio-common/printf_fp.c: Likewise.
4601         * stdio-common/printf_fphex.c: Likewise.
4602         * stdio-common/printf_size.c: Likewise.
4603         * stdio-common/putw.c: Likewise.
4604         * stdio-common/scanf.c: Likewise.
4605         * stdio-common/sprintf.c: Likewise.
4606         * stdio-common/tmpfile.c: Likewise.
4607         * stdio-common/vfprintf.c: Likewise.
4608         * stdio-common/vfscanf.c: Likewise.
4609         * stdlib/strfmon_l.c: Likewise.
4610         * sunrpc/openchild.c: Likewise.
4611         * sunrpc/xdr_stdio.c: Likewise.
4612         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4613         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4614
4615 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4616
4617         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4618
4619         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4620         in the third column, to generate for the shared library an IFUNC
4621         that uses _dl_vdso_vsym.
4622         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4623         * Makeconfig (object-suffixes-noshared): New variable.
4624
4625         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4626         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4627         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4628         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4629
4630         [BZ #14132]
4631         * include/sys/time.h (__gettimeofday): Remove macro.
4632         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4633         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4634         Remove INTDEF.
4635         (__gettimeofday): Add libc_hidden_def.
4636         (gettimeofday): Add libc_hidden_weak.
4637         * sysdeps/mach/gettimeofday.c: Likewise.
4638         * sysdeps/posix/gettimeofday.c: Likewise.
4639         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4640         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4641         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4642         (__gettimeofday_internal): Remove strong_alias.
4643         (__gettimeofday): Add libc_hidden_def.
4644         (gettimeofday): Add libc_hidden_weak.
4645         * sysdeps/unix/syscalls.list (gettimeofday):
4646         Remove __gettimeofday_internal alias.
4647
4648 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4649             H.J. Lu  <hongjiu.lu@intel.com>
4650
4651         [BZ #12495]
4652         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4653         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4654         (largebin_index_32_big): New.
4655         (largebin_index): Use it for 16-byte alignment.
4656         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4657         correction with front_misalign.
4658
4659 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4660
4661         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4662         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4663         Likewise.
4664         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4665         Likewise.
4666         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4667         Likewise.
4668         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4669         Likewise.
4670         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4671         Likewise.
4672         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4673         Likewise.
4674         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4675         Likewise.
4676         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4677         Likewise.
4678         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4679         Likewise.
4680         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4681         Likewise.
4682         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4683         Likewise.
4684         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4685         Likewise.
4686
4687         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4688         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4689
4690 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4691
4692         [BZ #10846]
4693         [BZ #14036]
4694         * math/libm-test.inc (exp_test): Add test from bug 14036.
4695         (pow_test): Add test from bug 10846.
4696
4697         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4698         and other flags.
4699         (special_function): Do not include flags in test name.
4700         (parse_args): Likewise.
4701         * sysdeps/i386/fpu/libm-test-ulps: Update.
4702         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4703         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4704         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4706
4707         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4708         exceptions.
4709         * math/libm-test.inc ("Philosophy"): Update comment about
4710         exception testing.
4711         (UNDERFLOW_EXCEPTION): New macro.
4712         (UNDERFLOW_EXCEPTION_OK): Likewise.
4713         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4714         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4715         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4716         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4717         (INVALID_EXCEPTION_OK): Update value.
4718         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4719         (OVERFLOW_EXCEPTION_OK): Likewise.
4720         (IGNORE_ZERO_INF_SIGN): Likewise.
4721         (test_exceptions): Handle underflow exceptions.
4722         (acos_test): Update for underflow exception expectations.
4723         (cexp_test): Likewise.
4724         (clog_test): Likewise.
4725         (clog10_test): Likewise.
4726         (csqrt_test): Likewise.
4727         (ctan_test): Likewise.
4728         (ctanh_test): Likewise.
4729         (exp_test): Likewise.
4730         (exp10_test): Likewise.
4731         (exp2_test): Likewise.
4732         (expm1_test): Likewise.
4733         (fma_test): Likewise.
4734         (j0_test): Likewise.
4735         (jn_test): Likewise.
4736         (nexttoward_test): Likewise.
4737         (pow_test): Likewise.
4738         (scalbn_test): Likewise.
4739         (scalbln_test): Likewise.
4740         (tan_test): Likewise.
4741         (y1_test): Likewise.
4742         * sysdeps/i386/fpu/libm-test-ulps: Update.
4743         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4744
4745 2012-05-23  David S. Miller  <davem@davemloft.net>
4746
4747         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4748         (__libc_sigaction): Remove unused local variables.
4749
4750 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4751
4752         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4753
4754 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4755
4756         mktime: avoid signed integer overflow
4757         * time/mktime.c (__mktime_internal): Do not mishandle the case
4758         where diff == INT_MIN.
4759
4760         mktime: simplify computation of average
4761         * time/mktime.c (ranged_convert): Use new time_t_avg function
4762         instead of rolling our own (probably-slower) code.
4763
4764         mktime: do not assume signed right shift propagates sign bit
4765         * time/mktime.c (isdst_differ): New static function.
4766         (__mktime_internal): No need to normalize tm_isdst now.
4767         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4768         tm_isdst values.
4769
4770         mktime: merge another wrapv change from gnulib
4771         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4772         from some compilers.
4773
4774         mktime: remove incorrect attempt at unusual arithmetics
4775         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4776         The code didn't really work on such machines anyway.
4777         (TYPE_MINIMUM): Assume two's complement.
4778         (twos_complement_arithmetic): Verify that long_int and time_t
4779         are two's complement (or unsigned, in the latter case).
4780
4781         mktime: check signed shifts on long_int and time_t, too
4782         * time/mktime.c (SHR): Check that shifts work as desired
4783         on the types long_int and time_t too, as SHR is used on
4784         such types.
4785
4786         mktime: do not assume 'long' is wide enough
4787         * time/mktime.c (verify): Move decl up.
4788         (long_int): New type.
4789         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4790         to remove assumption in the code that 'long' is wide enough to
4791         store year values.  This assumption is not true on x32 and on
4792         some non-glibc platforms.
4793
4794         mktime: merge wrapv change from gnulib
4795         * time/mktime.c (WRAPV): New macro.
4796         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4797         (guess_time_tm, __mktime_internal): Do not assume that signed
4798         integer overflow wraps around; modern compilers generate code
4799         where this assumption is no longer valid.
4800
4801 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4802
4803         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4804         Replace "jmp L(pseudo_end)" with "ret".
4805         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4806         Likewise.
4807
4808 2012-05-23  Andreas Jaeger  <aj@suse.de>
4809
4810         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4811         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4812
4813 2012-05-23  Andreas Jaeger  <aj@suse.de>
4814             Maximilian Attems  <max@stro.at>
4815
4816         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4817         New macros.
4818
4819 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4820
4821         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4822         code so that pseudo_end is just ret and the stack pointer is
4823         correct also for static library in error case.
4824
4825 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4826
4827         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4828         move to syscalls.list.
4829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4833
4834         * manual/install.texi (Running make install): Do not mention Linux
4835         kernel version for which pt_chown is not needed.
4836         (Linux): Do not mention problems with nscd with 2.0 kernels.
4837         * INSTALL: Regenerated.
4838
4839 2012-05-23  Andreas Jaeger  <aj@suse.de>
4840
4841         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4842         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4843         macro.
4844         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4845         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4846         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4847         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4848         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4849         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4850         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4851         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4852         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4853         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4854         * sysdeps/unix/sysv/linux/bits/in.h
4855         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4856
4857 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4858
4859         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4860         (PREPARE_VERSION): Just use assert instead, it will be elided
4861         under [NDEBUG] anyway.
4862
4863 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4864
4865         * sysdeps/unix/sysv/linux/Makefile: Include
4866         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4867         (sysdep_routines): Remove sysctl.
4868         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4869         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4870         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4871         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4872         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4873
4874 2012-05-22  Andreas Jaeger  <aj@suse.de>
4875
4876         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4877         that pseudo_end is just ret and the stack pointer is correct also
4878         for static library in error case.
4879
4880 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4881
4882         [BZ #14122]
4883         * nss/nsswitch.c (defconfig_entries): New variable.
4884         (__nss_database_lookup): Don't leak defconfig entries.
4885         (nss_parse_service_list): Don't leak on error paths.
4886         (free_database_entries): New function.
4887         (free_defconfig): New function.
4888         (free_mem): Move common code to free_database_entries.
4889
4890 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4891
4892         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4893         Add arch_prctl.
4894         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4895
4896         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4897         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4898         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4899         New macro.
4900         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4901         (INTERNAL_SYSCALL_TYPES): Likewise.
4902         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4903         (LOAD_REGS_TYPES_[1-6]): Likewise.
4904         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4905         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4906
4907 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4908
4909         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4910         copysignl for GLIBC_2_0.
4911         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4912         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4913         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4914         logbl for GLIBC_2_0.
4915         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4916         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4917
4918 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4919
4920         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4921         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4922
4923         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4924         Use "neg %eax".
4925
4926         * time/mktime.c: Update copyright years.
4927
4928 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4929
4930         mktime: merge comment-quoting-style change from gnulib
4931         * time/mktime.c: Quote 'like this' in comments.
4932         The GNU coding standards suggest that we no longer quote `like this',
4933         as "`" and "'" are typically rendered asymmetrically nowadays.
4934         The typical gnulib style is to quote 'like this' when quoting
4935         code, and "like this" when quoting English.
4936
4937         * time/mktime.c (compile-command): Add "-I.".
4938
4939         mktime: merge mktime-internal.h change from gnulib
4940         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4941
4942         mktime: merge time_r change from gnulib
4943         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4944
4945         mktime: merge DEBUG change from gnulib
4946         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4947         case system <time.h> has a #define.
4948
4949         mktime: merge <sys/types.h> change from gnulib
4950         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4951         since <time.t> is now guaranteed to define time_t.
4952
4953         mktime: merge HAVE_CONFIG_H change from gnulib
4954         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4955
4956 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4957
4958         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4959         Use "neg %eax".
4960
4961         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4962         __rlim_t cast.
4963         (struct rusage): Use anonymous union to pad each field to
4964         __syscall_slong_t.
4965
4966 2012-05-21  David S. Miller  <davem@davemloft.net>
4967
4968         * Makefules (o-iterator): Remove .s cases.
4969         (compile-command.s): Delete.
4970         (COMPILE.s): Delete.
4971         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4972
4973 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4974
4975         * configure.in (libc_cv_predef_stack_protector): Only consider
4976         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4977         * configure: Regenerated.
4978
4979 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4980
4981         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4982         New macro.  Use R*LP on int and pointer.
4983         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4984         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4985         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4986         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4987
4988         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4989         [__WORDSIZE_TIME64_COMPAT32] instead of
4990         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4991         (struct utmp): Likewise.
4992         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4993         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4994         Renamed to ...
4995         (__WORDSIZE_TIME64_COMPAT32): This.
4996         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4997         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4998         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4999         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5000         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5001         (__WORDSIZE_TIME64_COMPAT32): New macro.
5002
5003 2012-05-21  Andreas Jaeger  <aj@suse.de>
5004
5005         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5006         only if [SHARED]. Add prototype for __wcschr_ia32.
5007
5008 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5009
5010         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5011         of %rbp unmolested in the jmp_buf while mangling the low bits.
5012         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5013         unmolested high bits of %rbp while demangling the low bits.
5014         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5015
5016 2012-05-21  Andreas Jaeger  <aj@suse.de>
5017
5018         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5019         * sunrpc/svc_simple.c: Use it for registerrpc.
5020         * sunrpc/xcrypt.c: Use it for passwd2des.
5021
5022         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5023
5024 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5025
5026         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5027         Don't define if [__SYSCALL_WORDSIZE != 32].
5028         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5029         New macro.
5030
5031 2012-05-21  Bruno Haible  <bruno@clisp.org>
5032             Andreas Jaeger  <aj@suse.de>
5033
5034         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5035         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5036         inptr and inend for must_buffer_ch.
5037         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5038         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5039         * stdio-common/Makefile (tests): Remove bug15.
5040         (bug15-ENV): Remove macro.
5041         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5042         anymore.
5043
5044 2012-05-19  Andreas Jaeger  <aj@suse.de>
5045             Roland McGrath  <roland@hack.frob.com>
5046
5047         * manual/contrib.texi: Completely rewritten. It contains now an
5048         alphabetical list of contributors and their contributions.
5049
5050 2012-05-21  Richard Henderson  <rth@twiddle.net>
5051
5052         * misc/getauxval.c (__getauxval): Use unsigned long int.
5053         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5054         (getauxval): Use unsigned long int.
5055
5056 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5057
5058         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5059
5060 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5061
5062         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5063         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5064         __alignof__ (long double).
5065
5066 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5067
5068         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5069
5070 2012-05-20  Richard Henderson  <rth@twiddle.net>
5071
5072         * misc/getauxval.c: New file.
5073         * misc/sys/auxv.h: New file.
5074         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5075         (routines): Add getauxval.
5076         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5077         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5078         * elf/dl-sysdep.c (_dl_auxv): Remove.
5079         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5080         * elf/dl-support.c (_dl_auxv): New variable.
5081         (_dl_aux_init): Initialize it.
5082         * manual/startup.texi (Auxiliary Vector): New node.
5083         * sysdeps/generic/bits/hwcap.h: New file.
5084         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5085         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5086         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5087         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5088         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5089         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5091         Update.
5092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5093         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5094         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5095         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5096         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5097         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5098         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5099         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5100
5101 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5102
5103         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5104
5105 2012-05-19  David S. Miller  <davem@davemloft.net>
5106
5107         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5108
5109 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5110
5111         [BZ #14123]
5112         * math/s_ccosh.c: Include <float.h>
5113         (__ccosh): Avoid internal overflow calculating sinh and cosh
5114         values before multiplying by sin and cos values.
5115         * math/s_ccoshf.c: Likewise.
5116         * math/s_ccoshl.c: Likewise.
5117         * math/s_csin.c: Likewise.
5118         * math/s_csinf.c: Likewise.
5119         * math/s_csinl.c: Likewise.
5120         * math/s_csinh.c: Likewise.
5121         * math/s_csinhf.c: Likewise.
5122         * math/s_csinhl.c: Likewise.
5123         * math/libm-test.inc (ccos_test): Add more tests.
5124         (ccosh_test): Likewise.
5125         (csin_test): Likewise.
5126         (csinh_test): Likewise.
5127         * sysdeps/i386/fpu/libm-test-ulps: Update.
5128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5129
5130 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5131
5132         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5133         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5134
5135         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5136
5137 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5138
5139         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5140         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5141         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5142         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5143         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5144         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5145         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5146         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5147         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5148         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5149         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5150         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5151         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5152         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5153         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5154         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5155         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5156         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5157         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5158         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5159         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5160         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5161         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5162         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5163         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5164         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5165         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5166         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5167         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5168         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5169         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5170
5171 2012-05-18  Andreas Jaeger  <aj@suse.de>
5172
5173         * csu/.gitignore: Delete.
5174
5175 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5176
5177         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5178         (timex): Use __syscall_slong_t.
5179
5180 2012-05-18  Andreas Jaeger  <aj@suse.de>
5181             Carlos O'Donell  <carlos_odonell@mentor.com>
5182
5183         * manual/install.texi (Configuring and compiling): Update
5184         description about files modified in the source directory.
5185         * INSTALL: Regenerated.
5186
5187 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5188
5189         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5190         value.  Use "or" to set return value to -1.
5191         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5192         negate return value.
5193
5194 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5195
5196         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5197         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5198         failure if the compiler has Graphite support disabled.
5199         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5200         Likewise.
5201         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5202         CFLAGS-memmove.c): Likewise.
5203         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5204         Likewise.
5205
5206 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5207
5208         * sysdeps/x86_64/x32/_itoa.h: New file.
5209
5210         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5211         getdents system call only if kernel and user dirents have the
5212         same d_ino and d_off.
5213
5214         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5215         LLONG_MAX != LONG_MAX.
5216         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5217         (_fitoa_word): Likewise.
5218
5219         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5220         years.
5221         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5222         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5223         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5224
5225         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5226         include <bits/wordsize.h>.  Check __x86_64__ instead of
5227         __WORDSIZE.
5228         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5229         if __x86_64__ is defined.  Use anonymous union on fpstate.
5230
5231         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5232         anonymous union.
5233
5234 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5235
5236         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5237         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5238         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5239         Refer to _rtld_local_ro instead of _rtld_global_ro.
5240         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5241         Likewise.
5242         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5243         Likewise.
5244         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5245         Likewise.
5246         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5247         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5248         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5249
5250         * sysdeps/powerpc/powerpc32/dl-machine.c
5251         (__elf_machine_runtime_setup) [PROF]: Don't reference
5252         _dl_prof_resolve.
5253
5254 2012-05-18  Andreas Jaeger  <aj@suse.de>
5255
5256         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5257         function only available for GCCs before 3.4 since GCC 3.4
5258         introduced a builtin.
5259         (lrint): Likewise.
5260         (llrintf): Likewise.
5261         (llrint): Likewise.
5262         (fmaxf): Likewise.
5263         (fmax): Likewise.
5264         (fminf): Likewise.
5265         (fmin): Likewise.
5266         (rint): Likewise.
5267         (rintf): Likewise.
5268         (nearbyint): Likewise.
5269         (nearbyintf): Likewise.
5270         (ceil): Likewise.
5271         (ceilf): Likewise.
5272         (floor): Likewise.
5273         (floorf): Likewise.
5274
5275 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5276
5277         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5278         on both fields and cast pointer to __syscall_ulong_t.
5279
5280         * bits/types.h (__fsword_t): New type.
5281         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5282         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5283         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5284         (__FSWORD_T_TYPE): Likewise.
5285         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5286         (__FSWORD_T_TYPE): Likewise.
5287         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5288         (__FSWORD_T_TYPE): Likewise.
5289         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5290         (__FSWORD_T_TYPE): Likewise.
5291         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5292         __SWORD_TYPE with __fsword_t.
5293         (statfs64): Likewise.
5294
5295 2012-05-17  David S. Miller  <davem@davemloft.net>
5296
5297         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5298
5299 2012-05-17  Andreas Jaeger  <aj@suse.de>
5300
5301         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5302         warning.
5303
5304 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5305
5306         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5307
5308 2012-05-17  Andreas Jaeger  <aj@suse.de>
5309
5310         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5311         when it is used.
5312
5313 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5314
5315         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5316
5317 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5318
5319         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5320         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5321
5322 2012-05-17  Andreas Jaeger  <aj@suse.de>
5323             Carlos O'Donell  <carlos_odonell@mentor.com>
5324
5325         [BZ #14059]
5326         * sysdeps/x86_64/multiarch/init-arch.h
5327         (bit_YMM_Usable): Rename to...
5328         (bit_AVX_Usable): ... this.
5329         (bit_FMA4_Usable): New macro.
5330         (bit_XMM_state): New macro.
5331         (bit_YMM_state): New macro.
5332         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5333         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5334         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5335         (CPUID_OSXSAVE): New macro.
5336         (CPUID_AVX): New macro.
5337         (CPUID_FMA4): New macro.
5338         (index_YMM_Usable): Rename to...
5339         (index_AVX_Usable): ... this.
5340         (HAS_AVX): Use HAS_ARCH_FEATURE.
5341         (HAS_FMA4): Likewise.
5342         (HAS_YMM_USABLE): Remove.
5343         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5344         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5345         are present.
5346         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5347         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5348         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5349         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5350         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5351
5352 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5353
5354         * math/libm-test.c: Support platforms without multiple rounding modes.
5355         * math/bug-nextafter.c: Support platforms without FP exceptions.
5356         * math/bug-nexttoward.c: Likewise.
5357         * math/test-fenv.c: Likewise.
5358         * math/test-misc.c: Likewise.
5359         * stdlib/bug-getcontext.c: Likewise.
5360
5361 2012-05-17  Andreas Jaeger  <aj@suse.de>
5362
5363         * manual/examples/search.c (critter_cmp): Change signature to
5364         avoid warnings.
5365         * manual/string.texi (Collation Functions): Likewise.
5366
5367 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5368
5369         * bits/types.h: Fold copyright years.
5370         * bits/typesizes.h: Likewise.
5371         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5372         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5373         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5374         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5375         * time/time.h: Likewise.
5376
5377 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5378
5379         [BZ #208]
5380         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5381         in instead of returning them.  Return void.
5382         (__libc_mallinfo): Accumulate over all arenas.
5383         (__malloc_stats): Adjust for change in int_mallinfo interface.
5384
5385 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5386
5387         [BZ #10375]
5388         * configure.in (NM): Add AC_CHECK_TOOL for it.
5389         (libc_extra_cflags): New substituted variable.
5390         Check for -fstack-protector being used implicitly.
5391         * configure: Regenerated.
5392         * config.make.in (config-extra-cflags): New variable,
5393         gets @libc_extra_cflags@.
5394         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5395
5396         [BZ #10375]
5397         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5398         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5399         * configure: Regenerated.
5400         * config.make.in (CPPUNDEFS): New substituted variable.
5401         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5402         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5403         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5404
5405 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5406
5407         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5408         (mq_attr): Use __syscall_slong_t.
5409
5410 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5411
5412         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5413         Check __x86_64__ instead of __WORDSIZE.
5414         (_STAT_VER_LINUX): Likewise.
5415         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5416         __syscall_ulong_t and __syscall_slong_t.
5417         (stat64): Likewise.
5418
5419 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5420
5421         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5422
5423 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5424
5425         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5426
5427 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5428
5429         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5430         __syscall_ulong_t.
5431
5432         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5433         include <bits/wordsize.h>.  Check __x86_64__ instead of
5434         __WORDSIZE.
5435         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5436         defined.
5437         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5438
5439         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5440         include <bits/wordsize.h>.  Check __x86_64__ instead of
5441         __WORDSIZE.
5442         (user_regs_struct): Use "__extension__ unsigned long long"
5443         instead of "unsigned long" if __x86_64__ is defined.
5444         (user): Likewise.  Pad after pointer field if __ILP32__ is
5445         defined.
5446
5447 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5448
5449         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5450         versions 5 to 9.
5451         * configure: Regenerated.
5452         * manual/install.texi (texinfo): Increase version requirement to
5453         4.5 or later.
5454         * INSTALL: Regenerated.
5455
5456         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5457
5458 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5459
5460         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5461
5462         * sysdeps/x86_64/x32/ffs.c: New file.
5463
5464         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5465         __syscall_ulong_t.
5466         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5467         defined.  Use __syscall_ulong_t.
5468         (shminfo): Use __syscall_ulong_t.
5469         (shm_info): Likewise.
5470
5471         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5472         __syscall_ulong_t.
5473
5474         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5475         <bits/wordsize.h>.
5476         (msgqnum_t): Use __syscall_ulong_t.
5477         (msglen_t): Likewise.
5478         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5479         __syscall_ulong_t.
5480
5481         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5482         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5483
5484         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5485
5486         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5487         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5488
5489         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5490         __syscall_slong_t.
5491
5492         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5493         include <bits/wordsize.h>.  Check __x86_64__ instead of
5494         __WORDSIZE.
5495
5496         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5497         "unsigned long long int" if __x86_64__ is defined.
5498         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5499
5500         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5501         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5502         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5503
5504         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5505         <stdint.h>.
5506         (GET_PC): Cast to uintptr_t first.
5507         (GET_FRAME): Likewise.
5508         (GET_STACK): Likewise.
5509
5510         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5511         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5512         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5513         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5514         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5515         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5516         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5517         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5518         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5519         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5520         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5521         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5522         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5523         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5524         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5525         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5526         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5527         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5528         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5529         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5530         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5531         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5532         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5533         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5534         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5535         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5536         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5537         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5538         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5539
5540 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5541
5542         * Makerules (+depfiles): Also collect depfiles from .oS in
5543         $(extra-objs).
5544         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5545         .oS, $(libnldbl-routines)).
5546
5547         * Makerules (native-compile-mkdep-flags): Define.
5548         * sunrpc/Makefile (extra-objs): Add $(addprefix
5549         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5550         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5551         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5552         calling $(make-target-directory).
5553
5554 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5555
5556         * bits/types.h (__snseconds_t): Removed.
5557         * time/time.h (struct timespec): Replace __snseconds_t with
5558         __syscall_slong_t.
5559         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5560         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5561         Likewise.
5562         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5563         (__SNSECONDS_T_TYPE): Likewise.
5564         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5565         (__SNSECONDS_T_TYPE): Likewise.
5566         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5567         (__SNSECONDS_T_TYPE): Likewise.
5568
5569 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5570
5571         * sysdeps/mach/hurd/bits/typesizes.h
5572         (__SYSCALL_SLONG_TYPE): New macro.
5573         (__SYSCALL_ULONG_TYPE): Likewise.
5574
5575 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5576
5577         * bits/types.h (__syscall_slong_t): New type.
5578         (__syscall_ulong_t): Likewise.
5579
5580         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5581         (__SYSCALL_ULONG_TYPE): Likewise.
5582         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5583         (__SYSCALL_SLONG_TYPE): Likewise.
5584         (__SYSCALL_ULONG_TYPE): Likewise.
5585         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5586         (__SYSCALL_SLONG_TYPE): Likewise.
5587         (__SYSCALL_ULONG_TYPE): Likewise.
5588         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5589         (__SYSCALL_SLONG_TYPE): Likewise.
5590         (__SYSCALL_ULONG_TYPE): Likewise.
5591
5592 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5593
5594         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5595         Add sigaltstack-offsets.sym.
5596         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5597         <sigaltstack-offsets.h>.
5598         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5599         longjmp_msg pointer.
5600         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5601         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5602         signal stack.
5603         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5604
5605 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5606
5607         * elf/stackguard-macros.h: Remove file.
5608         * sysdeps/generic/stackguard-macros.h: New file.
5609         * sysdeps/i386/stackguard-macros.h: Likewise.
5610         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5611         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5612         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5613         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5614         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5615         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5616         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5617         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5618         <elf/stackguard-macros.h>.
5619
5620         [BZ #14109]
5621         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5622         __aligned__ in attribute.
5623         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5624         (gregset_t): Likewise.
5625
5626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5627
5628         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5629         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5630         * sysdeps/x86_64/x32/Implies-after: New file.
5631
5632 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5633
5634         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5635         and access return value for _dl_profile_fixup.  Use R10_LP to
5636         load frame size.
5637
5638 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5639
5640         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5641
5642 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5643
5644         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5645         * sysdeps/x86_64/x32/sysdep.h: New file.
5646
5647 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5648
5649         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5650         * sysdeps/x86_64/setjmp.S: Likewise.
5651
5652 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5653
5654         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5655         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5656         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5657         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5658         remove unused global constant.
5659
5660 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5661
5662         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5663         include of <not-cancel.h>.
5664
5665 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5666
5667         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5668
5669 2012-05-15  Jeff Law  <law@redhat.com>
5670             Andreas Jaeger  <aj@suse.de>
5671
5672         [BZ #13594]
5673         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5674         out from...
5675         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5676         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5677         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5678         code changing __hst_map_handle.map.
5679
5680 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5681
5682         * configure.in (sysnames): Look for Implies-before and Implies-after
5683         files.
5684         * configure: Regenerated.
5685
5686 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5687
5688         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5689         8-byte data alignment with LP_SIZE alignment.
5690
5691 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5692
5693         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5694         into R10_LP.
5695
5696 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5697
5698         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5699
5700 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5701
5702         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5703         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5704         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5705         Likewise.
5706         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5707
5708 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5709
5710         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5711         (stackinfo_sub_sp): Likewise.
5712
5713 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5714
5715         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5716         RAX_LP.
5717
5718 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5719
5720         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5721         into R*_LP.
5722
5723 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5724
5725         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5726         sizes into R*_LP.
5727
5728 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5729
5730         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5731
5732 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5733
5734         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5735         into R11_LP and load __x86_64_shared_cache_size_half into
5736         R8_LP.
5737
5738 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5739
5740         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5741         R8_LP.
5742
5743 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5744
5745         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5746         logb for POWER7.
5747         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5748         logbf for POWER7.
5749         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5750         logbl for POWER7.
5751         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5752         powerpc32/power7/fpu/s_logb.c via #include.
5753         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5754         powerpc32/power7/fpu/s_logbf.c via #include.
5755         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5756         powerpc32/power7/fpu/s_logbl.c via #include.
5757
5758 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5759
5760         * README.libm: Remove file.
5761
5762 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5763
5764         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5765         count for x32.  Use R*_LP and omit operand-size suffix.
5766
5767 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5768
5769         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5770         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5771         * sysdeps/x86_64/x32/shlib-versions: New file.
5772
5773 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5774
5775         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5776         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5777         Use _dl_fatal_printf instead.
5778
5779 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5780
5781         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5782         set if not set by the user.  Do not allow for being unset.
5783         * sysdeps/unix/sysv/linux/configure: Regenerated.
5784
5785 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5786
5787         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5788         the `q' suffix from lea and replace .quad with ASM_ADDR.
5789
5790 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5791
5792         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5793         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5794         instead of $17.
5795         (PTR_DEMANGLE): Likewise.
5796
5797 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5798
5799         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5800         (LP_OP): Likewise.
5801         (ASM_ADDR): Likewise.
5802         (RAX_LP): Likewise.
5803         (RBP_LP): Likewise.
5804         (RBX_LP): Likewise.
5805         (RCX_LP): Likewise.
5806         (RDI_LP): Likewise.
5807         (RSI_LP): Likewise.
5808         (RSP_LP): Likewise.
5809         (R8_LP): Likewise.
5810         (R9_LP): Likewise.
5811         (R10_LP): Likewise.
5812         (R10_LP): Likewise.
5813         (R11_LP): Likewise.
5814         (R12_LP): Likewise.
5815         (R13_LP): Likewise.
5816         (R14_LP): Likewise.
5817         (R15_LP): Likewise.
5818
5819 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5820
5821         * sysdeps/x86_64/x32/dl-machine.h: New file.
5822
5823 2012-05-14  Andreas Jaeger  <aj@suse.de>
5824
5825         * manual/Makefile (subdir): Remove export of subdir.
5826         (all): Remove target.
5827         (.PHONY): Remove all from list.
5828         (mkinstalldirs): Remove.
5829         (.PHONY): Remove installdirs from list.
5830         ($(inst_infodir)/libc.info): Use make-target-directory.
5831         (installdirs): Remove.
5832         (subdir_%): Remove.
5833         (glibc-targets): Remove.
5834         (lib): Remove.
5835         (stubs): Remove.
5836         ($(objpfx)stubs ../po/manual.pot): Remove.
5837         ($(objpfx)stamp%): Remove.
5838         (make-target-directory): Remove.
5839         (subdir_install): Remove.
5840         (routines): Remove.
5841         (aux): Remove.
5842         (sources): Remove.
5843         (objects): Remove.
5844         (headers): Remove.
5845
5846         [BZ #13750]
5847         * manual/.gitignore: Remove, it's not needed anymore.
5848         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5849         all files in it.
5850         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5851         directory.
5852         (texis): Renamed to $(objpfx)texis.
5853         (texis-path): New, contains path to generated files.
5854         (chapters.%): Use texis-path for complete path, add extra argument
5855         libc-texinfo.sh.
5856         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5857         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5858         (summary,texi, stamp-summary): Use complete path of
5859         files. Generate files in build dir.
5860         (dir-add.texi): Build in build dir.
5861         (libm-err.texi,stamp-libm-err): Likewise.
5862         (version.texi, stamp-version): Likewise.
5863         (.%c.texi): Likewise.
5864         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5865         (mostlyclean): Remove target.
5866         (realclean): Remove target.
5867         (generated): Add new variable with contents from mostlyclean and
5868         realclean, remove entries duplicated in common-mostlyclean, add
5869         stamp-libm-err and stamp-version.
5870         (generated-dirs): Add libc directory.
5871         ($(inst_infodir)/libc.info): Install files from build dir.
5872
5873         * manual/install.texi (Configuring and compiling): Adjust since
5874         the info files are not part of the tar ball anymore.
5875
5876 2012-05-14  Andreas Jaeger  <aj@suse.de>
5877
5878         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5879         variable.
5880
5881 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5882
5883         [BZ #13717]
5884         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5885         to 2.2.0 where earlier.
5886         * sysdeps/unix/sysv/linux/configure: Regenerated.
5887         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5888         Remove conditional code.
5889         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5890         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5891         Remove conditional code.
5892         [!__NR_lchown]: Likewise.
5893         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5894         [__NR_lchown]: Likewise.
5895         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5896         comment referencing __ASSUME_LCHOWN_SYSCALL.
5897         * sysdeps/unix/sysv/linux/i386/sigaction.c
5898         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5899         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5900         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5901         Remove conditional code.
5902         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5903         (__protocol_available): Remove #if 0 code.
5904         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5905         conditional code.
5906         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5907         * sysdeps/unix/sysv/linux/kernel-features.h
5908         (__ASSUME_GETCWD_SYSCALL): Don't define.
5909         (__ASSUME_REALTIME_SIGNALS): Likewise.
5910         (__ASSUME_PREAD_SYSCALL): Likewise.
5911         (__ASSUME_PWRITE_SYSCALL): Likewise.
5912         (__ASSUME_POLL_SYSCALL): Likewise.
5913         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5914         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5915         non-SPARC.
5916         (__ASSUME_SIOCGIFNAME): Don't define.
5917         (__ASSUME_MSG_NOSIGNAL): Likewise.
5918         (__ASSUME_SENDFILE): Define unconditionally.
5919         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5920         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5921         conditional code.
5922         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5923         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5924         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5925         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5926         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5927         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5928         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5930         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5931         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5933         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5934         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5936         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5937         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5939         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5940         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5942         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5943         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5945         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5946         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5948         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5949         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5951         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5952         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5953         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5954         Remove conditional code.
5955         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5956         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5957         Remove conditional code.
5958         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5959         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5960         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5961         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5962         Remove conditional code.
5963         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5964         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5965         Remove conditional code.
5966         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5967         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5968         Remove conditional code.
5969         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5970         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5971         Remove conditional code.
5972         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5973         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5974         Remove conditional code.
5975         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5976         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5977         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5978         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5979         * sysdeps/unix/sysv/linux/sigaction.c
5980         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5981         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5982         * sysdeps/unix/sysv/linux/sigpending.c
5983         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5984         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5985         * sysdeps/unix/sysv/linux/sigprocmask.c
5986         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5987         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5988         * sysdeps/unix/sysv/linux/sigsuspend.c
5989         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5990         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5991         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5992         (__libc_missing_rt_sigs): Remove.
5993         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5994         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5995         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5996         Remove conditional code.
5997         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5998         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5999         return 1.
6000         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6001         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6002         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6003         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6004
6005 2012-05-14  Andreas Jaeger  <aj@suse.de>
6006
6007         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6008         it's not used in glibc.
6009         (__coshm1): Likewise.
6010         (__acosh1p): Likewise.
6011         (__sgn): Likewise.
6012
6013         * manual/string.texi (Copying and Concatenation): Add missing
6014         variable in concat example.
6015         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6016
6017 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6018
6019         [BZ #14103]
6020         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6021         __builtin_clzl with __builtin_clzll.
6022
6023 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6024
6025         [BZ #14104]
6026         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6027         libc_freeres_ptr.
6028
6029 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6030
6031         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6032         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6033         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6034         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6035
6036 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6037
6038         * NEWS: Update ia64 info.
6039
6040 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6041
6042         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6043         used as bcopy.
6044
6045 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6046
6047         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6048         * sysdeps/unix/syscalls.list (dup3): Likewise.
6049         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6050         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6051
6052 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6053
6054         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6055         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6056
6057 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6058
6059         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6060         thread pointer.
6061         (TLS_IE): Use mov/add instead of movq/addq to load thread
6062         pointer.
6063         (TLS_GD_PREFIX): New.
6064         (TLS_GD): Use it.
6065
6066 2012-05-11  David S. Miller  <davem@davemloft.net>
6067
6068         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6069         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6070         (_FPU_SETCW): Likewise.
6071
6072 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6073
6074         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6075         is 32-byte aligned.
6076
6077 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6078
6079         [BZ #11837]
6080         * iconvdata/gb18030.c: Update tables.
6081         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6082         characters specially.
6083         (BODY for TO_LOOP): Add encoding of missing ranges.
6084
6085 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6086
6087         [BZ #13673]
6088         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6089         * sysdeps/mach/hurd/dup3.c: Likewise.
6090         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6091         * sysdeps/powerpc/memmove.c:: Likewise.
6092
6093 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6094
6095         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6096         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6097
6098 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6099
6100         * elf/elf.h (R_X86_64_RELATIVE64): New.
6101         (R_X86_64_NUM): Updated.
6102         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6103         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6104         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6105         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6106         tst-quad1pie tst-quad2pie
6107         (modules-names): Add tst-quadmod1 tst-quadmod2.
6108         ($(objpfx)tst-quad1): New dependency.
6109         ($(objpfx)tst-quad2): Likewise.
6110         ($(objpfx)tst-quad1pie): Likewise.
6111         ($(objpfx)tst-quad2pie): Likewise.
6112         * sysdeps/x86_64/tst-quad1.c: New file.
6113         * sysdeps/x86_64/tst-quad1pie.c: New file.
6114         * sysdeps/x86_64/tst-quad2.c: Likewise.
6115         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6116         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6117         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6118         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6119         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6120
6121 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6122
6123         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6124         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6125         * streams/stropts.h (t_scalar_t): Define type.
6126
6127         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6128         (_PATH_PRESERVE): Set to "/var/lib".
6129         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6130
6131         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6132         instead of int.
6133
6134         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6135         if __dir_mkfile succeeded.
6136
6137         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6138         checking for _hurd_dtablesize.  Unlock it right after having
6139         finished _hurd_dtable allocation.
6140
6141 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6142
6143         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6144         * sysdeps/mach/hurd/configure: Regenerated.
6145         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6146         special-casing to...
6147         * sysdeps/gnu/configure.in: ... this new file.
6148         * sysdeps/unix/sysv/linux/configure: Regenerated.
6149         * sysdeps/gnu/configure: New generated file.
6150
6151         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6152         for Linux: use nsec instead of usec, as well as:
6153         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6154         members of type struct timespec.
6155         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6156         New macros.
6157         (struct stat64): Likewise.
6158         (_STATBUF_ST_NSEC): New macro.
6159         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6160
6161         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6162         __strtoul_internal rather than strtoul.
6163
6164 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6165
6166         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6167         and reject them.
6168
6169 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6170
6171         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6172         which preserves existing values.
6173         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6174
6175 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6176
6177         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6178         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6179         greater than FD_SETSIZE.
6180
6181 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6182
6183         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6184         allocated, call __vm_protect to finish enabling the existing space, and
6185         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6186         allocate the remainder.
6187
6188 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6189
6190         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6191         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6192
6193 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6194
6195         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6196         sysdeps/mach/hurd/readlink.c.
6197
6198         * posix/tst-sysconf.c (posix_options): Only use
6199         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6200         _POSIX_SYNCHRONIZED_IO when they are defined
6201         * sysdeps/mach/hurd/bits/posix_opt.h:
6202         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6203         (_XOPEN_REALTIME): Undefine macro.
6204         (_XOPEN_REALTIME_THREADS): Undefine macro.
6205         (_XOPEN_SHM): Undefine macro.
6206         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6207         macro to -1.
6208         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6209         macro to -1.
6210         (_POSIX_ASYNC_IO): Undefine macro.
6211         (_POSIX_PRIORITIZED_IO): Undefine macro.
6212         (_POSIX_SPIN_LOCKS): Define macro to -1.
6213
6214         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6215         SA_NODEFER, SA_RESETHAND.
6216         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6217         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6218         F_DUPFD_CLOEXEC.
6219
6220 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6221
6222         * elf/Makefile (pldd-modules): Define unconditionally.
6223
6224 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6225
6226         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6227
6228 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6229
6230         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6231         Return ENOENT when name is empty.
6232         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6233
6234 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6235
6236         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6237
6238         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6239
6240 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6241
6242         Fix mlock in all cases except non-readable pages.
6243         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6244         instead of VM_PROT_ALL as parameter to __vm_wire function.
6245
6246         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6247         (__mkdir): When path is `/', just fail with EEXIST.
6248         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6249
6250 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6251
6252         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6253         <sys/uio.h> (for writev).
6254         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6255         and <sys/param.h> (for MIN).
6256
6257 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6258
6259         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6260         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6261         if interrupted.
6262
6263 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6264
6265         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6266         Depend on against $(link-rpcuserlibs).
6267
6268 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6269
6270         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6271         (__libc_stack_end): Do not use attribute_relro.
6272         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6273         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6274         to libthread-provided value.
6275         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6276         attribute_relro.
6277
6278 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6279
6280         [BZ #3748]
6281         * bits/libc-lock.h (__libc_once_get): New macro.
6282         * sysdeps/mach/bits/libc-lock.h: Likewise.
6283         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6284         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6285         instead of using implementation details.
6286
6287         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6288         * libio/freopen.c: Likewise.
6289         * libio/freopen64.c: Likewise.
6290         * misc/syslog.c: Likewise.
6291         * nscd/connections.c: Likewise.
6292         * nscd/netgroupcache.c: Likewise.
6293         * sysdeps/posix/getcwd.c: Likewise.
6294
6295 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6296
6297         * math/w_ilogbf.c: Add #include <limits.h>.
6298
6299 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6300
6301         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6302         path instead of returning without unlocking.
6303
6304         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6305         immediate-write ioctls.
6306         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6307
6308 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6309
6310         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6311         __builtin_frame_address instead of making assumptions about the
6312         location of the return address relative to DATA.  Force early load of
6313         the return address.
6314         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6315         __builtin_frame_address.
6316
6317         dup3 for GNU Hurd.
6318         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6319         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6320         implement dup3 and do some further code clean-ups.
6321         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6322         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6323
6324 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6325
6326         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6327
6328         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6329         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6330         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6331         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6332         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6333         d->port.lock.
6334
6335         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6336         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6337         when handler == SIG_ERR, not when handler != SIG_ERR.
6338
6339 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6340
6341         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6342         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6343         definitions.
6344
6345         accept4 for GNU Hurd.
6346         * include/sys/socket.h (__libc_accept4): New prototype.
6347         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6348         to implement __libc_accept4.
6349         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6350         __libc_accept4.
6351         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6352
6353         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6354         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6355         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6356         signal-defines.sym.
6357
6358 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6359
6360         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6361
6362 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6363
6364         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6365         assertion on O_CLOEXEC flag.
6366         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6367         * hurd/intern-fd.c: Likewise.
6368         * hurd/port2fd.c: Likewise.
6369
6370 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6371
6372         [BZ #3906]
6373         * bits/in.h (IPV6_PKTINFO): Define new macro.
6374         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6375
6376 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6377
6378         [BZ #13954]
6379         [BZ #13955]
6380         [BZ #13956]
6381         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6382         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6383         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6384         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6385         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6386         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6387         * math/libm-test.inc (logb_test) : Additional logb tests.
6388
6389 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6390             Andreas Jaeger  <aj@suse.de>
6391
6392         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6393         * configure: Regenerated.
6394         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6395         * config.make.in (link-obsolete-rpc): New substituted variable.
6396         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6397         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6398         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6399         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6400         so that libc.a contains the symbols.
6401         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6402         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6403         * sunrpc/auth_none.c: Likewise.
6404         * sunrpc/auth_unix.c: Likewise.
6405         * sunrpc/authdes_prot.c: Likewise.
6406         * sunrpc/authuxprot.c: Likewise.
6407         * sunrpc/clnt_gen.c: Likewise.
6408         * sunrpc/clnt_perr.c: Likewise.
6409         * sunrpc/clnt_raw.c: Likewise.
6410         * sunrpc/clnt_simp.c: Likewise.
6411         * sunrpc/clnt_tcp.c: Likewise.
6412         * sunrpc/clnt_udp.c: Likewise.
6413         * sunrpc/clnt_unix.c: Likewise.
6414         * sunrpc/des_crypt.c: Likewise.
6415         * sunrpc/des_soft.c: Likewise.
6416         * sunrpc/get_myaddr.c: Likewise.
6417         * sunrpc/key_call.c: Likewise.
6418         * sunrpc/key_prot.c: Likewise.
6419         * sunrpc/netname.c: Likewise.
6420         * sunrpc/pm_getmaps.c: Likewise.
6421         * sunrpc/pm_getport.c: Likewise.
6422         * sunrpc/pmap_clnt.c: Likewise.
6423         * sunrpc/pmap_prot.c: Likewise.
6424         * sunrpc/pmap_prot2.c: Likewise.
6425         * sunrpc/pmap_rmt.c: Likewise.
6426         * sunrpc/publickey.c: Likewise.
6427         * sunrpc/rpc_cmsg.c: Likewise.
6428         * sunrpc/rpc_common.c: Likewise.
6429         * sunrpc/rpc_dtable.c: Likewise.
6430         * sunrpc/rpc_prot.c: Likewise.
6431         * sunrpc/rpc_thread.c: Likewise.
6432         * sunrpc/rtime.c: Likewise.
6433         * sunrpc/svc.c: Likewise.
6434         * sunrpc/svc_auth.c: Likewise.
6435         * sunrpc/svc_raw.c: Likewise.
6436         * sunrpc/svc_run.c: Likewise.
6437         * sunrpc/svc_tcp.c: Likewise.
6438         * sunrpc/svc_udp.c: Likewise.
6439         * sunrpc/svc_unix.c: Likewise.
6440         * sunrpc/svcauth_des.c: Likewise.
6441         * sunrpc/xcrypt.c: Likewise.
6442         * sunrpc/xdr.c: Likewise.
6443         * sunrpc/xdr_array.c: Likewise.
6444         * sunrpc/xdr_float.c: Likewise.
6445         * sunrpc/xdr_intXX_t.c: Likewise.
6446         * sunrpc/xdr_mem.c: Likewise.
6447         * sunrpc/xdr_rec.c: Likewise.
6448         * sunrpc/xdr_ref.c: Likewise.
6449         * sunrpc/xdr_sizeof.c: Likewise.
6450         * sunrpc/xdr_stdio.c: Likewise.
6451
6452 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6453
6454         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6455         change.  Update copyright years.
6456
6457 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6458
6459         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6460
6461 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6462             Joseph Myers  <joseph@codesourcery.com>
6463             Paul Pluzhnikov  <ppluzhnikov@google.com>
6464
6465         [BZ #14012]
6466         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6467         requiring rpcgen.
6468         [cross-compiling] (extra-libs): Likewise.
6469         [cross-compiling] (extra-libs-others): Likewise.
6470         [cross-compiling] (librpcsvc-routines): Likewise.
6471         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6472         [cross-compiling] (omit-deps): Likewise.
6473         (sunrpc-CPPFLAGS): New variable.
6474         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6475         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6476         (cross-rpcgen-objs): New variable.
6477         (extra-objs): Append $(cross-rpcgen-objs).
6478         ($(cross-rpcgen-objs)): New rule.
6479         ($(objpfx)cross-rpcgen): Likewise.
6480         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6481         comment.
6482         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6483         ($(objpfx)x%.stmp): Likewise.
6484         * sunrpc/proto.h [IS_IN_build] (_): Define.
6485         [IS_IN_build] (_libc_intl_domainname): Likewise.
6486
6487 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6488
6489         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6490         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6491         and R_X86_64_TPOFF64.
6492
6493 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6494
6495         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6496         sysdeps/unix/sysv/syscalls.list.
6497         (stime): Likewise.
6498         (utime): Likewise.
6499         * sysdeps/unix/sysv/syscalls.list: Remove file.
6500
6501 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6502
6503         [BZ #3440]
6504         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6505         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6506         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6507         (__LC_IDENTIFICATION): Make these macros useful in #if
6508         expressions, as required by C99.
6509
6510 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6511
6512         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6513         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6514         after this.
6515
6516 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6517
6518         * stdlib/longlong.h: Updated from GCC.
6519
6520 2012-05-09  Andreas Jaeger  <aj@suse.de>
6521
6522         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6523         default is first entry.
6524         (run_mode): Set type.
6525         (main): Remove informal message about syslog.
6526         (options): Fix typo.
6527
6528         [BZ #14053]
6529         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6530         to asm.
6531         (lrint): Likewise.
6532         (llrintf): Likewise.
6533         (llrint): Likewise.
6534         (rint): Likewise.
6535         (rintf): Likewise.
6536         (nearbyint): Likewise.
6537         (nearbyintf): Likewise.
6538
6539 2012-05-09  Andreas Jaeger  <aj@suse.de>
6540             Pedro Alves  <palves@redhat.com>
6541
6542         * nscd/nscd.c (run_mode): Use enum.
6543         (main): Cleanup coding style issue.
6544
6545 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6546             Andreas Jaeger  <aj@suse.de>
6547
6548         * nscd/nscd.c (go_background): Replaced with...
6549         (run_mode): ... this.
6550         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6551         (options): Add -F --foreground.
6552         (main): Implement it.
6553         (parse_opt): Parse it.
6554
6555 2012-05-09  Andreas Jaeger  <aj@suse.de>
6556
6557         [BZ #14083]
6558         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6559         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6560         -Wconversion warning.
6561         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6562         Likewise.
6563
6564 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6565
6566         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6567         == 0.
6568         (LC_ALL): Use macro-int-constant.
6569         (LC_COLLATE): Likewise.
6570         (LC_CTYPE): Likewise.
6571         (LC_MESSAGES): Likewise.
6572         (LC_MONETARY): Likewise.
6573         (LC_NUMERIC): Likewise.
6574         (LC_TIME): Likewise.
6575         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6576         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6577         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6578         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6579         Specify type.
6580         [C99-based standards] (float_t): Expect type.
6581         [C99-based standards] (double_t): Expect type.
6582         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6583         type.
6584         [C99-based standards] (HUGE_VALL): Likewise.
6585         [C99-based standards] (INFINITY): Likewise.
6586         [C99-based standards] (NAN): Likewise.
6587         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6588         [C99-based standards] (FP_NAN): Likewise.
6589         [C99-based standards] (FP_NORMAL): Likewise.
6590         [C99-based standards] (FP_SUBNORMAL): Likewise.
6591         [C99-based standards] (FP_ZERO): Likewise.
6592         [C99-based standards] (FP_FAST_FMA): Use
6593         optional-macro-int-constant.  Specify type.  Require == 1.
6594         [C99-based standards] (FP_FAST_FMAF): Likewise.
6595         [C99-based standards] (FP_FAST_FMAL): Likewise.
6596         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6597         [C99-based standards] (FP_ILOGBNAN): Likewise.
6598         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6599         Specify type.
6600         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6601         [C99-based standards] (math_errhandling): Specify type.
6602         [ISO99 || ISO11] (signgam): Do not allow.
6603         [non-C99-based standards] (copysignf): Do not allow.
6604         [non-C99-based standards] (exp2f): Likewise.
6605         [non-C99-based standards] (log2f): Likewise.
6606         [non-C99-based standards] (modff): Allow.
6607         [non-C99-based standards] (erff): Do not allow.
6608         [non-C99-based standards] (erfcf): Likewise.
6609         [non-C99-based standards] (gammaf): Likewise.
6610         [non-C99-based standards] (hypotf): Likewise.
6611         [non-C99-based standards] (j0f): Likewise.
6612         [non-C99-based standards] (j1f): Likewise.
6613         [non-C99-based standards] (jnf): Likewise.
6614         [non-C99-based standards] (lgammaf): Likewise.
6615         [non-C99-based standards] (tgammaf): Likewise.
6616         [non-C99-based standards] (y0f): Likewise.
6617         [non-C99-based standards] (y1f): Likewise.
6618         [non-C99-based standards] (ynf): Likewise.
6619         [non-C99-based standards] (isnanf): Likewise.
6620         [non-C99-based standards] (acoshf): Likewise.
6621         [non-C99-based standards] (asinhf): Likewise.
6622         [non-C99-based standards] (atanhf): Likewise.
6623         [non-C99-based standards] (cbrtf): Likewise.
6624         [non-C99-based standards] (expm1f): Likewise.
6625         [non-C99-based standards] (ilogbf): Likewise.
6626         [non-C99-based standards] (log1pf): Likewise.
6627         [non-C99-based standards] (logbf): Likewise.
6628         [non-C99-based standards] (nextafterf): Likewise.
6629         [non-C99-based standards] (remainderf): Likewise.
6630         [non-C99-based standards] (rintf): Likewise.
6631         [non-C99-based standards] (scalbf): Likewise.
6632         [non-C99-based standards] (copysignl): Likewise.
6633         [non-C99-based standards] (exp2l): Likewise.
6634         [non-C99-based standards] (log2l): Likewise.
6635         [non-C99-based standards] (modfl): Allow.
6636         [non-C99-based standards] (erfl): Do not allow.
6637         [non-C99-based standards] (erfcl): Likewise.
6638         [non-C99-based standards] (gammal): Likewise.
6639         [non-C99-based standards] (hypotl): Likewise.
6640         [non-C99-based standards] (j0l): Likewise.
6641         [non-C99-based standards] (j1l): Likewise.
6642         [non-C99-based standards] (jnl): Likewise.
6643         [non-C99-based standards] (lgammal): Likewise.
6644         [non-C99-based standards] (tgammal): Likewise.
6645         [non-C99-based standards] (y0l): Likewise.
6646         [non-C99-based standards] (y1l): Likewise.
6647         [non-C99-based standards] (ynl): Likewise.
6648         [non-C99-based standards] (isnanl): Likewise.
6649         [non-C99-based standards] (acoshl): Likewise.
6650         [non-C99-based standards] (asinhl): Likewise.
6651         [non-C99-based standards] (atanhl): Likewise.
6652         [non-C99-based standards] (cbrtl): Likewise.
6653         [non-C99-based standards] (expm1l): Likewise.
6654         [non-C99-based standards] (ilogbl): Likewise.
6655         [non-C99-based standards] (log1pl): Likewise.
6656         [non-C99-based standards] (logbl): Likewise.
6657         [non-C99-based standards] (nextafterl): Likewise.
6658         [non-C99-based standards] (remainderl): Likewise.
6659         [non-C99-based standards] (rintl): Likewise.
6660         [non-C99-based standards] (scalbl): Likewise.
6661         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6662         [non-C99-based standards] (FP_*): Do not allow.
6663         [C99-based standards] (FP_*): Change to
6664         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6665         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6666         allow.
6667         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6668         (SIG_ERR): Likewise.
6669         [X/Open-based standards] (SIG_HOLD): Likewise.
6670         (SIG_IGN): Likewise.
6671         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6672         positive value.
6673         (SIGFPE): Likewise.
6674         (SIGILL): Likewise.
6675         (SIGINT): Likewise.
6676         (SIGSEGV): Likewise.
6677         (SIGTER): Likewise.
6678         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6679         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6680         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6681         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6682         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6683         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6684         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6685         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6686         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6687         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6688         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6689         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6690         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6691         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6692         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6693         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6694         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6695         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6696         [X/Open-based standards] (SIGTRAP): Likewise.
6697         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6698         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6699         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6700         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6701         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6702         allow.
6703
6704 2012-05-08  Ian Wienand  <ianw@vmware.com>
6705
6706         [BZ #14080]
6707         * time/tzset.c (__tzset_parse_tz): Update default rules for
6708         daylight time changes in the Energy Policy Act of 2005.
6709
6710 2012-05-09  Andreas Jaeger  <aj@suse.de>
6711
6712         [BZ #13983]
6713         * elf/ldconfig.c (parse_conf): Change string to make clear that
6714         ldconfig only issued a warning if ld.so.conf does not exist.
6715
6716 2012-05-08  David S. Miller  <davem@davemloft.net>
6717
6718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6719         movxtod instead of popping the value on the stack.
6720
6721         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6722
6723 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6724
6725         * config.h.in: Add HAVE_ARM_PCS_VFP.
6726
6727 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6728
6729         [BZ #13979]
6730         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6731         checking but the checks are disabled for any reason.
6732
6733 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6734
6735         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6736         and ELF64_R_TYPE with ELFW(R_TYPE).
6737
6738 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6739
6740         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6741         (ulimit): Likewise.
6742
6743         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6744         (settimeofday): Likewise.
6745
6746 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6747
6748         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6749         a struct th_u2 inside the union, and move tu_block/tu_code into
6750         a new th_u3 union of tu_block/tu_code inside of that.  Move
6751         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6752         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6753         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6754         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6755         (th_stuff): Change to th_u1.tu_stuff.
6756         (th_data): Define.
6757         (th_msg): Change to th_u1.th_u2.tu_data.
6758
6759 2012-05-07  David S. Miller  <davem@davemloft.net>
6760
6761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6762
6763         [BZ #14074]
6764         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6765         (SETUP_PIC_REG): Use it.
6766         (SETUP_PIC_REG_LEAF): Use it.
6767
6768 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6769
6770         [BZ #13885]
6771         [BZ #13923]
6772         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6773         USE_AS_EXPM1L.
6774         (EXPL_FINITE): Likewise.
6775         (FLDLOG): Likewise.
6776         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6777         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6778         e_expl.S.
6779         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6780         USE_AS_EXPM1L.
6781         (EXPL_FINITE): Likewise.
6782         (FLDLOG): Likewise.
6783         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6784         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6785         e_expl.S.
6786         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6787         test of -max_value argument for long double.
6788         * sysdeps/i386/fpu/libm-test-ulps: Update.
6789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6790
6791 2012-05-06  David S. Miller  <davem@davemloft.net>
6792
6793         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6794         quad soft-float symbols whose references which are compiler
6795         generated.
6796         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6797
6798 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6799
6800         [BZ #13884]
6801         [BZ #13914]
6802         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6803         USE_AS_EXP10L.
6804         (EXPL_FINITE): Likewise.
6805         (FLDLOG): Likewise.
6806         (c0): Likewise.
6807         (c1): Likewise.
6808         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6809         Adjust comments for base varying.
6810         (__expl_finite): Change alias to EXPL_FINITE.
6811         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6812         e_expl.S.
6813         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6814         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6815         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6816         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6817         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6818         USE_AS_EXP10L.
6819         (EXPL_FINITE): Likewise.
6820         (FLDLOG): Likewise.
6821         (c0): Likewise.
6822         (c1): Likewise.
6823         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6824         Adjust comments for base varying.
6825         (__expl_finite): Change alias to EXPL_FINITE.
6826         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6827         tests for bugs.
6828         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6829
6830         [BZ #14064]
6831         * math/libm-test.inc (check_float_internal): Correct ulp
6832         calculation for subnormal expected results.
6833
6834 2012-05-06  Andreas Jaeger  <aj@suse.de>
6835
6836         * Makeconfig (+math-flags): New, set to -frounding-math.
6837         (+cflags): Add +math-flags so that all of glibc gets compiled with
6838         it.
6839
6840         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6841
6842 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6843
6844         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6845         Disable one test.
6846
6847         [BZ #13787]
6848         [BZ #13922]
6849         [BZ #14036]
6850         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6851         (__ieee754_expl): Allow for and saturate large arguments.
6852         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6853         (u_threshold): Likewise.
6854         (__exp): Call __ieee754_exp before checking for overflow and
6855         underflow.
6856         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6857         (u_threshold): Likewise.
6858         (__expf): Call __ieee754_expf before checking for overflow and
6859         underflow.
6860         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6861         (u_threshold): Likewise.
6862         (__expl): Call __ieee754_expl before checking for overflow and
6863         underflow.
6864         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6865         (__ieee754_expl): Allow for and saturate large arguments.
6866         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6867         missing overflow exception on overflow.
6868         (expm1_test): Do not allow missing overflow exception on overflow.
6869
6870         * sysdeps/i386/fpu/e_expl.c: Move to ...
6871         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6872         rather than using inline asm.
6873         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6874         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6875         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6876
6877         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6878         (nice): Likewise.
6879         (poll): Likewise.
6880         (signal): Likewise.
6881         (time): Likewise.
6882         (times): Likewise.
6883
6884 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6885
6886         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6887         sysdeps/unix/common/syscalls.list.
6888         (fchmod): Likewise.
6889         (fchown): Likewise.
6890         (ftruncate): Likewise.
6891         (getrusage): Likewise.
6892         (gettimeofday): Likewise.
6893         (setpgid): Likewise.
6894         (setregid): Likewise.
6895         (setreuid): Likewise.
6896         (sigaction): Likewise.
6897         (truncate): Likewise.
6898         (vhangup): Likewise.
6899         * sysdeps/unix/common/syscalls.list: Remove file.
6900         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6901         * sysdeps/unix/sysv/linux/Implies: Likewise.
6902
6903 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6904
6905         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6906         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6907         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6908         Moved to ...
6909         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6910         Here.
6911         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6912         to ...
6913         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6914         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6915         to ...
6916         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6917         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6918         to ...
6919         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6920         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6921         to ...
6922         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6923         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6924         to ...
6925         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6926         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6927         to ...
6928         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6929         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6930         to ...
6931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6932         Here.
6933         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6934         to ...
6935         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6936         Here.
6937         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6938         to ...
6939         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6940         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6941         Moved to ...
6942         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6943         Here.
6944         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6945         to ...
6946         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6947
6948 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6949
6950         * sysdeps/unix/common/bits/dirent.h: Remove file.
6951         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6952
6953         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6954         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6955         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6956         * sysdeps/unix/bsd/isatty.c: Likewise.
6957         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6958         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6959         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6960
6961 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6962
6963         [BZ #13563]
6964         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6965         long double comparison inaccuracies.
6966         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6967         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6968
6969 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6970
6971         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6972         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6973
6974 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6975
6976         [BZ #14049]
6977         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6978         nonzero digits before rounding a hex value.
6979         * stdlib/tst-strtod.c (tests): Add another test.
6980
6981 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6982
6983         * sysdeps/s390/fpu/libm-test-ulps: Update.
6984
6985 2012-05-03  Andreas Jaeger  <aj@suse.de>
6986
6987         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6988         does not get optimized out.
6989         (malloc_opt_barrier): New.
6990
6991 2012-05-03  Andreas Jaeger  <aj@suse.de>
6992             Roland McGrath  <roland@hack.frob.com>
6993
6994         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6995         intermediate file deletion.
6996         (generated): Add .symlist files.
6997
6998 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6999
7000         [BZ #13775]
7001         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7002         Redirect under this condition.
7003         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7004         [__USE_GNU] (__dprintf_chk): Not under this condition.
7005         [__USE_GNU] (__vdprintf_chk): Likewise.
7006         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7007         under this condition.
7008         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7009         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7010         [__USE_XOPEN2K8] (vdprintf): Likewise.
7011         [__USE_GNU] (__dprintf_chk): Not under this condition.
7012         [__USE_GNU] (__vdprintf_chk): Likewise.
7013         [__USE_GNU] (dprintf): Likewise.
7014         [__USE_GNU] (vdprintf): Likewise.
7015
7016 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7017
7018         * elf/Makefile (common-generated): Set this instead of generated for
7019         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7020         $(all-built-dso)-derived lists.
7021
7022 2012-05-03  Andreas Jaeger  <aj@suse.de>
7023
7024         * sysdeps/i386/fpu/libm-test-ulps: Update.
7025
7026         * FAQ: Removed.
7027         * FAQ.in: Likewise.
7028         * scripts/gen-FAQ.pl: Likewise.
7029         * manual/install.texi (Installation): Point to online location of
7030         FAQ.
7031         * Makefile (files-for-dist): Remove FAQ.
7032         (FAQ): Remove.
7033
7034 2012-05-02  Allan McRae  <allan@archlinux.org>
7035
7036         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7037         (LDFLAGS-reldepmod5.so): Likewise.
7038         (LDFLAGS-reldep6mod1.so): Likewise.
7039         (LDFLAGS-reldep6mod4.so): Likewise.
7040         (LDFLAGS-reldep8mod3.so): Likewise.
7041         (LDFLAGS-unload4mod1.so): Likewise.
7042         (LDFLAGS-unload4mod2.so): Likewise.
7043         (LDFLAGS-tst-initorder): Likewise.
7044         (LDFLAGS-tst-initordera2.so): Likewise.
7045         (LDFLAGS-tst-initordera3.so): Likewise.
7046         (LDFLAGS-tst-initordera4.so): Likewise.
7047         (LDFLAGS-tst-initorderb2.so): Likewise.
7048         (LDFLAGS-noload): Likewise.
7049         (LDFLAGS-next): Likewise.
7050         (LDFLAGS-order2mod1.so): Likewise.
7051         (LDFLAGS-order2mod2.so): Likewise.
7052         (LDFLAGS-tst-initorder2): Likewise.
7053         (LDFLAGS-tst-initorder2a.so): Likewise.
7054         (LDFLAGS-tst-initorder2b.so): Likewise.
7055         (LDFLAGS-tst-initorder2c.so): Likewise.
7056         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7057
7058 2012-05-02  David S. Miller  <davem@davemloft.net>
7059
7060         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7061
7062 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7063
7064         [BZ #14055]
7065         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7066
7067 2012-05-02  Andreas Jaeger  <aj@suse.de>
7068
7069         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7070         since we manipulate rounding mode.
7071         (CPPFLAGS-test-idouble.c): Likewise.
7072         (CPPFLAGS-test-ifloat.c): Likewise.
7073         (CFLAGS-test-ldouble.c): Likewise.
7074         (CFLAGS-test-double.c): Likewise.
7075         (CFLAGS-test-float.c): Likewise.
7076         (CFLAGS-test-misc.c): Likewise.
7077         (CFLAGS-test-test-fenv.c): Likewise.
7078
7079 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7080
7081         [BZ #2550]
7082         [BZ #2570]
7083         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7084         comparisons to determine direction to adjust input.
7085
7086 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7087
7088         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7089         output to the target.
7090
7091         * scripts/localplt.awk: New file.
7092         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7093         (check-localplt-CFLAGS): Variable removed.
7094         ($(all-built-dso:=.jmprel)): New static pattern rule.
7095         (generated): Add those targets.
7096         (localplt-built-dso): New variable.
7097         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7098
7099         * elf/check-localplt.c: File removed.
7100
7101         * scripts/check-execstack.awk: New file.
7102         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7103         (check-execstack-CFLAGS): Variable removed.
7104         ($(objpfx)check-execstack.h): Target removed.
7105         ($(objpfx)execstack-default): New target.
7106         (generated): Add that instead of check-execstack.h.
7107         ($(all-built-dso:=.phdr)): New static pattern rule.
7108         (generated): Add those targets.
7109         * elf/check-execstack.c: File removed.
7110
7111         * scripts/check-textrel.awk: New file.
7112         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7113         (check-textrel-CFLAGS): Variable removed.
7114         (all-built-dso): Use := to define.o
7115         ($(all-built-dso:=.dyn)): New static pattern rule.
7116         (generated): Add those targets.
7117         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7118         * config.make.in (READELF): New substituted variable.
7119         * elf/check-textrel.c: File removed.
7120
7121 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7122
7123         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7124         allow.
7125         * conform/data/ctype.h-data [C99-based standards] (isblank):
7126         Expect function.
7127         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7128         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7129         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7130         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7131         Specify type.  Require positive value.
7132         (EILSEQ): Likewise.
7133         (ERANGE): Likewise.
7134         [ISO || POSIX] (EILSEQ): Do not expect.
7135         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7136         Specify type.  Require positive value.
7137         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7138         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7139         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7140         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7141         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7142         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7143         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7144         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7145         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7146         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7147         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7148         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7149         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7150         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7151         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7152         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7153         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7154         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7155         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7156         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7157         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7158         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7159         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7160         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7161         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7162         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7163         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7164         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7165         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7166         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7167         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7168         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7169         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7170         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7171         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7172         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7173         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7174         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7175         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7176         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7177         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7178         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7179         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7180         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7181         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7182         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7183         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7184         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7185         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7186         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7187         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7188         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7189         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7190         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7191         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7192         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7193         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7194         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7195         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7196         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7197         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7198         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7199         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7200         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7201         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7202         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7203         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7204         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7205         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7206         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7207         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7208         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7209         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7210         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7211         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7212         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7213         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7214         Require >= 2.
7215         (FLT_ROUNDS): Expect as macro, not constant.
7216         (FLT_MANT_DIG): Use macro-int-constant.
7217         (DBL_MANT_DIG): Likewise.
7218         (LDBL_MANT_DIG): Likewise.
7219         (FLT_DIG): Likewise.
7220         (DBL_DIG): Likewise.
7221         (LDBL_DIG): Likewise.
7222         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7223         (DBL_MIN_EXP): Likewise.
7224         (LDBL_MIN_EXP): Likewise.
7225         (FLT_MAX_EXP): Use macro-int-constant.
7226         (DBL_MAX_EXP): Likewise.
7227         (LDBL_MAX_EXP): Likewise.
7228         (FLT_MAX_10_EXP): Likewise.
7229         (DBL_MAX_10_EXP): Likewise.
7230         (LDBL_MAX_10_EXP): Likewise.
7231         (FLT_MAX): Use macro-constant.
7232         (DBL_MAX): Likewise.
7233         (LDBL_MAX): Likewise.
7234         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7235         (DBL_EPSILON): Likewise.
7236         (LDBL_EPSILON): Likewise.
7237         (FLT_MIN): Likewise.
7238         (DBL_MIN): Likewise.
7239         (LDBL_MIN): Likewise.
7240         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7241         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7242         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7243         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7244         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7245         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7246         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7247         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7248         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7249         [ISO11] (FLT_TRUE_MIN): Likewise.
7250         [ISO11] (LDBL_TRUE_MIN): Likewise.
7251         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7252         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7253         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7254         (SCHAR_MAX): Likewise.
7255         (UCHAR_MAX): Likewise.
7256         (CHAR_MIN): Likewise.
7257         (CHAR_MAX): Likewise.
7258         (MB_LEN_MAX): Use macro-int-constant.
7259         (SHRT_MIN): Use macro-int-constant.  Specify type.
7260         (SHRT_MAX): Likewise.
7261         (USHRT_MAX): Likewise.
7262         (INT_MAX): Likewise.
7263         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7264         bound negative.
7265         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7266         bound with "U".
7267         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7268         bound with "L".
7269         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7270         bound negative.  Suffix upper bound with "L".
7271         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7272         bound with "UL".
7273         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7274         Specify type.
7275         [C99-based standards] (LLONG_MAX): Likewise.
7276         [C99-based standards] (ULLONG_MAX): Likewise.
7277         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7278         == 0.
7279         [ISO11] (max_align_t): Require type.
7280         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7281
7282         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7283         from $CFLAGS, without defining away __attribute__ calls.
7284         (checknamespace): Use $CFLAGS_namespace.
7285
7286         * conform/conformtest.pl (@keywords): Only include C99 keywords
7287         for standards based on C99 or C11.
7288
7289         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7290         Disable tests.
7291         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7292         UNIX98]: Likewise.
7293
7294         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7295         usability of symbols in #if.
7296
7297         * conform/conformtest.pl: If macro or constant types start
7298         "promoted:", expect the symbol to be of the following type
7299         promoted by the integer promotions.
7300
7301         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7302         in one place.  Also handle "macro-constant".
7303
7304         * conform/conformtest.pl: Only accept expected macro values with
7305         "==".  Parse all "macro" lines in one place.
7306         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7307
7308         * conform/conformtest.pl: Handle braced types on "constant" lines
7309         instead of handling "typed-constant".
7310         * conform/data/signal.h-data: Use "constant" instead of
7311         "typed-constant".
7312
7313         * conform/conformtest.pl: Handle "optional-" at start of lines in
7314         one place rather than duplicating several cases.  Handle each
7315         format of "macro" line with initial "optional-".
7316
7317         * conform/conformtest.pl: Only accept expected constant or
7318         optional-constant values with "==".  Parse all "constant" lines in
7319         one place.  Parse all "optional-constant" lines in one place.
7320         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7321         * conform/data/fmtmsg.h-data: Likewise.
7322         * conform/data/netinet/in.h-data: Likewise.
7323         * conform/data/tar.h-data: Likewise.
7324         * conform/data/limits.h-data: Use "==" form on "constant" and
7325         "optional-constant" lines.
7326
7327         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7328         Use -std=c99 for XOPEN2K.
7329         (@knownproblems): Remove.
7330         (newtoken): Don't check %isknown.
7331
7332         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7333         Do not expect macro.
7334         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7335         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7336         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7337         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7338         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7339         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7340         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7341         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7342         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7343         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7344         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7345         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7346         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7347         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7348         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7349         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7350         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7351         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7352         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7353         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7354         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7355         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7356         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7357         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7358         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7359         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7360         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7361         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7362         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7363         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7364         [XPG3] (acosh): Likewise.
7365         [XPG3] (asinh): Likewise.
7366         [XPG3] (atanh): Likewise.
7367         [XPG3] (cbrt): Likewise.
7368         [XPG3] (expm1): Likewise.
7369         [XPG3] (ilogb): Likewise.
7370         [XPG3] (log1p): Likewise.
7371         [XPG3] (logb): Likewise.
7372         [XPG3] (nextafter): Likewise.
7373         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7374         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7375         [XPG3] (remainder): Likewise.
7376         [XPG3] (rint): Likewise.
7377         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7378         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7379         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7380         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7381         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7382         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7383         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7384         [UNIX98 || XOPEN2K] (scalb): Expect.
7385         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7386         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7387         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7388         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7389         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7390         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7391         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7392         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7393         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7394         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7395         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7396         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7397         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7398         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7399         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7400         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7401         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7402         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7403         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7404         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7405         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7406         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7407         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7408         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7409         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7410         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7411         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7412         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7413         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7414         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7415         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7416         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7417         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7418         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7419         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7420         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7421         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7422         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7423         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7424         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7425         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7426         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7427         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7428         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7429         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7430         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7431         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7432         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7433         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7434         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7435         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7436         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7437         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7438         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7439         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7440         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7441         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7442         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7443         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7444         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7445         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7446         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7447         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7448         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7449         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7450         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7451         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7452         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7453         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7454         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7455         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7456         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7457         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7458         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7459         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7460         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7461         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7462         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7463         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7464         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7465         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7466         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7467         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7468         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7469         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7470         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7471         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7472         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7473         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7474         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7475         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7476         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7477         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7478         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7479         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7480         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7481         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7482         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7483         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7484         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7485         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7486         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7487         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7488         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7489         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7490         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7491         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7492         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7493         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7494         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7495         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7496         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7497         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7498         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7499         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7500         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7501         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7502         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7503         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7504         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7505         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7506         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7507         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7508         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7509         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7510         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7511         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7512         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7513         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7514         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7515         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7516         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7517         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7518         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7519         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7520         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7521         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7522
7523         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7524         _XOPEN_SOURCE_EXTENDED for XPG4.
7525
7526         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7527
7528         * Makeconfig (localtime): Remove variable.
7529         (inst_localtime-file): Likewise.
7530
7531 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7532
7533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7534         Update.
7535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7536         Update.
7537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7538         Update.
7539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7540         Update.
7541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7542         Update.
7543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7544         Update.
7545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7546         Update.
7547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7548         Update.
7549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7550         Update.
7551
7552 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7553
7554         [BZ #2550]
7555         [BZ #2570]
7556         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7557         comparisons to determine direction to adjust input.
7558         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7559         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7560         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7561         Likewise.
7562         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7563         Likewise.
7564         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7565         Likewise.
7566         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7567         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7568         Likewise.
7569         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7570         Likewise.
7571         * math/libm-test.inc (nexttoward_test): Add more tests.
7572
7573 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7574
7575         [BZ #14040]
7576         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7577         in version GLIBC_2.1, not GLIBC_2.0.
7578         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7579         Likewise.
7580
7581 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7582
7583         [BZ #13942]
7584         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7585         (1 - x) * (1 + x).
7586         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7587         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7588         * math/libm-test.inc (acos_test): Add more tests.
7589         (asin_test): Likewise.
7590         * sysdeps/i386/fpu/libm-test-ulps: Update.
7591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7592
7593         [BZ #14034]
7594         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7595         of square root.
7596         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7597         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7598         * math/libm-test.inc (acos_test_tonearest): New function.
7599         (acos_test_towardzero): Likewise.
7600         (acos_test_downward): Likewise.
7601         (acos_test_upward): Likewise.
7602         (asin_test_tonearest): Likewise.
7603         (asin_test_towardzero): Likewise.
7604         (asin_test_downward): Likewise.
7605         (asin_test_upward): Likewise.
7606         (main): Call the new functions.
7607         * sysdeps/i386/fpu/libm-test-ulps: Update.
7608         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7609
7610         [BZ #13884]
7611         [BZ #13924]
7612         * math/e_exp10.c: Include <float.h>.
7613         (__ieee754_exp10): Handle underflow here rather than multiplying
7614         large negative argument by M_LN10.
7615         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7616         of __ieee754_expf.
7617         * math/e_exp10l.c: Include <float.h>.
7618         (__ieee754_exp10l): Handle underflow here rather than multiplying
7619         large negative argument by M_LN10l.
7620         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7621         spurious overflow exception on underflow.
7622
7623 2012-04-29  Marek Polacek  <polacek@redhat.com>
7624
7625         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7626         (__fortify_function): New macro.
7627         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7628         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7629         __extern_always_inline.
7630         * libio/bits/stdio2.h: Likewise.
7631         * libio/bits/stdio.h: Likewise.
7632         * string/string.h: Likewise.
7633         * string/bits/string3.h: Likewise.
7634         * include/stdio.h: Likewise.
7635         * stdlib/bits/stdlib.h: Likewise.
7636         * stdlib/stdlib.h: Likewise.
7637         * rt/bits/mqueue2.h: Likewise.
7638         * rt/mqueue.h: Likewise.
7639         * posix/bits/unistd.h: Likewise.
7640         * posix/unistd.h: Likewise.
7641         * io/bits/poll2.h: Likewise.
7642         * io/bits/fcntl2.h: Likewise.
7643         * io/fcntl.h: Likewise.
7644         * io/sys/poll.h: Likewise.
7645         * misc/bits/syslog.h: Likewise.
7646         * misc/bits/syslog-ldbl.h: Likewise.
7647         * misc/sys/syslog.h: Likewise.
7648         * socket/bits/socket2.h: Likewise.
7649         * socket/sys/socket.h: Likewise.
7650         * debug/tst-chk1.c: Likewise.
7651         * wcsmbs/bits/wchar2.h: Likewise.
7652         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7653         * wcsmbs/wchar.h: Likewise.
7654
7655 2012-04-29  Andreas Jaeger  <aj@suse.de>
7656
7657         * Makerules (tests): Remove enable-check-abi protection.
7658         (check-abi-warn): Remove.
7659         (check-abi-%): Remove check-abi-warn usage.
7660
7661         * configure.in: Remove check-abi configure option.
7662         * configure: Regenerated.
7663         * config.make.in (enable-check-abi): Remove.
7664
7665 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7666
7667         [BZ #14033]
7668         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7669         double functions to double *_finite functions.
7670
7671         [BZ #13941]
7672         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7673         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7674         LDBL_MIN_EXP.
7675         * stdio-common/Makefile (tests): Add tst-sprintf3.
7676         * stdio-common/tst-sprintf3.c: New file.
7677
7678         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7679         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7680
7681 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7682
7683         * conform/conformtest.pl: Remove duplicate typed-constant
7684         handling.
7685
7686 2012-04-28  David S. Miller  <davem@davemloft.net>
7687
7688         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7689         (check-abi-%): Remove AWK script prerequisite and explicit
7690         abilist directory.
7691         (check-abi): Rewrite to just diff the symlist with the abilist.
7692         (config-tls, config-abi-config): Delete, no longer used.
7693         (update-abi-%): Remove AWK script and explicit abilist directory.
7694         (update-abi): Rewrite to simply compare and conditionally copy the
7695         symlist and the sysdep abilist file.  Remove update-abi-config
7696         checks.
7697         * abilist/ld.abilist: Remove.
7698         * abilist/libBrokenLocale.abilist: Remove.
7699         * abilist/libanl.abilist: Remove.
7700         * abilist/libcrypt.abilist: Remove.
7701         * abilist/libdl.abilist: Remove.
7702         * abilist/librt.abilist: Remove.
7703         * abilist/libthread_db.abilist: Remove.
7704         * abilist/libutil.abilist: Remove.
7705         * scripts/extract-abilist.awk: Remove.
7706         * scripts/merge-abilist.awk: Remove.
7707         * sysdeps/generic/libcidn.abilist: New file.
7708         * sysdeps/generic/libnss_compat.abilist: New file.
7709         * sysdeps/generic/libnss_db.abilist: New file.
7710         * sysdeps/generic/libnss_dns.abilist: New file.
7711         * sysdeps/generic/libnss_files.abilist: New file.
7712         * sysdeps/generic/libnss_hesiod.abilist: New file.
7713         * sysdeps/generic/libnss_nis.abilist: New file.
7714         * sysdeps/generic/libnss_nisplus.abilist: New file.
7715         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7716         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7717         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7718         file.
7719         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7720         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7721         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7722         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7723         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7724         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7725         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7726         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7727         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7728         file.
7729         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7730         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7731         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7732         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7733         file.
7734         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7735         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7736         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7737         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7738         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7739         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7740         file.
7741         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7742         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7743         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7744         file.
7745         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7746         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7747         New file.
7748         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7749         New file.
7750         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7751         New file.
7752         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7753         New file.
7754         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7755         New file.
7756         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7757         New file.
7758         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7759         New file.
7760         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7761         New file.
7762         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7763         New file.
7764         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7765         New file.
7766         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7767         New file.
7768         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7769         New file.
7770         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7771         New file.
7772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7773         file.
7774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7775         New file.
7776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7777         New file.
7778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7779         file.
7780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7781         New file.
7782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7783         New file.
7784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7785         file.
7786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7787         New file.
7788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7789         New file.
7790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7791         New file.
7792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7793         New file.
7794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7795         New file.
7796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7797         New file.
7798         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7799         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7800         file.
7801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7802         New file.
7803         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7804         file.
7805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7806         file.
7807         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7808         file.
7809         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7810         file.
7811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7812         file.
7813         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7814         New file.
7815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7816         file.
7817         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7818         file.
7819         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7820         New file.
7821         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7822         file.
7823         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7824         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7825         file.
7826         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7827         New file.
7828         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7829         file.
7830         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7831         file.
7832         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7833         file.
7834         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7835         file.
7836         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7837         file.
7838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7839         New file.
7840         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7841         file.
7842         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7843         file.
7844         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7845         New file.
7846         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7847         file.
7848         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7849         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7850         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7851         file.
7852         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7853         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7854         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7855         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7856         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7857         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7858         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7859         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7860         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7861         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7862         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7863         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7864         file.
7865         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7866         New file.
7867         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7868         file.
7869         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7870         file.
7871         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7872         file.
7873         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7874         file.
7875         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7876         file.
7877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7878         New file.
7879         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7880         New file.
7881         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7882         file.
7883         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7884         New file.
7885         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7886         file.
7887         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7888         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7889         file.
7890         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7891         New file.
7892         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7893         file.
7894         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7895         file.
7896         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7897         file.
7898         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7899         file.
7900         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7901         file.
7902         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7903         New file.
7904         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7905         New file.
7906         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7907         file.
7908         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7909         New file.
7910         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7911         file.
7912
7913 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7914
7915         * conform/conformtest.pl: Fix typo in handling typed-constant from
7916         allow-header.
7917
7918 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7919
7920         * README: Cut down references to pre-2.6 Linux kernels and
7921         Linuxthreads.  Update lists of configurations in libc and ports
7922         and sort alphabetically.  Say "or newer" with Linux kernel version
7923         requirements.
7924
7925         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7926
7927 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7928
7929         [BZ #887]
7930         * math/libm-test.inc (logb_test_downward): New test to expose
7931         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7932         rounding mode.
7933
7934 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7935
7936         [BZ #14027]
7937         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7938         to be done.
7939         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7940         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7941
7942 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7943
7944         * sysdeps/unix/i386/brk.S: Remove file.
7945         * sysdeps/unix/i386/dl-brk.S: Likewise.
7946         * sysdeps/unix/i386/pipe.S: Likewise.
7947         * sysdeps/unix/i386/sigreturn.S: Likewise.
7948         * sysdeps/unix/i386/syscall.S: Likewise.
7949         * sysdeps/unix/i386/vfork.S: Likewise.
7950         * sysdeps/unix/i386/wait.S: Likewise.
7951
7952         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7953         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7954
7955         * configure.in (arm*-none*): Do not allow without
7956         --enable-hacker-mode.
7957         (netbsd*): Remove case setting base_os.
7958         (386bsd*): Likewise.
7959         (freebsd*): Likewise.
7960         (bsdi*): Likewise.
7961         (osf*): Likewise.
7962         (sunos*): Likewise.
7963         (ultrix*): Likewise.
7964         (newsos*): Likewise.
7965         (dynix*): Likewise.
7966         (*bsd*): Likewise.
7967         (sysv*): Likewise.
7968         (isc*): Likewise.
7969         (esix*): Likewise.
7970         (sco*): Likewise.
7971         (minix*): Likewise.
7972         (irix4*): Likewise.
7973         (irix6*): Likewise.
7974         (solaris[2-9]*): Likewise.
7975         (none): Likewise.
7976         * configure: Regenerated.
7977
7978 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7979
7980         [BZ #11521]
7981         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7982         overflow or cancellation in calculating denominator.
7983         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7984         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7985         down expression to avoid unexpected rounding in newer GCCs.
7986         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7987
7988 2012-04-26  David S. Miller  <davem@davemloft.net>
7989
7990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7991         long-double compat symbols.
7992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8002         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8004         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8005
8006 2012-04-25  David S. Miller  <davem@davemloft.net>
8007
8008         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8009         HWCAP_* values only after the memory barriers have been defined.
8010         (atomic_full_barrier): Define.
8011         (atomic_read_barrier): Define.
8012         (atomic_write_barrier): Define.
8013
8014 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8015
8016         * shlib-versions: Add libgcc_s version information.
8017         * sysdeps/generic/libgcc_s.h: Remove.
8018         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8019         libgcc_s.h.
8020         * sysdeps/gnu/unwind-resume.c: Likewise.
8021         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8022
8023 2012-04-25  David S. Miller  <davem@davemloft.net>
8024
8025         * sysdeps/unix/sparc/brk.S: Delete.
8026         * sysdeps/unix/sparc/dl-brk.S: Delete.
8027         * sysdeps/unix/sparc/pipe.S: Delete.
8028         * sysdeps/unix/sparc/sysdep.S: Delete.
8029         * sysdeps/unix/sparc/sysdep.h: Delete.
8030         * sysdeps/unix/sparc/vfork.S: Delete.
8031         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8032         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8033         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8034         ret_ERRVAL, r0, r1, MOVE): Define.
8035         (JUMPTARGET): Remove.
8036         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8037         sysdeps/unix/sparc/sysdep.h
8038         (ENTRY, END): Remove.
8039         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8040
8041 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8042
8043         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8044         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8045         -DIS_IN_build.
8046
8047         * timezone/README: Update upstream location and email address for
8048         tzcode and tzdata.
8049         * timezone/zdump.c: Update from tzcode 2012b.
8050         * timezone/zic.c: Likewise.
8051
8052         * configure.in (libc_cv_as_needed): Remove test.
8053         * configure: Regenerated.
8054         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8055         conditional definition.
8056         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8057         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8058         * config.make.in (have-as-needed): Remove variable.
8059
8060 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8061             Paul Pluzhnikov  <ppluzhnikov@google.com>
8062
8063         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8064         strings correctly.
8065
8066 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8067
8068         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8069         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8070         * sysdeps/sh/strlen.S: Likewise.
8071
8072 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8073
8074         * sysdeps/unix/fork.S: Remove file.
8075         * sysdeps/unix/i386/fork.S: Likewise.
8076         * sysdeps/unix/sparc/fork.S: Likewise.
8077
8078         * sysdeps/unix/system.c: Remove file.
8079         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8080
8081         * sysdeps/unix/getegid.S: Remove file.
8082         * sysdeps/unix/geteuid.S: Likewise.
8083
8084 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8085
8086         * scripts/check-localplt.awk: New file.
8087         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8088         of diff.
8089         * scripts/data/localplt-generic.data: Add a comment.
8090
8091         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8092         NODE when __dir_mkfile failed.
8093         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8094         Reported by Ludovic Courtès <ludo@gnu.org>.
8095
8096 2012-04-24  Andreas Jaeger  <aj@suse.de>
8097
8098         * Makerules (common-clean): Also remove gen-as-const-headers
8099         files.
8100
8101 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8102
8103         * Makerules (native-compile): Do not change working directory for
8104         build.  Use $(OUTPUT_OPTION) in command.
8105         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8106
8107 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8108
8109         [BZ #13886]
8110         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8111         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8112         * math/libm-test.inc (floor_test): Add more tests.
8113         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8114
8115 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8116
8117         * sysdeps/unix/getdents.c: Remove file.
8118         * sysdeps/unix/sysv/getdents.c: Likewise.
8119         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8120
8121         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8122         sysdeps/unix/mman/syscalls.list.
8123         (mmap): Likewise.
8124         (mprotect): Likewise.
8125         (msync): Likewise.
8126         (munmap): Likewise.
8127         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8128         * sysdeps/unix/mman/syscalls.list: Remove.
8129         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8130
8131         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8132         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8133         * configure: Regenerated.
8134         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8135         $(libgcc_s_suffix).
8136         * config.make.in (libgcc_s_suffix): Remove variable.
8137
8138 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8139
8140         * sysdeps/unix/sysv/gethostname.c: Move to ...
8141         * sysdeps/posix/gethostname.c: ... here.
8142
8143         * sysdeps/unix/execve.S: Remove file.
8144
8145         * sysdeps/unix/_exit.S: Remove file.
8146
8147 2012-04-23  Andreas Jaeger  <aj@suse.de>
8148
8149         [BZ #13739]
8150         * manual/Makefile: Remove make dist support, there's no
8151         need for a stand-alone documentation tar ball.
8152         (TEXI2DVI): Define always, it's not in Makeconfig.
8153         (dist): Removed.
8154         (tar-it): Removed.
8155         (edition): Removed.
8156         (glibc-doc-$(edition).tar): Removed
8157         (%.Z): Removed.
8158         (%.gz): Removed.
8159         (%.uu): Removed.
8160         (ETAGS): Remove, it's in Makeconfig.
8161         (move-if-change): Remove, it's in Makeconfig.
8162
8163 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8164
8165         [BZ #13970]
8166         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8167         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8168         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8169         (strtod_l, strtof_l, strtold_l): Remove __wur.
8170         It is not necessarily an error to ignore strtol's return value.
8171         One can reliably look at the stored endptr to decide whether
8172         the number had valid syntax.
8173
8174 2012-04-21  Andreas Jaeger  <aj@suse.de>
8175
8176         [BZ #13739]
8177         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8178
8179 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8180
8181         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8182         * sysdeps/unix/sysv/Versions: Remove file.
8183
8184 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8185
8186         [BZ #13927]
8187         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8188
8189 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8190
8191         [BZ #7064]
8192         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8193         version from __vm86.
8194
8195 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8196
8197         * sysdeps/unix/common/lxstat.c: Remove file.
8198         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8199
8200         * sysdeps/unix/sysv/Makefile: Remove file.
8201
8202         * sysdeps/unix/sysv/direct.h: Remove file.
8203
8204         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8205         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8206         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8207         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8208         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8209         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8210         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8211
8212         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8213
8214         * sysdeps/unix/xmknod.c: Remove file.
8215         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8216
8217         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8218
8219         * sysdeps/unix/sysv/i386/time.S: Remove file.
8220
8221         * sysdeps/unix/fxstat.c: Remove file.
8222         * sysdeps/unix/xstat.c: Likewise.
8223         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8224
8225         * sysdeps/unix/sysv/sigaction.c: Remove file.
8226
8227         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8228         (sysdep_headers): Remove variable.
8229         [termio.h not in sysdep_headers] (generated): Likewise.
8230         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8231         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8232         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8233         * sysdeps/unix/sysv/tcflow.c: Likewise.
8234         * sysdeps/unix/sysv/tcflush.c: Likewise.
8235         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8236         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8237         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8238         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8239         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8240
8241         * sysdeps/unix/siglist.c: Remove file.
8242
8243         * sysdeps/unix/getppid.S: Remove file.
8244
8245         * sysdeps/unix/mkdir.c: Remove file.
8246         * sysdeps/unix/rmdir.c: Likewise.
8247
8248 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8249
8250         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8251         ERR_MAX value.
8252         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8253         errlist-compat value.
8254
8255 2012-04-18  David S. Miller  <davem@davemloft.net>
8256
8257         * sysdeps/generic/memcopy.h (reg_char): Delete.
8258         * debug/strcat_chk.c: Use char, not reg_char.
8259         * debug/strcpy_chk.c: Likewise.
8260         * debug/strncat_chk.c: Likewise.
8261         * debug/strncpy_chk.c: Likewise.
8262         * string/memchr.c: Likewise.
8263         * string/memrchr.c: Likewise.
8264         * string/rawmemchr.c: Likewise.
8265         * string/strcat.c: Likewise.
8266         * string/strchr.c: Likewise.
8267         * string/strchrnul.c: Likewise.
8268         * string/strcmp.c: Likewise.
8269         * string/strcpy.c: Likewise.
8270         * string/strncat.c: Likewise.
8271         * string/strncmp.c: Likewise.
8272         * string/strncpy.c: Likewise.
8273
8274 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8275
8276         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8277         __builtin_memcopy is called when src and dest ranges are known to not
8278         overlap.
8279
8280 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8281
8282         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8283         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8284         fwd_align_merge macro call.
8285         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8286         bwd_align_merge macro call.
8287         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8288
8289 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8290
8291         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8292         bwd_align_merge macros.
8293         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8294         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8295         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8296
8297 2012-04-18  David S. Miller  <davem@davemloft.net>
8298
8299         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8300
8301 2012-04-18  Andreas Jaeger  <aj@suse.de>
8302
8303         [BZ# 6794]
8304         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8305         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8306         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8307
8308         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8309         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8310         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8311
8312         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8313         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8314         Adjust for changed ldbl-128 files.
8315
8316         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8317         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8318         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8319
8320 2012-04-17  David S. Miller  <davem@davemloft.net>
8321
8322         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8323
8324 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8325
8326         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8327         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8328         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8329         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8330         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8331         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8332
8333 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8334
8335         [BZ #6794]
8336         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8337         * math/libm-test.inc: Add ilogb errno and exception tests.
8338         * math/w_ilogb.c: New file: ilogb wrapper.
8339         * math/w_ilogbf.c: New file: ilogbf wrapper.
8340         * math/w_ilogbl.c: New file: ilogbl wrapper.
8341         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8342         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8343         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8344         exception being thrown with 0.0 as argument.
8345         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8346         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8347         exception being thrown with 0.0 as argument.
8348         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8349         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8350         exception being thrown with 0.0 as argument.
8351         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8352         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8353         exception being thrown with 0.0 as argument.
8354         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8355         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8356         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8357         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8358         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8359         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8360         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8361         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8362         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8363
8364 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8365
8366         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8367         with altivec.
8368
8369 2012-04-16  Marek Polacek  <polacek@redhat.com>
8370
8371         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8372
8373 2012-04-16  Marek Polacek  <polacek@redhat.com>
8374
8375         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8376         operands of fdivp instruction.
8377
8378 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8379
8380         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8381         * elf/tst-auditmod3b.c: Likewise.
8382         * elf/tst-auditmod4b.c: Likewise.
8383         * elf/tst-auditmod5b.c: Likewise.
8384         * elf/tst-auditmod6b.c: Likewise.
8385         * elf/tst-auditmod6c.c: Likewise.
8386         * elf/tst-auditmod7b.c: Likewise.
8387         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8388         * sysdeps/x86_64/preconfigure.in: Likewise.
8389         * sysdeps/x86_64/preconfigure: Regenerated.
8390
8391 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8392
8393         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8394         __ILP32__.
8395
8396 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8397
8398         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8399         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8400
8401 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8402
8403         [BZ #13973]
8404         * locale/iso-639.def: Fix gl language name. Spotted by
8405         Yaron Shahrabani.
8406
8407 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8408
8409         [BZ #2074]
8410         * libio/libio.h (__io_write_fn): Update comment.
8411
8412 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8413
8414         [BZ #2074]
8415         * stdio.texi (Hook Functions): The user provided writer function
8416         is not allowed to return -1.
8417
8418 2012-04-11  David S. Miller  <davem@davemloft.net>
8419
8420         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8421
8422 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8423
8424         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8425         Add a leading slash to rtkaio.
8426
8427 2012-04-11  Jim Meyering  <meyering@redhat.com>
8428
8429         [BZ #11959]
8430         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8431         It is not necessarily an error to ignore fwrite's return
8432         value.  One can reliably use ferror to test for errors after
8433         the fact.
8434
8435 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8436
8437         * bits/types.h (__snseconds_t): New type.
8438         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8439
8440         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8441         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8442         (__SNSECONDS_T_TYPE): Likewise.
8443         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8444         (__SNSECONDS_T_TYPE): Likewise.
8445         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8446         (__SNSECONDS_T_TYPE): Likewise.
8447
8448 2012-04-10  Andreas Jaeger  <aj@suse.de>
8449
8450         [BZ #2636]
8451         * manual/time.texi (Processor Time): Return type of times is
8452         elapsed real time since an arbitrary point in the past.
8453         (CPU Time): Move CLK_TCK from here...
8454         (Processor Time): ...to here.  Correct description.
8455         * manual/conf.texi (Constants for Sysconf): Correct description of
8456         _SC_CLK_TCK.
8457
8458 2012-04-10  David S. Miller  <davem@davemloft.net>
8459
8460         [BZ #13967]
8461         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8462         where the is a gap between DT_REL(A) and DT_JMPREL.
8463
8464 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8465
8466         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8467         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8468         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8469
8470 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8471
8472         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8473         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8474         (dl_main): Handle --inhibit-cache.
8475         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8476         _dl_inhibit_cache.
8477         * elf/dl-load.c (_dl_map_object): Use it.
8478         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8479
8480 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8481
8482         [BZ #13872]
8483         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8484         (__ieee754_powl): Saturate large exponents rather than testing for
8485         overflow of y*log2(x).
8486         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8487         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8488         exceptions.
8489
8490         [BZ #11521]
8491         * math/s_ctan.c: Include <float.h>.
8492         (__ctan): Avoid internal overflow or cancellation in calculating
8493         denominator.
8494         * math/s_ctanf.c: Likewise.
8495         * math/s_ctanl.c: Likewise.
8496         * math/s_ctanh.c: Likewise.
8497         * math/s_ctanhf.c: Likewise.
8498         * math/s_ctanhl.c: Likewise.
8499         * math/libm-test.inc (ctan_test): Add more tests.
8500         (ctanh_test): Likewise.
8501         * sysdeps/i386/fpu/libm-test-ulps: Update.
8502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8503
8504 2012-04-09  Andreas Jaeger  <aj@suse.de>
8505
8506         [BZ #6894]
8507         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8508         is an optional BSD extension.
8509
8510         [BZ #10254]
8511         * manual/stdio.texi (Opening Streams): Document additional fopen
8512         parameters.
8513
8514 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8515
8516         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8517         %eax without telling the compiler.
8518
8519 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8520
8521         [BZ # 13963]
8522         * manual/install.texi: Use sourceware.org.
8523
8524 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8525
8526         [BZ #13873]
8527         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8528         (__ieee754_pow): Generate overflow and underflow using huge*huge
8529         and tiny*tiny rather than just returning constant infinity or zero
8530         for large exponents.
8531         * math/libm-test.inc (pow_test): Require overflow exceptions for
8532         applicable cases of large exponents.
8533
8534         [BZ #706]
8535         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8536         (__ieee754_pow): Use iterative multiplication algorithm only for
8537         integer exponents with absolute value below 1024.  Check for odd
8538         integer exponents when using algorithm for real exponents.
8539         * math/libm-test.inc (pow_test): Add more tests.
8540         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8541
8542 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8543
8544         [BZ #13705]
8545         * math/libm-test.inc (exp_test): Do not allow overflow exception
8546         on underflow test.
8547
8548 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8549
8550         [BZ #13705]
8551         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8552         instead of __kernel_standard_f.
8553
8554 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8555
8556         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8557         * sysdeps/x86_64/memset_chk.S: Likewise.
8558
8559 2012-04-08  Andreas Jaeger  <aj@suse.de>
8560
8561         [BZ #10153]
8562         * manual/startup.texi (Environment Access): Describe return value
8563         for putenv and setenv.
8564
8565         [BZ #6895]
8566         * manual/filesys.texi (Directory Entries): Add description for
8567         DT_LNK.
8568
8569         [BZ #6890]
8570         * manual/filesys.texi (Directory Entries): Clarify that it's file
8571         system not operating system in the description of DT_UNKNOWN.
8572
8573         [BZ #6578]
8574         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8575
8576 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8577
8578         [BZ #6649]
8579         * manual/llio.texi (Opening and Closing Files): Add cross
8580         reference to explain mode argument.
8581
8582 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8583
8584         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8585         * sysdeps/x86_64/memset_chk.S: Likewise.
8586
8587 2012-04-07  David S. Miller  <davem@davemloft.net>
8588
8589         * elf/elf.h (R_SPARC_WDISP10): Define.
8590         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8591         R_SPARC_SIZE32.
8592         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8593         R_SPARC_SIZE64 and R_SPARC_H34.
8594
8595 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8596
8597         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8598         conditions and remove no longer applicable assertion.
8599
8600 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8601
8602         * bits/byteswap.h: Include <features.h>.
8603         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8604         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8605
8606 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8607
8608         * bits/byteswap.h (__bswap_16): Removed.
8609         Include <bits/byteswap-16.h> to get __bswap_16.
8610         * sysdeps/i386/bits/byteswap.h: Likewise.
8611         * sysdeps/s390/bits/byteswap.h: Likewise.
8612         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8613         * bits/byteswap-16.h: New file.
8614         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8615         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8616         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8617         * string/Makefile (headers): Add bits/byteswap-16.h.
8618
8619 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8620
8621         [BZ #13895]
8622         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8623         extra indirection.
8624         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8625         * nss/tst-nss-static.c: New.
8626
8627 2012-04-06  Robert Millan  <rmh@gnu.org>
8628
8629         [BZ #6486]
8630         * manual/llio.texi (File Position Primitive): lseek
8631         refers to WHENCE when it really means OFFSET.
8632
8633 2012-04-06  Andreas Jaeger  <aj@suse.de>
8634
8635         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8636         strncmp declarations.
8637
8638         * abilist/libc.abilist: Add __poll and __ppoll.
8639
8640 2012-04-05  David S. Miller  <davem@davemloft.net>
8641
8642         * scripts/check-local-headers.sh: Accept a host triplet in the
8643         path matched by the exclude regexp.
8644
8645         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8646         definition.
8647         * sysdeps/powerpc/powerpc32/dl-machine.h
8648         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8649         * sysdeps/s390/s390-32/dl-machine.h
8650         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8651         * sysdeps/sparc/sparc32/dl-machine.h
8652         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8653         * sysdeps/sparc/sparc64/dl-machine.h
8654         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8655
8656         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8657         lazy binding.
8658         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8659         undefined symbol errors.
8660
8661         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8662         DT_NEEDED entries.
8663
8664 2012-04-05  Michael Matz  <matz@suse.de>
8665
8666         [BZ #13592]
8667         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8668
8669 2012-04-05  Andreas Jaeger  <aj@suse.de>
8670
8671         [BZ #13908]
8672         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8673         comment.
8674
8675 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8676
8677         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8678         which ROUND is no valid rounding mode.
8679
8680 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8681
8682         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8683         read again.
8684         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8685
8686 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8687
8688         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8689         an exception using FPU order intentionally.
8690
8691 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8692
8693         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8694         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8695         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8696         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8697
8698 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8699
8700         [BZ #12340]
8701         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8702         EINVAL when BUFLEN is too smal.
8703
8704 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8705
8706         [BZ #13553]
8707         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8708         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8709
8710 2012-04-03  Andreas Jaeger  <aj@suse.de>
8711
8712         [BZ #13938]
8713         * manual/setjmp.texi (System V contexts): Fix sentence.
8714
8715         [BZ #13926]
8716         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8717         New macro for this case.
8718         [!__GNUC__] (__bswap_64): New inline function for this case.
8719         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8720         * bits/byteswap.h: Likewise.
8721         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8722         ull, guard with __GLIBC_HAVE_LONG_LONG.
8723
8724         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8725         __GLIBC_HAVE_LONG_LONG.
8726
8727         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8728         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8729
8730 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8731
8732         [BZ #13691]
8733         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8734         inptr and inend, rather than using last_ch.
8735
8736 2012-04-02  David S. Miller  <davem@davemloft.net>
8737
8738         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8739         * stdio-common/printf-parse.h (read_int): Change return type to
8740         'int', return -1 on INT_MAX overflow.
8741         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8742         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8743         overflows INT_MAX.  Check for overflow of in-format-string precision
8744         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8745         SIZE_MAX not INT_MAX for integer overflow test.
8746         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8747         skip the construct in the format string but do not record anything.
8748         * stdio-common/bug22.c: Adjust to test both width/prevision
8749         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8750         explicitly for proper errno values.
8751
8752 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8753
8754         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8755         CHAR_MAX.
8756         * string/test-strcmp.c [! WIDE]: Likewise.
8757         * time/tst-mktime2.c: Likewise for INT_MAX.
8758         * string/test-string.h: #include <sys/param.h> for MIN.
8759
8760         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8761         * sysdeps/i386/init-first.c (init): Likewise.
8762         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8763         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8764         * sysdeps/sh/init-first.c (init): Likewise.
8765
8766 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8767
8768         * po/ru.po: Update from translation team.
8769         * po/vi.po: Likewise.
8770
8771 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8772
8773         * resolv/nss_dns/dns-host.c: Merge copyright years.
8774
8775 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8776
8777         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8778         Optimize memcpy with prefetch if
8779         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8780         src, dst pointers have unequal 16 byte alignments.
8781
8782 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8783
8784         [BZ #13928]
8785         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8786         from a CNAME entry and return the minimum ttl for the query.
8787         (gaih_getanswer_slice): Likewise.
8788
8789 2012-03-30  Jeff Law  <law@redhat.com>
8790
8791         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8792         due to long keys.
8793         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8794         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8795
8796         * resolv/nss_dns/dns-host.c: Update copyright year.
8797
8798 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8799
8800         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8801         requests to save a system call.  Fix check that all bytes are sent.
8802
8803         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8804         comments for sendmmsg.
8805
8806 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8807
8808         [BZ #13691]
8809         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8810         with only 1 character between 0x0041 and 0x01b0.
8811         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8812         * wcsmbs/tst-mbsnrtowcs.c: New file.
8813
8814 2012-03-29  David S. Miller  <davem@davemloft.net>
8815
8816         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8817         small copies by hand.
8818
8819 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8820
8821         [BZ #13761]
8822         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8823         _nss_compat_initgroups_dyn): Fall back to malloc/free
8824         for large group memberships.
8825
8826 2012-03-28  David S. Miller  <davem@davemloft.net>
8827
8828         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8829         that branches into memcpy.
8830         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8831         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8832         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8833         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8834         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8835         bits.
8836         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8837         implementation too.
8838         * sysdeps/sparc/mempcpy.S: New file.
8839
8840         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8841         the IFUNC routine in the libc case.
8842         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8843
8844         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8845         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8846         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8847         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8848         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8849         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8850         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8851         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8852
8853         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8854         loop to 256 bytes instead of 64 bytes and fix test signedness.
8855
8856         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8857         * sysdeps/sparc/sparc32/Makefile: rather than here...
8858         * sysdeps/sparc/sparc64/Makefile: and here.
8859
8860 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8861
8862         * malloc/mallocbug.c: Avoid warnings about unused variables.
8863
8864 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8865
8866         [BZ #13760]
8867         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8868         in the right place. Discard and retry query if response is
8869         larger than input buffer size.
8870
8871 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8872
8873         [BZ #369]
8874         [BZ #2678]
8875         [BZ #3866]
8876         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8877         x for large integer exponent.
8878         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8879         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8880         sign of result as needed afterwards.
8881         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8882         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8883         result for underflowing pow the same as for overflow.
8884         (__kernel_standard_l): Handle powl overflow and underflow here
8885         rather than calling __kernel_standard.
8886         * math/libm-test.inc (pow_test): Add more tests.
8887
8888         [BZ #3868]
8889         [BZ #13879]
8890         [BZ #13910]
8891         [BZ #13911]
8892         [BZ #13912]
8893         [BZ #13913]
8894         [BZ #13915]
8895         [BZ #13916]
8896         [BZ #13917]
8897         [BZ #13918]
8898         [BZ #13919]
8899         [BZ #13920]
8900         [BZ #13921]
8901         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8902         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8903         (__kernel_standard_l): New function.
8904         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8905         __kernel_standard.
8906         * math/w_acosl.c (__acosl): Likewise.
8907         * math/w_asinl.c (__asinl): Likewise.
8908         * math/w_atan2l.c (__atan2l): Likewise.
8909         * math/w_atanhl.c (__atanhl): Likewise.
8910         * math/w_coshl.c (__coshl): Likewise.
8911         * math/w_exp10l.c (__exp10l): Likewise.
8912         * math/w_exp2l.c (__exp2l): Likewise.
8913         * math/w_fmodl.c (__fmodl): Likewise.
8914         * math/w_hypotl.c (__hypotl): Likewise.
8915         * math/w_j0l.c (__j0l, __y0l): Likewise.
8916         * math/w_j1l.c (__j1l, __y1l): Likewise.
8917         * math/w_jnl.c (__jnl, __ynl): Likewise.
8918         * math/w_lgammal.c (__lgammal): Likewise.
8919         * math/w_log10l.c (__log10l): Likewise.
8920         * math/w_log2l.c (__log2l): Likewise.
8921         * math/w_logl.c (__logl): Likewise.
8922         * math/w_powl.c (__powl): Likewise.
8923         * math/w_remainderl.c (__remainderl): Likewise.
8924         * math/w_scalbl.c (sysv_scalbl): Likewise.
8925         * math/w_sinhl.c (__sinhl): Likewise.
8926         * math/w_sqrtl.c (__sqrtl): Likewise.
8927         * math/w_tgammal.c (__tgammal): Likewise.
8928         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8929         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8930         * math/libm-test.inc (acos_test): Add more tests.
8931         (acosh_test): Likewise.
8932         (asin_test): Likewise.
8933         (atanh_test): Likewise.
8934         (exp_test): Likewise.
8935         (exp10_test): Likewise.
8936         (exp2_test): Likewise.
8937         (expm1_test): Likewise.
8938         (lgamma_test): Likewise.
8939         (log_test): Likewise.
8940         (log10_test): Likewise.
8941         (log1p_test): Likewise.
8942         (log2_test): Likewise.
8943         (pow_test): Do not allow some spurious overflow exceptions.
8944         (sqrt_test): Add more tests.
8945         (tgamma_test): Likewise.
8946         (y0_test): Likewise.
8947         (y1_test): Likewise.
8948         (yn_test): Likewise.
8949
8950 2012-03-27  Anton Blanchard  <anton@samba.org>
8951
8952         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8953         MAP_HUGETLB.
8954         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8955         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8956         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8957
8958 2012-03-27  David S. Miller  <davem@davemloft.net>
8959
8960         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8961
8962         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8963         have-as-vis3 check.
8964
8965 2012-03-27  Andreas Jaeger  <aj@suse.de>
8966
8967         * sysdeps/x86_64/elf/configure.in: Moved to ...
8968         * sysdeps/x86_64/configure.in: ... here.
8969         * sysdeps/x86_64/elf/start.S: Moved to ...
8970         * sysdeps/x86_64/start.S: ... here.
8971         * sysdeps/x86_64/elf/configure: Delete.
8972
8973         * sysdeps/x86_64/configure.in: Merge contents from
8974         sysdeps/i386/configure.in (without i686 check).
8975
8976         * sysdeps/i386/elf/Versions: Merge into ...
8977         * sysdeps/i386/Versions: ... this.
8978         * sysdeps/i386/elf/Versions: Delete file.
8979         * sysdeps/i386/elf/start.S: Moved to ...
8980         * sysdeps/i386/start.S: ...here.
8981         * sysdeps/i386/elf/configure.in: Merge into...
8982         * sysdeps/i386/configure.in: ...here.
8983         * sysdeps/i386/elf/configure.in: Delete file.
8984         * sysdeps/i386/elf/configure: Delete file.
8985
8986         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8987         * debug/backtracesyms.c: ... here.
8988         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8989         * debug/backtracesymsfd.c: ... here.
8990         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8991         * sysdeps/generic/ifunc-sel.h: ... here.
8992
8993         * sysdeps/unix/i386/start.c: Delete file.
8994         * sysdeps/unix/sparc/start.c: Delete file.
8995         * sysdeps/unix/start.c: Delete file.
8996
8997         * sysdeps/sh/elf/configure.in: Moved to ...
8998         * sysdeps/sh/configure.in: ... here.
8999         * sysdeps/sh/elf/start.S: Moved to ...
9000         * sysdeps/sh/start.S: ... here.
9001         * sysdeps/sh/elf/configure: Delete file.
9002
9003         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9004         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9005         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9006         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9007         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9008         * sysdeps/powerpc/powerpc64/start.S: here.
9009         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9010         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9011         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9012         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9013         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9014
9015         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9016         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9017         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9018         * sysdeps/powerpc/powerpc32/start.S: ... here.
9019         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9020         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9021         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9022
9023         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9024         * sysdeps/powerpc/ifunc-sel.h: ... here.
9025         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9026         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9027
9028         * sysdeps/sparc/elf/configure.in: Moved to ...
9029         * sysdeps/sparc/configure.in: ... here.
9030         * sysdeps/sparc/elf/configure: Delete file.
9031         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9032         * sysdeps/sparc/sparc32/start.S: ... here.
9033         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9034         * sysdeps/sparc/sparc64/start.S: ... here.
9035         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9036         * sysdeps/sparc/sparc32/Makefile: ... this.
9037         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9038         * sysdeps/sparc/sparc64/Makefile: ... this.
9039
9040         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9041         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9042         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9043         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9044         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9045         * sysdeps/s390/s390-32/setjmp.S: ... here.
9046         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9047         * sysdeps/s390/s390-32/configure.in: ... here.
9048         * sysdeps/s390/s390-32/elf/configure: Delete file.
9049         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9050         * sysdeps/s390/s390-32/start.S: ... here.
9051
9052         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9053         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9054         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9055         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9056         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9057         * sysdeps/s390/s390-64/setjmp.S: ... here.
9058         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9059         * sysdeps/s390/s390-64/configure.in: ... here
9060         * sysdeps/s390/s390-64/elf/configure: Delete file.
9061         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9062         * sysdeps/s390/s390-64/start.S: ... here.
9063         * sysdeps/s390/s390-64/elf/configure: Delete.
9064
9065         * configure.in: Remove support for elf directories in sysdeps.
9066
9067         * configure: Regenerated.
9068         * sysdeps/i386/configure: Regenerated.
9069         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9070         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9071         * sysdeps/s390/s390-32/configure: Regenerated.
9072         * sysdeps/s390/s390-64/configure: Regenerated.
9073         * sysdeps/sh/configure: Regenerated.
9074         * sysdeps/sparc/configure: Regenerated.
9075         * sysdeps/x86_64/configure: Regenerated.
9076
9077 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9078
9079         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9080
9081         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9082         denormal result into account.
9083
9084 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9085
9086         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9087         Reported by Allan McRae <allan@archlinux.org>.
9088
9089 2012-03-23  Jeff Law  <law@redhat.com>
9090
9091         * nss/getnssent.c (__nss_getent): Fix typo.
9092
9093 2012-03-23  David S. Miller  <davem@davemloft.net>
9094
9095         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9096
9097 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9098
9099         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9100         to pad to uint64_t for each field.
9101         (dl_tls_index): Replace unsigned long with uint64_t.
9102
9103 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9104         Paul Pluzhnikov  <ppluzhnikov@google.com>
9105
9106         [BZ #6528]
9107         * grp/Makefile (otherlibs): Don't set it.
9108         * inet/Makefile (otherlibs): Likewise.
9109         * login/Makefile (otherlibs): Likewise.
9110         * nscd/Makefile (otherlibs): Likewise.
9111         * posix/Makefile (otherlibs): Likewise.
9112         * pwd/Makefile (otherlibs): Likewise.
9113         * rt/Makefile (otherlibs): Likewise.
9114         * sunrpc/Makefile (otherlibs): Likewise.
9115         * nss/Makefile (otherlibs): Likewise.
9116         Add libnss_files to routines and static-only-routines.
9117         ($(objpfx)getent): Remove rule.
9118         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9119         static-only-routines.
9120
9121 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9122
9123         [BZ #13892]
9124         * math/s_cexp.c: Include <float.h>.
9125         (__cexp): Handle exp result overflowing not necessarily
9126         overflowing both real and imaginary parts of result.
9127         * math/s_cexpf.c: Likewise.
9128         * math/s_cexpl.c: Likewise.
9129         * math/libm-test.inc (cexp_test): Add more tests.
9130         * sysdeps/i386/fpu/libm-test-ulps: Update.
9131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9132
9133 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9134
9135         * include/link.h (ELFW): New macro.
9136         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9137         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9138
9139 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9140
9141         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9142         with uint64_t.
9143
9144 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9145
9146         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9147         declaration.
9148         (struct La_x32_retval): Likewise.
9149
9150 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9151
9152         * sysdeps/x86_64/preconfigure.in: New file.
9153         * sysdeps/x86_64/preconfigure: New generated file.
9154
9155 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9156
9157         [BZ #13824]
9158         * math/e_exp2l.c: Include <float.h>.
9159         (__ieee754_exp2l): Handle overflow and underflow cases
9160         separately.  Only pass fractional part of argument to
9161         __ieee754_expl.
9162         * math/libm-test.inc (exp2_test): Add more tests.
9163
9164         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9165         negating x to take absolute value.
9166         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9167         Likewise.
9168         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9169         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9170         Likewise.
9171         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9172         computing low part if x was negated.
9173         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9174
9175 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9176
9177         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9178         la_x32_gnu_pltexit.
9179         (pltexit): Cast int_retval to ptrdiff_t.
9180         * elf/tst-auditmod3b.c: Likewise.
9181         * elf/tst-auditmod4b.c: Likewise.
9182         * elf/tst-auditmod5b.c: Likewise.
9183         * elf/tst-auditmod6b.c: Likewise.
9184         * elf/tst-auditmod6c.c: Likewise.
9185         * elf/tst-auditmod7b.c: Likewise.
9186
9187         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9188         and x32_gnu_pltexit.
9189
9190         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9191         __ELF_NATIVE_CLASS.
9192         (La_x32_regs): New macro.
9193         (La_x32_retval): Likewise.
9194         (la_x32_gnu_pltenter): New function prototype.
9195         (la_x32_gnu_pltexit): Likewise.
9196
9197 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9198
9199         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9200         exponent.
9201
9202         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9203
9204         * configure.in (libc_cv_cc_nofma): Check for option to disable
9205         generation of FMA instructions.
9206         * configure: Regenerate.
9207         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9208         * sysdeps/ieee754/dbl-64/Makefile: New file.
9209         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9210         Remove brandred-fma4.
9211         (CFLAGS-brandred-fma4.c): Remove.
9212         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9213         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9214         define.
9215         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9216         define.
9217
9218 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9219
9220         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9221         LLONG_MAX != LONG_MAX.
9222         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9223         (_fitoa_word): Likewise.
9224         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9225         LLONG_MAX != LONG_MAX.
9226         * stdio-common/_itowa.h: Include <_itoa.h>.
9227         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9228         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9229         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9230         only if not defined.
9231         (_ITOA_WORD_TYPE): Likewise.
9232         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9233         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9234
9235 2012-03-21  David S. Miller  <davem@davemloft.net>
9236
9237         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9238
9239 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9240
9241         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9242         of x86_64 when setting libc_cv_slibdir, libdir and
9243         libc_cv_localedir.
9244         * sysdeps/unix/sysv/linux/configure: Regenerated.
9245
9246 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9247
9248         * manual/lang.texi (Old Varargs): Remove section.
9249         (How Variadic): Update menu.
9250         (va_start): Do not mention varargs.h.
9251
9252 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9253             Joseph Myers  <joseph@codesourcery.com>
9254
9255         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9256         link test.
9257         * configure: Regenerated.
9258
9259 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9260
9261         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9262         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9263         conformtest.pl
9264
9265 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9266
9267         * NOTES: Remove.
9268         * Makefile (files-for-dist): Remove NOTES.
9269         (NOTES): Remove rule.
9270         * README: Don't refer to NOTES.
9271         * manual/creature.texi: Don't include macros.texi.
9272         * manual/intro.texi (creature.texi): Remove comment referring to
9273         NOTES.
9274
9275         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9276         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9277         * configure: Regenerated.
9278         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9279         LIBC_TRY_CC_OPTION.
9280         (libc_cv_as_i686): Likewise.
9281         (libc_cv_cc_avx): Likewise.
9282         (libc_cv_cc_sse2avx): Likewise.
9283         (libc_cv_cc_fma4): Likewise.
9284         (libc_cv_cc_novzeroupper): Likewise.
9285         * sysdeps/i386/configure: Regenerated.
9286
9287         [BZ #13883]
9288         * sysdeps/i386/fpu/s_cexp.S: Remove.
9289         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9290         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9291         * math/libm-test.inc (cexp_test): Add more tests.
9292         * sysdeps/i386/fpu/libm-test-ulps: Update.
9293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9294
9295 2012-03-21  Allan McRae  <allan@archlinux.org>
9296
9297         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9298
9299 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9300
9301         [BZ #13871]
9302         * math/w_exp2.c: Do not include <float.h>.
9303         (o_threshold, u_threshold): Remove.
9304         (__exp2): Calculate result before checking finiteness and calling
9305         __kernel_standard.
9306         * math/w_exp2f.c: Likewise.
9307         * math/w_exp2l.c: Likewise.
9308         * math/libm-test.inc (exp2_test): Require overflow exception for
9309         1e6 input.
9310
9311         [BZ #3866]
9312         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9313         range of signed 64-bit integers before using fistpll.  Remove
9314         checks for whether integers fit in mantissa bits.
9315         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9316         the range of signed 32-bit integers before using fistpl.  Remove
9317         checks for whether integers fit in mantissa bits.
9318         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9319         (__ieee754_powl): Test for y outside the range of signed 64-bit
9320         integers before using fistpll.  Reduce 64-bit values to 63-bit
9321         ones as needed.
9322         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9323         divide-by-zero is raised for zero to large negative powers.
9324         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9325         (__ieee754_powl): Test for y outside the range of signed 64-bit
9326         integers before using fistpll.  Reduce 64-bit values to 63-bit
9327         ones as needed.
9328         * math/libm-test.inc (pow_test): Add more tests.
9329
9330 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9331
9332         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9333         <stdio-common/_itoa.h>.
9334         * debug/segfault.c: Likewise.
9335         * elf/dl-cache.c: Likewise.
9336         * elf/dl-minimal.c: Likewise.
9337         * elf/dl-misc.c: Likewise.
9338         * elf/dl-sysdep.c: Likewise.
9339         * elf/dl-version.c: Likewise.
9340         * elf/rtld.c: Likewise.
9341         * hurd/hurdsock.c: Likewise.
9342         * hurd/lookup-retry.c: Likewise.
9343         * malloc/malloc.c: Likewise.
9344         * malloc/mtrace.c: Likewise.
9345         * nscd/nscd_getgr_r.c: Likewise.
9346         * nscd/nscd_getpw_r.c: Likewise.
9347         * nscd/nscd_getserv_r.c: Likewise.
9348         * posix/getopt_init.c: Likewise.
9349         * posix/wordexp.c: Likewise.
9350         * stdio-common/_itoa.c: Likewise.
9351         * stdio-common/printf_fphex.c: Likewise.
9352         * stdio-common/vfprintf.c: Likewise.
9353         * string/_strerror.c: Likewise.
9354         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9355         * sysdeps/i386/i686/hp-timing.h: Likewise.
9356         * sysdeps/mach/_strerror.c: Likewise.
9357         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9358         * sysdeps/mach/hurd/sethostid.c: Likewise.
9359         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9360         * sysdeps/mach/xpg-strerror.c: Likewise.
9361         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9362         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9363         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9364         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9365         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9366         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9367         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9368         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9369         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9370         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9371         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9372         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9373         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9374         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9375         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9376         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9377         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9378         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9379         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9380         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9381         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9382
9383         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9384
9385         * stdio-common/_itoa.h: Moved to ...
9386         * sysdeps/generic/_itoa.h: Here.
9387
9388         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9389
9390         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9391         instead of "_itoa.h" and "_itowa.h".
9392         * stdio-common/vfprintf.: Likewise.
9393
9394 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9395
9396         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9397         <bits/wordsize.h>.
9398         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9399         (__signbit): Likwise.
9400         (llrintf): Likwise.
9401         (llrint): Likwise.
9402
9403 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9404
9405         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9406         __WORDSIZE != 64.
9407
9408 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9409
9410         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9411         OVERFLOW_EXCEPTION_OK.
9412         * math/libm-test.inc ("Philosophy"): Update comment about
9413         exception testing.
9414         (OVERFLOW_EXCEPTION): Define.
9415         (OVERFLOW_EXCEPTION_OK): Likewise.
9416         (INVALID_EXCEPTION_OK): Renumber.
9417         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9418         (IGNORE_ZERO_INF_SIGN): Likewise.
9419         (test_exceptions): Handle FE_OVERFLOW.
9420         (exp10_test): Expect overflow exceptions.
9421         (exp2_test): Likewise.
9422         (expm1_test): Likewise.
9423         (nextafter_test): Likewise.
9424         (pow_test): Likewise.
9425         (scalbn_test): Likewise.
9426         (scalbln_test): Likewise.
9427
9428 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9429
9430         * sysdeps/x86_64/bits/atomic.h
9431         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9432         64bit integer.
9433         (atomic_exchange_acq): Likewise.
9434         (__arch_exchange_and_add_body): Likewise.
9435         (__arch_add_body): Likewise.
9436         (atomic_add_negative): Likewise.
9437         (atomic_add_zero): Likewise.
9438
9439 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9440
9441         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9442         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9443
9444 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9445
9446         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9447         Check __x86_64__ instead of __WORDSIZE.
9448
9449 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9450
9451         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9452
9453 2012-03-19  David S. Miller  <davem@davemloft.net>
9454
9455         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9456
9457         * sysdeps/sparc/fpu/fenv_private.h: New file.
9458         * sysdeps/sparc/fpu/math_private.h: Use it.
9459         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9460         Remove.
9461         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9462         (libc_feholdexcept_setroundl): Remove.
9463         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9464         Remove.
9465         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9466         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9467
9468 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9469
9470         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9471         int64_t instead of long int.
9472         (INSERT_WORDS64): Likwise.
9473
9474 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9475
9476         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9477         _Unwind_GetCFA return to _Unwind_Ptr first.
9478
9479 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9480
9481         [BZ #13629]
9482         * math/s_clog.c: Include <float.h>.
9483         (__clog): Scale large or subnormal inputs.
9484         * math/s_clogf.c: Likewise.
9485         * math/s_clogl.c: Likewise.
9486         * math/s_clog10.c: Include <float.h>.
9487         (M_LOG10_2): Define.
9488         (__clog10): Scale large or subnormal inputs.
9489         * math/s_clog10f.c: Likewise.
9490         * math/s_clog10l.c: Likewise.
9491         * math/libm-test.inc (clog_test): Add more tests.
9492         (clog10_test): Likewise.
9493         * sysdeps/i386/fpu/libm-test-ulps: Update.
9494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9495
9496         [BZ #11451]
9497         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9498         x and y.
9499         * math/libm-test.inc (atan2_test): Add another test.
9500
9501         * Makerules (common-objdir-compile): Remove.
9502         * sysdeps/unix/Makefile (config-generated): Do not add
9503         $(unix-generated) to variable.
9504         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9505         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9506         Remove rule.
9507         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9508         Likewise.
9509         [generic bits/local_lim.h] (before-compile): Do not append to
9510         variable.
9511         [generic bits/local_lim.h] (common-generated): Likewise.
9512         [generic sys/param.h] (before-compile): Do not append to variable.
9513         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9514         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9515         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9516         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9517         include.
9518         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9519         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9520         [generic sys/param.h] ($(addprefix
9521         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9522         [generic sys/param.h] (common-generated): Do not append to
9523         variable.
9524         [generic sys/param.h] (sysdep_headers): Likewise.
9525         [generic bits/errno.h] (before-compile): Do not append to
9526         variable.
9527         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9528         rule.
9529         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9530         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9531         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9532         [generic bits/errno.h] (common-generated): Do not append to
9533         variable.
9534         [generic bits/ioctls.h] (before-compile): Do not append to
9535         variable.
9536         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9537         rule.
9538         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9539         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9540         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9541         rule.
9542         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9543         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9544         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9545         [generic bits/ioctls.h] (common-generated): Do not append to
9546         variable.
9547         [generic sys/syscall.h] (syscall.h): Remove variable.
9548         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9549         rule.
9550         [generic sys/syscall.h] (before-compile): Do not append to
9551         variable.
9552         [generic sys/syscall.h] (common-generated): Likewise.
9553         * sysdeps/unix/errnos-tmpl.c: Remove file.
9554         * sysdeps/unix/errnos.awk: Likewise.
9555         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9556         * sysdeps/unix/ioctls.awk: Likewise.
9557         * sysdeps/unix/mk-local_lim.c: Likewise.
9558         * sysdeps/unix/snarf-ioctls: Likewise.
9559
9560 2012-03-19  Richard Henderson  <rth@twiddle.net>
9561
9562         * sysdeps/i386/fpu/fenv_private.h: New file.
9563         * sysdeps/i386/fpu/math_private.h: Use it.
9564         (math_opt_barrier, math_force_eval): Remove.
9565         (libc_feholdexcept_setround_53bit): Remove.
9566         (libc_feupdateenv_53bit): Remove.
9567         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9568         (math_opt_barrier, math_force_eval): Remove.
9569         (libc_feholdexcept): Remove.
9570         (libc_feholdexcept_setround): Remove.
9571         (libc_fetestexcept, libc_fesetenv): Remove.
9572         (libc_feupdateenv_test): Remove.
9573         (libc_feupdateenv, libc_feholdsetround): Remove.
9574         (libc_feresetround): Remove.
9575
9576         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9577         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9578
9579         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9580         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9581         (libc_feupdateenv_testl): New.
9582         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9583         (libc_feupdateenv_testf): New.
9584         (libc_feupdateenv): Use libc_feupdateenv_test.
9585         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9586         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9587
9588         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9589         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9590         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9591         (libc_feresetround_noex): New.
9592         (libc_feresetround_noexf): New.
9593         (libc_feresetround_noexl): New.
9594         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9595         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9596         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9597         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9598         SET_RESTORE_ROUND.
9599         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9600         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9601         (__cos): Likewise.
9602         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9603         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9604         SET_RESTORE_ROUND_NOEX.
9605         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9606         SET_RESTORE_ROUND_NOEXF.
9607         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9608         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9609         (libc_feholdsetroundf): New.
9610         (libc_feresetround, libc_feresetroundf): New.
9611
9612         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9613         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9614         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9615
9616         * sysdeps/generic/math_private.h: Include <fenv.h>.
9617         (default_libc_feholdexcept): New.
9618         (default_libc_feholdexcept_setround): New.
9619         (default_libc_fesetenv, default_libc_feupdateenv): New.
9620         (libc_feholdexcept): Only define if undefined.
9621         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9622         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9623         (libc_feholdexcept_setroundl): Likewise.
9624         (libc_feholdexcept_setround_53bit): Likewise.
9625         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9626         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9627         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9628         (libc_feupdateenv_53bit): Likewise.
9629         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9630         (libc_feholdexcept): Convert from macro to inline function.
9631         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9632         (libc_fesetenv, libc_feupdateenv): Likewise.
9633
9634         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9635         not previously defined.
9636         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9637         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9638         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9639         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9640         * sysdeps/ieee754/flt-32/math_private.h: New file.
9641         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9642         math_private.h below SET_FLOAT_WORD.
9643         (__isnan, __isinf_ns, __finite): Remove.
9644         (__isnanf, __isinf_nsf, __finitef): Remove.
9645
9646 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9647
9648         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9649
9650 2012-03-17  David S. Miller  <davem@davemloft.net>
9651
9652         [BZ #6471]
9653         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9654         for 2.16.
9655
9656 2012-03-16  David S. Miller  <davem@davemloft.net>
9657
9658         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9659         warnings.
9660
9661         [BZ #6471]
9662         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9663         properly.
9664         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9665         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9666         sysdep_routines when subdir is sysvipc.
9667         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9668         __getshmlba helper.
9669
9670         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9671
9672 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9673
9674         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9675         [__LP64__].
9676
9677 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9678
9679         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9680         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9681         (__lround): Renamed to ...
9682         (__llround): This.  Replace long int with long long int.
9683         Define lround functions as aliases of llround functions.
9684         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9685
9686 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9687
9688         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9689         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9690         adresses to uintptr_t.  Replace "long int" and "unsigned long
9691         int" with "greg_t" on va_arg.
9692
9693 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9694
9695         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9696         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9697
9698         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9699         Move e_machine check before EI_CLASS check.  Handle x32
9700         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9701         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9702         SKIP_EM_IA_64 and include
9703         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9704
9705         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9706         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9707         (add_system_dir): New macro.
9708
9709         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9710         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9711
9712 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9713
9714         [BZ #2551]
9715         [BZ #2552]
9716         [BZ #2553]
9717         [BZ #2554]
9718         [BZ #2562]
9719         [BZ #2563]
9720         [BZ #2565]
9721         [BZ #2566]
9722         [BZ #2576]
9723         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9724         (y0): Likewise.
9725         * math/w_j0f.c (j0f): Likewise.
9726         (y0f): Likewise.
9727         * math/w_j0l.c (__j0l): Likewise.
9728         (__y0l): Likewise.
9729         * math/w_j1.c (j1): Likewise.
9730         (y1): Likewise.
9731         * math/w_j1f.c (j1f): Likewise.
9732         (y1f): Likewise.
9733         * math/w_j1l.c (__j1l): Likewise.
9734         (__y1l): Likewise.
9735         * math/w_jn.c (jn): Likewise.
9736         (yn): Likewise.
9737         * math/w_jnf.c (jnf): Likewise.
9738         (ynf): Likewise.
9739         * math/w_jnl.c (__jnl): Likewise.
9740         (__ynl): Likewise.
9741         * math/libm-test.inc (j0_test): Add more tests.
9742         (j1_test): Likewise.
9743         (jn_test): Likewise.  Add trailing semicolon to existing test.
9744         (y0_test): Likewise.
9745         (y1_test): Likewise.
9746         * sysdeps/i386/fpu/libm-test-ulps: Update.
9747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9748
9749         [BZ #13851]
9750         [BZ #13854]
9751         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9752         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9753         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9754         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9755         (__tanl): Set errno for infinite argument.
9756         * sysdeps/i386/fpu/mptan.c: Remove.
9757         * sysdeps/i386/fpu/s_tan.S: Likewise.
9758         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9759         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9760         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9761         * math/libm-test.inc (tan_test): Add more tests and enable more
9762         tests for double and long double.
9763         * sysdeps/i386/fpu/libm-test-ulps: Update.
9764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9765
9766 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9767
9768         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9769         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9770
9771 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9772
9773         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9774         * configure.in: Use it for both main tree and add-ons.
9775         * configure: Regenerated.
9776
9777 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9778
9779         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9780
9781 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9782
9783         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9784         in comment.
9785
9786         [BZ #13851]
9787         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9788         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9789         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9790         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9791         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9792         infinite argument.
9793         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9794         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9795         != 0 for prec == 2.
9796         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9797         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9798         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9799         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9800         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9801         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9802         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9803         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9804         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9805         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9806         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9807         * math/libm-test.inc (cos_test): Add more tests and enable more
9808         tests for long double.
9809         (sin_test): Likewise.
9810         (sincos_test): Likewise.
9811         * sysdeps/i386/fpu/libm-test-ulps: Update.
9812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9813
9814 2012-03-16  David S. Miller  <davem@davemloft.net>
9815
9816         * sysdeps/sparc/fpu/math_private.h: New file.
9817
9818 2012-03-15  David S. Miller  <davem@davemloft.net>
9819
9820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9821         file.
9822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9824         file.
9825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9826         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9827         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9828         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9829         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9830         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9831         sysdep routines.
9832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9833
9834         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9835         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9836
9837         * sysdeps/sparc/sparc-ifunc.h: New file.
9838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9839         sparc-ifunc.h
9840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9842         Likewise.
9843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9844         Likewise.
9845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9849         Likewise.
9850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9855         Likewise.
9856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9857         Likewise.
9858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9862         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9863         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9864         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9865         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9866         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9867         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9868         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9869         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9870         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9871         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9872         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9873         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9874         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9875         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9876         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9877         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9878         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9879         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9880         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9881         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9882
9883 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9884
9885         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9886         scaling.
9887         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9888
9889 2012-03-15  Andreas Jaeger  <aj@suse.de>
9890
9891         [BZ #13852]
9892         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9893         ieee754/flt-32 implementation for sin, cos and sincos.
9894         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9895         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9896         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9897         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9898         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9899         ieee754/flt-32 implementation for tan.
9900
9901         * math/libm-test.inc (cos_test): Enable some large input tests for
9902         float as well
9903         (sin_test): Likewise.
9904         (sincos_test): Likewise.
9905         (tan_test): Add tests for large input.
9906
9907         * sysdeps/i386/fpu/libm-test-ulps: Update.
9908
9909 2012-03-15  Andreas Jaeger  <aj@suse.de>
9910
9911         [BZ #13658]
9912         * math/libm-test.inc (cos_test): Add more test cases.
9913         (sin_test): Likewise.
9914         (sincos_test): Likewise.
9915
9916 2012-03-15  Andreas Jaeger  <aj@suse.de>
9917
9918         [BZ #13837]
9919         * math/libm-test.inc (cos_test): Add a test case for large input
9920         value.
9921         (sin_test): Likewise.
9922         (sincos_test): Likewise.
9923
9924 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9925         Joseph Myers  <joseph@codesourcery.com>
9926
9927         [BZ #13658]
9928         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9929         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9930         * sysdeps/i386/fpu/branred.c: Likewise.
9931         * sysdeps/i386/fpu/dosincos.c: Likewise.
9932         * sysdeps/i386/fpu/mpa.c: Likewise.
9933         * sysdeps/i386/fpu/s_cos.S: Likewise.
9934         * sysdeps/i386/fpu/s_sin.S: Likewise.
9935         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9936         * sysdeps/i386/fpu/sincos32.c: Likewise.
9937
9938         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9939         Define.
9940         (libc_feupdateenv_53bit): Define.
9941         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9942         Define.
9943         (libc_feupdateenv_53bit): Define.
9944
9945         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9946         53 bit (without extend i386 double precision).
9947
9948         * math/libm-test.inc (sincos_test): Add tests for large input.
9949         (sin): Likewise.
9950         (cos): Likewise.
9951
9952         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9953
9954 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9955
9956         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9957
9958 2012-03-15  David S. Miller  <davem@davemloft.net>
9959
9960         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9961         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9962         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9963         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9966         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9968         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9969         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9970         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9971         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9972         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9973         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9974         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9976         file.
9977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9979         file.
9980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9982         file.
9983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9985         file.
9986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9987         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9988         fmin/fmax sysdep routines.
9989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9990
9991 2012-03-14  David S. Miller  <davem@davemloft.net>
9992
9993         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9994         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9995         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9996         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9997         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9998         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9999         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10000         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10001         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10002         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10003         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10004         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10005         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10006         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10007         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10008         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10009         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10010         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10011         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10012         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10013         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10014         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10015         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10016         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10017         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10018         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10019         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10020         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10021         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10022         routines.
10023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10024         file.
10025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10027         file.
10028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10030         file.
10031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10033         file.
10034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10036         file.
10037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10039         file.
10040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10041         file.
10042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10043         file.
10044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10045         file.
10046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10047         New file.
10048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10049         file.
10050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10051         file.
10052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10054         file.
10055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10057         file.
10058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10060         file.
10061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10063         VIS3 routines.
10064
10065         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10066         New file.
10067
10068         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10069
10070         * sysdeps/sparc/configure.in: New file.
10071         * sysdeps/sparc/configure: Generate.
10072         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10073         * configure: Regenerate.
10074         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10075         * config.make.in (have-as-vis3): New.
10076         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10077         available use -Av9d instead of -Av9a.
10078         * sysdeps/sparc/sparc64/Makefile: Likewise.
10079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10081         New file.
10082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10083         file.
10084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10085         New file.
10086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10087         file.
10088         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10089         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10090         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10091         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10092         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10093
10094         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10095         fzeros/fnegs to load 0x80000000 into a float register instead of
10096         using the stack.
10097         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10098
10099 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10100
10101         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10102         bits/syscall.h.
10103         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10104         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10105         ($(inst_includedir)/bits/syscall.h): Remove rule.
10106         ($(objpfx)bits/syscall.d): Include instead of
10107         $(objpfx)syscall-list.d.
10108         (generated): Change syscall-list.h and syscall-list.d to
10109         bits/syscall.h and bits/syscall.d.
10110
10111 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10112
10113         [BZ #13846]
10114         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10115
10116 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10117
10118         [BZ #13841]
10119         * math/s_csqrt.c: Include <float.h>.
10120         (__csqrt): Scale large or subnormal inputs.
10121         * math/s_csqrtf.c: Likewise.
10122         * math/s_csqrtl.c: Likewise.
10123         * math/libm-test.inc (csqrt_test): Add more tests.
10124         * sysdeps/i386/fpu/libm-test-ulps: Update.
10125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10126
10127         [BZ #13840]
10128         * math/libm-test.inc (hypot_test): Add more tests.
10129
10130 2012-03-13  David S. Miller  <davem@davemloft.net>
10131
10132         [BZ #13840]
10133         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10134         double-precision for the calculation instead of scaling.
10135
10136 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10137
10138         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10139         manipulate bits before adding and subtracting TWO52[sx].
10140         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10141         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10142         Likewise.
10143         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10144
10145 2012-03-13  David S. Miller  <davem@davemloft.net>
10146
10147         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10148         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10149         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10150         rtld-global-offsets.h
10151         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10152
10153         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10154         large parameters.
10155
10156         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10157
10158         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10159         'err' in the ifdef scope in which it is actually used.
10160
10161         * nss/nss_db/db-init.c: Include string.h
10162
10163 2012-03-12  David S. Miller  <davem@davemloft.net>
10164
10165         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10166         masking out of the most significant byte of random value used.
10167         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10168         Fix coding style in previous change.
10169
10170         * sysdeps/unix/sysv/linux/kernel-features.h
10171         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10172         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10173         expression.
10174         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10175         later.
10176
10177 2012-03-11  David S. Miller  <davem@davemloft.net>
10178
10179         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10180         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10181         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10182         for 'resultvar' otherwise things get truncated on 64-bit.
10183
10184         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10185         Fix masking out of the most significant byte of random value used.
10186
10187         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10188
10189 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10190
10191         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10192
10193 2012-03-09  David S. Miller  <davem@davemloft.net>
10194
10195         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10196         variables with appropriate CPP guards.
10197         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10198         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10199         on resulting framesize and the management of the outregs buffer for pltexit.
10200         Preserve floating point return values across _dl_call_pltexit call.
10201         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10202         framesize and the management of the outregs buffer for pltexit.
10203         Preserve floating point return values across _dl_call_pltexit
10204         call.
10205         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10206         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10207         (print_exit): Fix format string for return register value.
10208
10209 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10210
10211         * sunrpc/Makefile (others): Add rpcgen.
10212         ($(objpfx)rpcgen): Remove special build rule and dependency on
10213         libc.
10214         * sunrpc/rpcgen.c: New file.
10215
10216 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10217
10218         [BZ #13673]
10219         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10220         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10221         * sysdeps/i386/crti.S: Likewise.
10222         * sysdeps/i386/crtn.S: Likewise.
10223         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10224         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10225         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10226         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10227         * sysdeps/sh/crti.S: Likewise.
10228         * sysdeps/sh/crtn.S: Likewise.
10229         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10230
10231         [BZ #13673]
10232         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10233         with URL.
10234         * locale/programs/locfile-kw.gperf: Likewise.
10235         * locale/programs/charmap-kw.h: Regenerated.
10236         * locale/programs/locfile-kw.h: Likewise.
10237
10238         [BZ #13673]
10239         * intl/plural.y: Replace FSF snail mail address with URL.
10240         * intl/plural.c: Regenerated.
10241
10242 2012-03-09  Richard Henderson  <rth@twiddle.net>
10243
10244         * include/math_private.h: Remove file.
10245         * math/math_private.h: Move file ...
10246         * sysdeps/generic/math_private.h: ... here.
10247
10248         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10249         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10250         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10251
10252         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10253         and <math_private.h>.
10254         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10255         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10256         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10257         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10258         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10259         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10260         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10261         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10262         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10263         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10264         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10265         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10266         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10267         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10268         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10269         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10270         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10271         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10272         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10273         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10274         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10275         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10276         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10277         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10278         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10279         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10280         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10281         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10282         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10283         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10284         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10285         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10286         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10287         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10288         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10289         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10290         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10291         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10292         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10293         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10294         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10295         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10296         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10297         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10298         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10299         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10300         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10301         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10302         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10303         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10304         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10305         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10306         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10307         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10308         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10309         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10310         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10311         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10312         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10313         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10314         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10315         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10316         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10317         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10318         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10319         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10320         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10321         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10322         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10323         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10324         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10325         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10326         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10327         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10328         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10329         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10330         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10331         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10332         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10333         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10334         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10335         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10336         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10337         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10338         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10339         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10340         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10341         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10342         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10343         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10344         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10345         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10346         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10347         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10348         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10349         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10350         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10351         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10352         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10353         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10354         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10355         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10356         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10357         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10358         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10359         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10360         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10361         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10362         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10363         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10364         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10365         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10366         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10367         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10368         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10369         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10370         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10371         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10372         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10373         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10374         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10375         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10376         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10377         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10378         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10379         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10380         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10381         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10382         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10383         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10384         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10385         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10386         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10387         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10388         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10389         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10390         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10391         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10392         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10393         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10394         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10395         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10396         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10397         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10398         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10399         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10400         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10401         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10402         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10403         * sysdeps/ieee754/k_standard.c: Likewise.
10404         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10405         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10406         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10407         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10408         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10409         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10410         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10411         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10412         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10413         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10414         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10415         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10416         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10417         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10418         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10419         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10420         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10421         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10422         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10423         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10424         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10425         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10426         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10427         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10428         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10429         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10430         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10431         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10432         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10433         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10434         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10435         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10436         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10437         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10438         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10439         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10440         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10441         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10442         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10443         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10444         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10445         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10446         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10447         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10448         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10449         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10450         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10451         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10452         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10453         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10454         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10455         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10456         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10457         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10458         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10459         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10460         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10461         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10462         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10463         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10464         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10465         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10466         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10467         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10468         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10469         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10470         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10471         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10472         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10473         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10474         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10475         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10476         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10477         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10478         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10479         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10480         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10481         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10482         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10483         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10484         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10485         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10486         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10487         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10488         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10489         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10490         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10491         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10492         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10493         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10494         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10495         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10496         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10497         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10498         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10499         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10500         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10501         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10502         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10503         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10504         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10505         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10506         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10507         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10508         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10509         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10510         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10511         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10512         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10513         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10514         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10515         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10516         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10517         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10518         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10519         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10520         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10521         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10522         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10523         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10524         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10525         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10526         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10527         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10528         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10529         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10530         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10531         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10532         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10533         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10534         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10535         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10536         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10537         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10538         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10539         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10540         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10541         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10542         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10543         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10544         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10545         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10546         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10547         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10548         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10549         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10550         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10551         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10552         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10553         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10554         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10555         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10556         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10557         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10558         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10559         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10560         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10561         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10562         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10563         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10564         * sysdeps/ieee754/s_lib_version.c: Likewise.
10565         * sysdeps/ieee754/s_matherr.c: Likewise.
10566         * sysdeps/ieee754/s_signgam.c: Likewise.
10567         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10568         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10569         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10570         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10571         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10572         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10573         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10574         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10575         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10576         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10577         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10578         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10579         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10580         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10581         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10582         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10583         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10584         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10585         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10586         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10587         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10588
10589 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10590
10591         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10592         * sunrpc/rpc_main.c: Likewise.
10593         * sunrpc/rpc_svcout.c: Likewise.
10594
10595 2012-03-09  David S. Miller  <davem@davemloft.net>
10596
10597         * include/math_private.h: New file.
10598
10599 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10600
10601         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10602         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10603         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10604         from <bits/socket_type.h>.
10605         (enum __socket_type): Don't define here.
10606         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10607         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10608         bits/socket_type.h.
10609
10610         [BZ #13566]
10611         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10612         checking __USE_GNU.
10613
10614         * Makerules ($(inst_includedir)/%.h): New rule.
10615         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10616         (install-others): Remove variable setting.
10617         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10618
10619 2012-03-08  Richard Henderson  <rth@twiddle.net>
10620
10621         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10622         from macro to inline function; merge with the
10623         !__LIBC_INTERNAL_MATH_INLINES version.
10624         (__ieee754_sqrtf): Likewise.
10625
10626         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10627         to inline function.
10628         (__rintf, __floor, __floorf): Likewise.
10629
10630         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10631         macro to inline function.
10632         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10633
10634         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10635         not <math/math_private.h>.
10636
10637 2012-03-08  David S. Miller  <davem@davemloft.net>
10638
10639         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10640         copyright year.
10641         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10642
10643 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10644
10645         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10646         normalization.
10647         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10648         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10649
10650 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10651
10652         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10653         be defined individually, they must be defined as a block.  Define
10654         S for printing a string instead of hidint the different by using a
10655         macro for adding the 'l'.
10656         * stdio-common/tst-fphex-wide.c: Adjust.
10657
10658 2012-03-07  Marek Polacek  <polacek@redhat.com>
10659
10660         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10661
10662 2012-03-08  Marek Polacek  <polacek@redhat.com>
10663
10664         [BZ #13806]
10665         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10666         * stdio-common/tst-fphex.c: Define a few macros to make the
10667         test reusable.  Use them.
10668         * stdio-common/tst-fphex-wide.c: New file.
10669
10670 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10671
10672         [BZ #6911]
10673         * manual/macros.texi (gnusystems): New macro.
10674         (nongnusystems): Likewise.
10675         (gnulinuxhurdsystems): Likewise.
10676         (gnuhurdsystems): Likewise..
10677         (gnulinuxsystems): Likewise.
10678         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10679         variants of the GNU system, not "GNU system".
10680         * manual/conf.texi: Likewise.
10681         * manual/errno.texi: Likewise.  Update example of errno macro
10682         expansion.
10683         * manual/filesys.texi: Likewise.
10684         (getumask): Document as specific to GNU/Hurd.
10685         * manual/install.texi: Likewise.  Reword some references to
10686         GNU/Linux.
10687         * manual/intro.texi: Likewise.
10688         * manual/io.texi: Likewise.
10689         (File Name Portability): Detail which constraints are inapplicable
10690         to all GNU systems and which are only inapplicable to GNU/Hurd.
10691         * manual/job.texi: Likewise.
10692         * manual/llio.texi: Likewise.
10693         (O_NOCTTY): Document as present on GNU/Linux.
10694         * manual/maint.texi: Likewise.
10695         * manual/memory.texi: Likewise.
10696         * manual/pattern.texi: Likewise.
10697         * manual/pipe.texi: Likewise.
10698         * manual/process.texi: Likewise.
10699         * manual/resource.texi: Likewise.
10700         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10701         child on GNU/Hurd.
10702         * manual/setjmp.texi: Likewise.
10703         * manual/signal.texi: Likewise.
10704         * manual/startup.texi: Likewise.
10705         * manual/stdio.texi: Likewise.
10706         * manual/terminal.texi: Likewise.
10707         (ONLCR): Document as POSIX.
10708         (OXTABS): Document availability on GNU/Linux as XTABS.
10709         (ONOEOT): Document availability separately from other bits.
10710         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10711         * manual/time.texi: Likewise.
10712         * manual/users.texi: Likewise.
10713         * INSTALL: Regenerated.
10714         * sysdeps/gnu/errlist.c: Regenerated.
10715
10716         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10717         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10718         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10719         puts.
10720         * configure: Regenerated.
10721
10722 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10723
10724         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10725         default includes instead of AC_HEADER_CHECK.
10726         * sysdeps/i386/configure: Regenerated.
10727
10728         [BZ #10716]
10729         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10730         * math/s_cacoshf.c (__cacoshf): Likewise.
10731         * math/s_cacoshl.c (__cacoshl): Likewise.
10732         * math/s_casinh.c (__casinh): Set signs of result from argument.
10733         * math/s_casinhf.c (__casinhf): Likewise.
10734         * math/s_casinhl.c (__casinhl): Likewise.
10735         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10736         (casinh_test): Add more tests.
10737         * sysdeps/i386/fpu/libm-test-ulps: Update.
10738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10739
10740 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10741
10742         * po/zh_TW.po: Update from translation team.
10743
10744         * login/Makefile (distribute): Remove variable.
10745         * catgets/Makefile: Likewise.
10746         * mach/Makefile: Likewise.
10747         * malloc/Makefile: Likewise.
10748         * misc/Makefile: Likewise.
10749         * iconv/Makefile: Likewise.
10750         * nscd/Makefile: Likewise.
10751         * hurd/Makefile: Likewise.
10752         * manual/Makefile: Likewise.
10753         * locale/Makefile: Likewise.
10754         * intl/Makefile: Likewise.
10755         * conform/Makefile: Likewise.
10756         * nss/Makefile: Likewise.
10757         * time/Makefile: Likewise.
10758         * soft-fp/Makefile: Likewise.
10759         * dirent/Makefile: Likewise.
10760         * gmon/Makefile: Likewise.
10761         * po/Makefile: Likewise.
10762         * rt/Makefile: Likewise.
10763         * socket/Makefile: Likewise.
10764         * math/Makefile: Likewise.
10765         * signal/Makefile: Likewise.
10766         * debug/Makefile: Likewise.
10767         * elf/Makefile: Likewise.
10768         * timezone/Makefile: Likewise.
10769         * stdlib/Makefile: Likewise.
10770         * iconvdata/Makefile: Likewise.
10771         * sunrpc/Makefile: Likewise.
10772         * io/Makefile: Likewise.
10773         * argp/Makefile: Likewise.
10774         * inet/Makefile: Likewise.
10775         * hesiod/Makefile: Likewise.
10776         * grp/Makefile: Likewise.
10777         * csu/Makefile: Likewise.
10778         * wctype/Makefile: Likewise.
10779         * crypt/Makefile: Likewise.
10780         * libio/Makefile: Likewise.
10781         * string/Makefile: Likewise.
10782         * nis/Makefile: Likewise.
10783         * resolv/Makefile: Likewise.
10784         * stdio-common/Makefile: Likewise.
10785         * wcsmbs/Makefile: Likewise.
10786         * dlfcn/Makefile: Likewise.
10787         * posix/Makefile: Likewise.
10788
10789         [BZ #6959]
10790         * timezone/Makefile: Don't install timezone files, just the programs
10791         and scripts.
10792
10793 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10794
10795         * nss/databases.def: Add missing gshadow entry.
10796
10797         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10798
10799 2012-03-06  Marek Polacek  <polacek@redhat.com>
10800
10801         [BZ #13726]
10802         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10803         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10804         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10805         * stdio-common/tst-long-dbl-fphex.c: New file.
10806
10807 2012-03-06  David S. Miller  <davem@davemloft.net>
10808
10809         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10810         (set_obp_int): New function.
10811         (get_obp_int): New function.
10812         (__get_clockfreq_via_dev_openprom): Likewise.
10813         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10814         Avoid unused variable warnings on 'val' and use builtin_expect.
10815         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10816         __builtin_expect.
10817         (INLINE_CLONE_SYSCALL): Likewise.
10818
10819 2012-03-05  David S. Miller  <davem@davemloft.net>
10820
10821         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10822
10823 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10824
10825         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10826
10827         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10828         only for |x| >= 40.
10829         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10830
10831 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10832
10833         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10834         Replace gettimeofday with __vdso_gettimeofday.
10835
10836         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10837         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10838         __vdso_clock_gettime and __vdso_getcpu.
10839
10840         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10841         time with __vdso_time.
10842
10843 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10844
10845         * manual/lang.texi (size_t): Note types to which size_t may be
10846         equivalent with the GNU C Library, but do not describe when
10847         differences between them are significant.
10848
10849 2012-03-05  Andreas Jaeger  <aj@suse.de>
10850
10851         * sysdeps/i386/fpu/libm-test-ulps: Update.
10852
10853 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10854
10855         [BZ #3976]
10856         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10857         (__ieee754_pow): Save and restore rounding mode and use
10858         round-to-nearest for main computations.
10859         * math/libm-test.inc (pow_test_tonearest): New function.
10860         (pow_test_towardzero): Likewise.
10861         (pow_test_downward): Likewise.
10862         (pow_test_upward): Likewise.
10863         (main): Call the new functions.
10864         * sysdeps/i386/fpu/libm-test-ulps: Update.
10865         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10866
10867         [BZ #3976]
10868         * math/libm-test.inc (cosh_test_tonearest): New function.
10869         (cosh_test_towardzero): Likewise.
10870         (cosh_test_downward): Likewise.
10871         (cosh_test_upward): Likewise.
10872         (sinh_test_tonearest): Likewise.
10873         (sinh_test_towardzero): Likewise.
10874         (sinh_test_downward): Likewise.
10875         (sinh_test_upward): Likewise.
10876         (main): Call the new functions.
10877         * sysdeps/i386/fpu/libm-test-ulps: Update.
10878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10879
10880 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10881
10882         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10883         default stack guard is set in last bytes.
10884         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10885
10886 2012-03-05  Kees Cook  <keescook@chromium.org>
10887
10888         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10889
10890         [BZ #13656]
10891         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10892         possibly allocate from heap instead of stack.
10893         * stdio-common/bug-vfprintf-nargs.c: New file.
10894         * stdio-common/Makefile (tests): Add nargs overflow test.
10895
10896 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10897
10898         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10899
10900 2012-03-03  Marek Polacek  <polacek@redhat.com>
10901
10902         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10903         * math/math_private.h: Likewise.
10904         * stdlib/tst-strtod.c: Likewise.
10905         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10906         * sysdeps/x86_64/bits/atomic.h: Likewise.
10907
10908 2012-03-02  David S. Miller  <davem@davemloft.net>
10909
10910         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10911         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10912         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10913         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10914         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10915         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10916         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10917         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10918
10919 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10920
10921         [BZ #13792]
10922         * manual/examples/README: New file, says the example source files
10923         can be used under GPL>=2.
10924         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10925         line containing just "*/".
10926         * manual/examples/add.c: Add copyright header (GPL>=2).
10927         * manual/examples/argp-ex1.c: Likewise.
10928         * manual/examples/argp-ex2.c: Likewise.
10929         * manual/examples/argp-ex3.c: Likewise.
10930         * manual/examples/argp-ex4.c: Likewise.
10931         * manual/examples/atexit.c: Likewise.
10932         * manual/examples/db.c: Likewise.
10933         * manual/examples/dir.c: Likewise.
10934         * manual/examples/dir2.c: Likewise.
10935         * manual/examples/execinfo.c: Likewise.
10936         * manual/examples/filecli.c: Likewise.
10937         * manual/examples/filesrv.c: Likewise.
10938         * manual/examples/fmtmsgexpl.c: Likewise.
10939         * manual/examples/genpass.c: Likewise.
10940         * manual/examples/inetcli.c: Likewise.
10941         * manual/examples/inetsrv.c: Likewise.
10942         * manual/examples/isockad.c: Likewise.
10943         * manual/examples/longopt.c: Likewise.
10944         * manual/examples/memopen.c: Likewise.
10945         * manual/examples/memstrm.c: Likewise.
10946         * manual/examples/mkfsock.c: Likewise.
10947         * manual/examples/mkisock.c: Likewise.
10948         * manual/examples/mygetpass.c: Likewise.
10949         * manual/examples/pipe.c: Likewise.
10950         * manual/examples/popen.c: Likewise.
10951         * manual/examples/rprintf.c: Likewise.
10952         * manual/examples/search.c: Likewise.
10953         * manual/examples/select.c: Likewise.
10954         * manual/examples/setjmp.c: Likewise.
10955         * manual/examples/sigh1.c: Likewise.
10956         * manual/examples/sigusr.c: Likewise.
10957         * manual/examples/stpcpy.c: Likewise.
10958         * manual/examples/strdupa.c: Likewise.
10959         * manual/examples/strftim.c: Likewise.
10960         * manual/examples/strncat.c: Likewise.
10961         * manual/examples/subopt.c: Likewise.
10962         * manual/examples/swapcontext.c: Likewise.
10963         * manual/examples/termios.c: Likewise.
10964         * manual/examples/testopt.c: Likewise.
10965         * manual/examples/testpass.c: Likewise.
10966         * manual/examples/timeval_subtract.c: Likewise.
10967
10968         [BZ #13792]
10969         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10970         function to ...
10971         * manual/timeval_subtract.c.texi: ... here, new file.
10972
10973 2012-03-02  David S. Miller  <davem@davemloft.net>
10974
10975         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10976
10977 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10978
10979         [BZ #3976]
10980         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10981         (__sin): Save and restore rounding mode and use round-to-nearest
10982         for all computations.
10983         (__cos): Save and restore rounding mode and use round-to-nearest
10984         for all computations.
10985         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10986         <fenv.h>.
10987         (tan): Save and restore rounding mode and use round-to-nearest for
10988         all computations.
10989         * math/libm-test.inc (cos_test_tonearest): New function.
10990         (cos_test_towardzero): Likewise.
10991         (cos_test_downward): Likewise.
10992         (cos_test_upward): Likewise.
10993         (sin_test_tonearest): Likewise.
10994         (sin_test_towardzero): Likewise.
10995         (sin_test_downward): Likewise.
10996         (sin_test_upward): Likewise.
10997         (tan_test_tonearest): Likewise.
10998         (tan_test_towardzero): Likewise.
10999         (tan_test_downward): Likewise.
11000         (tan_test_upward): Likewise.
11001         (main): Call the new functions.
11002         * sysdeps/i386/fpu/libm-test-ulps: Update.
11003         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11004
11005         [BZ #10135]
11006         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11007         small n, then large n, before computing and testing k+n.
11008         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11009         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11010         Likewise.
11011         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11012         Likewise.
11013         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11014         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11015         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11016         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11017         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11018         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11019         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11020         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11021         * math/libm-test.inc (scalbn_test): Add more tests.
11022         (scalbln_test): Likewise.
11023
11024         * manual/filesys.texi (mode_t): Describe constraints on size and
11025         signedness, not exact equivalence to a particular type.
11026         (ino_t): Likewise.
11027         (ino64_t): Likewise.
11028         (dev_t): Likewise.
11029         (nlink_t): Likewise.
11030         (blkcnt_t): Likewise.
11031         (blkcnt64_t): Likewise.
11032         * manual/llio.texi (off_t): Likewise.
11033
11034         [BZ #3976]
11035         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11036         (__ieee754_exp): Save and restore rounding mode and use
11037         round-to-nearest for all computations.
11038         * math/libm-test.inc (exp_test_tonearest): New function.
11039         (exp_test_towardzero): Likewise.
11040         (exp_test_downward): Likewise.
11041         (exp_test_upward): Likewise.
11042         (main): Call the new functions.
11043         * sysdeps/i386/fpu/libm-test-ulps: Update.
11044         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11045
11046 2012-03-01  Chris Demetriou  <cgd@google.com>
11047
11048         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11049         have predictable order.
11050
11051 2012-03-01  David S. Miller  <davem@davemloft.net>
11052
11053         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11054
11055         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11056         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11057         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11058         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11059
11060         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11061         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11062         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11063         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11064         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11065         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11066         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11067         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11068         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11069
11070         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11071
11072         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11073         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11074         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11075
11076         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11077         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11078         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11079         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11080         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11081         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11082         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11083         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11084         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11085         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11086         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11087         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11088         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11089         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11090         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11091         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11092         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11093         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11094         * sysdeps/sparc/elf/configure: Regenerated.
11095
11096 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11097
11098         * configure.in (AS, LD): Require binutils 2.20 or later.
11099         * configure: Regenerated.
11100         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11101         as required minimum version.
11102         * INSTALL: Regenerated.
11103
11104         [BZ #2541]
11105         [BZ #4108]
11106         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11107         before squaring exponent.
11108         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11109         bottom long double and 27 bits of top long double before squaring
11110         exponent.
11111         * math/libm-test.inc (erfc_test): Add more tests.
11112         * sysdeps/i386/fpu/libm-test-ulps: Update.
11113         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11115
11116 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11117
11118         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11119         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11120         containing bit-fields.
11121         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11122         * soft-fp/single.h (_FP_UNION_S): Likewise.
11123         * soft-fp/double.h (_FP_UNION_D): Likewise.
11124
11125 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11126
11127         [BZ #13786]
11128         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11129         not include ../strcmp.S.
11130         [USE_AS_STRNCASECMP_L]: Likewise.
11131         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11132         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11133         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11134         (__strncasecmp_l_ia32): Define as alias to
11135         __strncasecmp_l_nonascii.
11136
11137         [BZ #5794]
11138         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11139         * sysdeps/i386/fpu/libm-test-ulps: Update.
11140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11141
11142         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11144
11145 2012-02-29  Jeff Law  <law@redhat.com>
11146
11147         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11148         out of bounds read.
11149
11150 2012-02-29  Marek Polacek  <polacek@redhat.com>
11151
11152         [BZ #13706]
11153         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11154         * elf/Makefile: Add rules to run tst-unused-dep.out.
11155
11156 2012-02-28  David S. Miller  <davem@davemloft.net>
11157
11158         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11159         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11160         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11161         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11162         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11163         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11164
11165 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11166
11167         * math/libm-test.inc (llround_test): Move one test from
11168         lround_test.  Use TEST_f_L in moved test.
11169         (lround_test): Move misplaced test to llround_test.  Add testcase
11170         from bug 2561.
11171
11172 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11173
11174         * sysdeps/x86_64/fpu/e_expf.S: New file.
11175         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11176
11177 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11178
11179         [BZ #13637]
11180         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11181         of remain_len that may cause incomplete multi-byte character and
11182         false match.
11183         * posix/bug-regex33.c: New file.
11184         * posix/Makefile (tests): Add bug-regex33.
11185
11186 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11187
11188         * manual/macros.texi: New file.
11189         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11190         * manual/libc.texinfo: Include macros.texi.
11191         * manual/creatute.texi: Likewise.
11192         * manual/install.texi: Likewise.
11193         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11194         @glibcadj{} in references to the GNU C Library.
11195         * manual/charset.texi: Likewise.
11196         * manual/conf.texi: Likewise.
11197         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11198         when not using those macros.
11199         * manual/creature.texi: Likewise.
11200         * manual/crypt.texi: Likewise.
11201         * manual/errno.texi: Likewise.
11202         * manual/filesys.texi: Likewise.
11203         * manual/header.texi: Likewise.
11204         * manual/install.texi: Likewise.
11205         * manual/intro.texi: Likewise.
11206         * manual/io.texi: Likewise.
11207         * manual/job.texi: Likewise.
11208         * manual/lang.texi: Likewise.
11209         * manual/libc.texiinfo: Likewise.
11210         * manual/llio.texi: Likewise.
11211         * manual/locale.texi: Likewise.
11212         * manual/maint.texi: Likewise.
11213         * manual/math.texi: Likewise.
11214         * manual/memory.texi: Likewise.
11215         * manual/message.texi: Likewise.
11216         * manual/nss.texi: Likewise.
11217         * manual/pattern.texi: Likewise.
11218         * manual/process.texi: Likewise.
11219         * manual/resource.texi: Likewise.
11220         * manual/search.texi: Likewise.
11221         * manual/setjmp.texi: Likewise.
11222         * manual/signal.texi: Likewise.
11223         * manual/socket.texi: Likewise.
11224         * manual/startup.texi: Likewise.
11225         * manual/stdio.texi: Likewise.
11226         * manual/string.texi: Likewise.
11227         * manual/sysinfo.texi: Likewise.
11228         * manual/syslog.texi: Likewise.
11229         * manual/terminal.texi: Likewise.
11230         * manual/time.texi: Likewise.
11231         * manual/users.texi: Likewise.
11232         * INSTALL: Regenerated.
11233         * NOTES: Regenerated.
11234         * sysdeps/gnu/errlist.c: Regenerated.
11235
11236 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11237
11238         * include/dirent.h: Include <dirstream.h> before
11239         <dirent/dirent.h>.
11240
11241 2012-02-28  David S. Miller  <davem@davemloft.net>
11242
11243         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11244         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11245         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11246         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11247
11248 2012-02-27  David S. Miller  <davem@davemloft.net>
11249
11250         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11251         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11252         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11253         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11254
11255         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11256         frame pointer instead of stack pointer relative arg slot.
11257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11258         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11259         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11260
11261 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11262
11263         [BZ #3992]
11264         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11265
11266 2012-02-27  David S. Miller  <davem@davemloft.net>
11267
11268         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11269         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11272         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11273         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11274         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11275         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11276
11277 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11278
11279         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11280         later.  Allow versions 5-9.
11281         * configure: Regenerated.
11282         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11283         required minimum version and 4.6 as recommended version.  Do not
11284         mention bugs in GCC 2.7 and 2.8.
11285         * INSTALL: Regenerated.
11286
11287 2012-02-27  David S. Miller  <davem@davemloft.net>
11288
11289         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11290         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11291         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11292         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11293         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11294         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11295         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11296         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11297
11298         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11299         manipulate bits before adding and subtracting TWO112[sx].
11300         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11301
11302 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11303
11304         [BZ #13775]
11305         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11306         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11307         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11308         being in POSIX, because they are in 1003.1-2008.
11309
11310         * rt/tst-aio.c: Include <fcntl.h>.
11311         * rt/tst-aio7.c: Likewise.
11312         * rt/tst-aio64.c: Likewise.
11313
11314         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11315
11316 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11317
11318         * manual/install.texi (--with-headers): Describe headers as
11319         interface headers, not private headers.
11320         (Specific advice for GNU/Linux systems): Describe use of headers
11321         from "make headers_install", not private headers from older
11322         kernels.
11323         * INSTALL: Regenerated.
11324         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11325         Change to 2.6.19.
11326         * sysdeps/unix/sysv/linux/configure: Regenerated.
11327
11328         * manual/llio.texi (fclean): Remove documentation.
11329
11330         * manual/Makefile (libc-texi-generated): New variable.  Include
11331         version.texi.
11332         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11333         $(libc-texi-generated), not duplicated list of files.
11334         (version.texi, stamp-version): New rules.
11335         (realclean): Remove $(libc-texi-generated), not individual files
11336         from that list.  Do not remove dir-add.texinfo.
11337         * manual/libc.texinfo: Comment out uses of edition numbers and
11338         references to printed manual.  Remove last-updated dates.
11339         (EDITION): Comment out.
11340         (ISBN): Likewise.
11341         (VERSION, UPDATED): Remove.
11342         (version.texi): Include.
11343
11344 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11345
11346         * sysdeps/posix/spawni.c: Include <signal.h>.
11347         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11348         * sysdeps/pthread/aio_fsync.c: Likewise.
11349
11350 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11351
11352         * conform/Makefile (tests): Run only when not cross-compiling and
11353         when fast-check is not defined.
11354
11355         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11356         * conform/data/limits.h-data: Fixes for POSIX2008.
11357         * conform/run-conformtest.sh: Run all tests.
11358         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11359         headers.
11360         * include/bits/dlfcn.h: Likewise.
11361         * include/langinfo.h: Likewise.
11362         * include/monetary.h: Likewise.
11363         * include/sys/poll.h: Likewise.
11364
11365         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11366         for __USE_GNU.
11367         * posix/spawn.h: Define __need_sigset_t.
11368         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11369         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11370         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11371         to get sigevent_t only.
11372         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11373         only for __USE_GNU.
11374         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11375         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11376         process_vm_writev only for __USE_GNU.
11377         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11378
11379         * conform/Makefile: For now ignore errors from run-conformtest.
11380         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11381         POSIX to avoid namespace pollution.  Don't prepend headers.
11382         * conform/data/aio.h-data: Fixes for POSIX testing.
11383         * conform/data/fcntl.h-data: Likewise.
11384         * conform/data/glob.h-data: Likewise.
11385         * conform/data/grp.h-data: Likewise.
11386         * conform/data/pthread.h-data: Likewise.
11387         * conform/data/pwd.h-data: Likewise.
11388         * conform/data/signal.h-data: Likewise.
11389         * conform/data/spawn.h-data: Likewise.
11390         * conform/data/stdio.h-data: Likewise.
11391         * conform/data/stdlib.h-data: Likewise.
11392         * conform/data/stropts.h-data: Likewise.
11393         * conform/data/sys/mman.h-data: Likewise.
11394         * conform/data/sys/stat.h-data: Likewise.
11395         * conform/data/sys/types.h-data: Likewise.
11396         * conform/data/sys/wait.h-data: Likewise.
11397         * conform/data/time.h-data: Likewise.
11398         * conform/data/unistd.h-data: Likewise.
11399         * conform/data/utime.h-data: Likewise.
11400
11401         * io/sys/stat.h: fchmod was always in POSIX.
11402         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11403         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11404         * rt/aio.h: Define __need_timespec before including <time.h>.
11405         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11406         struct.  Add forward declaration of pthread_attr_t and use it in
11407         sigevent.
11408         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11409         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11410         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11411         always remove CLK_TCK definition.
11412
11413 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11414
11415         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11416
11417 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11418
11419         * conform/run-conformtest.sh: New file.
11420         * conform/Makefile: Run run-conformtest for tests.
11421         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11422         support.
11423
11424         * conform/data/uchar.h-data: New file.
11425         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11426         * conform/data/arpa/inet.h-data: Likewise.
11427         * conform/data/assert.h-data: Likewise.
11428         * conform/data/complex.h-data: Likewise.
11429         * conform/data/cpio.h-data: Likewise.
11430         * conform/data/ctype.h-data: Likewise.
11431         * conform/data/dirent.h-data: Likewise.
11432         * conform/data/dlfcn.h-data: Likewise.
11433         * conform/data/errno.h-data: Likewise.
11434         * conform/data/fcntl.h-data: Likewise.
11435         * conform/data/float.h-data: Likewise.
11436         * conform/data/fmtmsg.h-data: Likewise.
11437         * conform/data/fnmatch.h-data: Likewise.
11438         * conform/data/ftw.h-data: Likewise.
11439         * conform/data/glob.h-data: Likewise.
11440         * conform/data/grp.h-data: Likewise.
11441         * conform/data/iconv.h-data: Likewise.
11442         * conform/data/inttypes.h-data: Likewise.
11443         * conform/data/langinfo.h-data: Likewise.
11444         * conform/data/libgen.h-data: Likewise.
11445         * conform/data/limits.h-data: Likewise.
11446         * conform/data/locale.h-data: Likewise.
11447         * conform/data/math.h-data: Likewise.
11448         * conform/data/monetary.h-data: Likewise.
11449         * conform/data/mqueue.h-data: Likewise.
11450         * conform/data/ndbm.h-data: Likewise.
11451         * conform/data/net/if.h-data: Likewise.
11452         * conform/data/netdb.h-data: Likewise.
11453         * conform/data/netinet/in.h-data: Likewise.
11454         * conform/data/nl_types.h-data: Likewise.
11455         * conform/data/poll.h-data: Likewise.
11456         * conform/data/pthread.h-data: Likewise.
11457         * conform/data/pwd.h-data: Likewise.
11458         * conform/data/regex.h-data: Likewise.
11459         * conform/data/sched.h-data: Likewise.
11460         * conform/data/search.h-data: Likewise.
11461         * conform/data/semaphore.h-data: Likewise.
11462         * conform/data/setjmp.h-data: Likewise.
11463         * conform/data/signal.h-data: Likewise.
11464         * conform/data/spawn.h-data: Likewise.
11465         * conform/data/stdarg.h-data: Likewise.
11466         * conform/data/stdio.h-data: Likewise.
11467         * conform/data/stdlib.h-data: Likewise.
11468         * conform/data/string.h-data: Likewise.
11469         * conform/data/strings.h-data: Likewise.
11470         * conform/data/stropts.h-data: Likewise.
11471         * conform/data/sys/ipc.h-data: Likewise.
11472         * conform/data/sys/mman.h-data: Likewise.
11473         * conform/data/sys/msg.h-data: Likewise.
11474         * conform/data/sys/resource.h-data: Likewise.
11475         * conform/data/sys/select.h-data: Likewise.
11476         * conform/data/sys/sem.h-data: Likewise.
11477         * conform/data/sys/shm.h-data: Likewise.
11478         * conform/data/sys/socket.h-data: Likewise.
11479         * conform/data/sys/stat.h-data: Likewise.
11480         * conform/data/sys/statvfs.h-data: Likewise.
11481         * conform/data/sys/time.h-data: Likewise.
11482         * conform/data/sys/timeb.h-data: Likewise.
11483         * conform/data/sys/times.h-data: Likewise.
11484         * conform/data/sys/types.h-data: Likewise.
11485         * conform/data/sys/uio.h-data: Likewise.
11486         * conform/data/sys/un.h-data: Likewise.
11487         * conform/data/sys/utsname.h-data: Likewise.
11488         * conform/data/sys/wait.h-data: Likewise.
11489         * conform/data/syslog.h-data: Likewise.
11490         * conform/data/tar.h-data: Likewise.
11491         * conform/data/termios.h-data: Likewise.
11492         * conform/data/utime.h-data: Likewise.
11493         * conform/data/utmpx.h-data: Likewise.
11494         * conform/data/varargs.h-data: Likewise.
11495         * conform/data/wchar.h-data: Likewise.
11496         * conform/data/wctype.h-data: Likewise.
11497         * conform/data/wordexp.h-data: Likewise.
11498
11499         * include/stropts.h: New file.
11500         * include/uchar.h: New file.
11501         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11502         * include/assert.h: Likewise.
11503         * include/ctype.h: Likewise.
11504         * include/dirent.h: Likewise.
11505         * include/dlfcn.h: Likewise.
11506         * include/fcntl.h: Likewise.
11507         * include/fnmatch.h: Likewise.
11508         * include/glob.h: Likewise.
11509         * include/grp.h: Likewise.
11510         * include/libio.h: Likewise.
11511         * include/locale.h: Likewise.
11512         * include/math.h: Likewise.
11513         * include/net/if.h: Likewise.
11514         * include/netdb.h: Likewise.
11515         * include/netinet/in.h: Likewise.
11516         * include/pthread.h: Likewise.
11517         * include/pwd.h: Likewise.
11518         * include/regex.h: Likewise.
11519         * include/sched.h: Likewise.
11520         * include/search.h: Likewise.
11521         * include/setjmp.h: Likewise.
11522         * include/signal.h: Likewise.
11523         * include/stdio.h: Likewise.
11524         * include/stdlib.h: Likewise.
11525         * include/string.h: Likewise.
11526         * include/sys/cdefs.h: Likewise.
11527         * include/sys/mman.h: Likewise.
11528         * include/sys/msg.h: Likewise.
11529         * include/sys/resource.h: Likewise.
11530         * include/sys/select.h: Likewise.
11531         * include/sys/socket.h: Likewise.
11532         * include/sys/stat.h: Likewise.
11533         * include/sys/statvfs.h: Likewise.
11534         * include/sys/time.h: Likewise.
11535         * include/sys/times.h: Likewise.
11536         * include/sys/uio.h: Likewise.
11537         * include/sys/utsname.h: Likewise.
11538         * include/sys/wait.h: Likewise.
11539         * include/termios.h: Likewise.
11540         * include/time.h: Likewise.
11541         * include/ulimit.h: Likewise.
11542         * include/unistd.h: Likewise.
11543         * include/utime.h: Likewise.
11544         * include/wchar.h: Likewise.
11545         * include/wctype.h: Likewise.
11546         * include/wordexp.h: Likewise.
11547
11548         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11549
11550         * time/time.h: TIME_UTC must be a macro.
11551         Make timespec_get available for ISO C11 only as well.
11552
11553 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11554
11555         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11556         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11557
11558 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11559
11560         * configure.in: Use -o not -a in test for unsupported multi-arch.
11561
11562 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11563
11564         * manual/texinfo.tex: Update to version 2012-01-19.16.
11565
11566 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11567
11568         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11569
11570 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11571
11572         [BZ #13738]
11573         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11574         * manual/fdl-1.3.texi: New file.
11575         * manual/fdl-1.1.texi: File removed.
11576
11577         [BZ #13738]
11578         * manual/libc.texinfo (FDL_VERSION): New @set.
11579         Use it for mention of FDL in cover text.
11580         (Documentation License): Use it in @include file name.
11581
11582 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11583             Roland McGrath  <roland@hack.frob.com>
11584
11585         [BZ #5461]
11586         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11587         not LONG_LONG_MAX and LONG_LONG_MIN.
11588         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11589         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11590         name.
11591         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11592
11593 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11594
11595         [BZ #2547]
11596         [BZ #11365]
11597         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11598         manipulate bits before adding and subtracting TWO23[sx].
11599         * math/libm-test.inc (nearbyint_test): Add more tests.
11600
11601 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11602
11603         [BZ #2548]
11604         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11605         bits before adding and subtracting TWO23[sx].
11606         * math/libm-test.inc (rint_test): Add more tests.
11607         (rint_test_tonearest): Likewise.
11608         (rint_test_towardzero): Likewise.
11609         (rint_test_downward): Likewise.
11610         (rint_test_upward: Likewise.
11611
11612 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11613
11614         [BZ #10110]
11615         * include/stdc-predef.h: New file.  Extracted from features.h.
11616         * include/features.h: Include stdc-predef.h.
11617         * Makefile (headers): Add stdc-predef.h.
11618         * CONFORMANCE (Compiler limitations): Update.
11619
11620 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11621
11622         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11623
11624 2012-02-21  David S. Miller  <davem@davemloft.net>
11625
11626         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11627         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11628
11629 2012-02-20  David S. Miller  <davem@davemloft.net>
11630
11631         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11632         using a normal save/restore sequence, rather than allocating a
11633         dummy stack frame just to store a frame pointer and restore.
11634         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11635
11636 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11637
11638         * manual/install.texi: Fix stray word in line-wrapped comment.
11639
11640 2012-02-20  David S. Miller  <davem@davemloft.net>
11641
11642         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11643         both binutils and gcc support GOTDATA.
11644
11645         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11646         "rd %pc" in the PIC register setup sequences.
11647
11648         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11649         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11650         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11651         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11652         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11653         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11654         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11655         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11656         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11657         (SYSCALL_ERROR_HANDLER): Likewise.
11658         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11659         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11660         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11661         (SYSCALL_ERROR_HANDLER): Likewise.
11662
11663         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11664         (HAVE_GCC_GOTDATA): New.
11665         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11666         relocation support in both binutils and gcc.
11667         * sysdeps/sparc/elf/configure: Regenerate.
11668
11669         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11670         * sysdeps/sparc/sparc32/elf/configure: Delete.
11671         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11672         * sysdeps/sparc/sparc64/elf/configure: Delete.
11673         * sysdeps/sparc/elf/configure.in: New file.
11674         * sysdeps/sparc/elf/configure: Generate.
11675
11676         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11677         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11678         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11679         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11680         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11681
11682 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11683
11684         * manual/install.texi: Do not mention specific glibc version
11685         numbers.
11686         * manual/libc.texinfo (VERSION, UPDATED): Update.
11687         (@copying): Use @copyright{} and range of years.
11688
11689 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11690
11691         [BZ #13695]
11692         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11693         [crti.S not in sysdirs] (generated): Do not append.
11694         [crti.S not in sysdirs] (omit-deps): Likewise.
11695         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11696         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11697         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11698         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11699         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11700         Likewise.
11701         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11702         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11703         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11704         * csu/defs.awk: Remove file.
11705         * sysdeps/generic/initfini.c: Likewise.
11706         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11707         variable.
11708         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11709         Likewise.
11710
11711 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11712
11713         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11714         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11715         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11716         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11717         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11718         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11719         <bits/epoll.h>.
11720         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11721         (__EPOLL_PACKED): Define to empty if not defined by
11722         <bits/epoll.h>.
11723         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11724         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11725         bits/epoll.h.
11726
11727 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11728
11729         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11730         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11731         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11732         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11733         <bits/timerfd.h>.
11734         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11735         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11736         bits/timerfd.h.
11737
11738 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11739
11740         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11741         in C locale.
11742         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11743         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11744         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11746
11747 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11748
11749         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11750         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11751
11752 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11753
11754         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11755         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11756         defined.
11757         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11758         Likewise.
11759         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11760         entry for 2.16.
11761
11762 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11763
11764         * math/w_acos.c: Use non-signaling floating-point comparisons.
11765         * math/w_acosf.c: Likewise.
11766         * math/w_acosh.c: Likewise.
11767         * math/w_acoshf.c: Likewise.
11768         * math/w_acoshl.c: Likewise.
11769         * math/w_acosl.c: Likewise.
11770         * math/w_asin.c: Likewise.
11771         * math/w_asinf.c: Likewise.
11772         * math/w_asinl.c: Likewise.
11773         * math/w_atanh.c: Likewise.
11774         * math/w_atanhf.c: Likewise.
11775         * math/w_atanhl.c: Likewise.
11776         * math/w_exp2.c: Likewise.
11777         * math/w_exp2f.c: Likewise.
11778         * math/w_exp2l.c: Likewise.
11779         * math/w_j0.c: Likewise.
11780         * math/w_j0f.c: Likewise.
11781         * math/w_j0l.c: Likewise.
11782         * math/w_j1.c: Likewise.
11783         * math/w_j1f.c: Likewise.
11784         * math/w_j1l.c: Likewise.
11785         * math/w_jn.c: Likewise.
11786         * math/w_jnf.c: Likewise.
11787         * math/w_log.c: Likewise.
11788         * math/w_log10.c: Likewise.
11789         * math/w_log10f.c: Likewise.
11790         * math/w_log10l.c: Likewise.
11791         * math/w_log2.c: Likewise.
11792         * math/w_log2f.c: Likewise.
11793         * math/w_log2l.c: Likewise.
11794         * math/w_logf.c: Likewise.
11795         * math/w_logl.c: Likewise.
11796         * math/w_sqrt.c: Likewise.
11797         * math/w_sqrtf.c: Likewise.
11798         * math/w_sqrtl.c: Likewise.
11799         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11800         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11801         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11802         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11803         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11804
11805 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11806
11807         [BZ #9739]
11808         * manual/string.texi (strnlen): Use correct parameter name in
11809         equivalent expression.
11810
11811 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11812
11813         [BZ #11174]
11814         * manual/users.texi (seteuid): Consistently use neweuid for
11815         argument name.
11816
11817 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11818
11819         [BZ #13704]
11820         * manual/nss.texi (Services in the NSS configuration): Correct
11821         list of services in example configuration file.
11822
11823 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11824
11825         [BZ #11322]
11826         * manual/arith.texi: Remove statements about negative zero
11827         behaving identically to zero.
11828
11829 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11830
11831         [BZ #5993]
11832         * manual/install.texi: Do not document upgrading from libc5.
11833
11834 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11835
11836         [BZ #4596]
11837         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11838
11839 2012-02-18  David S. Miller  <davem@davemloft.net>
11840
11841         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11842         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11843         %o7 across the call.
11844         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11845         instead.
11846         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11847         SETUP_PIC_REG_LEAF.
11848         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11849         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11850         * sysdeps/sparc/crtn.S: Likewise.
11851
11852 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11853
11854         * aout/Makefile: Remove.
11855
11856 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11857
11858         [BZ #13058]
11859         * manual/examples/argp-ex1.c (main): Format definition in GNU
11860         style.
11861         * manual/examples/argp-ex2.c (main): Likewise.
11862         * manual/examples/argp-ex3.c (main): Likewise.
11863         * manual/examples/argp-ex4.c (main): Likewise.
11864         * manual/examples/longopt.c (main): Use new-style prototype
11865         definition.
11866         * manual/examples/strncat.c (main): Specify return type and use
11867         (void) for arguments.
11868         * manual/examples/subopt.c (main): Use char **argv argument.
11869
11870 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11871
11872         [BZ #5077]
11873         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11874         rounding modes.
11875
11876 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11877
11878         [BZ #6907]
11879         * manual/string.texi (strchr): Change when strchrnul is
11880         recommended.
11881
11882 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11883
11884         [BZ #174]
11885         * manual/locale.texi (setlocale): Document LOCPATH.
11886
11887 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11888
11889         [BZ #10210]
11890         * manual/process.texi (execle): Move @dots{} before last argument.
11891
11892 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11893
11894         [BZ #12047]
11895         * manual/charset.texi (Generic Charset Conversion): Fix typo
11896         (LC_TYPE -> LC_CTYPE).
11897
11898 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11899
11900         [BZ #5805]
11901         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11902         (scalbnf): Likewise.
11903         (scalbnl): Likewise.
11904         (scalbln): Likewise.
11905         (scalblnf): Likewise.
11906         (scalblnl): Likewise.
11907         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11908         (vwarnx): Likewise.
11909         (verr): Likewise.
11910         (verrx): Likewise.
11911         * manual/filesys.texi (telldir): Use braces around return type.
11912         * manual/llio.texi (mmap): Add space after comma.
11913         (mmap64): Likewise.
11914         * manual/math.texi (jn): Use @var{} on parameter names.
11915         (jnf): Likewise.
11916         (jnl): Likewise.
11917         (yn): Likewise.
11918         (ynf): Likewise.
11919         (ynl): Likewise.
11920         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11921         line.
11922         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11923         "...".
11924         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11925         (sched_get_priority_max): Likewise.
11926         * manual/signal.texi (sigvec): Add space after comma.
11927         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11928         names.
11929         (if_indextoname): Likewise.
11930         (if_freenameindex): Likewise.
11931         (sendto): Use ',' instead of '.' in prototype.
11932         * manual/startup.texi (syscall): Use @dots{} instead of literal
11933         "...".
11934         * manual/stdio.texi (__fpending): Separate initial words of
11935         paragraph from @deftypefun line.
11936         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11937         "...".
11938         (vsyslog): Use @var{} on parameter names.
11939         * manual/terminal.texi (stty): Use @var{} on parameter names.
11940         * manual/users.texi (getutmp): Use @var{} on parameter names.
11941         (getutmpx): Likewise.
11942
11943 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11944
11945         [BZ #6884]
11946         * manual/stdio.texi (fopen): Fix typos in description of
11947         ",ccs=STRING".
11948
11949 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11950
11951         [BZ #4026]
11952         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11953         get clock_id definition.
11954
11955 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11956
11957         [BZ #4822]
11958         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11959         (madvise): Cast every argument to void on its own.
11960
11961 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11962
11963         [BZ #9902]
11964         * manual/startup.texi (Exit Status): Fix typo.
11965
11966 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11967
11968         [BZ #10140]
11969         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11970         * manual/examples/argp-ex2.c: Likewise.
11971         * manual/examples/argp-ex3.c: Likewise.
11972
11973 2012-02-16  Richard Henderson  <rth@redhat.com>
11974
11975         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11976         * sysdeps/s390/s390-32/initfini.c: Remove.
11977         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11978         * sysdeps/s390/s390-64/initfini.c: Remove.
11979
11980 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11981
11982         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11983         compiler output for sysdeps/generic/initfini.c.
11984         * sysdeps/sh/elf/initfini.c: Remove file.
11985
11986 2012-02-16  David S. Miller  <davem@davemloft.net>
11987
11988         [BZ #11494]
11989         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11990
11991         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11992         * sysdeps/sparc/crti.S: New file.
11993         * sysdeps/sparc/crtn.S: New file.
11994         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11995         * sysdeps/sparc/sparc64/Makefile: Likewise.
11996
11997 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11998
11999         [BZ #3335]
12000         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12001
12002 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12003
12004         [BZ #4822]
12005         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12006
12007         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12008         (write, read, close): Likewise.
12009         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12010
12011 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12012
12013         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12014         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12015         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12016         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12017         <bits/signalfd.h>.
12018         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12019         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12020         bits/signalfd.h.
12021
12022 2012-02-14  Marek Polacek  <polacek@redhat.com>
12023
12024         * sysdeps/x86_64/crti.S: New file.
12025         * sysdeps/x86_64/crtn.S: New file.
12026         * sysdeps/x86_64/elf/initfini.c: Remove file.
12027
12028 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12029
12030         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12031         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12032         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12033         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12034         <bits/inotify.h>.
12035         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12036         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12037         bits/inotify.h.
12038
12039 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12040
12041         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12042         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12043         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12044         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12045         <bits/eventfd.h>.
12046         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12047         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12048         bits/eventfd.h.
12049
12050 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12051
12052         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12053         __feraiseexcept instead of feraiseexcept.
12054
12055         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12056         nanosleep invocations.
12057         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12058         strings, and add error checking for a nanosleep invocations.
12059
12060 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12061
12062         Replace FSF snail mail address with URLs, as per GNU coding standards.
12063         Most of the snail mail addresses were wrong anyway, and omitting
12064         them makes the source code easier to maintain.  Almost all of the
12065         changes are to license notices and to locale LC_IDENTIFICATION
12066         addresses, except for this one:
12067         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12068         not its snail mail address.
12069
12070 2012-02-09  Richard Henderson  <rth@twiddle.net>
12071
12072         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12073         of kernel-features.h.
12074
12075         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12076
12077 2012-02-08  Marek Polacek  <polacek@redhat.com>
12078
12079         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12080         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12081         * sysdeps/gnu/_G_config.h: Likewise.
12082         * sysdeps/generic/_G_config.h: Likewise.
12083
12084 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12085
12086         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12087         tests.
12088         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12089
12090         * sysdeps/powerpc/powerpc32/crti.S: New file.
12091         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12092         * sysdeps/powerpc/powerpc64/crti.S: New file.
12093         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12094
12095         * Makeconfig (have-initfini): Don't set.
12096         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12097         * configure.in (nopic_initfini): Don't substitute.
12098         * config.h.in (HAVE_INITFINI): Don't #undef.
12099         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12100         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12101
12102 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12103
12104         Support crti.S and crtn.S provided directly by architectures.
12105         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12106         [crti.S in sysdirs] (omit-deps): Likewise.
12107         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12108         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12109         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12110         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12111         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12112         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12113         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12114         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12115         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12116         compiler output for sysdeps/generic/initfini.c.
12117         * sysdeps/i386/elf/Makefile: Remove file.
12118         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12119
12120 2012-02-07  Marek Polacek  <polacek@redhat.com>
12121
12122         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12123         * sysdeps/gnu/_G_config.h: Likewise.
12124         * sysdeps/mach/hurd/_G_config.h: Likewise.
12125
12126 2012-02-07  Marek Polacek  <polacek@redhat.com>
12127
12128         * math/Makefile (tests): Add tst-CMPLX2.
12129         * math/tst-CMPLX2.c: New file.
12130
12131 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12132
12133         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12134
12135         * math/libm-test.inc (jn_test): Add missing L suffix.
12136
12137 2012-02-06  Marek Polacek  <polacek@redhat.com>
12138
12139         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12140         * sysdeps/i386/fpu/e_powf.S: Likewise.
12141         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12142         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12143         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12144         * sysdeps/i386/fpu/e_pow.S: Likewise.
12145         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12146         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12147         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12148         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12149         * sysdeps/i386/fpu/e_log2.S: Likewise.
12150         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12151         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12152         * sysdeps/i386/fpu/e_powl.S: Likewise.
12153         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12154         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12155         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12156         * sysdeps/i386/fpu/e_logl.S: Likewise.
12157         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12158         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12159         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12160         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12161         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12162         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12163         * sysdeps/i386/fpu/e_log.S: Likewise.
12164         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12165         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12166         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12167         * sysdeps/i386/fpu/e_logf.S: Likewise.
12168         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12169         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12170         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12171         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12172         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12173         * sysdeps/i386/fpu/e_log10.S: Likewise.
12174         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12175         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12176         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12177         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12178         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12179         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12180         * sysdeps/i386/asm-syntax.h: Likewise.
12181         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12182         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12183         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12184         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12185         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12186         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12187         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12188         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12189         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12190         * sysdeps/powerpc/sysdep.h: Likewise.
12191         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12192         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12193
12194 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12195
12196         [BZ #411]
12197         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12198
12199 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12200
12201         * sysdeps/i386/sysdep.h: Include <features.h>.
12202         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12203         version.
12204
12205 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12206
12207         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12208         Define.
12209         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12210         LOAD_PIC_REG_STR.
12211
12212 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12213
12214         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12215         (SETUP_PIC_REG): Use GET_PC_THUNK.
12216         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12217         macro.
12218
12219 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12220
12221         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12222         for non-PIC compilation.
12223         (SETUP_PIC_REG): Add .p2align directive.
12224         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12225         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12226         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12227         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12228         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12229         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12230         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12231         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12232         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12233         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12234         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12235         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12236         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12237         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12238         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12239         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12240         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12241         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12242         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12243         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12244         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12245         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12246         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12247         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12248         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12249         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12250         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12251         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12252         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12253         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12254         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12255         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12256         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12257         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12258         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12259         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12260         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12261         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12262         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12263         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12264         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12265
12266 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12267
12268         * math/tst-CMPLX.c: Include <stdio.h>.
12269
12270 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12271
12272         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12273         float.
12274         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12275         * sysdeps/sparc/bits/mathdef.h: Likewise.
12276
12277 2012-01-31  Marek Polacek  <polacek@redhat.com>
12278
12279         * libio/libio.h: Don't define _PARAMS.
12280         * locale/programs/config.h: Don't define PARAMS.
12281         * stdlib/strtol_l.c: Likewise.
12282         (__strtol_l): Remove PARAMS from the prototype.
12283
12284 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12285
12286         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12287         names.  Just use the correct names.  Remove unnecessary wrapper
12288         functions.
12289         * malloc/arena.c: Likewise.
12290         * malloc/hooks.c: Likewise.
12291
12292         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12293         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12294         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12295
12296 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12297
12298         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12299         into tail calls.
12300         (update_get_addr): New function.
12301         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12302         GET_ADDR_MODULE parameter.
12303
12304 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12305
12306         * crypt/cert.c: Remove __STDC__ conditionals.
12307         * crypt/crypt-entry.c: Likewise.
12308         * crypt/crypt_util.c: Likewise.
12309         * libio/filedoalloc.c: Likewise.
12310         * libio/fileops.c: Likewise.
12311         * libio/genops.c: Likewise.
12312         * libio/iofclose.c: Likewise.
12313         * libio/iofdopen.c: Likewise.
12314         * libio/iofopen.c: Likewise.
12315         * libio/iofopen64.c: Likewise.
12316         * libio/iogetdelim.c: Likewise.
12317         * libio/iopopen.c: Likewise.
12318         * libio/obprintf.c: Likewise.
12319         * libio/oldfileops.c: Likewise.
12320         * libio/oldiofclose.c: Likewise.
12321         * libio/oldiofdopen.c: Likewise.
12322         * libio/oldiofopen.c: Likewise.
12323         * libio/oldiopopen.c: Likewise.
12324         * libio/wfiledoalloc.c: Likewise.
12325         * libio/wgenops.c: Likewise.
12326         * locale/programs/xmalloc.c: Likewise.
12327         * misc/syslog.c: Likewise.
12328         * stdio-common/xbug.c: Likewise.
12329         * string/memchr.c: Likewise.
12330         * string/memcmp.c: Likewise.
12331         * string/memrchr.c: Likewise.
12332         * string/rawmemchr.c: Likewise.
12333         * sysdeps/posix/getcwd.c: Likewise.
12334         * time/strftime_l.c: Likewise.
12335
12336 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12337
12338         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12339         * config.make.in (config-cflags-sse2avx): Define.
12340         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12341         Fix typo.
12342
12343 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12344
12345         * scripts/config.guess: Update from upstream config git repository.
12346         * scripts/config.sub: Likewise.
12347
12348 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12349
12350         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12351         (EM_NUM): Update.
12352         (R_TILEPRO_*, R_TILEGX_*): New macros.
12353
12354         * scripts/firstversions.awk: Fix bug in version range handling.
12355
12356         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12357
12358         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12359
12360         * include/sys/epoll.h: New file.
12361         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12362         libc_hidden_def.
12363
12364 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12365
12366         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12367         Avoid unnecessary __WORDSIZE == 64 test.
12368         (fmaxf): Use VEX format if possible.
12369         (fmax): Likewise.
12370         (fminf): Likewise.
12371         (fmin): Likewise.
12372
12373         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12374         * math/math_private.h: Remove libc_fegetround* and
12375         libc_fesetround*.
12376         * sysdeps/i386/configure.in: Check for -msse2avx.
12377         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12378         also if SSE2AVX is defined.
12379         Remove libc_fegetround* and libc_fesetround*.
12380         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12381         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12382         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12383         of HAS_YMM_USABLE.
12384         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12385         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12386         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12387         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12388         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12389
12390         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12391
12392 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12393
12394         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12395         size is not set.
12396         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12397
12398 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12399
12400         [BZ #13618]
12401         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12402         relocation.
12403         * Makeconfig (libm): Define.
12404         * elf/Makefile: Add rules to build and run tst-relsort1.
12405         * elf/tst-relsort1.c: New file.
12406         * elf/tst-relsort1mod1.c: New file.
12407         * elf/tst-relsort1mod2.c: New file.
12408
12409 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12410
12411         * math/s_ldexp.c: Remove __STDC__ conditionals.
12412         * math/s_ldexpf.c: Likewise.
12413         * math/s_ldexpl.c: Likewise.
12414         * math/s_nextafter.c: Likewise.
12415         * math/s_nexttowardf.c: Likewise.
12416         * math/s_significand.c: Likewise.
12417         * math/s_significandf.c: Likewise.
12418         * math/s_significandl.c: Likewise.
12419         * math/w_jnl.c: Likewise.
12420         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12421         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12422         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12423         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12424         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12425         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12426         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12427         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12428         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12429         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12430         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12431         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12432         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12433         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12434         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12435         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12436         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12437         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12438         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12439         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12440         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12441         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12442         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12443         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12444         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12445         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12446         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12447         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12448         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12449         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12450         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12451         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12452         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12453         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12454         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12455         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12456         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12457         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12458         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12459         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12460         * sysdeps/ieee754/k_standard.c: Likewise.
12461         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12462         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12463         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12464         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12465         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12466         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12467         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12468         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12469         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12470         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12471         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12472         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12473         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12474         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12475         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12476         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12477         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12478         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12479         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12480         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12481         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12482         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12483         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12484         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12485         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12486         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12487         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12488         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12489         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12490         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12491         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12492         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12493         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12494         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12495         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12496         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12497         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12498         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12499         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12500         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12501         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12502         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12503         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12504         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12505         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12506         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12507         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12508         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12509         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12510         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12511         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12512         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12513         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12514         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12515         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12516         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12517         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12518         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12519         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12520         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12521         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12522         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12523         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12524         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12525         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12526         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12527         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12528         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12529         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12530         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12531         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12532         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12533         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12534         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12535         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12536         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12537         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12538         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12539         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12540         * sysdeps/ieee754/s_matherr.c: Likewise.
12541         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12542         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12543         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12544         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12545
12546 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12547
12548         * crypt/md5.h: Remove __STDC__ conditionals.
12549         * libio/libioP.h: Likewise.
12550         * locale/programs/config.h: Likewise.
12551         * sysdeps/generic/sysdep.h: Likewise.
12552         * sysdeps/i386/asm-syntax.h: Likewise.
12553         * sysdeps/s390/asm-syntax.h: Likewise.
12554         * sysdeps/unix/sysdep.h: Likewise.
12555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12557
12558 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12559
12560         * libio/libio.h: Remove __STDC__ conditionals.
12561         * malloc/obstack.h: Likewise.
12562         * math/complex.h: Likewise.
12563         * math/math.h: Likewise.
12564         * sysdeps/generic/_G_config.h: Likewise.
12565         * sysdeps/gnu/_G_config.h: Likewise.
12566         * sysdeps/mach/hurd/_G_config.h: Likewise.
12567         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12568         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12569         * sysdeps/sparc/bits/mathdef.h: Likewise.
12570
12571 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12572
12573         [BZ #13583]
12574         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12575         Clean up HAS_* macros.
12576         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12577         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12578         possible.
12579         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12580         HAS_AVX.
12581         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12582         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12583         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12584         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12585         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12586
12587 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12588
12589         * elf/tst-unique3.cc (gets): Remove declaration.
12590         * elf/tst-unique3lib.cc (gets): Likewise.
12591         * elf/tst-unique3lib2.cc (gets): Likewise.
12592         * elf/tst-unique4.cc (gets): Likewise.
12593
12594 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12595
12596         * include/stdio.h: Add C++ protection.  Add gets declarations and
12597         definitions.
12598         * debug/tst-chk1.c: Don't declare gets here.
12599         * stdio-common/tst-gets.c: Likewise.
12600
12601 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12602
12603         * posix/glob: Remove directory.
12604
12605 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12606
12607         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12608
12609 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12610
12611         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12612         of the non-standard EPFNOSUPPORT.
12613
12614 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12615
12616         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12617         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12618         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12619
12620 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12621
12622         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12623
12624 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12625
12626         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12627         transient errors.
12628         * nscd/grpcache.c (cache_addgr): Likewise.
12629         * nscd/hstcache.c (cache_addhst): Likewise.
12630         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12631         * nscd/pwdcache.c (cache_addpw): Likewise.
12632         * nscd/servicescache.c (cache_addserv): Likewise.
12633
12634 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12635
12636         * malloc/malloc.c: Various cleanups.
12637         * malloc/hooks.c: Likewise.
12638
12639         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12640         * stdlib/bug-fmtmsg1.c: New file.
12641
12642         * stdlib/fmtmsg.c (init): Add missing unlock.
12643         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12644
12645 2012-01-12  Marek Polacek  <polacek@redhat.com>
12646
12647         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12648         and _GNU_SOURCE.
12649
12650 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12651
12652         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12653         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12654         macro to ensure uniqueness of label name.
12655         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12656         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12657
12658 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12659
12660         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12661
12662         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12663         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12664         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12665         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12666
12667 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12668
12669         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12670
12671         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12672         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12673         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12674
12675         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12676
12677         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12678         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12679         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12680         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12681
12682         * math/bits/math-finite.h: Add ldexp support.
12683
12684 2012-01-10  Marek Polacek  <polacek@redhat.com>
12685
12686         * locale/programs/localedef.h (show_archive_content): Add noreturn
12687         attribute.
12688
12689 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12690
12691         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12692
12693 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12694
12695         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12696
12697         * io/Makefile (headers): Add bits/poll2.h.
12698
12699 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12700
12701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12702         typo #include statement.
12703
12704 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12705
12706         * include/sys/cdefs.h: Define __attribute_alloc_size.
12707         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12708         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12709         * elf/pldd.c: Likewise.
12710         * iconv/iconv_charmap.c: Likewise.
12711         * iconv/iconvconfig.c: Likewise.
12712         * iconv/strtab.c: Likewise.
12713         * locale/programs/locale.c: Likewise.
12714         * locale/programs/localedef.h: Likewise.
12715         * locale/programs/simple-hash.c: Likewise.
12716         * nscd/nscd.h: Likewise.
12717         * nss/makedb.c: Likewise.
12718         * sysdeps/generic/ldconfig.h: Likewise.
12719         * locale/programs/localedef.c: Remove xmalloc prototype.
12720         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12721
12722 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12723
12724         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12725         appropriate.
12726
12727 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12728
12729         * math/Makefile (tests): Add tst-CMPLX.
12730         * math/tst-CMPLX.c: New file.
12731
12732         * math/complex.h (CMPLXL): Fix typo.
12733
12734         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12735         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12736         GLIBC_2.16.
12737         * debug/tst-chk1.c: Add poll and ppoll tests.
12738         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12739         * include/sys/poll.h: Add hidden proto for ppoll.
12740         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12741         * sysdeps/mach/hurd/ppoll.c: Likewise.
12742         * io/ppoll.c: Likewise.
12743         * debug/poll_chk.c: New file.
12744         * debug/ppoll_chk.c: New file.
12745         * include/bits/poll2.h: New file.
12746         * io/bits/poll2.h: New file.
12747
12748         [BZ #1350]
12749         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12750
12751         * configure.in: static is always set to yes.  Remove.
12752         * config.make.in: Don't set build-static.
12753         * Makeconfig: Remove use of build-static.
12754         * dlfcn/Makefile: Likewise.
12755         * elf/Makefile: Likewise.
12756         * math/Makefile: Likewise.
12757         * misc/Makefile: Likewise.
12758         * nptl/Makefile: Likewise.
12759         * sysdeps/mach/hurd/Makefile: Likewise.
12760
12761         * configure.in: PWD_P is not used anymore.
12762         * config.make.in: Remove PWD_P entry.
12763
12764         * configure.in: Remove last remnants of RANLIB.
12765         No need to check for signed size_t anymore.
12766         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12767         and IA-64.
12768         Remove __builtin_expect test because we require at least gcc 3.4.
12769         * aclocal.m4: Likewise.
12770
12771         * wcsmbs/mbrtoc16.c: Implement using towc function.
12772         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12773         * wcsmbs/wcsmbsload.c: Likewise.
12774         * iconv/gconv_simple.c: Likewise.
12775         * iconv/gconv_int.h: Likewise.
12776         * iconv/gconv_builtin.h: Likewise.
12777         * iconv/iconv_prog.c: Remove CHAR16 handling.
12778
12779         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12780
12781         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12782
12783         * configure.in: Remove --with-elf and --enable-bounded options.
12784         Dont set base_machine for ia64.  More non-ELF conditions removed.
12785         Remove testing and setting of leading underscore information.
12786         * config.make.in (build-bounded): Set to no.
12787         * config.h.in: Remove NO_UNDERSCORES entry.
12788         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12789         them.
12790         * csu/start.c: Remove !NO_UNDERSCORE code.
12791         * locale/localeinfo.h: Likewise.
12792         * sysdeps/generic/machine-gmon.h: Likewise.
12793         * sysdeps/generic/sysdep.h: Likewise.
12794         * sysdeps/i386/sysdep.h: Likewise.
12795         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12796         * sysdeps/mach/sysdep.h: Likewise.
12797         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12798         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12799         * sysdeps/sh/sysdep.h: Likewise.
12800         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12801         * sysdeps/unix/i386/sysdep.S: Likewise.
12802         * sysdeps/unix/sparc/start.c: Likewise.
12803         * sysdeps/unix/sparc/sysdep.S: Likewise.
12804         * sysdeps/unix/sparc/sysdep.h: Likewise.
12805         * sysdeps/unix/start.c: Likewise.
12806         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12807         * sysdeps/x86_64/sysdep.h: Likewise.
12808
12809 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12810
12811         [BZ #13553]
12812         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12813         for non-gcc.
12814         * argp/argp-fmtstream.h: Use const instead __const.
12815         * argp/argp.h: Likewise.
12816         * assert/assert.h: Likewise.
12817         * bits/fenv.h: Likewise.
12818         * bits/sched.h: Likewise.
12819         * bits/sigset.h: Likewise.
12820         * bits/sigthread.h: Likewise.
12821         * catgets/nl_types.h: Likewise.
12822         * conform/data/pthread.h-data: Likewise.
12823         * crypt/crypt-private.h: Likewise.
12824         * crypt/crypt.h: Likewise.
12825         * crypt/crypt_util.c: Likewise.
12826         * ctype/ctype.h: Likewise.
12827         * debug/execinfo.h: Likewise.
12828         * debug/mbsnrtowcs_chk.c: Likewise.
12829         * debug/mbsrtowcs_chk.c: Likewise.
12830         * debug/wcsnrtombs_chk.c: Likewise.
12831         * debug/wcsrtombs_chk.c: Likewise.
12832         * debug/wcstombs_chk.c: Likewise.
12833         * dirent/dirent.h: Likewise.
12834         * dlfcn/dlfcn.h: Likewise.
12835         * elf/neededtest4.c: Likewise.
12836         * grp/grp.h: Likewise.
12837         * gshadow/gshadow.h: Likewise.
12838         * iconv/gconv.h: Likewise.
12839         * iconv/gconv_int.h: Likewise.
12840         * iconv/gconv_simple.c: Likewise.
12841         * iconv/iconv.h: Likewise.
12842         * iconv/loop.c: Likewise.
12843         * iconv/skeleton.c: Likewise.
12844         * include/aio.h: Likewise.
12845         * include/aliases.h: Likewise.
12846         * include/argz.h: Likewise.
12847         * include/arpa/inet.h: Likewise.
12848         * include/assert.h: Likewise.
12849         * include/dirent.h: Likewise.
12850         * include/dlfcn.h: Likewise.
12851         * include/execinfo.h: Likewise.
12852         * include/fcntl.h: Likewise.
12853         * include/fenv.h: Likewise.
12854         * include/glob.h: Likewise.
12855         * include/grp.h: Likewise.
12856         * include/libintl.h: Likewise.
12857         * include/mntent.h: Likewise.
12858         * include/netdb.h: Likewise.
12859         * include/pwd.h: Likewise.
12860         * include/rpc/netdb.h: Likewise.
12861         * include/sched.h: Likewise.
12862         * include/search.h: Likewise.
12863         * include/shadow.h: Likewise.
12864         * include/signal.h: Likewise.
12865         * include/stdio.h: Likewise.
12866         * include/stdlib.h: Likewise.
12867         * include/string.h: Likewise.
12868         * include/sys/socket.h: Likewise.
12869         * include/sys/stat.h: Likewise.
12870         * include/sys/statfs.h: Likewise.
12871         * include/sys/statvfs.h: Likewise.
12872         * include/sys/syslog.h: Likewise.
12873         * include/sys/time.h: Likewise.
12874         * include/sys/uio.h: Likewise.
12875         * include/time.h: Likewise.
12876         * include/unistd.h: Likewise.
12877         * include/utmp.h: Likewise.
12878         * include/wchar.h: Likewise.
12879         * include/wctype.h: Likewise.
12880         * inet/aliases.h: Likewise.
12881         * inet/arpa/inet.h: Likewise.
12882         * inet/netinet/ether.h: Likewise.
12883         * inet/netinet/in.h: Likewise.
12884         * intl/libintl.h: Likewise.
12885         * io/bits/fcntl2.h: Likewise.
12886         * io/fcntl.h: Likewise.
12887         * io/ftw.h: Likewise.
12888         * io/sys/poll.h: Likewise.
12889         * io/sys/stat.h: Likewise.
12890         * io/sys/statfs.h: Likewise.
12891         * io/sys/statvfs.h: Likewise.
12892         * io/utime.h: Likewise.
12893         * libio/bits/stdio.h: Likewise.
12894         * libio/bits/stdio2.h: Likewise.
12895         * libio/libio.h: Likewise.
12896         * libio/libioP.h: Likewise.
12897         * libio/stdio.h: Likewise.
12898         * locale/lc-ctype.c: Likewise.
12899         * locale/locale.h: Likewise.
12900         * login/utmp.h: Likewise.
12901         * malloc/arena.c: Likewise.
12902         * malloc/malloc.c: Likewise.
12903         * malloc/malloc.h: Likewise.
12904         * malloc/mcheck.c: Likewise.
12905         * malloc/mtrace.c: Likewise.
12906         * math/bits/mathcalls.h: Likewise.
12907         * math/fenv.h: Likewise.
12908         * math/math_private.h: Likewise.
12909         * misc/bits/error.h: Likewise.
12910         * misc/bits/syslog.h: Likewise.
12911         * misc/err.h: Likewise.
12912         * misc/error.h: Likewise.
12913         * misc/fstab.h: Likewise.
12914         * misc/mntent.h: Likewise.
12915         * misc/regexp.h: Likewise.
12916         * misc/search.h: Likewise.
12917         * misc/sgtty.h: Likewise.
12918         * misc/sys/mman.h: Likewise.
12919         * misc/sys/syslog.h: Likewise.
12920         * misc/sys/uio.h: Likewise.
12921         * misc/sys/xattr.h: Likewise.
12922         * misc/ttyent.h: Likewise.
12923         * nis/rpcsvc/ypclnt.h: Likewise.
12924         * nss/nss.h: Likewise.
12925         * posix/bits/unistd.h: Likewise.
12926         * posix/fnmatch.h: Likewise.
12927         * posix/glob.h: Likewise.
12928         * posix/sched.h: Likewise.
12929         * posix/spawn.h: Likewise.
12930         * posix/sys/wait.h: Likewise.
12931         * posix/unistd.h: Likewise.
12932         * posix/wordexp.h: Likewise.
12933         * pwd/pwd.h: Likewise.
12934         * resolv/netdb.h: Likewise.
12935         * resource/sys/resource.h: Likewise.
12936         * rt/aio.h: Likewise.
12937         * rt/bits/mqueue2.h: Likewise.
12938         * rt/mqueue.h: Likewise.
12939         * shadow/shadow.h: Likewise.
12940         * signal/signal.h: Likewise.
12941         * socket/send.c: Likewise.
12942         * socket/sendto.c: Likewise.
12943         * socket/sys/socket.h: Likewise.
12944         * stdio-common/printf.h: Likewise.
12945         * stdlib/bits/stdlib.h: Likewise.
12946         * stdlib/fmtmsg.h: Likewise.
12947         * stdlib/monetary.h: Likewise.
12948         * stdlib/stdlib.h: Likewise.
12949         * stdlib/ucontext.h: Likewise.
12950         * streams/stropts.h: Likewise.
12951         * string/argz.h: Likewise.
12952         * string/bits/string2.h: Likewise.
12953         * string/string.h: Likewise.
12954         * string/strings.h: Likewise.
12955         * sunrpc/rpc/auth.h: Likewise.
12956         * sunrpc/rpc/auth_des.h: Likewise.
12957         * sunrpc/rpc/clnt.h: Likewise.
12958         * sunrpc/rpc/netdb.h: Likewise.
12959         * sunrpc/rpc/pmap_clnt.h: Likewise.
12960         * sunrpc/rpc/xdr.h: Likewise.
12961         * sysdeps/generic/inttypes.h: Likewise.
12962         * sysdeps/generic/net/if.h: Likewise.
12963         * sysdeps/generic/sys/swap.h: Likewise.
12964         * sysdeps/gnu/net/if.h: Likewise.
12965         * sysdeps/gnu/utmpx.h: Likewise.
12966         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12967         * sysdeps/i386/i486/bits/string.h: Likewise.
12968         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12969         * sysdeps/s390/bits/string.h: Likewise.
12970         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12971         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12972         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12973         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12974         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12975         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12976         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12977         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12978         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12979         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12980         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12981         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12982         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12983         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12984         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12985         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12986         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12987         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12988         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12989         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12990         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12991         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12992         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12993         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12994         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12995         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12996         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12997         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12998         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12999         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13000         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13001         * sysvipc/sys/ipc.h: Likewise.
13002         * sysvipc/sys/msg.h: Likewise.
13003         * sysvipc/sys/sem.h: Likewise.
13004         * sysvipc/sys/shm.h: Likewise.
13005         * termios/termios.h: Likewise.
13006         * time/sys/time.h: Likewise.
13007         * time/time.h: Likewise.
13008         * wcsmbs/bits/wchar2.h: Likewise.
13009         * wcsmbs/uchar.h: Likewise.
13010         * wcsmbs/wchar.h: Likewise.
13011         * wctype/wctype.h: Likewise.
13012
13013         [BZ #13551]
13014         * Makeconfig: Remove all but ELF support including AIX support.
13015         * Makerules: Likewise.
13016         * config.h.in: Likewise.
13017         * config.make.in: Likewise.
13018         * configure: Likewise.
13019         * configure.in: Likewise.
13020         * csu/Makefile: Likewise.
13021         * csu/version.c: Likewise.
13022         * debug/Makefile: Likewise.
13023         * dlfcn/Makefile: Likewise.
13024         * elf/Makefile: Likewise.
13025         * extra-lib.mk: Likewise.
13026         * iconv/Makefile: Likewise.
13027         * include/libc-symbols.h: Likewise.
13028         * include/shlib-compat.h: Likewise.
13029         * resolv/Makefile: Likewise.
13030         * resolv/res_libc.c: Likewise.
13031         * rt/Makefile: Likewise.
13032         * sysdeps/i386/asm-syntax.h: Likewise.
13033         * sysdeps/i386/sysdep.h: Likewise.
13034         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13035         * sysdeps/mach/sysdep.h: Likewise.
13036         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13037         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13038         * sysdeps/s390/asm-syntax.h: Likewise.
13039         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13040         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13041         * sysdeps/sh/sysdep.h: Likewise.
13042         * sysdeps/unix/sparc/sysdep.h: Likewise.
13043         * sysdeps/wordsize-32/divdi3.c: Likewise.
13044         * sysdeps/x86_64/sysdep.h: Likewise.
13045
13046         * argp/Versions: Remove _argp_unlock_xxx.
13047
13048         [BZ #13559]
13049         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13050         * abilist/libBrokenLocale.abilist: Likewise.
13051         * abilist/libanl.abilist: Likewise.
13052         * abilist/libc.abilist: Likewise.
13053         * abilist/libcrypt.abilist: Likewise.
13054         * abilist/libdl.abilist: Likewise.
13055         * abilist/libm.abilist: Likewise.
13056         * abilist/libnsl.abilist: Likewise.
13057         * abilist/libpthread.abilist: Likewise.
13058         * abilist/libresolv.abilist: Likewise.
13059         * abilist/librt.abilist: Likewise.
13060         * abilist/libthread_db.abilist: Likewise.
13061         * abilist/libutil.abilist: Likewise.
13062         * abilist/libnss_db.abilist: New file.
13063
13064         * scripts/abilist.awk: Add support for indirect functions.
13065
13066         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13067
13068         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13069
13070         * shlib-versions: Remove entries for ports architectures.
13071
13072         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13073         files in ports.
13074         * elf/stackguard-macros.h: Remove support for IA-64.
13075         * elf/tst-auditmod1.c: Likewise.
13076         * sysdeps/generic/ldsodefs.h: Likewise.
13077
13078         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13079         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13080         configure files.
13081
13082         [BZ #13552]
13083         * configure.in: Remove --enable-omitfp support.
13084         * FAQ.in: Adjust.
13085         * config.make.in: Likewise.
13086         * Makeconfig: Likewise.
13087         * manual/install.texi: Likewise.
13088
13089         In case anyone cares, the IA-64 architecture could move to ports.
13090         * sysdeps/ia64/*: Removed.
13091         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13092         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13093
13094         [BZ #13555]
13095         * configure.in: Remove entries for unsupported architectures.
13096
13097         [BZ #13533]
13098         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13099         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13100         routines.
13101         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13102         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13103         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13104         fall back to using wcrtomb.
13105         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13106         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13107         renaming.
13108         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13109         * wcsmbs/tst-c16c32-1.c: New file.
13110
13111         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13112         local variable.
13113
13114         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13115
13116         * elf/tst-unique3.cc: Add explicit declaration of gets.
13117         * elf/tst-unique3lib.cc: Likewise.
13118         * elf/tst-unique3lib2.cc: Likewise.
13119         * elf/tst-unique4.cc: Likewise.
13120
13121         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13122
13123 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13124
13125         [BZ #13566]
13126         * assert/assert.h (static_assert): Don't define for C++.
13127         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13128         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13129
13130 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13131
13132         * iconv/loop.c (single loop): Fix assertion in storing of
13133         remaining bytes.
13134
13135         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13136
13137 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13138
13139         * posix/getconf.c: Update copyright year.
13140         * nss/getent.c: Likewise.
13141         * nss/makedb.c: Likewise.
13142         * iconv/iconvconfig.c: Likewise.
13143         * iconv/iconv_prog.c: Likewise.
13144         * elf/ldconfig.c: Likewise.
13145         * elf/pldd.c: Likewise.
13146         * elf/sotruss.ksh: Likewise.
13147         * catgets/gencat.c: Likewise.
13148         * csu/version.c: Likewise.
13149         * elf/ldd.bash.in: Likewise.
13150         * elf/sprof.c (print_version): Likewise.
13151         * locale/programs/locale.c: Likewise.
13152         * locale/programs/localedef.c: Likewise.
13153         * login/programs/pt_chown.c: Likewise.
13154         * nscd/nscd.c (print_version): Likewise.
13155         * debug/xtrace.sh: Likewise.
13156         * malloc/memusage.sh: Likewise.
13157         * malloc/mtrace.pl: Likewise.
13158         * debug/catchsegv.sh: Likewise.
13159
13160 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13161
13162         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13163         pure attribute.
13164
13165 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13166
13167         [BZ #13533]
13168         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13169         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13170         transformations.
13171         * iconv/gconv_int.h: Likewise.
13172         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13173         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13174         from libc for GLIBC_2.16.
13175         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13176         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13177         * wcsmbs/uchar.h: Really define mbstate_t.
13178         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13179         * wcsmbs/c16rtomb.c: New file.
13180         * wcsmbs/mbrtoc16.c: New file.
13181         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13182         for C/POSIX locale.
13183         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13184         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13185
13186         * wcsmbs/wchar.h: Add missing __restrict.
13187
13188 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13189
13190         [BZ #13532]
13191         * time/Makefile (routines): Add timespec_get.
13192         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13193         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13194         timespec for ISO C11.
13195         * time/timespec_get.c: New file.
13196         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13197         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13198
13199         [BZ #13531]
13200         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13201         * stdlib/stdlib.h: Declare aligned_alloc.
13202         * Versions.def: Add GLIBC_2.16 for libc.
13203         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13204
13205         [BZ 13527]
13206         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13207         ISO C11.
13208
13209         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13210         code.
13211
13212         [BZ #13528]
13213         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13214
13215         [BZ #13529]
13216         * assert/assert.h (static_assert): Define.
13217
13218         * version.h: Update for 2.16 development version.
13219
13220         [BZ #13526]
13221         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13222         _ISOC11_SOURCE.
13223
13224         * version.h (RELEASE): Bump for 2.15 release.
13225         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13226
13227         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13228         Patch by Marek Polacek <mpolacek@redhat.com>.
13229
13230         * bits/byteswap.h: Protect long long constants with __extension__.
13231         * sysdeps/i386/bits/byteswap.h: Likewise.
13232         * sysdeps/ia64/bits/byteswap.h: Likewise.
13233         * sysdeps/s390/bits/byteswap.h: Likewise.
13234         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13235
13236 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13237
13238         [BZ #13540]
13239         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13240         destination buffer.
13241         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13242
13243 2011-12-23  Marek Polacek  <polacek@redhat.com>
13244
13245         * elf/dl-addr.c (determine_info): Add inline keyword.
13246         * elf/tst-auditmod4b.c (check_avx): Likewise.
13247         * elf/tst-auditmod6b.c (check_avx): Likewise.
13248         * elf/tst-auditmod6c.c (check_avx): Likewise.
13249         * elf/tst-auditmod7b.c (check_avx): Likewise.
13250
13251 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13252
13253         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13254         !__SSE_MATH__.
13255
13256 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13257
13258         [BZ #13540]
13259         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13260         processing for last bytes.
13261
13262 2011-08-06  Bruno Haible  <bruno@clisp.org>
13263
13264         [BZ #13061]
13265         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13266         U+0385, not to U+1FEE.
13267
13268         [BZ #13062]
13269         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13270         entry for U+00A5 U+0301.
13271
13272 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13273
13274         [BZ #13166]
13275         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13276         buffer for the output is too small.
13277
13278         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13279         optimization.
13280
13281         [BZ #13185]
13282         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13283         SSE flags if possible.
13284
13285 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13286
13287         [BZ #13540]
13288         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13289         processing for last bytes.
13290
13291 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13292
13293         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13294         (syscall-list-default-options, syscall-list-default-condition)
13295         (syscall-list-includes): Define.
13296         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13297         list of ABIs and options and #if conditions for each ABI.  Do not
13298         handle common syscalls between ABIs specially.
13299         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13300         Remove.
13301         (syscall-list-variants, syscall-list-32bit-options)
13302         (syscall-list-32bit-condition, syscall-list-64bit-options)
13303         (syscall-list-64bit-condition): Define.
13304         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13305         (syscall-list-variants, syscall-list-32bit-options)
13306         (syscall-list-32bit-condition, syscall-list-64bit-options)
13307         (syscall-list-64bit-condition): Define.
13308         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13309         Remove.
13310         (syscall-list-variants, syscall-list-32bit-options)
13311         (syscall-list-32bit-condition, syscall-list-64bit-options)
13312         (syscall-list-64bit-condition): Define.
13313         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13314         Remove.
13315         (syscall-list-variants, syscall-list-32bit-options)
13316         (syscall-list-32bit-condition, syscall-list-64bit-options)
13317         (syscall-list-64bit-condition): Define.
13318
13319 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13320
13321         * locale/iso-639.def: Add brx entry.
13322
13323         [BZ #13328]
13324         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13325         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13326
13327         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13328         __feraiseexcept_renamed.
13329
13330 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13331
13332         [BZ #13538]
13333         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13334         EPOLLET with unsigned values.
13335         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13336         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13337
13338         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13339         to large cancellation.
13340         * math/s_cacoshf.c: Likewise.
13341         * math/s_cacoshl.c: Likewise.
13342
13343 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13344
13345         [BZ #13305]
13346         [BZ #12786]
13347         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13348         * math/s_cacoshf.c: Likewise.
13349         * math/s_cacoshl.c: Likewise.
13350
13351 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13352
13353         [BZ #13439]
13354         * iconv/gconv.h: Define __GCONV_SWAP.
13355         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13356         * iconvdata/utf-16.c: Likewise.
13357         * iconvdata/utf-32.c: Likewise.
13358
13359 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13360
13361         [BZ #13524]
13362         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13363         numerator after shifting it by one limb.
13364
13365 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13366
13367         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13368         under [__USE_EXTERN_INLINES].
13369
13370 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13371
13372         [BZ #13446]
13373         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13374
13375 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13376
13377         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13378         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13379         optimized code.
13380         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13381         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13382         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13383         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13384         for strncasecmp/strncasecmp_l compilation.
13385         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13386         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13387
13388 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13389
13390         [BZ #13484]
13391         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13392         of __asm__.
13393
13394 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13395
13396         [BZ #13506]
13397         * time/tzfile.c (__tzfile_read): Check values from file header.
13398
13399 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13400
13401         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13402         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13403         * powerpc/powerpc32/dl-start.S: Likewise.
13404         * powerpc/powerpc32/elf/start.S: Likewise.
13405         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13406         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13407         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13408         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13409         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13410         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13411         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13412         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13413         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13414         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13415         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13416         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13417         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13418         * powerpc/powerpc32/memset.S: Likewise.
13419         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13420         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13421         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13422         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13423         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13424         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13425         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13426         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13427         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13428         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13429         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13430         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13431         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13432
13433 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13434
13435         * math/libm-test.inc: Added more nearbyint tests.
13436         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13437         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13438         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13439         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13440
13441 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13442
13443         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13444         FD_CLOEXEC.
13445
13446 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13447
13448         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13449         Add wcscpy-ssse3 wcscpy-c.
13450         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13451         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13452         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13453         * sysdeps/x86_64/wcschr.S: New file.
13454         * sysdeps/x86_64/wcsrchr.S: New file.
13455         * string/test-strcmp.c: Remove checking of wcscmp function for
13456         wrong alignments.
13457         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13458         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13459         wcsrchr-sse2 wcsrchr-c.
13460         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13461         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13462         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13463         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13464         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13465         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13466         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13467         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13468         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13469         * wcsmbc/wcschr.c (WCSCHR): New macro.
13470
13471 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13472
13473         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13474         * wcsmbs/test-wcsrchr.c: New file.
13475         * string/test-strrchr.c: Add wcsrchr support.
13476         (WIDE): New macro.
13477         * wcsmbs/test-wcscpy.c: New file.
13478         * string/test-strcpy.c: Add wcscpy support.
13479         (WIDE): New macro.
13480
13481 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13482
13483         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13484         the inner loop.
13485
13486 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13487
13488         [BZ #13472]
13489         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13490
13491 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13492
13493         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13494         Minor optimizations.
13495
13496         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13497         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13498         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13499
13500 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13501
13502         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13503         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13504         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13505         for gcc to avoid warnings.
13506         * inet/Makefile (tests): Add tst-checks.
13507         * inet/tst-checks.c: New file.
13508
13509         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13510         warning.
13511
13512         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13513         __wmemcmp_sse2.
13514
13515         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13516         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13517
13518         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13519
13520 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13521
13522         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13523         problem.
13524
13525         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13526
13527 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13528
13529         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13530         conditional on GCC version.
13531         (__arch_compare_and_exchange_val_8_acq)
13532         (__arch_compare_and_exchange_val_16_acq)
13533         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13534         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13535         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13536
13537 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13538
13539         * sysdeps/sh/backtrace.c: New file.
13540
13541 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13542
13543         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13544         parenthesis.
13545
13546 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13547
13548         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13549         falling back to utime.
13550
13551 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13552
13553         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13554         expectations for float.
13555
13556 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13557
13558         * locale/weight.h (findidx): Add parameter len.
13559         * locale/weightwc.h (findidx): Likewise.
13560         * posix/fnmatch_loop.c (FCT): Adjust caller.
13561         * posix/regcomp.c (build_equiv_class): Likewise.
13562         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13563         * posix/regexec.c (check_node_accept_bytes): Likewise.
13564         * string/strcoll_l.c (STRCOLL): Likewise.
13565         * string/strxfrm_l.c (STRXFRM): Likewise.
13566
13567 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13568
13569         * Makefile.in: Remove CVSOPT handling.
13570         * configure.in: Remove use of AC_REVISION.
13571         * iconvdata/Makefile (distribute): No need to filter out CVS.
13572         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13573         handling.
13574
13575 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13576
13577         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13578         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13579         [USE_AS_STRNCASECMP_L]: Likewise.
13580         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13581         NO_TLS_DIRECT_SEG_REFS.
13582         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13583         Fix argument offsets for non-PIC.
13584         [USE_AS_STRNCASECMP_L]: Likewise.
13585         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13586         NO_TLS_DIRECT_SEG_REFS.
13587
13588 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13589
13590         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13591         O_CLOEXEC.
13592         * locale/loadlocale.c (_nl_load_locale): Likewise.
13593
13594 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13595
13596         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13597         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13598         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13599         (SYSCALL_GETTIME): Set errno on error.
13600
13601         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13602         count references to noai6ai_cached.
13603
13604 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13605
13606         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13607
13608         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13609         FD_CLOEXEC for /proc/self/maps.
13610
13611         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13612         FD_CLOEXEC for /proc/meminfo.
13613
13614         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13615         gai.conf.
13616
13617         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13618         FD_CLOEXEC for given file.
13619
13620         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13621
13622         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13623         FD_CLOEXEC for /etc/hosts.
13624         (_gethtent): Likewise.
13625
13626         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13627
13628         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13629         cancellation and set FD_CLOEXEC for /etc/netgroup.
13630
13631         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13632         reading /etc/publickey.
13633
13634         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13635         allow cancellation when reading /etc/group.
13636
13637         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13638         cancellation.
13639         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13640
13641         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13642         when using data file.
13643
13644         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13645
13646         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13647         (write_nis_obj): Use "c" and "e" in fopen.
13648
13649         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13650
13651         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13652
13653         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13654
13655         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13656
13657         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13658         locale.alias.
13659
13660         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13661
13662         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13663
13664         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13665
13666         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13667         file parsing and set FD_CLOEXEC.
13668
13669 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13670
13671         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13672
13673 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13674
13675         * malloc/arena.c (arena_get2): Don't call reused_arena when
13676         _int_new_arena failed.
13677
13678 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13679
13680         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13681         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13682         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13683         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13684         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13685         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13686         to compile strcasecmp and strncasecmp.
13687         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13688         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13689
13690         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13691
13692 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13693
13694         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13695         locale-defines.sym to gen-as-const-headers.
13696         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13697         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13698         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13699         to compile strcasecmp and strncasecmp.
13700         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13701         strcasecmp_l and strncasecmp_l.
13702         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13703         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13704         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13705         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13706         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13707         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13708         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13709         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13710         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13711         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13712         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13713
13714 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13715
13716         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13717         result of SYSDEP_GETTIME_CPU to retval.
13718         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13719         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13720
13721         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13722         variable.
13723
13724         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13725         mantissa words.
13726         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13727
13728         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13729         from unused variable.
13730
13731         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13732         DWARF definitions.
13733         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13734         for assembling.
13735
13736         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13737         over namespaces.
13738
13739         * sunrpc/rpc_prot.c (rejected): Fix case value.
13740
13741         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13742         unsigned long long int to avoid warnings in shift.
13743
13744         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13745         of use of trans.
13746         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13747         variable tmp.
13748
13749         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13750         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13751         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13752
13753         * nis/nis_table.c (nis_list): Use variable of correct type for
13754         result of __follow_path call.
13755
13756 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13757
13758         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13759         of math functions ceil, trunc, floor, round, and sqrt, when
13760         avaliable on the platform.
13761         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13762         name clash.
13763         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13764         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13765         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13766
13767 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13768
13769         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13770         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13771
13772 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13773
13774         * include/unistd.h: Fix __readlink return type.
13775         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13776
13777 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13778
13779         * stdlib/ucontext.h: Undo last change for makecontext.
13780
13781 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13782
13783         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13784
13785         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13786         * setjmp/setjmp.h: Mark functions as non-leaf.
13787         * setjmp/bits/setjmp2.h: Likewise.
13788         * stdlib/ucontext.h: Likewise.
13789
13790 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13791
13792         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13793         (reused_arena): Don't check arena limit.
13794         (arena_get2): Atomically check arena limit.
13795
13796 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13797
13798         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13799         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13800
13801         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13802         instructions.
13803
13804 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13805
13806         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13807         handler when locking.
13808
13809         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13810         Fix size of allocated buffer.
13811
13812 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13813
13814         [BZ #10103]
13815         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13816         declarations for long double functions.
13817         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13818
13819         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13820
13821 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13822
13823         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13824         installed.
13825
13826         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13827         is disabled.
13828
13829 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13830
13831         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13832
13833 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13834
13835         * include/alloca.h (stackinfo_alloca_round): Define.
13836         (extend_alloca): Use it.
13837         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13838         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13839         here.
13840
13841         * scripts/check-local-headers.sh: Ignore libaudit.h.
13842
13843         * nscd/Makefile (extra-objs): Make recursively expanded.
13844
13845 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13846
13847         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13848         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13849
13850         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13851         * posix/tst-rfc3484-2.c: Likewise.
13852         * posix/tst-rfc3484-3.c: Likewise.
13853
13854         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13855         process_vm_writev.
13856         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13857         process_vm_writev.
13858         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13859         process_vm_writev from libc using GLIBC_2.15 version.
13860
13861         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13862
13863 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13864
13865         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13866         stack usage.
13867
13868 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13869
13870         [BZ #13367]
13871         * nss/getent.c (initgroups_keys): Show error message in case no group
13872         names are given.
13873
13874         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13875         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13876         __bump_nl_timestamp.
13877         * nscd/connections (nscd_init): When host database is served open
13878         netlink socket and request notification about configuration changes.
13879         (main_loop_poll): Track netlink file descriptor and bump timestamp
13880         in case data becomes available.
13881         (main_loop_epoll): Likewise.
13882         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13883         (database_pers_head): Add extra_data fileds.
13884         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13885         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13886         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13887         Adjust caller.
13888         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13889         in6ai data, call __free_in6ai.
13890         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13891         Add -DHAVE_NETLINK.
13892         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13893         interface information.  Reuse previous data if netlink timestamp
13894         is not changed.
13895         (__bump_nl_timestamp): New function.
13896         (__free_in6ai): New function.
13897
13898 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13899
13900         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13901         close_not_cancel_no_status here.
13902         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13903
13904 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13905
13906         [BZ #13276]
13907         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13908         return value.
13909
13910         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13911         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13912         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13913
13914 2011-07-03  Andreas Jaeger  <aj@suse.de>
13915
13916         [BZ #10709]
13917         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13918         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13919         * math/libm-test.inc (sin_test): Add test case.
13920
13921 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13922
13923         [BZ #13337]
13924         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13925         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13926
13927         * elf/chroot_canon.c (chroot_canon): Cleanups.
13928
13929         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13930
13931         [BZ #13335]
13932         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13933         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13934
13935         * string/test-strchr.c: Make usable for strchrnul testing.
13936         * string/test-strchrnul.c: New file.
13937         * string/Makefile (strop-tests): Add strchrnul.
13938
13939         * po/it.po: Update from translation team.
13940         * po/es.po: Likewise.
13941
13942 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13943
13944         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13945         the three constants needed as parameters.  Drop the others.
13946         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13947         __m128i_strloadu_tolower.
13948         Create and initialize variable zero and use it in all the places
13949         where _mm_setzero_si128 was used.
13950
13951         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13952         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13953         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13954         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13955         anymore.
13956         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13957         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13958         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13959         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13960         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13961         __mpranred, __mptan.
13962         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13963         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13964         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13965         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13966         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13967         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13968         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13969         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13970         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13971
13972 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13973
13974         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13975         redefine if SHARED.
13976         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13977
13978         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13979         wide char related routines to wcsmbs subdir.
13980
13981 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13982
13983         [BZ #13344]
13984         * misc/sys/cdefs.h (__THROWNL): Define.
13985         * posix/unistd.h: Use __THREADNL instead of __THREAD
13986         for memory synchronization functions.
13987
13988 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13989
13990         [BZ #13349]
13991         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13992         doesn't exist.
13993         * manual/stdio.texi (Obstack Streams): Node removed.
13994
13995 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13996
13997         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13998         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13999         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14000
14001         * math/math_private.h (math_force_eval): Allow non-addressable
14002         arguments.
14003         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14004
14005 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14006
14007         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14008         file is not needed.
14009
14010         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14011         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14012         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14013         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14014         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14015         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14016         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14017         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14018         Add AVX variants.
14019         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14020         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14021         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14022         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14023         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14024         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14025         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14026         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14027         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14028         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14029         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14030         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14031         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14032         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14033         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14034         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14035         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14036         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14037         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14038
14039         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14040         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14041
14042         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14043         place.  Use VEX encoding when compiling for AVX.
14044
14045 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14046
14047         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14048         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14049
14050         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14051
14052 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14053
14054         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14055         useless if() expression.
14056         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14057         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14058         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14059         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14060         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14061         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14062         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14063         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14064         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14065         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14066         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14067         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14068         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14069         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14070         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14071         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14072         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14073         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14074         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14075
14076         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14077
14078 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14079
14080         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14081         condition.
14082         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14083
14084 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14085
14086         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14087         .text section.  Avoid duplicate constants.
14088         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14089         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14090         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14091         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14092         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14093         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14094         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14095         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14096         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14097         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14098         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14099         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14100         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14101         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14102         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14103         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14104         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14105         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14106         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14107         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14108         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14109         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14110         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14111         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14112         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14113         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14114         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14115         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14116         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14117         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14118         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14119         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14120         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14121         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14122         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14123         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14124         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14125         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14126         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14127         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14128         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14129         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14130         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14131         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14132         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14133
14134 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14135
14136         * sysdeps/x86_64/dla.h: Move to ...
14137         * sysdeps/x86_64/fpu/dla.h: ...here.
14138         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14139         situations.  Use __builtin_fma only for gcc 4.6 and up.
14140
14141         * config.make.in: Add have-mfma4 entry.
14142         * configure.in: Substitute libc_cv_cc_fma4.
14143         * math/Makefile (dbl-only-routines): Add sincostab.
14144         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14145         Use __sincostab not sincos.
14146         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14147         name is a macro.
14148         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14149         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14150         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14151         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14152         using __copysign.
14153         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14154         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14155         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14156         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14157         and __inv.
14158         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14159         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14160         __copysign.
14161         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14162         define aliases when function name is a macro.
14163         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14164         sysdeps/ieee754/dbl-64/sincos.tbl.
14165         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14166         fma4-enabled routines.
14167         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14168         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14169         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14170         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14171         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14172         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14173         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14174         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14175         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14176         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14177         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14178         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14179         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14180         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14181         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14182         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14183         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14184         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14185         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14186         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14187         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14188         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14189         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14190         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14191         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14192         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14193         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14194         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14195         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14196         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14197
14198         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14199         rename.
14200         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14201         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14202         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14203         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14204         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14205         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14206         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14207         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14208
14209 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14210
14211         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14212
14213 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14214
14215         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14216
14217         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14218         prediction.
14219         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14220
14221         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14222         Remove unused variable magic_bits.
14223         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14224
14225         * string/strnlen.c: Define and use STRNLEN macro.
14226         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14227         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14228         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14229         * wcsmbs/wcslen.c: Define and use WCSLEN.
14230         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14231         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14232         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14233         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14234         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14235         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14236         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14237
14238 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14239
14240         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14241         strnlen-sse2-no-bsf.
14242         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14243         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14244         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14245         Add strnlen support.
14246         (USE_AS_STRNLEN): New macro.
14247         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14248         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14249         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14250         * sysdeps/x86_64/wcslen.S: New file.
14251
14252 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14253
14254         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14255         XMM-moves are used for copying on small sizes.
14256
14257 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14258
14259         * wcsmbs/Makefile (strop-tests): Add wcschr.
14260         * wcsmbs/test-wcschr.c: New file.
14261         * string/test-strchr.c: Update.
14262         Add wcschr support.
14263         (WIDE): New macro.
14264
14265 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14266
14267         * wcsmbs/Makefile (strop-tests): Add wcslen.
14268         * wcsmbs/test-wcslen.c: New file.
14269         * string/test-strlen.c: Update.
14270         Add wcslen support.
14271         (WIDE): New macro.
14272
14273 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14274
14275         * po/it.po: Update from translation team.
14276
14277 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14278
14279         * sysdeps/x86_64/wcscmp.S: Update.
14280         Fix wrong comparison semantics.
14281         wcscmp shall use signed comparison not unsigned.
14282         Don't use substraction to avoid overflow bug.
14283         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14284         * wcsmbc/wcscmp.c: Likewise.
14285         * string/test-strcmp.c: Likewise.
14286         Add new tests to check cases with negative values.
14287
14288 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14289
14290         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14291         * sysdeps/x86_64/dla.h: ...here.  New file.
14292         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14293         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14294         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14295         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14296         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14297         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14298         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14299         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14300         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14301
14302 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14303
14304         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14305         __ynl_finite aliases.
14306
14307 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14308
14309         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14310
14311         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14312         define DLA_FMA.
14313         [DLA_FMA] (EMULV): Use DLA_FMA.
14314         [DLA_FMA] (MUL12): Use EMULV.
14315         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14316         that are not needed.
14317         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14318         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14319         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14320         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14321         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14322         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14323         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14324
14325 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14326
14327         * math/s_nan.c: Undef __nan.
14328         * math/s_nanf.c: Undef __nanf.
14329         * math/s_nanl.c: Undef __nanl.
14330         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14331         "math_private.h".
14332
14333 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14334
14335         * math/s_catan.c: Add branch predictions.
14336         * math/s_catanf.c: Likewise.
14337         * math/s_catanh.c: Likewise.
14338         * math/s_catanhf.c: Likewise.
14339         * math/s_catanhl.c: Likewise.
14340         * math/s_catanl.c: Likewise.
14341         * math/s_cexp.c: Likewise.
14342         * math/s_cexpf.c: Likewise.
14343         * math/s_cexpl.c: Likewise.
14344         * math/s_clog.c: Likewise.
14345         * math/s_clog10.c: Likewise.
14346         * math/s_clog10f.c: Likewise.
14347         * math/s_clog10l.c: Likewise.
14348         * math/s_clogf.c: Likewise.
14349         * math/s_clogl.c: Likewise.
14350         * math/s_csqrt.c: Likewise.
14351         * math/s_csqrtf.c: Likewise.
14352         * math/s_csqrtl.c: Likewise.
14353         * math/s_ctanf.c: Likewise.
14354         * math/s_ctanh.c: Likewise.
14355         * math/s_ctanhf.c: Likewise.
14356         * math/s_ctanhl.c: Likewise.
14357         * math/s_ctanl.c: Likewise.
14358
14359         * math/math_private.h: Define __nan, __nanf, __nanl.
14360         * math/s_cacosh.c: Include <math_private.h>.
14361         * math/s_cacoshl.c: Likewise.
14362         * math/s_casinh.c: Likewise.
14363         * math/s_casinhf.c: Likewise.
14364         * math/s_casinhl.c: Likewise.
14365         * math/s_ccos.c: Rely entire on ccosh.
14366         * math/s_ccosf.c: Rely entire on ccoshf.
14367         * math/s_ccosl.c: Rely entirely on ccoshl.
14368         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14369         Remove tests for FE_INVALID.
14370         * math/s_ccoshf.c: Likewise.
14371         * math/s_ccoshl.c: Likewise.
14372         * math/s_csin.c: Likewise.
14373         * math/s_csinf.c: Likewise.
14374         * math/s_csinh.c Likewise.
14375         * math/s_csinhf.c: Likewise.
14376         * math/s_csinhl.c: Likewise.
14377         * math/s_csinl.c: Likewise.
14378         * math/s_ctan.c: Likewise.
14379         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14380         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14381         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14382
14383 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14384
14385         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14386         compilation problems.
14387
14388         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14389         __builtin_expect.
14390
14391 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14392
14393         * sysdeps/i386/configure.in: Test for -mfma4 option.
14394         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14395         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14396         COMMON_CPUID_INDEX_80000001.
14397         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14398         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14399         use it if FMA3 is not supported.
14400         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14401
14402         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14403         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14404
14405 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14406
14407         [BZ #12892]
14408         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14409         it would create a cycle with a link time dependency.
14410
14411 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14412
14413         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14414         instruction.
14415         * string/Makefile (strop-tests): Add rawmemchr.
14416         * string/test-rawmemchr.c: New file.
14417
14418         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14419         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14420         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14421         when compiling str{,n}casecmp and when AVX is available.  Hook up
14422         new optimized code in initializers.
14423
14424 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14425
14426         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14427         __feraiseexcept instead of feraiseexcept.
14428
14429 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14430
14431         * math/math_private.h: Define defaults for libc_fetestexcept and
14432         libc_feupdateenv.
14433         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14434         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14435         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14436         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14437         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14438         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14439         libc_fetestexcept and libc_feupdateenv.
14440
14441         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14442         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14443         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14444         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14445         libc_feholdexcept_setround.
14446
14447         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14448         Add s_nearbyint-c and s_nearbyintf-c.
14449         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14450         nearbyintf inlines.
14451         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14452         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14453         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14454         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14455
14456         * math/math_private.h: Define defaults for libc_fegetround,
14457         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14458         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14459         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14460         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14461         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14462         standard functions.
14463         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14464         Remove comments and hacks for old compiler versions.
14465         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14466         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14467         libc_feholdexceptl.
14468
14469 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14470
14471         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14472         (__feraiseexcept_renamed): Add __NTH.
14473         (feraiseexcept): Add __NTH.  Rename local variables to fix
14474         namespace violations.
14475
14476 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14477
14478         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14479
14480         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14481
14482         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14483         recently added interfaces.
14484         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14485
14486         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14487         about macro parameter expansion.
14488
14489         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14490         __NO_MATH_INLINES is defined.  Cleanups.
14491
14492         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14493         and __floorf is target has SSE4.1.
14494         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14495         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14496         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14497         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14498
14499         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14500         name.
14501         (floorf): Likewise.
14502
14503         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14504
14505 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14506
14507         * misc/sys/cdefs.h: Fix last change.
14508
14509         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14510         database lookup.
14511
14512 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14513
14514         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14515
14516         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14517         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14518         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14519         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14520         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14521         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14522         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14523         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14524         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14525         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14526         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14527         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14528         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14529         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14530         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14531         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14532         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14533         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14534         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14535         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14536         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14537         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14538
14539         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14540         ceil, ceilf, floor, floorf.
14541
14542         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14543         Perform IRELATIVE relocations last.
14544
14545         * elf/do-rel.h: Add another parameter nrelative, replacing the
14546         local variable with the same name.  Change name of the function
14547         to end in Rel or Rela (uppercase).
14548         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14549         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14550         elf_dynamic_do_##reloc function.
14551
14552 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14553
14554         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14555         is sufficient, at least on modern CPUs.
14556
14557         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14558
14559         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14560         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14561
14562         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14563         __expl_finite.
14564         * math/bits/math-finite.h: Add entries for exp.
14565         * math/e_expl.c: Add __*_finite alias.
14566         * sysdeps/i386/fpu/e_exp.S: Likewise.
14567         * sysdeps/i386/fpu/e_expf.S: Likewise.
14568         * sysdeps/i386/fpu/e_expl.c: Likewise.
14569         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14570         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14571         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14572         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14573         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14574         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14575         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14576
14577         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14578         is sufficient, at least on modern CPUs.
14579
14580         * ctype/ctype-info.c (__ctype_init): Define.
14581         * include/ctype.h (__ctype_init): Declare.
14582         (__ctype_b_loc): The variable is always initialized.
14583         (__ctype_toupper_loc): Likewise.
14584         (__ctype_tolower_loc): Likewise.
14585         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14586         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14587
14588 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14589
14590         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14591
14592         * configure.in: Also look in $cxxmachine/include for C++ system
14593         headers.
14594
14595 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14596
14597         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14598         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14599         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14600         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14601         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14602         (USE_AS_WMEMCMP): New macro.
14603         Fixing indents.
14604         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14605         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14606         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14607         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14608         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14609         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14610         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14611         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14612         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14613         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14614         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14615         (USE_AS_WMEMCMP): New macro.
14616         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14617         * sysdeps/string/test-memcmp.c: Update.
14618         Fix simple_wmemcmp.
14619         Add new tests.
14620         * wcsmbs/wmemcmp.c: Update.
14621         (WMEMCMP): New macro.
14622         Fix overflow bug.
14623
14624 2011-10-12  Andreas Jaeger  <aj@suse.de>
14625
14626         [BZ #13268]
14627         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14628
14629 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14630
14631         * libio/iofwide.c (do_length): Avoid warning.
14632
14633         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14634
14635 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14636
14637         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14638
14639         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14640         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14641         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14642         * sysdeps/i386/i686/fpu/e_log.S: New file.
14643         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14644         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14645
14646         * ctype/ctype.h: Add support for inlined isXXX functions when
14647         compiling C++ code.
14648
14649 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14650
14651         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14652
14653         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14654
14655 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14656
14657         [BZ #13291]
14658         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14659
14660 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14661
14662         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14663         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14664         feraiseexcept.
14665
14666         * sysdeps/x86_64/memrchr.S: Check for zero size.
14667
14668         * string/stratcliff.c: Add memrchr tests.
14669
14670 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14671
14672         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14673         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14674         rawmemchr-sse2 rawmemchr-sse2-bsf.
14675         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14676         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14677         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14678         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14679         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14680         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14681         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14682         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14683         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14684         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14685         * string/memrchr.c (MEMRCHR): New macro.
14686
14687 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14688
14689         Add integration with gcc's -ffinite-math-only and optimize wrapper
14690         functions in libm.
14691         * Versions.def: Define GLIBC_2.15 version for libm.
14692         * math/Makefile (headers): Add bits/math-finite.h.
14693         * math/bits/math-finite.h: New file.
14694         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14695         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14696         * math/e_acoshl.c: Add __*_finite alias.
14697         * math/e_acosl.c: Likewise.
14698         * math/e_asinl.c: Likewise.
14699         * math/e_atan2l.c: Likewise.
14700         * math/e_atanhl.c: Likewise.
14701         * math/e_coshl.c: Likewise.
14702         * math/e_exp10.c: Likewise.
14703         * math/e_exp10f.c: Likewise.
14704         * math/e_exp10l.c: Likewise.
14705         * math/e_exp2l.c: Likewise.
14706         * math/e_fmodl.c: Likewise.
14707         * math/e_gammal_r.c: Likewise.
14708         * math/e_hypotl.c: Likewise.
14709         * math/e_j0l.c: Likewise.
14710         * math/e_j1l.c: Likewise.
14711         * math/e_jnl.c: Likewise.
14712         * math/e_lgammal_r.c: Likewise.
14713         * math/e_log10l.c: Likewise.
14714         * math/e_log2l.c: Likewise.
14715         * math/e_logl.c: Likewise.
14716         * math/e_powl.c: Likewise.
14717         * math/e_sinhl.c: Likewise.
14718         * math/e_sqrtl.c: Likewise.
14719         * math/e_scalb.c: Completely rewritten and optimized.
14720         * math/e_scalbf.c: Likewise.
14721         * math/e_scalbl.c: Likewise.
14722         * math/w_acos.c: Likewise.
14723         * math/w_acosf.c: Likewise.
14724         * math/w_acosl.c: Likewise.
14725         * math/w_acosh.c: Likewise.
14726         * math/w_acoshf.c: Likewise.
14727         * math/w_acoshl.c: Likewise.
14728         * math/w_asin.c: Likewise.
14729         * math/w_asinf.c: Likewise.
14730         * math/w_asinl.c: Likewise.
14731         * math/w_atan2.c: Likewise.
14732         * math/w_atan2f.c: Likewise.
14733         * math/w_atan2l.c: Likewise.
14734         * math/w_atanh.c: Likewise.
14735         * math/w_atanhf.c: Likewise.
14736         * math/w_atanhl.c: Likewise.
14737         * math/w_exp10.c: Likewise.
14738         * math/w_exp10f.c: Likewise.
14739         * math/w_exp10l.c: Likewise.
14740         * math/w_fmod.c: Likewise.
14741         * math/w_fmodf.c: Likewise.
14742         * math/w_fmodl.c: Likewise.
14743         * math/w_j0.c: Likewise.
14744         * math/w_j0f.c: Likewise.
14745         * math/w_j0l.c: Likewise.
14746         * math/w_j1.c: Likewise.
14747         * math/w_j1f.c: Likewise.
14748         * math/w_j1l.c: Likewise.
14749         * math/w_jn.c: Likewise.
14750         * math/w_jnf.c: Likewise.
14751         * math/w_log.c: Likewise.
14752         * math/w_logf.c: Likewise.
14753         * math/w_logl.c: Likewise.
14754         * math/w_log10.c: Likewise.
14755         * math/w_log10f.c: Likewise.
14756         * math/w_log10l.c: Likewise.
14757         * math/w_log2.c: Likewise.
14758         * math/w_log2f.c: Likewise.
14759         * math/w_log2l.c: Likewise.
14760         * math/w_pow.c: Likewise.
14761         * math/w_powf.c: Likewise.
14762         * math/w_powl.c: Likewise.
14763         * math/w_remainder.c: Likewise.
14764         * math/w_remainderf.c: Likewise.
14765         * math/w_remainderl.c: Likewise.
14766         * math/w_scalb.c: Likewise.
14767         * math/w_scalbf.c: Likewise.
14768         * math/w_scalbl.c: Likewise.
14769         * math/w_sqrt.c: Likewise.
14770         * math/w_sqrtf.c: Likewise.
14771         * math/w_sqrtl.c: Likewise.
14772         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14773         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14774         used.
14775         * math/math_private.h: Declare __kernel_standard_f.
14776         * math/w_cosh.c: Remove cruft and optimize a bit.
14777         * math/w_coshf.c: Likewise.
14778         * math/w_coshl.c: Likewise.
14779         * math/w_exp2.c: Likewise.
14780         * math/w_exp2f.c: Likewise.
14781         * math/w_exp2l.c: Likewise.
14782         * math/w_hypot.c: Likewise.
14783         * math/w_hypotf.c: Likewise.
14784         * math/w_hypotl.c: Likewise.
14785         * math/w_lgamma.c: Likewise.
14786         * math/w_lgamma_r.c: Likewise.
14787         * math/w_lgammaf.c: Likewise.
14788         * math/w_lgammaf_r.c: Likewise.
14789         * math/w_lgammal.c: Likewise.
14790         * math/w_lgammal_r.c: Likewise.
14791         * math/w_sinh.c: Likewise.
14792         * math/w_sinhf.c: Likewise.
14793         * math/w_sinhl.c: Likewise.
14794         * math/w_tgamma.c: Likewise.
14795         * math/w_tgammaf.c: Likewise.
14796         * math/w_tgammal.c: Likewise.
14797         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14798         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14799         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14800         Minor optimizations.  Pretty printing.  Remove cruft.
14801         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14802         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14803         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14804         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14805         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14806         * sysdeps/i386/fpu/e_asin.S: Likewise.
14807         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14808         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14809         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14810         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14811         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14812         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14813         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14814         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14815         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14816         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14817         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14818         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14819         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14820         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14821         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14822         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14823         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14824         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14825         * sysdeps/i386/fpu/e_log.S: Likewise.
14826         * sysdeps/i386/fpu/e_log10.S: Likewise.
14827         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14828         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14829         * sysdeps/i386/fpu/e_log2.S: Likewise.
14830         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14831         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14832         * sysdeps/i386/fpu/e_logf.S: Likewise.
14833         * sysdeps/i386/fpu/e_logl.S: Likewise.
14834         * sysdeps/i386/fpu/e_pow.S: Likewise.
14835         * sysdeps/i386/fpu/e_powf.S: Likewise.
14836         * sysdeps/i386/fpu/e_powl.S: Likewise.
14837         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14838         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14839         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14840         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14841         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14842         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14843         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14844         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14845         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14846         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14847         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14848         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14849         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14850         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14851         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14852         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14853         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14854         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14855         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14856         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14857         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14858         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14859         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14860         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14861         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14862         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14863         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14864         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14865         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14866         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14867         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14868         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14869         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14870         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14871         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14872         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14873         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14874         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14875         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14876         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14877         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14878         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14879         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14880         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14881         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14882         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14883         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14884         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14885         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14886         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14887         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14888         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14889         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14890         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14891         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14892         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14893         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14894         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14895         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14896         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14897         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14898         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14899         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14900         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14901         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14902         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14903         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14904         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14905         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14906         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14907         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14908         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14909         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14910         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14911         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14912         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14913         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14914         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14915         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14916         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14917         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14918         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14919         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14920         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14921         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14922         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14923         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14924         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14925         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14926         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14927         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14928         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14929         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14930         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14931         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14932         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14933         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14934         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14935         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14936         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14937         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14938         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14939         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14940         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14941         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14942         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14943         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14944         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14945         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14946         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14947         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14948         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14949         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14950         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14951         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14952         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14953         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14954         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14955         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14956         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14957         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14958         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14959         (__isnanf): Likewise.
14960         (__isinf_ns): Likewise.
14961         (__isinf_nsf): Likewise.
14962         (__finite): Likewise.
14963         (__finitef): Likewise.
14964         (__ieee754_sqrt): Define as macro.
14965         (__ieee754_sqrtf): Define as macro.
14966         (__ieee754_sqrtl): Define as macro.
14967         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14968         inlined copy.
14969         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14970         __FINITE_MATH_ONLY__ consistent.
14971         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14972
14973 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14974
14975         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14976         of rawmemchr.
14977
14978         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14979
14980 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14981
14982         * po/ja.po: Update from translation team.
14983
14984 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14985
14986         * locale/programs/locarchive.c (prepare_address_space): New function.
14987         (create_archive, enlarge_archive, open_archive): Use it.
14988
14989         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14990         inside [SHARED], where it is used.
14991
14992         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14993
14994         * nss/getent.c (netgroup_keys): Remove unused variable.
14995         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14996
14997 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14998
14999         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15000         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15001         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15002         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15003         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15004         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15005         * math/Makefile (libm-calls): Add s_isinf_ns.
15006         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15007         * math/multc3.c: Likewise.
15008         * math/s_casin.c: Likewise.
15009         * math/s_casinf.c: Likewise.
15010         * math/s_casinl.c: Likewise.
15011         * math/s_ccos.c: Likewise.
15012         * math/s_ccosf.c: Likewise.
15013         * math/s_ccosl.c: Likewise.
15014         * math/s_ctan.c: Likewise.
15015         * math/s_ctanf.c: Likewise.
15016         * math/s_ctanh.c: Likewise.
15017         * math/s_ctanhf.c: Likewise.
15018         * math/s_ctanhl.c: Likewise.
15019         * math/s_ctanl.c: Likewise.
15020         * math/w_fmod.c: Likewise.
15021         * math/w_fmodf.c: Likewise.
15022         * math/w_fmodl.c: Likewise.
15023         * math/w_remainder.c: Likewise.
15024         * math/w_remainderf.c: Likewise.
15025         * math/w_remainderl.c: Likewise.
15026         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15027         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15028         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15029         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15030         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15031         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15032         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15033         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15034
15035         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15036         of the number.
15037         * stdio-common/printf_fphex.c: Likewise.
15038         * stdio-common/printf_size.c: Likewise.
15039
15040         * math/e_exp10.c: Include math_private.h using <...> not "...".
15041         * math/e_exp10f.c: Likewise.
15042         * math/e_exp10l.c: Likewise.
15043         * math/e_exp2l.c: Likewise.
15044         * math/e_j0l.c: Likewise.
15045         * math/e_j1l.c: Likewise.
15046         * math/e_jnl.c: Likewise.
15047         * math/e_lgammal_r.c: Likewise.
15048         * math/e_rem_pio2l.c: Likewise.
15049         * math/e_scalb.c: Likewise.
15050         * math/e_scalbf.c: Likewise.
15051         * math/e_scalbl.c: Likewise.
15052         * math/k_cosl.c: Likewise.
15053         * math/k_sinl.c: Likewise.
15054         * math/k_tanl.c: Likewise.
15055         * math/s_cacoshf.c: Likewise.
15056         * math/s_catan.c: Likewise.
15057         * math/s_catanf.c: Likewise.
15058         * math/s_catanh.c: Likewise.
15059         * math/s_catanhf.c: Likewise.
15060         * math/s_catanhl.c: Likewise.
15061         * math/s_catanl.c: Likewise.
15062         * math/s_ccosh.c: Likewise.
15063         * math/s_ccoshf.c: Likewise.
15064         * math/s_ccoshl.c: Likewise.
15065         * math/s_cexp.c: Likewise.
15066         * math/s_cexpf.c: Likewise.
15067         * math/s_cexpl.c: Likewise.
15068         * math/s_clog.c: Likewise.
15069         * math/s_clog10.c: Likewise.
15070         * math/s_clog10f.c: Likewise.
15071         * math/s_clog10l.c: Likewise.
15072         * math/s_clogf.c: Likewise.
15073         * math/s_clogl.c: Likewise.
15074         * math/s_csin.c: Likewise.
15075         * math/s_csinf.c: Likewise.
15076         * math/s_csinh.c: Likewise.
15077         * math/s_csinhf.c: Likewise.
15078         * math/s_csinhl.c: Likewise.
15079         * math/s_csinl.c: Likewise.
15080         * math/s_csqrt.c: Likewise.
15081         * math/s_csqrtf.c: Likewise.
15082         * math/s_csqrtl.c: Likewise.
15083         * math/s_ctan.c: Likewise.
15084         * math/s_ctanf.c: Likewise.
15085         * math/s_ctanh.c: Likewise.
15086         * math/s_ctanhf.c: Likewise.
15087         * math/s_ctanhl.c: Likewise.
15088         * math/s_ctanl.c: Likewise.
15089         * math/s_ldexp.c: Likewise.
15090         * math/s_ldexpf.c: Likewise.
15091         * math/s_ldexpl.c: Likewise.
15092         * math/s_significand.c: Likewise.
15093         * math/s_significandf.c: Likewise.
15094         * math/s_significandl.c: Likewise.
15095         * math/w_acos.c: Likewise.
15096         * math/w_acosf.c: Likewise.
15097         * math/w_acosh.c: Likewise.
15098         * math/w_acoshf.c: Likewise.
15099         * math/w_acoshl.c: Likewise.
15100         * math/w_acosl.c: Likewise.
15101         * math/w_asin.c: Likewise.
15102         * math/w_asinf.c: Likewise.
15103         * math/w_asinl.c: Likewise.
15104         * math/w_atan2.c: Likewise.
15105         * math/w_atan2f.c: Likewise.
15106         * math/w_atan2l.c: Likewise.
15107         * math/w_atanh.c: Likewise.
15108         * math/w_atanhf.c: Likewise.
15109         * math/w_atanhl.c: Likewise.
15110         * math/w_cosh.c: Likewise.
15111         * math/w_coshf.c: Likewise.
15112         * math/w_coshl.c: Likewise.
15113         * math/w_dremf.c: Likewise.
15114         * math/w_exp10.c: Likewise.
15115         * math/w_exp10f.c: Likewise.
15116         * math/w_exp10l.c: Likewise.
15117         * math/w_exp2.c: Likewise.
15118         * math/w_exp2f.c: Likewise.
15119         * math/w_fmod.c: Likewise.
15120         * math/w_fmodf.c: Likewise.
15121         * math/w_fmodl.c: Likewise.
15122         * math/w_hypot.c: Likewise.
15123         * math/w_hypotf.c: Likewise.
15124         * math/w_hypotl.c: Likewise.
15125         * math/w_j0.c: Likewise.
15126         * math/w_j0f.c: Likewise.
15127         * math/w_j0l.c: Likewise.
15128         * math/w_j1.c: Likewise.
15129         * math/w_j1f.c: Likewise.
15130         * math/w_j1l.c: Likewise.
15131         * math/w_jn.c: Likewise.
15132         * math/w_jnf.c: Likewise.
15133         * math/w_jnl.c: Likewise.
15134         * math/w_lgamma.c: Likewise.
15135         * math/w_lgamma_r.c: Likewise.
15136         * math/w_lgammaf.c: Likewise.
15137         * math/w_lgammaf_r.c: Likewise.
15138         * math/w_lgammal.c: Likewise.
15139         * math/w_lgammal_r.c: Likewise.
15140         * math/w_log.c: Likewise.
15141         * math/w_log10.c: Likewise.
15142         * math/w_log10f.c: Likewise.
15143         * math/w_log10l.c: Likewise.
15144         * math/w_log2.c: Likewise.
15145         * math/w_log2f.c: Likewise.
15146         * math/w_log2l.c: Likewise.
15147         * math/w_logf.c: Likewise.
15148         * math/w_logl.c: Likewise.
15149         * math/w_pow.c: Likewise.
15150         * math/w_powf.c: Likewise.
15151         * math/w_powl.c: Likewise.
15152         * math/w_remainder.c: Likewise.
15153         * math/w_remainderf.c: Likewise.
15154         * math/w_remainderl.c: Likewise.
15155         * math/w_scalb.c: Likewise.
15156         * math/w_scalbf.c: Likewise.
15157         * math/w_scalbl.c: Likewise.
15158         * math/w_sinh.c: Likewise.
15159         * math/w_sinhf.c: Likewise.
15160         * math/w_sinhl.c: Likewise.
15161         * math/w_sqrt.c: Likewise.
15162         * math/w_sqrtf.c: Likewise.
15163         * math/w_sqrtl.c: Likewise.
15164         * math/w_tgamma.c: Likewise.
15165         * math/w_tgammaf.c: Likewise.
15166         * math/w_tgammal.c: Likewise.
15167
15168         * po/ja.po: Update from translation team.
15169
15170 2011-09-29  Andreas Jaeger  <aj@suse.de>
15171
15172         [BZ #13179]
15173         * sunrpc/netname.c (netname2host): Fix logic.
15174
15175         [BZ #6779]
15176         [BZ #6783]
15177         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15178         correctly.
15179         * math/w_remainder.c (__remainder): Likewise.
15180         * math/w_remainderf.c (__remainderf): Likewise.
15181         * math/libm-test.inc (remainder_test): Add test cases.
15182
15183 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15184
15185         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15186         sdiv_qrnnd.
15187
15188 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15189
15190         * string/test-memcmp.c: Avoid unncessary #defines.
15191         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15192
15193 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15194
15195         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15196         Use new sse2 version for core i3 - i7 as it's faster
15197         than sse42 version.
15198         (bit_Prefer_PMINUB_for_stringop): New.
15199         * sysdeps/x86_64/rawmemchr.S: Update.
15200         Replace with faster SSE2 version.
15201         * sysdeps/x86_64/memrchr.S: New file.
15202         * sysdeps/x86_64/memchr.S: Update.
15203         Replace with faster SSE2 version.
15204
15205 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15206
15207         * elf/dl-load.c (lose): Add cast to avoid warning.
15208
15209 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15210
15211         * po/ca.po: Update from translation team.
15212
15213         * inet/getnetgrent_r.c: Hook up nscd.
15214         * nscd/Makefile (routines): Add nscd_netgroup.
15215         (nscd-modules): Add netgroupcache.
15216         (CFLAGS-netgroupcache.c): Define.
15217         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15218         (cache_search): Add const to second parameter.
15219         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15220         INNETGR.
15221         (dbs): Add netgrdb entry.
15222         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15223         (verify_persistent_db): Handle netgrdb.
15224         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15225         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15226         GETFDNETGR.
15227         (netgroup_response_header): Define.
15228         (innetgroup_response_header): Define.
15229         (datahead): Add netgroup_response_header and innetgroup_response_header
15230         elements.
15231         * nscd/nscd.conf: Add entries for netgroup cache.
15232         * nscd/nscd.h (dbtype): Add netgrdb.
15233         (_PATH_NSCD_NETGROUP_DB): Define.
15234         (netgroup_iov_disabled): Declare.
15235         (xmalloc, xcalloc, xrealloc): Move declarations here.
15236         (cache_search): Adjust prototype.
15237         Add netgroup-related prototypes.
15238         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15239         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15240         (__nscd_innetgr): Declare.
15241         * nscd/selinux.c (perms): Use access_vector_t as element type and
15242         add netgroup-related initializers.
15243         * nscd/netgroupcache.c: New file.
15244         * nscd/nscd_netgroup.c: New file.
15245         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15246         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15247         For four parameters use innetgr.
15248         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15249         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15250         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15251         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15252
15253         * nscd/connections.c (register_traced_file): Don't register file
15254         for disabled databases.
15255
15256 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15257
15258         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15259
15260         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15261         from tree and freeing node.
15262
15263 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15264
15265         * nss/nsswitch.c (__nss_database_lookup): Handle
15266         nss_parse_service_list out of memory case.
15267
15268 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15269
15270         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15271         out of memory case.
15272
15273 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15274
15275         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15276         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15277         pass it down.
15278         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15279         elf_machine_rela, elf_machine_lazy_rel.
15280         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15281         (ELF_DYNAMIC_DO_REL): Likewise.
15282         (ELF_DYNAMIC_DO_RELA): Likewise.
15283         (ELF_DYNAMIC_RELOCATE): Likewise.
15284         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15285         to ELF_DYNAMIC_DO_REL.
15286         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15287         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15288         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15289         elf_machine_rela.
15290         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15291         skip_ifunc, don't call ifunc function if non-zero.
15292         (elf_machine_rela): Likewise.
15293         (elf_machine_lazy_rel): Likewise.
15294         (elf_machine_lazy_rela): Likewise.
15295         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15296         (elf_machine_lazy_rel): Likewise.
15297         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15298         Likewise.
15299         (elf_machine_lazy_rel): Likewise.
15300         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15301         Likewise.
15302         (elf_machine_lazy_rel): Likewise.
15303         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15304         (elf_machine_lazy_rel): Likewise.
15305         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15306         (elf_machine_lazy_rel): Likewise.
15307         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15308         (elf_machine_lazy_rel): Likewise.
15309         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15310         (elf_machine_lazy_rel): Likewise.
15311         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15312         (elf_machine_lazy_rel): Likewise.
15313         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15314         (elf_machine_lazy_rel): Likewise.
15315
15316 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15317
15318         * nss/nss_files/files-init.c (_nss_files_init): Use static
15319         initialization for all the *_traced_file variables.
15320
15321 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15322
15323         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15324
15325 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15326
15327         [BZ #13226]
15328         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15329
15330 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15331
15332         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15333         Reread the line before reparsing it.
15334
15335 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15336
15337         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15338
15339 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15340             Maxim Kuvyrkov  <maxim@codesourcery.com>
15341             Joseph Myers  <joseph@codesourcery.com>
15342
15343         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15344         if needed for __stack_chk_guard.
15345
15346 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15347
15348         * sysdeps/posix/spawni.c (script_execute): Always define it.
15349         It will be optimized away if unused.
15350         (maybe_script_execute): New function.
15351         (__spawni): Call it.
15352
15353         * Makerules: Don't include tls.make.
15354         (config-tls): Always set to thread.
15355         * tls.make.c: File removed.
15356
15357 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15358
15359         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15360         * config.make.in (CPPFLAGS-config): New substituted variable.
15361
15362 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15363
15364         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15365
15366         [BZ #13192]
15367         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15368         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15369
15370 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15371
15372         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15373         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15374         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15375         (CALL_FAIL): Likewise.
15376         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15377         (CALL_FAIL): Macro removed.
15378         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15379
15380 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15381
15382         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15383         for __FINITE_MATH_ONLY__ == 1.
15384
15385 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15386
15387         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15388         __ieee754_sqrt instead of sqrt.
15389         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15390         __ieee754_sqrtf instead of sqrtf.
15391         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15392         __floorf instead of floorf.
15393         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15394         __floorf, __truncf instead of floorf, truncf.
15395
15396 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15397
15398         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15399
15400         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15401         __extern_always_inline.
15402         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15403         32-bit.
15404
15405 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15406
15407         * elf/rtld.c (dl_main): Also relocate in dependency order when
15408         doing symbol dependency testing.
15409
15410 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15411
15412         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15413         Always define `refsym'.
15414
15415 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15416
15417         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15418         (__FD_ELT): Renamed from __FDELT.
15419         * misc/bits/select2.h (__FD_ELT): Likewise.
15420         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15421         __FD_MASK instead of __FDELT, __FDMASK.
15422         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15423         Likewise.
15424         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15425         Likewise.
15426
15427         * elf/Makefile (gen-ldd): Fix pattern.
15428
15429         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15430         (init_tls): Likewise.
15431
15432 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15433
15434         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15435
15436 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15437
15438         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15439         `struct cmsghdr *' instead of `void *'.
15440         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15441         Likewise.
15442
15443 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15444
15445         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15446         if non-absolute.
15447         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15448         ldd_rewrite_script.
15449
15450 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15451
15452         * configure.in: Remove --with-tls option.
15453         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15454         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15455         out in case it is missing.
15456         * sysdeps/ia64/elf/configure.in: Likewise.
15457         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15458         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15459         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15460         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15461         * sysdeps/sh/elf/configure.in: Likewise.
15462         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15463         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15464         * sysdeps/x86_64/elf/configure.in: Likewise.
15465         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15466         * sysdeps/mach/hurd/tls.h: Likewise.
15467
15468         [BZ #13067]
15469         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15470
15471         [BZ #13090]
15472         * configure.in: Fix use of AC_INIT.
15473
15474         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15475
15476 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15477
15478         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15479         __set_errno.
15480         * malloc/hooks.c: Likewise.
15481
15482         [BZ #11929]
15483         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15484         variables statically.
15485         (narenas): Initialize.
15486         (list_lock): Initialize.
15487         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15488         initializtion of main_arena and list_lock.  Small cleanups.
15489         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15490         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15491         Add initializers to main_arena and mp_.
15492         (malloc_state): Remove pagesize member.  Change all users to use
15493         GLRO(dl_pagesize).
15494
15495         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15496         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15497         is always initialized.
15498
15499         * malloc/malloc.c: Removed unused configurations and dead code.
15500         * malloc/arena.c: Likewise.
15501         * malloc/hooks.c: Likewise.
15502         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15503
15504         * include/tls.h: Removed.  USE___THREAD must always be defined.
15505         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15506         * elf/dl-libc.c: Likewise.
15507         * elf/dl-tsd.c: Likewise.
15508         * include/errno.h: Likewise.
15509         * include/netdb.h: Likewise.
15510         * include/resolv.h: Likewise.
15511         * inet/herrno-loc.c: Likewise.
15512         * inet/herrno.c: Likewise.
15513         * malloc/arena.c: Likewise.
15514         * malloc/hooks.c: Likewise.
15515         * malloc/malloc.c: Likewise.
15516         * resolv/res-state.c: Likewise.
15517         * resolv/res_libc.c: Likewise.
15518         * sysdeps/i386/dl-machine.h: Likewise.
15519         * sysdeps/ia64/dl-machine.h: Likewise.
15520         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15521         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15522         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15523         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15524         * sysdeps/sh/dl-machine.h: Likewise.
15525         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15526         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15527         * sysdeps/unix/i386/sysdep.S: Likewise.
15528         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15529         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15530         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15531         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15532         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15533         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15534         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15535         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15536         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15537         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15538         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15539         * sysdeps/x86_64/dl-machine.h: Likewise.
15540         * tls.make.c: Likewise.
15541
15542         * configure.in: Remove --with-__thread option.  Make tests for
15543         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15544         tls_model attribute fail if no support is available.  Remove
15545         USE_IN_LIBIO.
15546         * Makeconfig: Adjust for dropped configure option.  All features are
15547         now mandatory.
15548         * Makerules: Likewise.
15549         * Versions.def: Likewise.
15550         * argp/argp-fmtstream.c: Likewise.
15551         * argp/argp-fmtstream.h: Likewise.
15552         * argp/argp-help.c: Likewise.
15553         * assert/assert.c: Likewise.
15554         * config.h.in: Likewise.
15555         * config.make.in: Likewise.
15556         * configure: Likewise.
15557         * configure.in: Likewise.
15558         * csu/Versions: Likewise.
15559         * csu/init.c: Likewise.
15560         * elf/tst-audit2.c: Likewise.
15561         * elf/tst-tls10.c: Likewise.
15562         * elf/tst-tls10.h: Likewise.
15563         * elf/tst-tls11.c: Likewise.
15564         * elf/tst-tls12.c: Likewise.
15565         * elf/tst-tls14.c: Likewise.
15566         * elf/tst-tlsmod11.c: Likewise.
15567         * elf/tst-tlsmod12.c: Likewise.
15568         * elf/tst-tlsmod13.c: Likewise.
15569         * elf/tst-tlsmod13a.c: Likewise.
15570         * elf/tst-tlsmod14a.c: Likewise.
15571         * elf/tst-tlsmod15b.c: Likewise.
15572         * elf/tst-tlsmod16a.c: Likewise.
15573         * elf/tst-tlsmod16b.c: Likewise.
15574         * elf/tst-tlsmod7.c: Likewise.
15575         * elf/tst-tlsmod8.c: Likewise.
15576         * elf/tst-tlsmod9.c: Likewise.
15577         * gmon/gmon.c: Likewise.
15578         * grp/fgetgrent_r.c: Likewise.
15579         * grp/putgrent.c: Likewise.
15580         * hurd/fopenport.c: Likewise.
15581         * include/libc-symbols.h: Likewise.
15582         * include/tls.h: Likewise.
15583         * intl/gettextP.h: Likewise.
15584         * intl/loadinfo.h: Likewise.
15585         * locale/global-locale.c: Likewise.
15586         * locale/localeinfo.h: Likewise.
15587         * mach/devstream.c: Likewise.
15588         * malloc/arena.c: Likewise.
15589         * malloc/set-freeres.c: Likewise.
15590         * misc/err.c: Likewise.
15591         * misc/getttyent.c: Likewise.
15592         * misc/mntent_r.c: Likewise.
15593         * posix/getopt.c: Likewise.
15594         * posix/wordexp.c: Likewise.
15595         * pwd/fgetpwent_r.c: Likewise.
15596         * resolv/Versions: Likewise.
15597         * resolv/res_hconf.c: Likewise.
15598         * shadow/fgetspent_r.c: Likewise.
15599         * shadow/putspent.c: Likewise.
15600         * stdio-common/printf_fphex.c: Likewise.
15601         * stdio-common/tmpfile.c: Likewise.
15602         * stdlib/abort.c: Likewise.
15603         * stdlib/fmtmsg.c: Likewise.
15604         * sunrpc/auth_unix.c: Likewise.
15605         * sunrpc/clnt_perr.c: Likewise.
15606         * sunrpc/clnt_tcp.c: Likewise.
15607         * sunrpc/clnt_udp.c: Likewise.
15608         * sunrpc/clnt_unix.c: Likewise.
15609         * sunrpc/openchild.c: Likewise.
15610         * sunrpc/svc_simple.c: Likewise.
15611         * sunrpc/svc_tcp.c: Likewise.
15612         * sunrpc/svc_udp.c: Likewise.
15613         * sunrpc/svc_unix.c: Likewise.
15614         * sunrpc/xdr.c: Likewise.
15615         * sunrpc/xdr_array.c: Likewise.
15616         * sunrpc/xdr_rec.c: Likewise.
15617         * sunrpc/xdr_ref.c: Likewise.
15618         * sunrpc/xdr_stdio.c: Likewise.
15619
15620 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15621
15622         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15623
15624 2011-07-03  Andreas Jaeger  <aj@suse.de>
15625
15626         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15627         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15628         regenerate with gen-libm-tests.pl.
15629
15630 2010-05-12  Petr Baudis  <pasky@suse.cz>
15631
15632         [BZ #11589]
15633         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15634         around j0() zero points by switching to j1().
15635         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15636         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15637         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15638         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15639
15640 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15641
15642         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15643         instead of 0.
15644         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15645         instead of 0.                              .
15646         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15647         Patch in part by Pavel Roskin <proski@gnu.org>.
15648
15649         [BZ #13138]
15650         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15651         realloc.
15652         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15653         Free memory block if necessary.
15654
15655         [BZ #12847]
15656         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15657         be NULL.  Don't lock in this case.
15658
15659 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15660
15661         * elf/elf.h (ELFOSABI_GNU): New macro.
15662         (ELFOSABI_LINUX): Define to that.
15663
15664 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15665
15666         * string/strncat.c (strncat): Undef the symbol in case it has been
15667         defined in bits/string.h.
15668
15669 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15670
15671         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15672
15673         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15674         link map.
15675
15676 2011-08-17  Andreas Jaeger  <aj@suse.de>
15677
15678         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15679
15680 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15681             Ian Lance Taylor  <iant@google.com>
15682
15683         * math/libm-test.inc (lround_test): New testcase.
15684         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15685
15686 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15687
15688         * Makefile: Remove support for automatic cvs check-ins.
15689         * Makerules: Likewise.
15690         * config.make.in: Likewise.
15691         * configure.in: Likewise.
15692         * intl/Makefile: Likewise.
15693         * locale/Makefile: Likewise.
15694         * po/Makefile: Likewise.
15695         * posix/Makefile: Likewise.
15696         * sysdeps/gnu/Makefile: Likewise.
15697         * sysdeps/mach/hurd/Makefile: Likewise.
15698         * sysdeps/sparc/sparc32/Makefile: Likewise.
15699
15700         [BZ #13118]
15701         * posix/Makefile (bug-regex32-ENV): Define.
15702         Patch by John Stanley <jpsinthemix@verizon.net>.
15703
15704         * misc/Makefile (headers): Add bits/select2.h.
15705         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15706         * misc/bits/select2.h: New file.
15707         * include/bits/select2.h: New file.
15708         * debug/Makefile (routines): Add fdelt_chk.
15709         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15710         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15711         FD_ISSET.
15712         * debug/fdelt_chk.c: New file.
15713
15714         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15715         * wcsmbs/test-wmemcmp.c: Likewise.
15716         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15717         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15718
15719 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15720
15721         * string/Makefile (strop-tests): Add memcmp.
15722         * string/test-wmemcmp.c: New file.
15723         * string/test-memcmp.c: Add wmemcmp support.
15724
15725 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15726
15727         [BZ #13153]
15728         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15729         2011-07-19 change.
15730
15731         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15732         garbage value in a __mach_port_mod_refs call in the cases of the
15733         task-self and thread-self ports.
15734
15735 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15736
15737         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15738
15739 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15740
15741         * elf/dl-load.c (lose): Check for non-null L.
15742
15743 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15744
15745         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15746
15747         * elf/dl-libc.c (dlerror_run): Pass back error code from
15748         dl_catch_error.
15749
15750         [BZ #13123]
15751         * elf/dl-load.c (lose): Free l_origin if it is valid.
15752
15753         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15754         names.
15755         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15756         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15757         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15758         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15759         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15760         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15761
15762 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15763
15764         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15765         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15766         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15767         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15768         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15769         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15770         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15771         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15772         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15773         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15774
15775 2011-08-15  Alan Modra  <amodra@gmail.com>
15776
15777         [BZ #13092]
15778         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15779         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15780         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15781         ppc_mcount to static-only-routines.
15782         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15783         __mcount_internal.
15784         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15785         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15786
15787 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15788
15789         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15790         for finite and infinity parameters.
15791
15792 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15793
15794         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15795         and add nop instructions for throughput optimization.
15796         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15797
15798 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15799
15800         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15801         aligned copy for power7 with vector-scalar instructions.
15802         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15803
15804 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15805
15806         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15807         AVX check.
15808
15809 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15810
15811         [BZ #13144]
15812         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15813         last change.
15814
15815 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15816
15817         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15818         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15819         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15820         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15821         clock_gettime.
15822
15823 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15824
15825         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15826         Forgot to demangle the pointer.
15827
15828         * sysdeps/i386/sysdep.h: Define atom_text_section.
15829         * sysdeps/x86_64/sysdep.h: Likewise.
15830         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15831         section with atom_text_section.
15832         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15833         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15834         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15835         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15836         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15837
15838         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15839         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15840         already be defined.  Change to take two parameters and don't assign
15841         result to variable.  Adjust all users.
15842         Define INTERNAL_GETTIME if not already defined.
15843         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15844         call.
15845         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15846         HAVE_CLOCK_GETTIME_VSYSCALL.
15847         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15848
15849         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15850         gettimeofday vsyscall, just use time.
15851
15852 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15853
15854         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15855         <errno.h>.
15856
15857 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15858
15859         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15860         syscall on x86-64.
15861         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15862         syscall.
15863         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15864         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15865         syscall if possible.
15866
15867 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15868
15869         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15870         e_ident.  Don't pass to find_mapsXX.
15871         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15872
15873 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15874
15875         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15876         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15877         * sysdeps/x86_64/multiarch/strchr.S: Update.
15878         Check bit_slow_BSF bit.
15879         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15880         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15881         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15882
15883 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15884
15885         [BZ #13134]
15886         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15887         before glibc 2.15.
15888         (tryshell): Define.
15889         (__spawni): Change last parameter to be flag.  Test
15890         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15891         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15892         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15893         * posix/spawni.c: Likewise.
15894         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15895         * posix/spawnp.c: Likewise.  Change normal version to use
15896         SPAWN_XFLAGS_USE_PATH.
15897         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15898         SPAWN_XFLAGS_TRY_SHELL.
15899
15900         [BZ #13150]
15901         * posix/glob.h: Remove gcc 1.x support.
15902
15903         [BZ #13068]
15904         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15905
15906 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15907
15908         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15909         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15910         strrchr-sse2-bsf
15911         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15912         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15913         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15914         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15915         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15916         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15917
15918 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15919
15920         * sysdeps/x86_64/wcscmp.S: New file.
15921
15922         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15923         wcscmp-c wcscmp-sse2
15924         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15925         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15926         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15927         * wcsmbs/wcscmp.c: Allow renaming.
15928
15929 2011-09-05  David S. Miller  <davem@davemloft.net>
15930
15931         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15932         stack slot, rather than the struct return pointer slot.
15933         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15934         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15936         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15937
15938 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15939
15940         * po/ja.po: Update from translation team.
15941
15942         [BZ #13144]
15943         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15944         kernel in 64-bit binaries.
15945
15946 2011-09-01  David S. Miller  <davem@davemloft.net>
15947
15948         * elf/elf.h (HWCAP_SPARC_*): Move to..
15949         * sysdeps/sparc/sysdep.h: this new file and add new values.
15950         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15951         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15952         _DL_HWCAP_COUNT to 24.
15953         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15954         entries.
15955         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15956         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15957         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15958         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15959         instead of magic constants.
15960         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15961
15962 2011-08-31  David S. Miller  <davem@davemloft.net>
15963
15964         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15965         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15966         Reimplement to do errno handling inline.
15967         (SYSCALL_ERROR_HANDLER): New macro.
15968         (__SYSCALL_STRING): Do not do errno handling in asm.
15969         (__CLONE_SYSCALL_STRING): Delete.
15970         (__INTERNAL_SYSCALL_STRING): Delete.
15971         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15972         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15973         (PSEUDO): Reimplement to do errno handling inline.
15974         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15975         (SYSCALL_ERROR_HANDLER): New macro.
15976         (__SYSCALL_STRING): Do not do errno handling in asm.
15977         (__CLONE_SYSCALL_STRING): Delete.
15978         (__INTERNAL_SYSCALL_STRING): Delete.
15979         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15980         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15981         i386.
15982         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15983         (inline_syscall*): Add 'err' argument.
15984         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15985         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15986         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15987         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15988
15989         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15990         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15991
15992 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15993
15994         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15995
15996 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15997
15998         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15999         directive.
16000
16001 2011-08-24  David S. Miller  <davem@davemloft.net>
16002
16003         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16004
16005 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16006
16007         * elf/Makefile: Add rules to build and run unload8 test.
16008         * elf/unload8.c: New file.
16009         * elf/unload8mod1.c: New file.
16010         * elf/unload8mod1x.c: New file.
16011         * elf/unload8mod2.c: New file.
16012         * elf/unload8mod3.c: New file.
16013
16014         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16015         it wasn't used.
16016
16017 2011-08-23  David S. Miller  <davem@davemloft.net>
16018
16019         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16020         subtract stack bias.
16021         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16022         %sp not %fp in calculations.
16023         (_JMPBUF_UNWINDS_ADJ): Likewise.
16024
16025         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16026         (aio_suspend): Call it to force an exception region around the
16027         AIO_MISC_WAIT() invocation.
16028
16029 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16030
16031         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16032         backslash.
16033
16034 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16035
16036         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16037         protection macro.
16038         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16039         and <dl-machine.h>.
16040         (Elf64_FuncDesc): Remove.
16041
16042 2011-08-22  David S. Miller  <davem@davemloft.net>
16043
16044         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16045         sigaltstack check, add missing cfi directives.
16046         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16047         missing cfi directives, and sigaltstack handling.
16048
16049 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16050
16051         [BZ #11724]
16052         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16053         object is seen twice.
16054         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16055
16056         * elf/Makefile (distribute): Add tst-initorder2.c.
16057         (tests): Add tst-initorder2.
16058         (modules-names): Add tst-initorder2a tst-initorder2b
16059         tst-initorder2c tst-initorder2d.  Add rules to build them.
16060         ($(objpfx)tst-initorder2.out): New rule.
16061         * elf/tst-initorder2.c: New file.
16062         * elf/tst-initorder2.exp: New file.
16063
16064 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16065
16066         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16067
16068         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16069         dependencies back to end of function.
16070
16071         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16072         $(elfobjdir)/ld.so.
16073
16074 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16075
16076         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16077         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16078         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16079         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16080         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16081         of __vdso_gettimeofday.
16082         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16083         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16084         attribute_hidden.
16085         (_libc_vdso_platform_setup): Remove initialization of
16086         __vdso_gettimeofday and __vdso_time.
16087
16088 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16089
16090         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16091         and fgetc_unlocked.
16092         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16093         getc_unlocked.
16094
16095         * elf/dl-open.c (add_to_global): Report additions to the global scope
16096         for LD_DEBUG=scopes.
16097         (dl_open_worker): Also print scope of newly loaded dependencies.
16098         (_dl_show_scope): Indicate if there is no scope.
16099
16100         [BZ #13114]
16101         * stdio-common/Makefile (tests): Add bug24.
16102         * stdio-common/bug24.c: New file.
16103
16104 2011-08-19  Andreas Jaeger  <aj@suse.de>
16105
16106         [BZ #13114]
16107         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16108         non-existant file when using close-on-exec mode.
16109
16110 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16111
16112         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16113         the very first instruction.
16114
16115         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16116         the CFI state in the end.
16117         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16118         inclusion of dl-trampoline.h.
16119         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16120
16121 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16122
16123         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16124         expectations for long double.
16125
16126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16127         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16128
16129 2011-08-14  David S. Miller  <davem@davemloft.net>
16130
16131         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16132         artificual limit depends upon the system page size.
16133
16134 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16135
16136         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16137         * resolv/Makefile: Define CFLAGS-libresolv.
16138
16139 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16140
16141         * nss/makedb.c (compute_tables): Make variables used in nested
16142         function static.
16143
16144 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16145
16146         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16147         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16148         if buffer was too small.
16149
16150         * elf/pldd.c (main): Attach to all threads in the process.
16151         Rewrite /proc handling to use *at functions.
16152
16153 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16154
16155         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16156         specifies first scope to show.
16157         (dl_open_worker): Update callers.  Move printing scope of new
16158         object to before the relocation.
16159         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16160         * sysdeps/generic/ldsodefs.h: Update declaration.
16161
16162         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16163         string for the scope number.
16164
16165 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16166
16167         * nscd/servicescache.c (cache_addserv): Make sure written is always
16168         initialized.
16169
16170 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16171
16172         * sysdeps/i386/i486/bits/atomic.h
16173         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16174         statement expression, so as to suppress "set but not used" warning.
16175         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16176
16177         * string/strncat.c (STRNCAT): Use prototype definition.
16178
16179         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16180         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16181         -Iprograms here.
16182         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16183         (localedef-modules): Add localedef.
16184         (locale-modules): Add locale.
16185
16186         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16187         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16188         to avoid a warning.
16189
16190 2011-08-14  David S. Miller  <davem@davemloft.net>
16191
16192         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16193         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16194
16195 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16196
16197         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16198         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16199         * elf/rtld.c (dl_main): Set l_name of vDSO.
16200         Call _dl_show_scope when DL_DEBUG_SCOPES.
16201         (process_dl_debug): Recognize scopes flag and also set it for all.
16202         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16203         Declare _dl_show_scope.
16204
16205         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16206         (do_dlopen): Pass caller_dlopen to dl_open.
16207         (__libc_dlopen_mode): Initialize caller_dlopen.
16208
16209         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16210         of libc.  Make tolower call locale-independent.  Optimize a bit by
16211         using isdigit instead of isalnum.
16212         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16213
16214 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16215
16216         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16217         was a dependency or dynamically loaded.
16218
16219 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16220
16221         * intl/l10nflist.c: Allow architecture-specific pop function.
16222         * sysdeps/x86_64/l10nflist.c: New file.
16223
16224         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16225         classification.
16226
16227 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16228
16229         * include/dirent.h: Add libc_hidden_proto for scandirat and
16230         scandirat64.  Don't declare __scandirat64.
16231         * dirent/scandirat.c: Add libc_hidden_def.
16232         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16233         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16234
16235 2011-08-10  David S. Miller  <davem@davemloft.net>
16236
16237         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16238         enum.
16239         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16240         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16241         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16242
16243 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16244
16245         * Versions.def [libc]: Add GLIBC_2.15.
16246         * dirent/Makefile (routines): Add scandirat and scandirat64.
16247         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16248         GLIBC_2.15.
16249         * dirent/dirent.h: Declare scandirat and scandirat64.
16250         * dirent/scandirat.c: New file.
16251         * dirent/scandirat64.c: New file.
16252         * sysdeps/wordsize-64/scandirat.c: New file.
16253         * sysdeps/wordsize-64/scandirat64.c: New file.
16254         * dirent/opendir.c: Define opendirat.
16255         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16256         using scandirat.
16257         * dirent/scandir64.c: Adjust for scandir.c change.
16258         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16259         __scandirat64, and __scandir_cancel_handler.
16260         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16261         additional parameter and use openat instead of open (outside of ld.so).
16262         Add new __opendir as wrapper around __opendirat.
16263         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16264         here without requiring old scandirat implementation.
16265
16266 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16267
16268         * dirent/scandir.c (cancel_handler): Renamed to
16269         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16270         defined.  Adjust users.
16271         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16272         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16273
16274 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16275
16276         * string/test-string.h (IMPL): Use __STRING to expand name and then
16277         stringify it.
16278
16279         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16280         of cleanups.
16281
16282 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16283
16284         * string/Makefile: Update.
16285         (strop-tests): Append strncat.
16286         * string/test-wcscmp.c: New file.
16287         New comprehensive test for wcscmp.
16288         * string/test-strcmp.c: Update.
16289         (WIDE): New define.
16290
16291 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16292
16293         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16294         line.
16295
16296 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16297
16298         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16299         encoding to ACE if AI_IDN.
16300
16301 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16302
16303         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16304         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16305
16306 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16307
16308         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16309         Fix overflow bug in strncat.
16310         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16311
16312         * string/test-strncat.c: Update.
16313         Add new tests for checking overflow bugs.
16314
16315 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16316
16317         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16318         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16319         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16320         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16321         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16322         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16323         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16324         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16325         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16326
16327         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16328         (USE_AS_STRCAT): Define.
16329         Add strcat and strncat support.
16330         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16331
16332 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16333
16334         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16335         __n bigger than INT_MAX+1.
16336         (__strncmp_g): Likewise.
16337
16338 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16339
16340         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16341         * libio/stido.h: Likewise.
16342
16343         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16344         (AF_NFC): Define.
16345         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16346         (AF_NFC): Define.
16347
16348         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16349         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16350         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16351         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16352         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16353
16354         [BZ #13021]
16355         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16356         installed.
16357
16358         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16359         typo.
16360         (_dl_x86_64_save_sse): Likewise.
16361
16362 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16363
16364         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16365         OSXSAVE.
16366         (_dl_x86_64_save_sse): Likewise.
16367
16368         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16369
16370         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16371
16372 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16373
16374         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16375         change.
16376         (_dl_x86_64_save_sse): Use correct AVX check.
16377
16378 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16379
16380         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16381         bug in strncpy/strncat.
16382         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16383
16384 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16385
16386         * string/tester.c (test_strcat): Add tests for different alignments
16387         of source and destination.
16388         (test_strncat): Likewise.
16389
16390 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16391
16392         [BZ #12852]
16393         * posix/glob.c (glob): Check passed in values before using them in
16394         expressions to avoid some overflows.
16395         (glob_in_dir): Likewise.
16396
16397         [BZ #13007]
16398         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16399         check for AVX enablement so that we don't crash with old kernels and
16400         new hardware.
16401         * elf/tst-audit4.c: Add same checks here.
16402         * elf/tst-audit6.c: Likewise.
16403
16404         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16405
16406 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16407
16408         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16409
16410 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16411
16412         * po/cs.po: Update from translation team.
16413         * po/bg.po: Likewise.
16414
16415 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16416
16417         * misc/sys/cdefs.h: Add support for const attribute.
16418         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16419         to gnu_dev_{major,minor,makedev} functions.
16420
16421 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16422
16423         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16424
16425 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16426
16427         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16428         strlen results.
16429
16430 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16431
16432         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16433         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16434         register in order to avoid conflicts with the soft frame pointer
16435         being held in r11 when necessary.
16436         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16437         (INTERNAL_VSYSCALL_NCS): Likewise.
16438
16439 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16440
16441         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16442         * elf/dl-fini.c (_dl_fini): Adjust caller.
16443         * elf/dl-close.c (_dl_close_worker): Likewise.
16444         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16445
16446 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16447
16448         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16449         "aux_cache->nlibs < 0".
16450
16451         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16452         in the reload-count case.
16453
16454 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16455
16456         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16457         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16458         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16459         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16460         * sysdeps/x86_64/multiarch/strcat.S: New file.
16461         * sysdeps/x86_64/multiarch/strncat.S: New file.
16462         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16463         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16464         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16465         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16466         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16467         (USE_AS_STRCAT): Define.
16468         Add strcat and strncat support.
16469         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16470         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16471         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16472         * string/strncat.c: Update.
16473         (USE_AS_STRNCAT): Define.
16474         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16475         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16476         and i7.
16477         * sysdeps/x86_64/multiarch/init-arch.h
16478         (bit_Prefer_PMINUB_for_stringop): New.
16479         (index_Prefer_PMINUB_for_stringop): Likewise.
16480         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16481         bit_Prefer_PMINUB_for_stringop.
16482
16483 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16484
16485         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16486         buffer64.
16487         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16488         of casting of buffer.
16489         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16490         buffer32 and buffer64.
16491         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16492         writes instead of casting of buffer.
16493         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16494         buffer32.
16495         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16496         casting of buffer.
16497
16498 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16499
16500         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16501
16502 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16503
16504         * nscd/nscd.c (termination_handler): Don't do anything for a database
16505         if it has not yet been initialized.
16506
16507 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16508
16509         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16510
16511 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16512
16513         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16514
16515 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16516
16517         * po/nl.po: Update from translation team.
16518         * po/sv.po: Likewise.
16519
16520 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16521
16522         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16523         now disallowed by GCC.
16524
16525         * configure.in (use-default-link): Default to yes if a test -shared
16526         link meets our qualifications.
16527         * configure: Regenerated.
16528
16529         * config.make.in (output-format): New variable.
16530         * configure.in: Check for ld --print-output-format support.
16531         * configure: Regenerated.
16532         * Makerules ($(common-objpfx)format.lds)
16533         [$(output-format) != unknown]: Just use $(output-format),
16534         instead of the linker-script munging.
16535
16536 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16537
16538         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16539         of $(common-objpfx)shlib.lds.
16540         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16541
16542         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16543         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16544
16545         * configure.in (-z relro check): Adjust test code to add a large
16546         writable data section after it.
16547         * configure: Regenerated.
16548
16549 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16550
16551         * configure.in (-z relro check): Fix test code to make the variable
16552         truly const.
16553         * configure: Regenerated.
16554
16555 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16556
16557         * nscd/nscd.h (struct traced_file): Define.
16558         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16559         elements.  Add traced_files.
16560         (inotify_fd): Declare.
16561         (register_traced_file): Declare.
16562         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16563         (inotify_fd): Export.
16564         (resolv_conf_descr): Remove.
16565         (nscd_init): Move inotify descriptor creation to main.
16566         Don't register files for notification here.
16567         (register_traced_file): New function.
16568         (invalidate_cache): Don't use reset_res to determine whether to call
16569         res_init, go through the list of registered files.
16570         (main_loop_poll): The inotify descriptors are now stored in the
16571         structures for the traced files.
16572         (main_loop_epoll): Likewise
16573         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16574         to __nss_disable_nscd.
16575         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16576         for a database anymore.  Check the records for all the registered
16577         files instead.
16578         * nss/Makefile (libnss_files-routines): Add files-init.
16579         (libnss_db-routines): Add db-init.
16580         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16581         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16582         * nss/nss_db/db-init.c: New file.
16583         * nss/nss_files/files-init.c: New file.
16584         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16585         __nss_lookup_function.
16586         (__nss_lookup_function): Call nss_load_library.
16587         (nss_load_all_libraries): New function.
16588         (__nss_disable_nscd): Take parameter with callback function for files
16589         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16590         used for the cached services.
16591         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16592         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16593         options for features to all the files in nscd.
16594
16595         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16596
16597 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16598
16599         * csu/elf-init.c (__libc_csu_init): Comment typo.
16600
16601 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16602
16603         * po/pl.po: Update from translation team.
16604         * po/ja.po: Likewise.
16605         * po/ru.po: Likewise.
16606         * po/ko.po: Likewise.
16607         * po/fr.po: Likewise.
16608
16609 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16610
16611         * configure.in (.ctors/.dtors header and trailer check):
16612         Use an empirical test on a built program.
16613         * configure: Regenerated.
16614
16615         * configure.in (-z relro check): Use an empirical test on a built DSO.
16616         Detect, but do not require, on ia64.
16617         * configure: Regenerated.
16618
16619         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16620         Update tests that use readelf to use $READELF instead.
16621         * configure: Regenerated.
16622
16623 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16624
16625         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16626         if the result is not used.
16627
16628 2011-07-05  Andreas Jaeger  <aj@suse.de>
16629
16630         [BZ#9696]
16631         * stdlib/tst-strtod.c: Add testcase.
16632
16633 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16634
16635         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16636         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16637         The latter has a higher limit.  Take additional parameter to pass to
16638         the new function.
16639         (__pathconf): Pass file to __statfs_link_max.
16640         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16641         __statfs_link_max.
16642         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16643         __statfs_link_max.
16644
16645         [BZ #12868]
16646         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16647         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16648         Handle Lustre.
16649         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16650         (__statfs_filesize_max): Likewise.
16651         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16652
16653 2011-07-05  Andreas Jaeger  <aj@suse.de>
16654
16655         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16656
16657 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16658
16659         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16660         `status' variable.
16661         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16662         Likewise.
16663
16664 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16665
16666         * Makefile (strop-tests): Add strncat.
16667         * string/test-strncat.c: New file.
16668
16669 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16670
16671         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16672
16673 2011-06-21  Andreas Jaeger  <aj@suse.de>
16674
16675         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16676         Copy rule from iconvdata/Makefile.
16677
16678 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16679
16680         [BZ #12922]
16681         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16682         but no long options are defined, just return 'W'.
16683
16684 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16685
16686         [BZ #9696]
16687         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16688
16689 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16690
16691         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16692         netgroups to read.
16693         (innetgr): Likewise.
16694
16695 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16696
16697         * config.make.in (install_root): Default to $(DESTDIR).
16698
16699 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16700
16701         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16702
16703 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16704
16705         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16706
16707         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16708         containing directory rather than embedding absolute directory names.
16709
16710         * scripts/check-local-headers.sh: Rewritten using awk.
16711         Match by word, not by line.  Print error messages for matches.
16712         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16713
16714         * Makerules [shlib-lds-flags empty]:
16715         ($(common-objpfx)libc_pic.opts): New target.
16716         ($(common-objpfx)libc_pic.os.clean): New target.
16717         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16718
16719         * config.make.in (OBJCOPY): New variable.
16720         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16721         * configure: Regenerated.
16722
16723         * config.make.in (use-default-link): New variable.
16724         * configure.in (use_default_link): Grok --with-default-link to set it.
16725         * configure: Regenerated.
16726         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16727         (shlib-lds, shlib-lds-flags): Define to empty.
16728
16729         * Makerules (shlib-lds): New variable.
16730         (shlib-lds-flags): New variable.
16731         (build-shlib, build-moduile, build-module-asneeded): Use it.
16732         ($(common-objpfx)libc.so): Use $(shlib-lds).
16733         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16734         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16735
16736         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16737         DT_FLAGS/DT_FLAGS_1 with zero flags.
16738
16739         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16740         linker script munging.
16741
16742 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16743
16744         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16745         as 128-bit value.
16746         * crypt/sha512.c (sha512_process_block): Perform total addition using
16747         128-bit if possible.
16748         (__sha512_finish_ctx): Likewise.
16749         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16750         as 64-bit value.
16751         * crypt/sha256.c (SWAP64): Define.
16752         (sha256_process_block): Perform total addition using 64-bit if
16753         possible.
16754         (__sha256_finish_ctx): Likewise.
16755
16756 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16757
16758         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16759         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16760         * nscd/hstcache.c (cache_addhst): Likewise.
16761         * nscd/grpcache.c (cache_addgr): Likewise.
16762         * nscd/aicache.c (addhstaiX): Likewise
16763         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16764
16765 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16766
16767         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16768         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16769         * nscd/hstcache.c (cache_addhst): Likewise.
16770         * nscd/grpcache.c (cache_addgr): Likewise.
16771         * nscd/aicache.c (addhstaiX): Likewise
16772
16773 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16774
16775         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16776         domain only when needed.
16777
16778 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16779
16780         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16781         is always restored.
16782
16783 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16784
16785         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16786         are re-adding the entry.
16787         * nscd/servicescache.c (cache_addserv): Likewise.
16788
16789 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16790
16791         * sysdeps/generic/dl-irel.h: fix protection against multiple
16792         inclusions.
16793         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16794
16795 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16796
16797         [BZ #12935]
16798         * malloc/memusage.sh: Fix quoting in message.
16799         * debug/xtrace.sh: Likewise.
16800
16801         * configure.in: Remove support for --experimental-malloc option, make
16802         it the default.
16803         * config.make.in: Likewise.
16804         * malloc/Makefile: Likewise.
16805
16806 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16807
16808         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16809         two-byte characters.
16810
16811 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16812
16813         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16814         AC_CACHE_CHECK invocation.
16815         * configure: Regenerated.
16816
16817         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16818
16819 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16820
16821         [BZ #12350]
16822         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16823         bit from old_res_options.
16824
16825         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16826
16827         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16828         value type for setfct.
16829
16830 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16831
16832         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16833         __gettimeofday instead of gettimeofday.
16834
16835 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16836
16837         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16838
16839 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16840
16841         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16842
16843         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16844         info.
16845
16846 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16847
16848         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16849         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16850         strcpy-sse2-unaligned strncpy-sse2-unaligned
16851         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16852         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16853         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16854         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16855         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16856         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16857         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16858         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16859         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16860         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16861         (STRCPY): Support SSE2 and SSSE3 versions.
16862
16863 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16864
16865         [BZ #12874]
16866         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16867         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16868         kernels which artificially limit size of requests.
16869
16870 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16871
16872         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16873         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16874         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16875         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16876         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16877         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16878         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16879         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16880         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16881         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16882         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16883         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16884         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16885         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16886         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16887         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16888         Enable unaligned load optimization for Intel Core i3, i5 and i7
16889         processors.
16890         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16891         Define.
16892         (index_Fast_Unaligned_Load): Define.
16893         (HAS_FAST_UNALIGNED_LOAD): Define.
16894
16895 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16896
16897         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16898
16899 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16900
16901         [BZ #12907]
16902         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16903         until it is clear that the information is realy needed.
16904         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16905
16906 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16907
16908         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16909
16910 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16911
16912         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16913         /sys/devices/system/cpu/online if it is usable.
16914
16915         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16916         reading the information from the /proc filesystem to once a second.
16917
16918 2011-06-21  Andreas Jaeger  <aj@suse.de>
16919
16920         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16921         NULL after inclusion of kernel headers.
16922
16923 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16924
16925         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16926         calls to internal_setent.
16927
16928         [BZ #12885]
16929         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16930         addresses using gethostbyname4_r ignore IPv4 addresses.
16931
16932         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16933         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16934
16935         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16936
16937 2011-06-20  David S. Miller  <davem@davemloft.net>
16938
16939         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16940         inclusions.
16941         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16942
16943         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16944         (elf_irel): Use it.
16945         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16946         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16947         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16948         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16949         * sysdeps/x86_64/dl-irel.h: Likewise.
16950
16951         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16952         * elf/dl-sym.c: Likewise.
16953
16954 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16955
16956         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16957         need to dereference resplen2.
16958
16959 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16960
16961         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16962
16963 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16964
16965         * Makeconfig: Define vardbdir and inst_vardbdir.
16966         * nss/Makefile: Add rules to install db-Makefile.
16967
16968         * nss/nss_db/db-XXX.c: Cleanup.
16969
16970         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16971         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16972         GLIBC_PRIVATE.
16973         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16974         * nss/makedb.c: Implement -g option to specify that value strings
16975         are generated and should not be added to table iterated over for
16976         get*ent calls.
16977         * nss/nss_db/db-initgroups.c: New file.
16978
16979         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16980         interface.
16981
16982         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16983         (internal_getgrouplist): Adjust to name change.
16984         Update use_initgroups_entry if this is not the first call.
16985         * nss/databases.def: Add initgroups entry.
16986
16987         * nss/makedb.c (compute_tables): Check result of multiple hash table
16988         sizes to minimize maximum chain length.
16989
16990 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16991
16992         * Versions.def: Add entry for libnss_db.
16993         * shlib-versions: Likewise.
16994         * nss/Makefile: Add rules to build libnss_db.
16995         * nss/Versions: Add libnss_db information.  Organize libnss_files
16996         entries better.
16997         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16998         makedb progra.  Some minor improvements to generate smaller files.
16999         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17000         here from...
17001         * nss/makedb.c: ...here.
17002         Improve database format to be smaller and require less memory at
17003         runtime.
17004         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17005         db anymore.
17006         * nss/nss_db/db-netgrp.c: Likewise.
17007         * nss/nss_db/db-open.c: Likewise.
17008         * nss/nss_files/flies-XXX.x: Adjust comments.
17009         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17010         * nss/nss_files/files-grp.c: Likewise.
17011         * nss/nss_files/files-hosts.c: Likewise.
17012         * nss/nss_files/files-network.c: Likewise.
17013         * nss/nss_files/files-proto.c: Likewise.
17014         * nss/nss_files/files-pwd.c: Likewise.
17015         * nss/nss_files/files-rpc.c: Likewise.
17016         * nss/nss_files/files-service.c: Likewise.
17017         * nss/nss_files/files-sgrp.c: Likewise.
17018         * nss/nss_files/files-spwd.c: Likewise.
17019         * nss/nss_db/db-alias.c: Removed.
17020         * nss/nss_db/dummy-db.h: Removed.
17021
17022 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17023
17024         * nss/makedb.c: Rewritten to not use database library.
17025         * nss/Makefile: Update to build new makedb program.
17026
17027 2011-06-14  Andreas Jaeger  <aj@suse.de>
17028
17029         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17030         memset declaration.
17031
17032 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17033
17034         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17035         tmpbuf.
17036
17037 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17038
17039         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17040         * elf/Makefile ($(objpfx)ld.so): Likewise.
17041
17042         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17043         Don't list ld.so twice in dependencies.
17044
17045         * posix/bug-regex31.c: Include <stdlib.h>.
17046
17047         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17048
17049         * nis/nss_compat/compat-spwd.c
17050         (getspent_next_nss_netgr): Remove unused variable.
17051         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17052
17053         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17054         nonmembers" output to use the right array.
17055
17056         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17057
17058         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17059
17060         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17061         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17062         * catgets/gencat.c (read_input_file): Likewise.
17063         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17064
17065         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17066         variable definition inside #if's controlling its use.
17067
17068         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17069
17070         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17071
17072         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17073
17074         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17075         unreachable code.
17076
17077         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17078
17079         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17080         * configure: Regenerated.
17081
17082         * Makerules: Revert last change.
17083         * elf/Makefile: Likewise.
17084
17085 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17086
17087         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17088         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17089         (reloc-link): Likewise.
17090
17091 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17092
17093         * elf/Makefile: Add rules to build pldd.
17094         * elf/pldd.c: New file.
17095         * elf/pldd-xx.c: New file.
17096
17097 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17098
17099         * version.h: Update for 2.15 development version.
17100
17101 2011-06-07  David S. Miller  <davem@davemloft.net>
17102
17103         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17104         ifuncs.
17105         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17106         elf_machine_lazy_rel): Likewise.
17107         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17108         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17109         elf_machine_lazy_rel): Likewise.
17110         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17111         dl_hwcap via passed in argument.
17112         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17113         Likewise.
17114
17115 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17116
17117         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17118
17119 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17120
17121         [BZ #12849]
17122         * manual/fdl-1.1.texi: New file, verbatim from:
17123         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17124         * manual/lgpl-2.1.texi: New file, verbatim from:
17125         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17126         * manual/Makefile (licenses): New variable, list those new file names.
17127         (texis): Use it.
17128         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17129
17130         * manual/fdl.texi: File removed.
17131         * manual/lesser.texi: File removed.
17132         * manual/libc.texinfo (Copying, Documentation License):
17133         Use new @include file names, put @appendix directive before @include.
17134
17135 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17136
17137         [BZ #12841]
17138         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17139         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17140         (mq_open): Add __NTH.
17141
17142 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17143
17144         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17145         Assume Intel Core i3/i5/i7 processor if AVX is available.
17146
17147 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17148
17149         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17150         typo.
17151
17152 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17153
17154         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17155         memory.  Use alloca_account.  Fix memory leak when retrying.
17156
17157 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17158
17159         * version.h (RELEASE): Bump for 2.14 release.
17160         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17161
17162         * config.make.in (RANLIB): Remove entry.
17163
17164 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17165
17166         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17167         (libc.pot): Work around missing support for .ksh extension in xgettext.
17168
17169         [BZ #12684]
17170         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17171         if both request failed.
17172         (send_dg): In case of server errors clear resplen or *resplen2.
17173
17174         [BZ #12454]
17175         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17176         when there are multiple maps.
17177         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17178         (_dl_fini): Remove test here.
17179
17180         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17181
17182 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17183
17184         [BZ #12350]
17185         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17186         bit from old_res_options.
17187         (gaih_inet): Likewise.
17188
17189         [BZ #11099]
17190         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17191         as signed.
17192
17193         * resolv/res_init.c (res_setoptions): Make the code more compact.
17194
17195         [BZ #11558]
17196         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17197         set RES_USEVC.
17198
17199         [BZ #11634]
17200         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17201
17202         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17203
17204         [BZ #11781]
17205         * malloc/malloc.h: Declare malloc hook variables as volatile.
17206
17207         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17208         in last patch.
17209
17210         [BZ #11799]
17211         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17212         raise in the comment.
17213         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17214         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17215         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17216
17217 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17218
17219         [BZ #12811]
17220         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17221         grow the buffers more if it already has to be sufficient.
17222         (build_wcs_upper_buffer): Likewise.
17223         * posix/regexec.c (check_matching): Likewise.
17224         (clean_state_log_if_needed): Likewise.
17225         (extend_buffers): Don't enlarge buffers beyond size of the input
17226         buffer.
17227         Patches mostly by Emil Wojak <emil@wojak.eu>.
17228         * posix/bug-regex32.c: New file.
17229         * posix/Makefile (tests): Add bug-regex32.
17230
17231         * locale/findlocale.c (_nl_find_locale): Return right away if
17232         _nl_explode_name failed.
17233         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17234
17235         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17236
17237         * debug/xtrace.sh: Unify messages.
17238         * malloc/memusage.sh: Likewise.
17239
17240         [BZ #12813]
17241         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17242         time symbol from vDSO.  Substitute with vsyscall if not available.
17243         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17244         __vdso_time.
17245
17246         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17247         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17248         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17249         Add sendmmsg and internal_sendmmsg.
17250         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17251         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17252         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17253
17254         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17255         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17256         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17257
17258 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17259
17260         [BZ #12813]
17261         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17262         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17263         available.
17264         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17265         __vdso_getcpu.
17266
17267         [BZ #12814]
17268         * iconvdata/Makefile (tests): Add bug-iconv9.
17269         * iconvdata/bug-iconv9.c: New file.
17270
17271 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17272
17273         [BZ #12814]
17274         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17275
17276 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17277
17278         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17279         (struct user_regs_struct): Change intcs field back to cs.
17280
17281 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17282
17283         * po/ja.po: Update from translation team.
17284
17285 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17286
17287         [BZ #12795]
17288         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17289         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17290
17291 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17292
17293         * stdlib/longlong.h: Update from GCC.
17294
17295 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17296
17297         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17298         parameter name.
17299         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17300         Add parameter name.
17301         (__sysconf): Pass it down.
17302
17303 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17304
17305         [BZ #12671]
17306         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17307         some situations.
17308         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17309         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17310         add in in __libc_use_alloca calls.  Adjust callers.
17311         (glob): Use malloc in some situations.
17312
17313         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17314         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17315         pltexit.
17316
17317 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17318
17319         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17320         and CLOCK_BOOTTIME_ALARM.
17321
17322         [BZ #12782]
17323         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17324         is returned.
17325
17326         * string/_strerror.c (__strerror_r): Print negative errors as signed
17327         numbers.
17328
17329         [BZ #12777]
17330         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17331         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17332         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17333
17334         * configure.in: Fix typo in redirection and correct removal of test
17335         files in two cases.
17336
17337         [BZ #12788]
17338         * locale/setlocale.c (new_composite_name): Fix test to check for
17339         identical name of all categories.
17340
17341         [BZ #12792]
17342         * libio/filedoalloc.c (local_isatty): New function.
17343         (_IO_file_doallocate): Use local_isatty.
17344         * stdio-common/perror.c (perror): In case a new stream is used
17345         forward the stream error.
17346         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17347         error flag.
17348
17349 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17350
17351         [BZ #11869]
17352         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17353         alloca.
17354         * include/alloca.h (extend_alloca_account): Define.
17355
17356         [BZ #11857]
17357         * posix/regex.h: Fix comments with documentation of user-accessible
17358         fields after compilation and describe correct free'ing of pattern
17359         after re_compile_pattern.
17360         Patch by Reuben Thomas <rrt@sc3d.org>.
17361
17362 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17363
17364         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17365         and -mno-altivec to prevent the compiler from using Altivec and/or
17366         VSX instructions when the corresponding registers are not available.
17367
17368 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17369
17370         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17371
17372 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17373
17374         * libio/freopen.c (freopen): Use __dup2, not dup2.
17375         * libio/freopen64.c (freopen64): Likewise.
17376
17377 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17378
17379         [BZ #12775]
17380         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17381         * math/Makefile (tests): Add test-powl.
17382         (CFLAGS-test-powl.c): Define.
17383         * math/test-powl.c: New file.
17384
17385 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17386
17387         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17388
17389 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17390
17391         [BZ #11837]
17392         * iconvdata/gb18030.c: Update to GB18020-2005.
17393
17394 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17395
17396         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17397         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17398         Patch by Aharon Robbins <arnold@skeeve.com>.
17399
17400         [BZ #11892]
17401         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17402         on the stack.
17403
17404         [BZ #11895]
17405         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17406         through underflows.
17407
17408         [BZ #12766]
17409         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17410         point to strings before performing equality test for error_one_per_line
17411         mode.
17412
17413         [BZ #11697]
17414         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17415
17416         [BZ #11820]
17417         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17418         (struct user_fpregs_struct): Avoid __uint*_t types.
17419
17420         [BZ #6420]
17421         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17422         symbol info.  Use it instead of calling _dl_addr locally.
17423         (lock_and_info): New function.
17424         (tr_freehook): Call lock_and_info and pass symbol info as additional
17425         parameter to tr_where.
17426         (tr_mallochook): Likewise.
17427         (tr_reallochook): Likewise.
17428         (tr_memalignhook): Likewise.
17429
17430         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17431         used and couldn't be at all thread-safe.
17432
17433 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17434
17435         * libio/freopen.c (freopen): Don't close old file descriptor
17436         before the new one is opened.  Instead dup the new file descriptor
17437         to the old one after the new stream is created.
17438         * libio/freopen64.c (freopen64): Likewise.
17439         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17440         * libio/fileops.c (_IO_new_file_close_it): Handle new
17441         _IO_FLAGS2_NOCLOSE flag.
17442         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17443         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17444         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17445         _IO_FLAGS2_NOCLOSE flag.
17446         * include/unistd.h: Add hidden_proto for dup3.
17447         Define __have_dup3.
17448         * io/dup3.c: Define hidden symbol.
17449         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17450
17451         [BZ #7101]
17452         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17453         when an incomplete long option is used.
17454         * posix/tst-getopt_long1.c: New file.
17455         * posix/Makefile (tests): Add tst-getopt_long1.
17456
17457         [BZ #10138]
17458         * scripts/config.guess: Update from autoconf-2.68.
17459         * scripts/config.sub: Likewise.
17460
17461         [BZ #10157]
17462         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17463         tests into ...
17464         (has_cpuclock): ...this.  New function.
17465         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17466         macro here based on has_cpuclock code.
17467
17468         [BZ #10149]
17469         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17470         First byte (not low byte) is now always NUL.
17471         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17472
17473         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17474         Use non-cancelable interfaces.
17475
17476         [BZ #9809]
17477         * locale/iso-639.def: Add entry for Sorani.
17478
17479         [BZ #11901]
17480         * include/stdlib.h: Move include protection to the right place.
17481         Define abort_msg_s.  Declare __abort_msg with it.
17482         * stdlib/abort.c (__abort_msg): Adjust type.
17483         * assert/assert.c (__assert_fail_base): New function.  Majority
17484         of code from __assert_fail.  Allocate memory for __abort_msg with
17485         mmap.
17486         (__assert_fail): Now call __assert_fail_base.
17487         * assert/assert-perr.c: Remove bulk of implementation.  Use
17488         __assert_fail_base.
17489         * include/assert.hL Declare __assert_fail_base.
17490         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17491         mmap.
17492         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17493
17494 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17495
17496         [BZ #11952]
17497         [BZ #12453]
17498         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17499         until all modules are registered in the DTV.
17500         * elf/Makefile: Add rules to build and run tst-tls19.
17501         * elf/tst-tls19.c: New file.
17502         * elf/tst-tls19mod1.c: New file.
17503         * elf/tst-tls19mod2.c: New file.
17504         * elf/tst-tls19mod3.c: New file.
17505         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17506
17507         [BZ #12083]
17508         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17509         correctly.
17510
17511         [BZ #12601]
17512         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17513         two-byte sequence errors.
17514         * iconvdata/Makefile (tests): Add bug-iconv8.
17515         * iconvdata/bug-iconv8.c: New file.
17516
17517         [BZ #12626]
17518         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17519         buf2 definition.
17520
17521         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17522
17523         [BZ #12432]
17524         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17525         (dummy_getcfa): New function.
17526         (init): Get _Unwind_GetCFA address, use dummy if not found.
17527         (backtrace_helper): In recursion check, also check whether CFA changes.
17528         (__backtrace): Completely initialize arg.
17529
17530         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17531         storing incomplete byte sequence in state object.  Avoid testing for
17532         guaranteed too small input if we know there is enough data available.
17533
17534 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17535
17536         * Makeconfig (+link-pie): Indent.
17537         * Rules (binaries-pie): Define if $(have-fpie) and
17538         $(build-shared).
17539         (binaries-shared): Also filter out $(binaries-pie).
17540         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17541         * nscd/Makefile (others-pie): Add nscd.
17542         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17543         ($(objpfx)nscd): Remove command override.
17544         * login/Makefile (others-pie): Add pt_chown.
17545         ($(objpfx)pt_chown): Remove command override.
17546         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17547         remove command overrides.
17548
17549 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17550
17551         * libio/tst_putwc.c: Fix error messages.
17552
17553         [BZ #12724]
17554         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17555         currently writing and seek to current position when not.
17556         * libio/Makefile (tests): Add bug-fclose1.
17557         * libio/bug-fclose1.c: New file.
17558
17559 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17560
17561         [BZ #12511]
17562         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17563         don't set DF_1_NODELETE here.
17564         (do_lookup_x): When entering new entry test for copy relocation
17565         and if necessary set DF_1_NODELETE flag.
17566         * elf/tst-unique4.cc: New file.
17567         * elf/tst-unique4.h: New file.
17568         * elf/tst-unique4lib.cc: New file.
17569         * elf/Makefile: Add rules to build and run tst-unique4.
17570         Patch by Piotr Bury <pbury@goahead.com>.
17571
17572 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17573
17574         [BZ #12052]
17575         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17576
17577         [BZ #12625]
17578         * misc/mntent_r.c (addmntent): Flush the stream after the output
17579
17580         [BZ #12393]
17581         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17582         (is_trusted_path_normalize): Skip initial colon.  Append slash
17583         to empty buffer.  Duplicate is_trusted_path code but allow
17584         constructed patch to be prefix.
17585         (is_dst): Allow $ORIGIN followed by /.
17586         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17587         Correct testing of result of is_trusted_path_normalize
17588         (decompose_rpath): Fix warning.
17589
17590 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17591
17592         [BZ #11257]
17593         * grp/initgroups.c (internal_getgrouplist): When we found the service
17594         list through the initgroups entry in nsswitch.conf do not always
17595         continue on a successful lookup.  Don't always use the
17596         __nss_group_database value if it is set.
17597         * nss/nsswitch.conf (initgroups): Change action for successful db
17598         lookup to continue for compatibility.
17599
17600 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17601
17602         [BZ #11532]
17603         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17604         and CP774 modules.
17605         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17606         and CP774 modules.
17607         * iconvdata/tst-tables.sh: Likewise.
17608         * iconvdata/cp770.c: New file.
17609         * iconvdata/cp771.c: New file.
17610         * iconvdata/cp772.c: New file.
17611         * iconvdata/cp773.c: New file.
17612         * iconvdata/cp774.c: New file.
17613         * iconvdata/testdata/CP770: New file.
17614         * iconvdata/testdata/CP770..UTF8: New file.
17615         * iconvdata/testdata/CP771: New file.
17616         * iconvdata/testdata/CP771..UTF8: New file.
17617         * iconvdata/testdata/CP772: New file.
17618         * iconvdata/testdata/CP772..UTF8: New file.
17619         * iconvdata/testdata/CP773: New file.
17620         * iconvdata/testdata/CP773..UTF8: New file.
17621         * iconvdata/testdata/CP774: New file.
17622         * iconvdata/testdata/CP774..UTF8: New file.
17623
17624         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17625         END CHARMAP line.
17626         * iconvdata/gen-8bit-gap.sh: Likewise.
17627         * iconvdata/gen-8bit.sh: Likewise.
17628
17629         * locale/iso-639.def: Add ary entry.
17630
17631         [BZ #11258]
17632         * locale/C-translit.h.in: Add U20A1 transliteration.
17633
17634         [BZ #12178]
17635         * locale/iso-639.def: Add wae entry.
17636         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17637
17638         [BZ #12545]
17639         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17640         for n.
17641
17642         [BZ #12711]
17643         * locale/C-translit.h.in: Add entry for U20B9.
17644         Patch by pravin.d.s@gmail.com.
17645
17646 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17647
17648         [BZ #12713]
17649         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17650         ENAMETOOLONG use generic getcwd.
17651         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17652         in rtld.  Use *stat64.
17653         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17654         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17655         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17656         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17657         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17658         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17659         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17660         __fstatat64 macros.
17661         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17662         * dirent/rewinddir.c: Add libc_hidden_def.
17663         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17664         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17665
17666         * include/dirent.h (__alloc_dir): Add flags parameter.
17667         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17668         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17669         __alloc_dir.
17670         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17671         from fdopendir if O_CLOEXEC is already set.
17672
17673 2011-03-15  Alan Modra  <amodra@gmail.com>
17674
17675         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17676         l_tls_firstbyte_offset non-zero.  Save padding offset in
17677         l_tls_firstbyte_offset for later use.
17678         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17679         freeing static tls block.
17680
17681 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17682
17683         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17684         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17685         being defined by the kernel headers.
17686
17687 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17688
17689         [BZ #12734]
17690         * resolv/resolv.h: Define RES_NOTLDQUERY.
17691         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17692         no-tld-query and set RES_NOTLDQUERY.
17693         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17694         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17695         modern BIND to search name as TLD unless forbidden.
17696
17697 2011-05-07  Petr Baudis  <pasky@suse.cz>
17698             Ulrich Drepper  <drepper@gmail.com>
17699
17700         [BZ #12393]
17701         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17702         (is_trusted_path): ...to here.
17703         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17704         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17705         using is_trusted_path_normalize() in setuid scripts.
17706
17707 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17708
17709         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17710         __BEGIN/__END_DECLS.
17711
17712 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17713
17714         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17715         NSS_STATUS_NOTFOUND if no record was found.
17716
17717 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17718
17719         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17720         (headers-not-in-tirpc): Remove rpc/netdb.h
17721         * resolv/netdb.h: Revert last change.
17722
17723 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17724
17725         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17726         circular dependency between libgcc.a and libc.a.
17727
17728 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17729
17730         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17731         * nis/Makefile: Don't install rpcsvc/*.
17732         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17733         instead of <rpc/types.h>.
17734         (MAXHOSTNAMELEN): Define.
17735
17736 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17737
17738         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17739
17740 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17741
17742         [BZ #12714]
17743         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17744         gethostbyname4_r when IPv6 results are possible.
17745
17746 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17747
17748         [BZ #12723]
17749         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17750         _PC_PIPE_BUF handling.
17751
17752 2011-04-30  Bruno Haible  <bruno@clisp.org>
17753
17754         [BZ #12717]
17755         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17756         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17757         to 'int'.
17758         * inet/getnameinfo.c (getnameinfo): Likewise.
17759
17760 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17761
17762         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17763         to groups setting in database lookup.
17764         * nss/nsswitch.conf: Add initgroups entry.
17765
17766 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17767
17768         [BZ #12685]
17769         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17770         mode string.
17771         Patch by Eric Blake <eblake@redhat.com>.
17772
17773 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17774
17775         * sunrpc/Makefile (need-export-routines): Add svc_run.
17776         (routines): Remove svc_run.
17777         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17778         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17779         * sunrpc/svc_run.c (svc_run): Likewise.
17780         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17781
17782 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17783
17784         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17785         problem in reallocation in last patch.
17786
17787 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17788
17789         * sunrpc/Makefile: Move inclusion of Rules.
17790
17791 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17792
17793         * nss/nss_files/files-initgroups.c: New file.
17794         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17795         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17796         _nss_files_initgroups_dyn.
17797
17798 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17799
17800         * elf/elf.h (R_ARM_IRELATIVE): Define.
17801
17802 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17803
17804         * po/ru.po: Update from translation team.
17805
17806 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17807
17808         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17809         dependencies.
17810
17811 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17812
17813         [BZ #12653]
17814         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17815         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17816         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17817         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17818         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17819
17820 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17821
17822         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17823         differing bytes.
17824         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17825         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17826         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17827
17828 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17829
17830         [BZ #12420]
17831         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17832         storing it.
17833         * stdlib/bug-getcontext.c: New file.
17834         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17835
17836 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17837
17838         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17839         instructions into .machine "z9-109".
17840         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17841         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17842
17843 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17844
17845         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17846         between environment variables and auxiliary vector.
17847
17848 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17849
17850         * Makefile: Add rules to build linkobj/libc.so.
17851         * include/libc-symbols.h: Define libc_hidden_nolink.
17852         * include/rpc/auth.h: Mark functions which are to be hidden.
17853         * include/rpc/auth_des.h: Likewise.
17854         * include/rpc/auth_unix.h: Likewise.
17855         * include/rpc/clnt.h: Likewise.
17856         * include/rpc/des_crypt.h: Likewise.
17857         * include/rpc/key_prot.h: Likewise.
17858         * include/rpc/pmap_clnt.h: Likewise.
17859         * include/rpc/pmap_prot.h: Likewise.
17860         * include/rpc/pmap_rmt.h: Likewise.
17861         * include/rpc/rpc_msg.h: Likewise.
17862         * include/rpc/svc.h: Likewise.
17863         * include/rpc/svc_auth.h: Likewise.
17864         * include/rpc/xdr.h: Likewise.
17865         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17866         * nss/Makefile: Likewise.
17867         * sunrpc/Makefile: Don't install headers.  Build library with normal
17868         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17869         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17870         for the compat linking library.  Remove use of INTDEF/INTUSE.
17871         * sunrpc/auth_none.c: Likewise.
17872         * sunrpc/auth_unix.c: Likewise.
17873         * sunrpc/authdes_prot.c: Likewise.
17874         * sunrpc/authuxprot.c: Likewise.
17875         * sunrpc/clnt_gen.c: Likewise.
17876         * sunrpc/clnt_perr.c: Likewise.
17877         * sunrpc/clnt_raw.c: Likewise.
17878         * sunrpc/clnt_simp.c: Likewise.
17879         * sunrpc/clnt_tcp.c: Likewise.
17880         * sunrpc/clnt_udp.c: Likewise.
17881         * sunrpc/clnt_unix.c: Likewise.
17882         * sunrpc/des_crypt.c: Likewise.
17883         * sunrpc/des_soft.c: Likewise.
17884         * sunrpc/get_myaddr.c: Likewise.
17885         * sunrpc/key_call.c: Likewise.
17886         * sunrpc/key_prot.c: Likewise.
17887         * sunrpc/netname.c: Likewise.
17888         * sunrpc/pm_getmaps.c: Likewise.
17889         * sunrpc/pm_getport.c: Likewise.
17890         * sunrpc/pmap_clnt.c: Likewise.
17891         * sunrpc/pmap_prot.c: Likewise.
17892         * sunrpc/pmap_prot2.c: Likewise.
17893         * sunrpc/pmap_rmt.c: Likewise.
17894         * sunrpc/publickey.c: Likewise.
17895         * sunrpc/rpc_cmsg.c: Likewise.
17896         * sunrpc/rpc_common.c: Likewise.
17897         * sunrpc/rpc_dtable.c: Likewise.
17898         * sunrpc/rpc_prot.c: Likewise.
17899         * sunrpc/rpc_thread.c: Likewise.
17900         * sunrpc/rtime.c: Likewise.
17901         * sunrpc/svc.c: Likewise.
17902         * sunrpc/svc_auth.c: Likewise.
17903         * sunrpc/svc_authux.c: Likewise.
17904         * sunrpc/svc_raw.c: Likewise.
17905         * sunrpc/svc_run.c: Likewise.
17906         * sunrpc/svc_simple.c: Likewise.
17907         * sunrpc/svc_tcp.c: Likewise.
17908         * sunrpc/svc_udp.c: Likewise.
17909         * sunrpc/svc_unix.c: Likewise.
17910         * sunrpc/svcauth_des.c: Likewise.
17911         * sunrpc/xcrypt.c: Likewise.
17912         * sunrpc/xdr.c: Likewise.
17913         * sunrpc/xdr_array.c: Likewise.
17914         * sunrpc/xdr_float.c: Likewise.
17915         * sunrpc/xdr_intXX_t.c: Likewise.
17916         * sunrpc/xdr_mem.c: Likewise.
17917         * sunrpc/xdr_rec.c: Likewise.
17918         * sunrpc/xdr_ref.c: Likewise.
17919         * sunrpc/xdr_sizeof.c: Likewise.
17920         * sunrpc/xdr_stdio.c: Likewise.
17921
17922 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17923
17924         [BZ #12650]
17925         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17926         * sysdeps/ia64/dl-tls.h: Likewise.
17927         * sysdeps/powerpc/dl-tls.h: Likewise.
17928         * sysdeps/s390/dl-tls.h: Likewise.
17929         * sysdeps/sh/dl-tls.h: Likewise.
17930         * sysdeps/sparc/dl-tls.h: Likewise.
17931         * sysdeps/x86_64/dl-tls.h: Likewise.
17932         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17933
17934 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17935
17936         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17937         rpath element also skip the following colon.
17938         (expand_dynamic_string_token): Add is_path parameter and pass
17939         down to DL_DST_REQUIRED and _dl_dst_substitute.
17940         (decompose_rpath): Call expand_dynamic_string_token with
17941         non-zero is_path.  Ignore empty rpaths.
17942         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17943         with zero is_path.
17944
17945 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17946
17947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17948         Make cancelable.
17949
17950 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17951
17952         [BZ #12655]
17953         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17954         Patch by Filipe David Manana <fdmanana@apache.org>.
17955
17956 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17957
17958         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17959         Maintain aligned stack.
17960         (CHECK_RSP): Remove unused macro.
17961
17962 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17963
17964         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17965         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17966
17967 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17968
17969         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17970
17971         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17972
17973 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17974
17975         [BZ #12518]
17976         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17977         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17978         * sysdeps/x86_64/memmove.c: New file.
17979         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17980         (memcpy): Renamed to ...
17981         (__new_memcpy): This.
17982         (memcpy): Provide GLIBC_2_14 memcpy.
17983         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17984         (memcpy): Provide GLIBC_2_2_5 memcpy.
17985
17986 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17987
17988         [BZ #12631]
17989         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17990
17991 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17992
17993         * misc/syncfs.c: New file.
17994         * misc/Makefile (routines): Add syncfs.
17995         * posix/unistd.h: Declare syncfs.
17996         * sysdeps/unix/syscalls.list: Add syncfs.
17997
17998 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17999
18000         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18001         open_by_handle_at.
18002         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18003         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18004         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18005         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18006         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18007         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18008         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18009
18010 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18011
18012         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18013         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18014         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18015         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18016         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18017         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18018         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18019
18020         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18021         sync_file_range.c with -fexceptions.
18022         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18023         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18024         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18025         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18026         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18027         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18028         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18029         sync_file_range as cancellation point
18030         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18031         now a wrapper around __call_sync_file_range with cancellation handling.
18032         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18033         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18034         function name to __call_sync_file_range.
18035         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18036         Add call_sync_file_range.
18037
18038 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18039
18040         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18041         bits/timex.h.
18042
18043 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18044
18045         * iconv/iconv.h: Fix typo in comment.
18046         * io/fcntl.h: Likewise.
18047         * libio/stdio.h: Likewise.
18048         * posix/spawn.h: Likewise.
18049         * posix/unistd.h: Likewise.
18050         * stdlib/stdlib.h: Likewise.
18051         * time/time.h: Likewise.
18052         * wcsmbs/wchar.h: Likewise.
18053
18054         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18055         open_by_handle): Add.
18056         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18057         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18058         Augment a few comments.
18059         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18060         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18061         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18062         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18063         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18064         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18065         open_by_handle.
18066
18067         * io/fcntl.h (AT_EMPTY_PATH): Define.
18068
18069 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18070
18071         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18072         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18073         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18074         to...
18075         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18076         * Versions.def: Add GLIBC_2.14.
18077         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18078         Export.
18079
18080 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18081
18082         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18083         round counter.
18084         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18085
18086 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18087
18088         [BZ #12597]
18089         * string/test-strncmp.c (do_page_test): New function.
18090         (check2): Likewise.
18091         (test_main): Call check2.
18092         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18093
18094 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18095
18096         [BZ #12587]
18097         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18098         Handle cache information in CPU leaf 4.
18099         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18100
18101 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18102
18103         [BZ #12583]
18104         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18105         character representation.
18106         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18107
18108 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18109
18110         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18111         END(__isnan) to END(__isnanf) to match function entry point/label
18112         EALIGN(__isnanf,...).
18113
18114 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18115
18116         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18117
18118 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18119
18120         [BZ #12510]
18121         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18122         copy from the symbol referenced in the relocation to initialize the
18123         used variable.
18124         Patch by Piotr Bury <pbury@goahead.com>.
18125         * elf/Makefile: Add rules to build and tst-unique3.
18126         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18127         * elf/tst-unique3.cc: New file.
18128         * elf/tst-unique3.h: New file.
18129         * elf/tst-unique3lib.cc: New file.
18130         * elf/tst-unique3lib2.cc: New file.
18131
18132         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18133
18134 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18135
18136         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18137         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18138         to _start.
18139
18140 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18141
18142         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18143         to-be-loaded object along a path to loader is ld.so.
18144
18145 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18146             Ulrich Drepper  <drepper@gmail.com>
18147
18148         * sysdeps/x86_64/memset.S: After aligning destination, code
18149         branches to different locations depending on the value of
18150         misalignment, when multiarch is enabled. Fix this.
18151
18152 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18153
18154         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18155         Set _x86_64_preferred_memory_instruction for AMD processsors.
18156         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18157         Set bit_Prefer_SSE_for_memop for AMD processors.
18158
18159 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18160
18161         * libio/fmemopen.c (fmemopen): Optimize a bit.
18162
18163 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18164
18165         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18166
18167 2011-03-03  Roland McGrath  <roland@redhat.com>
18168
18169         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18170
18171 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18172
18173         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18174         __bzero_ultra1 instead of __memset_ultra1.
18175
18176 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18177             Ulrich Drepper  <drepper@gmail.com>
18178
18179         [BZ #12509]
18180         * include/link.h (struct link_map): Add l_orig_initfini.
18181         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18182         returning unsuccessfully.
18183         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18184         close of a file loaded at startup, restore the original l_initfini
18185         list.
18186         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18187         list, store the pointer.
18188         * elf/Makefile ($(objpfx)noload-mem): New rule.
18189         (noload-ENV): Define.
18190         (tests): Add $(objpfx)noload-mem.
18191         * elf/noload.c: Include <memcheck.h>.
18192         (main): Call mtrace.  Close all opened handles.
18193
18194 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18195
18196         [BZ #12454]
18197         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18198         dependencies are missing.
18199
18200 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18201
18202         Fix __if_freereq crash: Unlike the generic version which uses free,
18203         Hurd needs munmap.
18204         * sysdeps/mach/hurd/ifreq.h: New file.
18205
18206 2011-01-27  Petr Baudis  <pasky@suse.cz>
18207             Ulrich Drepper  <drepper@gmail.com>
18208
18209         [BZ 12445]#
18210         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18211         to extend_alloca().
18212         * stdio-common/bug23.c: New file.
18213         * stdio-common/Makefile (tests): Add bug23.
18214
18215 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18216             Ulrich Drepper  <drepper@gmail.com>
18217
18218         [BZ #12489]
18219         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18220         before performing relro protection.  At old place add assertion
18221         to make sure nothing changed.
18222
18223 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18224             Glauber de Oliveira Costa  <glommer@gmail.com>
18225
18226         * elf/elf.h: Add new ARM TLS relocs.
18227
18228 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18229
18230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18231         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18232         cast from r3.
18233         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18234         'tests' variable.
18235         * sysdeps/wordsize-64/tst-writev.c: New file.
18236
18237 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18238
18239         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18240         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18241         insns in _dl_start to prevent a TOC reference before relocs are
18242         resolved.
18243
18244 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18245
18246         [BZ #12469]
18247         * Makeconfig: Remove RANLIB definition.
18248         * Makerules: Don't use RANLIB.
18249         * aclocal.m4: Remove ranlib test.
18250         * configure.in: No need to check for ranlib.
18251         * elf/rtld-Rules: Don't use RANLIB.
18252
18253 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18254
18255         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18256         protection macro.
18257         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18258         inclusion protection macro.
18259
18260         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18261         SIGRTMIN and SIGRTMAX and print information in that case only when
18262         SIGRTMIN is defined.
18263
18264 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18265
18266         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18267         arginfo fn returning -1.
18268
18269         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18270         and thousands string is zero terminated.
18271
18272 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18273
18274         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18275         sysdeps/unix/sysv/linux/bits/socket.h.
18276
18277 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18278
18279         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18280         (__CPU_COUNT): Remove old macros.
18281         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18282         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18283         (__CPU_ALLOC, __CPU_FREE): Add macros.
18284         (__sched_cpualloc, __sched_cpufree): Add declarations.
18285
18286 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18287
18288         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18289         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18290         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18291         (readdhstai): Return value of addhstaiX call.
18292         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18293         (addgrbyX): Return value returned by cache_addgr.
18294         (readdgrbyname): Return value returned by addgrbyX.
18295         (readdgrbygid): Likewise.
18296         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18297         (addpwbyX): Return value returned by cache_addpw.
18298         (readdpwbyname): Return value returned by addhstbyX.
18299         (readdpwbyuid): Likewise.
18300         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18301         (addservbyX): Return value returned by cache_addserv.
18302         (readdservbyname): Return value returned by addservbyX:
18303         (readdservbyport): Likewise.
18304         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18305         (addhstbyX): Return value returned by cache_addhst.
18306         (readdhstbyname): Return value returned by addhstbyX.
18307         (readdhstbyaddr): Likewise.
18308         (readdhstbynamev6): Likewise.
18309         (readdhstbyaddrv6): Likewise.
18310         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18311         (readdinitgroups): Return value returned by addinitgroupsX.
18312         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18313         (prune_cache): Keep track of timeout value of re-added entries.
18314         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18315         * nscd/nscd.h: Adjust prototypes of readd* functions.
18316
18317 2011-02-04  Roland McGrath  <roland@redhat.com>
18318
18319         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18320         (nis_stats): Likewise.
18321         * nis/nis_modify.c (nis_modify): Likewise.
18322         * nis/nis_remove.c (nis_remove): Likewise.
18323         * nis/nis_add.c (nis_add): Likewise.
18324
18325         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18326
18327         * posix/fnmatch_loop.c: Add some consts.
18328
18329         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18330
18331 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18332
18333         [BZ #12460]
18334         * config.make.in (config-cflags-novzeroupper): Define.
18335         * configure.in: Substitute libc_cv_cc_novzeroupper.
18336         * elf/Makefile (AVX-CFLAGS): Define.
18337         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18338         (CFLAGS-tst-auditmod4a.c): Likewise.
18339         (CFLAGS-tst-auditmod4b.c): Likewise.
18340         (CFLAGS-tst-auditmod6b.c): Likewise.
18341         (CFLAGS-tst-auditmod6c.c): Likewise.
18342         (CFLAGS-tst-auditmod7b.c): Likewise.
18343         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18344
18345 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18346
18347         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18348         function to the callback.
18349         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18350
18351 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18352
18353         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18354         of errno.
18355
18356 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18357
18358         [BZ #11724]
18359         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18360         of constructors.
18361         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18362         of destructors.
18363         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18364
18365         [BZ #11724]
18366         * elf/Makefile: Add rules to build and run new test.
18367         * elf/tst-initorder.c: New file.
18368         * elf/tst-initorder.exp: New file.
18369         * elf/tst-initordera1.c: New file.
18370         * elf/tst-initordera2.c: New file.
18371         * elf/tst-initordera3.c: New file.
18372         * elf/tst-initordera4.c: New file.
18373         * elf/tst-initorderb1.c: New file.
18374         * elf/tst-initorderb2.c: New file.
18375         * elf/tst-order-a1.c: New file.
18376         * elf/tst-order-a2.c: New file.
18377         * elf/tst-order-a3.c: New file.
18378         * elf/tst-order-a4.c: New file.
18379         * elf/tst-order-b1.c: New file.
18380         * elf/tst-order-b2.c: New file.
18381         * elf/tst-order-main.c: New file.
18382         New test case by George Gensure <werkt0@gmail.com>.
18383
18384 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18385
18386         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18387         decoding ACE if AI_CANONIDN.
18388
18389 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18390
18391         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18392
18393 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18394
18395         * version.h (RELEASE): Bump for 2.13 release.
18396         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18397
18398         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18399
18400         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18401         MADV_NOHUGEPAGE.
18402         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18403         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18404         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18405         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18406         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18407         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18408
18409         * posix/getconf.c: Update copyright year.
18410         * catgets/gencat.c: Likewise.
18411         * csu/version.c: Likewise.
18412         * debug/catchsegv.sh: Likewise.
18413         * debug/xtrace.sh: Likewise.
18414         * elf/ldconfig.c: Likewise.
18415         * elf/ldd.bash.in: Likewise.
18416         * elf/sprof.c (print_version): Likewise.
18417         * iconv/iconv_prog.c: Likewise.
18418         * iconv/iconvconfig.c: Likewise.
18419         * locale/programs/locale.c: Likewise.
18420         * locale/programs/localedef.c: Likewise.
18421         * malloc/memusage.sh: Likewise.
18422         * malloc/mtrace.pl: Likewise.
18423         * nscd/nscd.c (print_version): Likewise.
18424         * nss/getent.c: Likewise.
18425
18426         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18427         PF_CAIF, and PF_ALG.
18428         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18429
18430 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18431
18432         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18433         (modules-names): Use them.
18434         (ifunc-test-modules, ifunc-pie-tests): Define.
18435         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18436         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18437         (test-extras): Likewise.
18438         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18439         $(compile-command.c).
18440         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18441         (all-built-dso): Define.
18442         (check-textrel.out, check-execstack.out): Depend on it.
18443
18444         * configure.in: Don't override --enable-multi-arch.
18445
18446 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18447
18448         [BZ #6812]
18449         * nscd/hstcache.c (tryagain): Define.
18450         (cache_addhst): Return tryagain not notfound for temporary errors.
18451         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18452         failed.
18453
18454 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18455
18456         [BZ #10563]
18457         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18458         to make the syscall.
18459         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18460
18461         [BZ #12378]
18462         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18463         and fall back to matching as normal character if the string ends before
18464         the matching ']' is found.  This is what POSIX requires.
18465         * posix/testfnm.c: Adjust test result.
18466         * posix/globtest.sh: Adjust test result.  Add new test.
18467         * posix/tst-fnmatch.input: Likewise.
18468         * posix/tst-fnmatch2.c: Add new test.
18469
18470 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18471
18472         * elf/Makefile (check-execstack): Revert last change.  Depend on
18473         check-execstack.h.
18474         (check-execstack.h): New target.
18475         (generated): Add check-execstack.h.
18476         * elf/check-execstack.c: Include "check-execstack.h".
18477         (main): Revert last change.
18478         (handle_file): Return zero if GNU_STACK is absent and
18479         DEFAULT_STACK_PERMS doesn't include PF_X.
18480
18481 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18482
18483         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18484         in child fails because the descriptor is already closed.
18485         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18486         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18487         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18488
18489         [BZ #12397]
18490         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18491         syscall.
18492
18493         [BZ #10484]
18494         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18495         temporary buffer used to handle multi lookups locally.
18496         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18497
18498 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18499
18500         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18501         loader is ld.so.
18502
18503 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18504
18505         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18506         alignment for SSE2.
18507
18508 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18509
18510         [BZ #12394]
18511         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18512         characters.  When rounding increased number of integer digits recompute
18513         number of groups.
18514         * stdio-common/tst-grouping.c: New file.
18515         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18516
18517 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18518
18519         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18520         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18521
18522         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18523         void.
18524         * bits/select.h: Likewise.
18525
18526 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18527
18528         * po/ja.po: Update from translation team.
18529
18530 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18531
18532         [BZ #11155]
18533         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18534         implementation just like for lxstat, fxstatat, et al.
18535
18536 2010-12-27  Jim Meyering  <meyering@redhat.com>
18537
18538         [BZ #12348]
18539         * posix/regexec.c (build_trtable): Return failure indication upon
18540         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18541
18542 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18543
18544         [BZ #12201]
18545         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18546         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18547         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18548         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18549
18550         [BZ #12207]
18551         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18552
18553         [BZ #12204]
18554         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18555         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18556
18557 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18558
18559         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18560         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18561         script has SORT_BY_INIT_PRIORITY.
18562         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18563         NO_CTORS_DTORS_SECTIONS is defined.
18564         * elf/soinit.c: Likewise.
18565         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18566         NO_CTORS_DTORS_SECTIONS is defined.
18567         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18568         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18569         * sysdeps/sh/init-first.c: Likewise.
18570         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18571
18572 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18573
18574         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18575         always use the slow path.
18576
18577 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18578
18579         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18580         similar rule which adds the sysdep directories to the header search in
18581         order to pick up the correct platform stackinfo.h.
18582         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18583         perform test if it is, otherwise return successfully without testing.
18584         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18585         DEFAULT_STACK_PERMS define in stackinfo.h.
18586         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18587         defined in stackinfo.h.
18588         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18589         DEFAULT_STACK_PERMS defined in stackinfo.h.
18590         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18591         * sysdeps/ia64/stackinfo.h: Likewise.
18592         * sysdeps/s390/stackinfo.h: Likewise.
18593         * sysdeps/sh/stackinfo.h: Likewise.
18594         * sysdeps/sparc/stackinfo.h: Likewise.
18595         * sysdeps/x86_64/stackinfo.h: Likewise.
18596         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18597         PF_X for powerpc64.  Retain PF_X for powerpc32.
18598
18599 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18600
18601         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18602         accurately.
18603         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18604         GETDENTS_64BIT_ALIGNED.
18605
18606 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18607
18608         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18609
18610 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18611
18612         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18613         _GNU_SOURCE.
18614
18615         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18616         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18617         Remove __restrict.
18618         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18619         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18620
18621 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18622
18623         [BZ #11655]
18624         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18625         are initialized.
18626
18627 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18628
18629         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18630
18631 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18632
18633         * po/it.po: Update from translation team.
18634
18635 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18636
18637         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18638         unused codes.
18639
18640 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18641
18642         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18643
18644 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18645
18646         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18647         specially.
18648         (gaih_getanswer_slice): Likewise.
18649
18650 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18651
18652         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18653
18654 2010-05-31  Petr Baudis  <pasky@suse.cz>
18655
18656         [BZ #11149]
18657         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18658         silently even in the chroot mode.
18659
18660 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18661
18662         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18663         last patch a bit.  Pretty printing
18664
18665 2010-05-31  Petr Baudis <pasky@suse.cz>
18666
18667         [BZ #10085]
18668         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18669         initialization of skip_initgroups_dyn.
18670
18671 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18672
18673         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18674         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18675
18676 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18677
18678         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18679
18680 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18681
18682         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18683         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18684         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18685         ($(objpfx)tst-fnmatch-mem): New rule.
18686         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18687         * posix/tst-fnmatch.c (main): Call mtrace.
18688
18689 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18690
18691         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18692         Support Intel processor model 6 and model 0x2c.
18693
18694 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18695
18696         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18697           signed comparison.
18698
18699 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18700
18701         [BZ #12205]
18702         * string/test-strncasecmp.c (check_result): New function.
18703         (do_one_test): Use it.
18704         (check1): New function.
18705         (test_main): Use it.
18706         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18707         Support strcasecmp and strncasecmp.
18708
18709 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18710
18711         [BZ #12194]
18712         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18713         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18714
18715 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18716
18717         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18718         IFUNC support.
18719         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18720         memset-x86-64.
18721         * sysdeps/x86_64/multiarch/bzero.S: New file.
18722         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18723         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18724         * sysdeps/x86_64/multiarch/memset.S: New file.
18725         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18726         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18727         Set bit_Prefer_SSE_for_memop for Intel processors.
18728         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18729         Define.
18730         (index_Prefer_SSE_for_memop): Define.
18731         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18732
18733 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18734
18735         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18736         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18737
18738 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18739
18740         [BZ #12191]
18741         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18742         (__x86_64_raw_data_cache_size_half): Likewise.
18743         (__x86_64_raw_shared_cache_size): Likewise.
18744         (__x86_64_raw_shared_cache_size_half): Likewise.
18745
18746         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18747         (__x86_64_raw_data_cache_size_half): Likewise.
18748         (__x86_64_raw_shared_cache_size): Likewise.
18749         (__x86_64_raw_shared_cache_size_half): Likewise.
18750         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18751         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18752         and __x86_64_raw_shared_cache_size_half.  Round
18753         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18754         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18755         to multiple of 256 bytes.
18756
18757 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18758
18759         [BZ #12167]
18760         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18761         of inacessible symlinks.  Verify result of symlink before returning it.
18762         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18763         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18764
18765 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18766
18767         * math/math.h (isinf): Fix typo in comment.
18768
18769 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18770
18771         * po/da.po: Update from translation team.
18772
18773 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18774
18775         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18776         is added to the list.
18777
18778 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18779             Ulrich Drepper  <drepper@gmail.com>
18780
18781         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18782         the global list here.  Move code to...
18783         (_dl_add_to_namespace_list): ...here.  New function.
18784         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18785         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18786         * elf/dl-load.c (lose): Don't remove the element from the list.
18787         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18788         (_dl_map_object): Likewise.
18789
18790 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18791
18792         [BZ #12159]
18793         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18794         into all bytes of SSE register.
18795         Patch by Richard Li <richardpku@gmail.com>.
18796
18797 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18798
18799         [BZ #12140]
18800         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18801         perturbing.
18802
18803 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18804
18805         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18806         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18807         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18808         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18810         submachine.
18811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18812
18813 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18814
18815         * include/dlfcn.h (__RTLD_SECURE): Define.
18816         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18817         mode & __RTLD_SECURE instead.
18818         (open_path): Rename preloaded parameter to secure.
18819         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18820         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18821         * elf/dl-deps.c (openaux): Likewise.
18822         * elf/rtld.c (struct map_args): Remove is_preloaded.
18823         (map_doit): Don't use it.
18824         (dl_main): Likewise.
18825         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18826         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18827
18828 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18829
18830         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18831         (sysd-rules-targets): Remove duplicates.
18832         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18833         rtld-%.$o dependency.
18834
18835 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18836
18837         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18838         _dl_map_object do it.
18839
18840 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18841
18842         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18843         fast fma builtins, define the macros in the C99 standard.
18844         (FP_FAST_FMAF): Likewise.
18845         (FP_FAST_FMAL): Likewise.
18846         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18847
18848         * bits/mathdef.h: Update copyright year.
18849         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18850
18851 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18852
18853         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18854         builtins, define the macros in the C99 standard.
18855         (FP_FAST_FMAF): Likewise.
18856         (FP_FAST_FMAL): Likewise.
18857         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18858         multiply/add.
18859         (FP_FAST_FMAF): Likewise.
18860
18861 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18862
18863         [BZ #3268]
18864         * math/libm-test.inc (fma_test): Some new testcases.
18865         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18866         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18867         y and infinite z.  Do multiplication by C already in long double.
18868         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18869         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18870         y and infinite z.  Do bitwise or of inexact bit into u.d.
18871         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18872         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18873         * sysdeps/i386/fpu/s_fma.S: Removed.
18874         * sysdeps/i386/fpu/s_fmal.S: Removed.
18875
18876 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18877
18878         [BZ #3268]
18879         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18880         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18881         computation is not scheduled after fetestexcept.  Fix value
18882         of minimum denormal long double.
18883
18884 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18885
18886         [BZ #3268]
18887         * math/libm-test.inc (fma_test): Add some more tests.
18888         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18889         correctly.
18890
18891 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18892
18893         * scripts/data/localplt-s390-linux-gnu.data: New file.
18894         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18895
18896 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18897
18898         [BZ #3268]
18899         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18900         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18901         instead of dbl-64.
18902         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18903         inlines.
18904         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18905         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18906         if one of x and y is very large and the other is subnormal.
18907         * sysdeps/s390/fpu/s_fmaf.c: New file.
18908         * sysdeps/s390/fpu/s_fma.c: New file.
18909         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18910         * sysdeps/powerpc/fpu/s_fma.S: New file.
18911         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18912         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18913         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18914
18915 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18916
18917         [BZ #3268]
18918         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18919         fma tests.
18920         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18921         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18922         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18923         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18924         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18925         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18926         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18927
18928 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18929
18930         [BZ #12078]
18931         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18932         * posix/bug-regex31.input: Add test case.
18933
18934 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18935
18936         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18937         * posix/bug-regex31.input: New file.
18938
18939         [BZ #12078]
18940         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18941         (parse_sub_exp): Fix last change, use postorder.
18942
18943         * posix/bug-regex31.c: New file.
18944         * posix/Makefile: Add rules to build and run bug-regex31.
18945
18946         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18947
18948         [BZ #12078]
18949         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18950
18951         [BZ #12108]
18952         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18953         to have entries in sys_siglist.
18954
18955         [BZ #12093]
18956         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18957         be NULL.
18958
18959 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18960
18961         [BZ #3268]
18962         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18963         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18964         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18965         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18966         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18967         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18968         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18969         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18970         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18971         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18972         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18973         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18974         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18975         * math/ftestexcept.c (fetestexcept): Likewise.
18976         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18977         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18978         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18979         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18980         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18981         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18982         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18983
18984 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18985
18986         [BZ #12107]
18987         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18988         newline.
18989
18990 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18991
18992         * string/bug-strstr1.c: New file.
18993         * string/Makefile: Add rules to build and run bug-strstr1.
18994
18995 2010-10-05  Eric Blake  <eblake@redhat.com>
18996
18997         [BZ #12092]
18998         * string/str-two-way.h (two_way_long_needle): Always clear memory
18999         when skipping input due to the shift table.
19000
19001 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19002
19003         [BZ #12005]
19004         * malloc/mcheck.c: Handle large requests.
19005
19006         [BZ #12077]
19007         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19008         for strncmp and strncasecmp.
19009         * string/stratcliff.c: Add tests for strcmp and strncmp.
19010         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19011
19012 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19013
19014         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19015         __set_fpscr.
19016
19017 2010-09-30  Andreas Jaeger  <aj@suse.de>
19018
19019         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19020         (CGROUP_SUPER_MAGIC): Define.
19021         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19022         Handle btrfs and cgroup file systems.
19023         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19024         Likewise.
19025
19026 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19027
19028         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19029         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19030
19031 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19032
19033         [BZ #12067]
19034         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19035         trying to locate the ELF header.
19036
19037 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19038
19039         [BZ #11611]
19040         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19041         Mask out sign-bit copies when constructing f_fsid.
19042
19043 2010-09-24  Petr Baudis <pasky@suse.cz>
19044
19045         * debug/stack_chk_fail_local.c: Add missing licence exception.
19046         * debug/warning-nop.c: Likewise.
19047
19048 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19049
19050         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19051         implementing getdents64 using getdents syscall, set d_type if
19052         __ASSUME_GETDENTS32_D_TYPE.
19053
19054 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19055
19056         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19057         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19058
19059 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19060
19061         [BZ #12037]
19062         * posix/unistd.h: Undo change of feature selection for ftruncate from
19063         2010-01-11.
19064
19065 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19066
19067         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19068         detection.
19069
19070 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19071
19072         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19073         fanotify_mark.
19074         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19075
19076 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19077
19078         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19079         variables after CHECK_SP call.
19080         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19081
19082 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19083             Ulrich Drepper  <drepper@redhat.com>
19084
19085         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19086         re-relocationg ld.so.
19087         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19088         _dl_init_paths call.
19089         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19090         here anymore.
19091
19092 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19093
19094         * resolv/res_init.c (__res_vinit): Count the default server we added.
19095
19096 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19097             Ulrich Drepper  <drepper@redhat.com>
19098
19099         [BZ #11968]
19100         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19101         (____longjmp_chk): Use %ebx for saving value across system call.
19102         Add unwind info.
19103
19104 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19105
19106         * manual/Makefile: Don't mix pattern rules with normal rules.
19107
19108 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19109
19110         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19111         operation.
19112         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19113         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19114         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19115         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19116         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19117         Likewise.
19118
19119 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19120
19121         [BZ #11979]
19122         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19123         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19124
19125 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19126
19127         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19128         * sysdeps/x86_64/addmul_1.S: Likewise.
19129         * sysdeps/x86_64/lshift.S: Likewise.
19130         * sysdeps/x86_64/mul_1.S: Likewise.
19131         * sysdeps/x86_64/rshift.S: Likewise.
19132         * sysdeps/x86_64/sub_n.S: Likewise.
19133         * sysdeps/x86_64/submul_1.S: Likewise.
19134
19135 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19136
19137         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19138         Define __sched_param instead of SCHED_* and sched_param when
19139         <bits/sched.h> is included with __need_schedparam defined.
19140         * bits/sched.h [__need_schedparam]
19141         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19142         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19143         (__defined_schedparam): Define to 1.
19144         (__sched_param): New structure, identical to sched_param.
19145         (__need_schedparam): Undefine.
19146
19147 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19148
19149         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19150         (epoll_create1): Declare.
19151
19152         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19153
19154 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19155
19156         [BZ #7066]
19157         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19158         shifting retval into place.
19159
19160 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19161
19162         * nis/rpcsvc/nis.h: Update copyright notice.
19163         * nis/rpcsvc/nis.x: Likewise.
19164         * nis/rpcsvc/nis_callback.h: Likewise.
19165         * nis/rpcsvc/nis_callback.x: Likewise.
19166         * nis/rpcsvc/nis_object.x: Likewise.
19167         * nis/rpcsvc/nis_tags.h: Likewise.
19168         * nis/rpcsvc/yp.h: Likewise.
19169         * nis/rpcsvc/yp.x: Likewise.
19170         * nis/rpcsvc/ypupd.h: Likewise.
19171         * nis/yp_xdr.c: Likewise.
19172         * nis/ypupdate_xdr.c: Likewise.
19173
19174         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19175         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19176         (pmap_getport): Use __libc_rpc_getport.
19177         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19178         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19179         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19180
19181 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19182
19183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19184         fanotify_mark.
19185
19186 2010-08-27  Roland McGrath  <roland@redhat.com>
19187
19188         * sysdeps/i386/i686/multiarch/Makefile
19189         (CFLAGS-varshift.c): New variable.
19190
19191 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19192
19193         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19194         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19195
19196         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19197
19198         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19199
19200 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19201
19202         * sysdeps/x86_64/strlen.S: Unroll the loop.
19203         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19204         strlen-sse2 strlen-sse2-bsf.
19205         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19206         __strlen_no_bsf if bit_Slow_BSF is set.
19207         (__strlen_sse42): Removed.
19208         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19209         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19210
19211 2010-08-25  Roland McGrath  <roland@redhat.com>
19212
19213         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19214         * sysdeps/x86_64/multiarch/varshift.c: New file.
19215         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19216         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19217         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19218         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19219
19220 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19221
19222         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19223         strlen-sse2 strlen-sse2-bsf.
19224         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19225         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19226         (__strlen_sse2): Removed.
19227         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19228         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19229         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19230         bit_Slow_BSF for Atom.
19231         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19232         (index_Slow_BSF): Define.
19233         (HAS_SLOW_BSF): Define.
19234
19235 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19236
19237         [BZ #10851]
19238         * resolv/res_init.c (__res_vinit): When no server address at all
19239         is given default to loopback.
19240
19241 2010-08-24  Roland McGrath  <roland@redhat.com>
19242
19243         * configure.in: Remove config-name.h generation.
19244         * configure: Regenerated.
19245         * config-name.in: File removed.
19246         * scripts/config-uname.sh: New file.
19247         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19248         ($(objdir)config-name.h): New target.
19249
19250         * sunrpc/rpc_parse.h: Avoid nested comment.
19251
19252 2010-08-24  Richard Henderson  <rth@redhat.com>
19253             Ulrich Drepper  <drepper@redhat.com>
19254             H.J. Lu  <hongjiu.lu@intel.com>
19255
19256         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19257         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19258         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19259         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19260         _mm_alignr_epi8 with _mm_loadu_si128.
19261         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19262         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19263         (__m128i_shift_right): Removed.
19264         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19265         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19266         * sysdeps/x86_64/multiarch/varshift.h: New file.
19267         * sysdeps/x86_64/multiarch/varshift.S: New file.
19268
19269 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19270
19271         * configure.in: Move assembler checks to before sysdep dir checking.
19272
19273 2010-08-20  Petr Baudis  <pasky@suse.cz>
19274
19275         * LICENSES: Sync the sunrpc license.
19276
19277 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19278
19279         * sunrpc/auth_des.c: Update copyright notice once again.
19280         * sunrpc/auth_none.c: Likewise.
19281         * sunrpc/auth_unix.c: Likewise.
19282         * sunrpc/authdes_prot.c: Likewise.
19283         * sunrpc/authuxprot.c: Likewise.
19284         * sunrpc/bindrsvprt.c: Likewise.
19285         * sunrpc/clnt_gen.c: Likewise.
19286         * sunrpc/clnt_perr.c: Likewise.
19287         * sunrpc/clnt_raw.c: Likewise.
19288         * sunrpc/clnt_simp.c: Likewise.
19289         * sunrpc/clnt_tcp.c: Likewise.
19290         * sunrpc/clnt_udp.c: Likewise.
19291         * sunrpc/clnt_unix.c: Likewise.
19292         * sunrpc/des_crypt.c: Likewise.
19293         * sunrpc/des_soft.c: Likewise.
19294         * sunrpc/get_myaddr.c: Likewise.
19295         * sunrpc/getrpcport.c: Likewise.
19296         * sunrpc/key_call.c: Likewise.
19297         * sunrpc/key_prot.c: Likewise.
19298         * sunrpc/openchild.c: Likewise.
19299         * sunrpc/pm_getmaps.c: Likewise.
19300         * sunrpc/pm_getport.c: Likewise.
19301         * sunrpc/pmap_clnt.c: Likewise.
19302         * sunrpc/pmap_prot.c: Likewise.
19303         * sunrpc/pmap_prot2.c: Likewise.
19304         * sunrpc/pmap_rmt.c: Likewise.
19305         * sunrpc/rpc/auth.h: Likewise.
19306         * sunrpc/rpc/auth_unix.h: Likewise.
19307         * sunrpc/rpc/clnt.h: Likewise.
19308         * sunrpc/rpc/des_crypt.h: Likewise.
19309         * sunrpc/rpc/key_prot.h: Likewise.
19310         * sunrpc/rpc/netdb.h: Likewise.
19311         * sunrpc/rpc/pmap_clnt.h: Likewise.
19312         * sunrpc/rpc/pmap_prot.h: Likewise.
19313         * sunrpc/rpc/pmap_rmt.h: Likewise.
19314         * sunrpc/rpc/rpc.h: Likewise.
19315         * sunrpc/rpc/rpc_des.h: Likewise.
19316         * sunrpc/rpc/rpc_msg.h: Likewise.
19317         * sunrpc/rpc/svc.h: Likewise.
19318         * sunrpc/rpc/svc_auth.h: Likewise.
19319         * sunrpc/rpc/types.h: Likewise.
19320         * sunrpc/rpc/xdr.h: Likewise.
19321         * sunrpc/rpc_clntout.c: Likewise.
19322         * sunrpc/rpc_cmsg.c: Likewise.
19323         * sunrpc/rpc_common.c: Likewise.
19324         * sunrpc/rpc_cout.c: Likewise.
19325         * sunrpc/rpc_dtable.c: Likewise.
19326         * sunrpc/rpc_hout.c: Likewise.
19327         * sunrpc/rpc_main.c: Likewise.
19328         * sunrpc/rpc_parse.c: Likewise.
19329         * sunrpc/rpc_parse.h: Likewise.
19330         * sunrpc/rpc_prot.c: Likewise.
19331         * sunrpc/rpc_sample.c: Likewise.
19332         * sunrpc/rpc_scan.c: Likewise.
19333         * sunrpc/rpc_scan.h: Likewise.
19334         * sunrpc/rpc_svcout.c: Likewise.
19335         * sunrpc/rpc_tblout.c: Likewise.
19336         * sunrpc/rpc_util.c: Likewise.
19337         * sunrpc/rpc_util.h: Likewise.
19338         * sunrpc/rpcinfo.c: Likewise.
19339         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19340         * sunrpc/rpcsvc/key_prot.x: Likewise.
19341         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19342         * sunrpc/rpcsvc/mount.x: Likewise.
19343         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19344         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19345         * sunrpc/rpcsvc/rex.x: Likewise.
19346         * sunrpc/rpcsvc/rstat.x: Likewise.
19347         * sunrpc/rpcsvc/rusers.x: Likewise.
19348         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19349         * sunrpc/rpcsvc/spray.x: Likewise.
19350         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19351         * sunrpc/rtime.c: Likewise.
19352         * sunrpc/svc.c: Likewise.
19353         * sunrpc/svc_auth.c: Likewise.
19354         * sunrpc/svc_authux.c: Likewise.
19355         * sunrpc/svc_raw.c: Likewise.
19356         * sunrpc/svc_run.c: Likewise.
19357         * sunrpc/svc_simple.c: Likewise.
19358         * sunrpc/svc_tcp.c: Likewise.
19359         * sunrpc/svc_udp.c: Likewise.
19360         * sunrpc/svc_unix.c: Likewise.
19361         * sunrpc/svcauth_des.c: Likewise.
19362         * sunrpc/xcrypt.c: Likewise.
19363         * sunrpc/xdr.c: Likewise.
19364         * sunrpc/xdr_array.c: Likewise.
19365         * sunrpc/xdr_float.c: Likewise.
19366         * sunrpc/xdr_mem.c: Likewise.
19367         * sunrpc/xdr_rec.c: Likewise.
19368         * sunrpc/xdr_ref.c: Likewise.
19369         * sunrpc/xdr_sizeof.c: Likewise.
19370         * sunrpc/xdr_stdio.c: Likewise.
19371
19372         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19373         handling.
19374
19375 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19376
19377         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19378
19379 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19380
19381         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19382         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19383         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19384         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19385         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19386         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19387         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19388         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19389         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19390         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19391         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19392         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19393         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19394         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19395
19396 2010-07-26  Anton Blanchard  <anton@samba.org>
19397
19398         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19399         * malloc/arena.c (heap_trim): Likewise.
19400
19401 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19402
19403         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19404         here.  Not...
19405         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19406         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19407
19408 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19409
19410         * sysdeps/i386/elf/Makefile: New file.
19411
19412 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19413
19414         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19415         from fanotify_init.
19416         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19417         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19418
19419 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19420
19421         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19422         of strncasecmp_l.
19423         * sysdeps/multiarch/strcmp.S: Likewise.
19424
19425 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19426
19427         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19428         strncase_l-nonascii.
19429         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19430         Add strncase_l-ssse3.
19431         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19432         * sysdeps/x86_64/strcmp.S: Likewise.
19433         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19434         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19435         * sysdeps/x86_64/strncase.S: New file.
19436         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19437         * sysdeps/x86_64/strncase_l.S: New file.
19438         * string/Makefile (strop-tests): Add strncasecmp.
19439         * string/test-strncasecmp.c: New file.
19440
19441         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19442         warning.
19443
19444         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19445         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19446
19447 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19448
19449         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19450
19451 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19452
19453         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19454         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19455         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19456
19457 2010-05-01  Alan Modra  <amodra@gmail.com>
19458
19459         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19460         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19461         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19462         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19463         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19464         tidying.  Don't tail-call __sigjmp_save for static lib.
19465         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19466         save location.
19467         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19468         (CALL_MCOUNT): Add eh info, and nop after bl.
19469         (TAIL_CALL_SYSCALL_ERROR): New macro.
19470         (PSEUDO_RET): Use it.
19471         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19472         Correct save location of integer regs and cr.
19473         (_dl_profile_resolve): Correct cr save location.  Delete nops
19474         after bl when SHARED.  Reduce cfi size a little by better
19475         placement of cfi directives.
19476         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19477         make a stack frame.  Instead use parm save area as a temp.
19478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19479         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19481         Don't make a stack frame for parent, use parm save area.
19482         Increase child stack frame to 112 bytes.  Don't save unused reg,
19483         and adjust reg usage.  Set up cfi on error recovery and
19484         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19486         (__makecontext): Add dummy nop after jump to exit.
19487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19488         Use correct parm save area and cr save, reduce stack frame.
19489         Correct cfi for possible PSEUDO_RET frame setup.
19490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19491         Branch to local label emitted by PSEUDO_RET rather than
19492         __syscall_error.
19493
19494 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19495
19496         [BZ #11904]
19497         * locale/programs/locale.c (print_assignment): New function.
19498         (show_locale_vars): Use it.
19499
19500 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19501
19502         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19503         field.
19504         (struct statfs64): Likewise.
19505         (_STATFS_F_FLAGS): Define.
19506         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19507         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19508         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19509         (ST_VALID): Define locally.
19510         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19511         __statvfs_getflags, use the provided value.
19512         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19513         __ASSUME_STATFS_F_FLAGS.
19514
19515         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19516
19517         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19518         Add sys/fanotify.h.
19519         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19520         fanotify_mask for GLIBC_2.13.
19521         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19522         fanotify_init and fanotify_mark.
19523         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19524         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19525
19526         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19527         Add prlimit.
19528         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19529         prlimit64 for GLIBC_2.13.
19530         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19531         prlimit64.
19532         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19533         syscall.
19534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19535         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19536         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19537         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19538         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19539         add prlimit alias.
19540         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19541
19542         [BZ #11903]
19543         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19544         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19545
19546         * nss/Makefile: Add rules to build and run tst-nss-test1.
19547         * shlib-versions: Add entry for libnss_test1.
19548         * nss/nss_test1.c: New file.
19549         * nss/tst-nss-test1.c: New file.
19550
19551         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19552         (__nss_configure_lookup): Set appropriate entry in
19553         __nss_configure_lookup to true.
19554         * nss/nsswitch.h: Define enum with indeces of databases in
19555         databases and __nss_database_custom arrays.  Declare
19556         __nss_database_custom.
19557         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19558         to avoid using nscd when custom rules are installed.
19559         * nss/getXXbyYY_r.c: Likewise.
19560         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19561
19562         * nss/nss_files/files-parse.c: Whitespace fixes.
19563
19564 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19565
19566         [BZ #11883]
19567         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19568         * posix/fnmatch_loop.c: Likewise.
19569
19570 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19571
19572         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19573         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19574         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19575         * Versions.def [GLIBC_2.13]: Add.
19576
19577 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19578
19579         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19580         Also fail if tpwd after pwuid call is NULL.
19581
19582 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19583
19584         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19585         when converting to ms.
19586
19587 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19588
19589         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19590         EOPNOTSUPP errors with ENOTTY.
19591         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19592         EOPNOTSUPP errors with ENOTTY.
19593
19594 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19595
19596         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19597         Add strcasecmp_l-ssse3.
19598         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19599         strcasecmp.
19600         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19601         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19602         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19603
19604 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19605
19606         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19607
19608         * string/Makefile (strop-tests): Add strcasecmp.
19609         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19610         strcasecmp_l-nonascii.
19611         (gen-as-const-headers): Add locale-defines.sym.
19612         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19613         * sysdeps/x86_64/strcasecmp.S: New file.
19614         * sysdeps/x86_64/strcasecmp_l.S: New file.
19615         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19616         * sysdeps/x86_64/locale-defines.sym: New file.
19617         * string/test-strcasecmp.c: New file.
19618
19619         * string/test-strcasestr.c: Test both ends of the range of characters.
19620         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19621
19622 2010-07-29  Roland McGrath  <roland@redhat.com>
19623
19624         [BZ #11856]
19625         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19626
19627 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19628
19629         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19630         for ld.so.
19631
19632 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19633
19634         * manual/memory.texi (Malloc Tunable Parameters): Document
19635         M_PERTURB.
19636
19637 2010-07-26  Roland McGrath  <roland@redhat.com>
19638
19639         [BZ #11840]
19640         * configure.in (-fgnu89-inline check): Set and substitute
19641         gnu89_inline, not libc_cv_gnu89_inline.
19642         * configure: Regenerated.
19643         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19644
19645 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19646
19647         * string/test-strnlen.c: New file.
19648         * string/Makefile (strop-tests): Add strnlen.
19649         * string/tester.c (test_strnlen): Add a few more test cases.
19650         * string/tst-strlen.c: Better error reporting.
19651
19652         * sysdeps/x86_64/strnlen.S: New file.
19653
19654 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19655
19656         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19657         lower-latency instructions.
19658
19659 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19660
19661         * string/test-strcasestr.c: New file.
19662         * string/test-strstr.c: New file.
19663         * string/Makefile (strop-tests): Add strstr and strcasestr.
19664         * string/str-two-way.h: Don't undefine MAX.
19665         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19666
19667 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19668
19669         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19670         strcasestr-nonascii.
19671         (CFLAGS-strcasestr-nonascii.c): Define.
19672         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19673         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19674         Remove unused attribute.
19675
19676 2010-07-20  Roland McGrath  <roland@redhat.com>
19677
19678         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19679         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19680         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19681         like LD_HWCAP_MASK can disable hwcaps.
19682
19683 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19684
19685         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19686
19687 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19688
19689         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19690         call in strcasestr.
19691         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19692         __strcasestr_sse42_nonascii.
19693         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19694         strcasestr-nonascii.c.
19695         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19696
19697 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19698
19699         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19700         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19701         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19702         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19703
19704 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19705
19706         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19707         fcntl.
19708
19709 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19710
19711         [BZ #11577]
19712         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19713         dl_signal_cerror.
19714
19715 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19716
19717         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19718         _PC_PIPE_BUF using F_GETPIPE_SZ.
19719
19720 2010-07-05  Roland McGrath  <roland@redhat.com>
19721
19722         * manual/arith.texi (Rounding Functions): Fix rint description
19723         implicit in round description.
19724
19725 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19726
19727         * elf/Makefile: Fix linking for a few tests to make recent linker
19728         happy.
19729
19730 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19731
19732         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19733         $(common-objpfx)libc_nonshared.a.
19734
19735 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19736
19737         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19738         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19739         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19740         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19741         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19742         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19743         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19744         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19759         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19760         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19761         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19762         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19763         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19764         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19765         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19766         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19767         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19768         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19769         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19770         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19785
19786 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19787
19788         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19789         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19790         * string/memmove.c (memmove): Renamed to ...
19791         (MEMMOVE): ...this.  Default to memmove.
19792         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19793         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19794         (END_CHK): Define.
19795         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19796         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19797         mempcpy-ssse3-back memmove-ssse3-back.
19798         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19799         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19800         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19801         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19802         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19803         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19804         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19805         * sysdeps/x86_64/multiarch/memmove.c: New file.
19806         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19807         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19808         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19809         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19810         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19811         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19812         Define.
19813         (index_Fast_Copy_Backward): Define.
19814         (HAS_ARCH_FEATURE): Define.
19815         (HAS_FAST_REP_STRING): Define.
19816         (HAS_FAST_COPY_BACKWARD): Define.
19817
19818 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19819
19820         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19821         Restore proper fallback handling.
19822
19823 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19824
19825         [BZ #11701]
19826         * posix/group_member.c (__group_member): Correct checking loop.
19827
19828         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19829         OOM in getpwuid_r correctly.  Return error number when the caller
19830         should return, otherwise -1.
19831         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19832         call returning > 0 value.
19833         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19834
19835 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19836
19837         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19838         libc_nonshared.a from targets in modules-names.
19839
19840 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19841
19842         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19843         requires it.
19844
19845 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19846
19847         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19848         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19849         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19850         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19851
19852 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19853
19854         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19855
19856 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19857
19858         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19859         and F_GETPIPE_SZ.
19860         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19861         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19862         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19863         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19864         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19865         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19866
19867 2010-06-14  Roland McGrath  <roland@redhat.com>
19868
19869         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19870
19871 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19872
19873         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19874         __REDIRECT followed by __THROW.
19875         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19876         * posix/getopt.h (getopt): Likewise.
19877
19878 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19879
19880         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19881         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19882         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19883         in AT_FLAGS.
19884         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19885         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19886
19887 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19888
19889         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19890
19891 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19892
19893         [BZ #11640]
19894         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19895         Properly check family and model.
19896
19897 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19898
19899         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19900
19901 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19902
19903         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19904
19905 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19906
19907         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19908         symbol reference.
19909
19910 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19911
19912         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19913         symbol reference.
19914
19915 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19916
19917         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19918         and internal_recvmmsg.
19919         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19920         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19921         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19922         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19923
19924         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19925         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19926         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19927
19928 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19929
19930         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19931
19932 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19933
19934         POWER7 optimizations.
19935         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19936         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19937
19938 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19939
19940         * version.h: Update for 2.13 development version.
19941
19942 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19943
19944         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19945         exceptions.  Return 0.
19946
19947 2010-05-07  Roland McGrath  <roland@redhat.com>
19948
19949         * elf/ldconfig.c (main): Add a const.
19950
19951 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19952
19953         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19954         (args_options): Add no-idn option.
19955         (ahosts_keys_int): Add idn_flags to ai_flags.
19956         (parse_option): Handle 'i' option to clear idn_flags.
19957
19958         * malloc/malloc.c (_int_free): Possible race in the most recently
19959         added check.  Only act on the data if no current modification
19960         happened.
19961
19962 See ChangeLog.17 for earlier changes.