Retry read in ld.so if the entire ELF header is not read in
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         [BZ #13601]
4         * elf/dl-load.c (open_verify): Retry read if the entire ELF
5         header is not read in.
6
7 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
8
9         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
10         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
11         directly.  Pass built executable to script as
12         $(built-program-cmd).
13         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
14         $testprogram without using LD_LIBRARY_PATH and $ldso.
15
16         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
17         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
18         $(rtld-installed-name).
19         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
20         (rtld_installed_name): Likewise.
21         (library_path): Likewise.
22         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
23         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
24         $(run-program-prefix) to tst-tables.sh.
25         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26         it to run tst-table-from and tst-table-to.
27         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
28         Pass it to tst-table.sh.
29         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
30         $(run-program-prefix) to tst-gettext.sh.
31         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
32         tst-translit.sh.
33         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
34         tst-gettext2.sh.
35         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
36         to run tst-gettext.
37         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
38         to run tst-gettext2.
39         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
40         to run tst-translit.
41         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
42         $(run-program-prefix) to tst-mtrace.sh.
43         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
44         to run tst-mtrace.
45         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
46         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
47         $(rtld-installed-name).
48         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
49         (rtld_installed_name): Likewise.
50         (run_program_prefix): New variable.  Use it to run wordexp-test.
51
52         * Makeconfig (ARCH): Remove all definitions.
53         (machine): Likewise.
54         [ARCH]: Remove conditional code.
55         [!objdir]: Give error.
56         [!objdir] (objpfx): Remove.
57         [!objdir] (common-objpfx): Likewise.
58         [!objdir] (common-objdir): Likewise.
59         * configure.in (config_makefile): Remove.  Hardcode Makefile in
60         AC_CONFIG_FILES call.
61         * configure: Regenerated.
62
63         [BZ #13888]
64         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
65         or TMPDIR.
66         (testout): Likewise.
67
68         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
69         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
70         $(rtld-installed-name).
71         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
72         (rtld_installed_name): Likwise.
73         (runit): Remove function.
74         (run_getconf): New variable,  Use it for running getconf binary.
75
76 2012-10-19  Jim Blandy  <jimb@codesourcery.com>
77             Joseph Myers  <joseph@codesourcery.com>
78
79         * localedata/tst-wctype.sh (run_program_prefix): Remove variable.
80         (tst_wctype): New variable.  Use it directly to run test program
81         instead of passing test program name as argument.
82
83 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
84
85         [BZ #14716]
86         * string/test-memmem.c (check_result): New function.
87         (do_one_test): Use it.
88         (check1): New function.
89         (test_main): Use it.
90
91 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
92
93         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
94
95 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
96
97         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
98         (_G_LSEEK64): Likewise.
99         (_G_MMAP64): Likewise.
100         (_G_FSTAT64): Likewise.
101         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
102         (_G_LSEEK64): Likewise.
103         (_G_MMAP64): Likewise.
104         (_G_FSTAT64): Likewise.
105         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
106         unconditional.  Call __mmap64 directly.
107         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
108         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
109         __lseek64 directly.
110         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
111         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
112         __mmap64 directly.
113         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
114         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
115         __lseek64 directly.
116         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
117         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
118         __lseek64 directly.
119         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
120         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
121         __lseek64 directly.
122         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
123         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
124         __fxstat64 directly.
125         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
126         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
127         unconditional.
128         (freopen64) [!_G_OPEN64]: Remove conditional code.
129         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
130         unconditional.
131         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
132         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
133         unconditional.
134         (ftello64) [!_G_LSEEK64]: Remove conditional code.
135         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
136         unconditional.
137         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
138         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
139         unconditional.
140         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
141         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
142         unconditional.
143         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
144         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
145         unconditional.
146         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
147         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
148         unconditional.
149         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
150
151 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
152
153         [BZ #12140]
154         * manual/memory.texi (Malloc Tunable Parameters): Add note
155         about free list pointers overwriting some perturb bytes.
156         Wording suggested by Roland McGrath.
157
158 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
159
160         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
161         (lgamma_test): Likewise.
162         (tgamma_test): Likewise.
163
164 2012-10-16  Florian Weimer  <fweimer@redhat.com>
165
166         [BZ #14700]
167         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
168         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
169
170 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
171
172         * NEWS: Mention BZ #14716.
173         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
174         when removing AVAILABLE1_USES_J macro.
175
176 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
177
178         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
179         (__bswap_64): __uint64_t for unsigned 64-bit int.
180
181 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
182
183         * include/string.h (memmem): Declare libc hidden alias.
184         * string/memmem.c (memmem): Define libc hidden alias.
185         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
186         __read, __close instead of open, read, close.
187
188 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
189
190         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
191         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
192         global and hidden.
193         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
194         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
195         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
196         Likewise.
197         (__rawmemchr_sse2): Likewise.
198         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
199         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
200         (__strchr_sse2): Likewise.
201         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
202         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
203         (__strcasecmp_sse2): Likewise.
204         (__strncasecmp_sse2): Likewise.
205         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
206         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
207         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
208         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
209         (__strrchr_sse2): Likewise.
210         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
211         ifunc-impl-list.c.
212         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
213         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
214         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
215         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
216         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
217         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
218         * sysdeps/x86_64/multiarch/memset.S: Likewise.
219         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
220         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
221         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
222         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
223         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
224         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
225         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
226         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
227         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
228         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
229         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
230         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
231         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
232         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
233         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
234         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
235         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
236         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
237         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
238         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
239         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
240         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
241         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
242
243         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
244         global and hidden.
245         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
246         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
247         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
248         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
249         Likewise.
250         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
251         Likewise.
252         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
253         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
254         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
255         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
256         ifunc-impl-list.c.
257         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
258         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
259         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
260         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
261         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
262         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
263         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
264         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
265         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
266         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
267         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
268         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
269         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
270         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
271         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
272         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
273         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
274         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
275         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
276         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
277         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
278         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
279         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
280         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
281         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
282         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
283         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
284         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
285         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
286         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
287         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
288         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
289         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
290         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
291         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
292         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
293         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
294         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
295         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
296         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
297         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
298
299         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
300         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
301         * include/ifunc-impl-list.h: New file.
302         * misc/ifunc-impl-list.c: Likewise.
303         * misc/Makefile (routines): Add ifunc-impl-list.
304         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
305         * string/test-string.h: Include <ifunc-impl-list.h>.
306         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
307         impl_array): New variables.
308         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
309         are defined.
310         (test_init): Call __libc_ifunc_impl_list to initialize
311         func_list if TEST_IFUNC and TEST_NAME are defined.
312
313         * string/Makefile (strop-tests): Add bcopy and bzero.
314         * string/test-bcopy.c: New file.
315         * string/test-bzero.c: Likewise.
316         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
317         defined.
318         * string/test-memset.c: Support bzero test if TEST_BZERO is
319         defined.
320         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
321         __libc_memmove.
322         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
323         __libc_memset.
324         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
325         of memset.
326
327 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
328
329         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
330         * configure: Regenerated.
331
332         * Makeconfig (+link-static-before-libc): Don't include
333         $(link-static-libc).
334
335         * libio/libio.h (_IO_pos_t): Remove.
336
337 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
338
339         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
340         McGrath.
341
342 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
343
344         * crypt/crypt-entry.c: Include fips-private.h.
345         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
346         * crypt/md5c-test.c (main): Tolerate disabled MD5.
347         * sysdeps/unix/sysv/linux/fips-private.h: New file.
348         * sysdeps/generic/fips-private.h: New file, dummy fallback.
349
350 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
351
352         * crypt/crypt-private.h: Include stdbool.h.
353         (_ufc_setup_salt_r): Return bool.
354         * crypt/crypt-entry.c: Include errno.h.
355         (__crypt_r): Return NULL with EINVAL for bad salt.
356         * crypt/crypt_util.c (bad_for_salt): New.
357         (_ufc_setup_salt_r): Check that salt is long enough and within
358         the specified alphabet.
359         * crypt/badsalttest.c: New file.
360         * crypt/Makefile (tests): Add it.
361         ($(objpfx)badsalttest): New.
362
363 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
364
365         * NEWS: Add entry for BZ #14602.
366
367 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
368
369         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
370         type-generic.
371         * math/libm-test.inc: Update comment listing what functions and
372         macros are tested.
373         (isgreater_test): New function.
374         (isgreaterequal_test): Likewise.
375         (isless_test): Likewise.
376         (islessequal_test): Likewise.
377         (islessgreater_test): Likewise.
378         (isunordered_test): Likewise.
379         (main): Call the new functions.
380
381 2012-10-09  Roland McGrath  <roland@hack.frob.com>
382
383         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
384         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
385         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
386         * sysdeps/i386/configure: Regenerated.
387         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
388         * sysdeps/mach/configure: Regenerated.
389         * sysdeps/mach/hurd/configure: Regenerated.
390         * sysdeps/powerpc/configure: Regenerated.
391         * sysdeps/powerpc/powerpc32/configure: Regenerated.
392         * sysdeps/powerpc/powerpc64/configure: Regenerated.
393         * sysdeps/s390/s390-32/configure: Regenerated.
394         * sysdeps/s390/s390-64/configure: Regenerated.
395         * sysdeps/sh/configure: Regenerated.
396         * sysdeps/sparc/configure: Regenerated.
397         * sysdeps/unix/sysv/linux/configure: Regenerated.
398         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
399         * sysdeps/x86_64/configure: Regenerated.
400
401         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
402         defined.  Don't check if MAP is NULL.
403
404 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
405
406         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
407         (_G_stat64): Likewise.
408         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
409         (_G_stat64): Likewise.
410         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
411         instead of struct _G_stat64.
412         * libio/fileops.c (mmap_remap_check): Likewise.
413         (decide_maybe_mmap): Likewise.
414         (_IO_new_file_seekoff): Likewise.
415         (_IO_file_stat): Likewise.
416         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
417         _G_off64_t.
418         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
419         instead of struct _G_stat64.
420         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
421
422 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
423
424         [BZ #14602]
425         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
426         Replace with ...
427         (CHECK_EOL): New macro.
428         (two_way_short_needle): Check beginning of haystack for EOL.  Use
429         CHECK_EOL.
430         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
431         Replace with CHECK_EOL.
432         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
433         Replace with CHECK_EOL.
434
435 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
436
437         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
438         type-generic.
439         * math/libm-test.inc: Update comment listing what functions and
440         macros are tested.
441         (finite_test): New function.
442         (isinf_test): Likewise.
443         (isnan_test): Likewise.
444         (fpclassify_test): Test subnormal input.
445         (isfinite_test): Likewise.
446         (isnormal_test): Likewise.
447         (main): Call the new functions.
448
449 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
450
451         [BZ #14660]
452         * Makerules (%.dynsym): Force C locale when running
453         $(OBJDUMP) --dynamic-syms.
454
455 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
456
457         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
458         <stdint.h>.
459
460 2012-10-06  David S. Miller  <davem@davemloft.net>
461
462         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
463         upper 32-bits of the length value in %o2 since we use branch-on-register
464         tests which consider the entire 64-bit register.
465
466 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
467
468         * string/test-strstr.c (check2): Add a test for page boundary.
469
470 2012-10-05  David S. Miller  <davem@davemloft.net>
471
472         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
473         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
474         file.
475         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
476         sysdep_routines.
477         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
478         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
479         and bzero when HWCAP_SPARC_CRYPTO is present.
480
481 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
482
483         [BZ #14602]
484         * string/test-strstr.c (check2): New function.
485         (test_main): Call check2.
486
487         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
488         and bug-strchr1.
489         * string/bug-strcasestr1.c (do_test): Moved to ...
490         * string/test-strcasestr.c (check1): Here.  New function.
491         (do_one_test): Break out result checking code into ...
492         (check_result): This.  New function.
493         (do_one_test): Call check_result.
494         (test_main): Call check1.
495         * string/bug-strchr1.c (do_test): Moved to ...
496         * string/test-strchr.c (check1): Here.  New function.
497         (do_one_test): Break out result checking code into ...
498         (check_result): This.  New function.
499         (do_one_test): Call check_result.
500         (test_main): Call check1.
501         * string/bug-strstr1.c (main): Moved to ...
502         * string/test-strchr.c (check1): Here.  New function.
503         (do_one_test): Break out result checking code into ...
504         (check_result): This.  New function.
505         (do_one_test): Call check_result.
506         (test_main): Call check1.
507         * string/bug-strcasestr1.c: Removed.
508         * string/bug-strchr1.c: Likewise.
509         * string/bug-strstr1.c: Likewise.
510
511         * elf/Makefile (dl-routines): Add hwcaps.
512         * elf/dl-support.c (_dl_important_hwcaps): Removed.
513         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
514         (_dl_important_hwcaps): Moved to ...
515         * elf/dl-hwcaps.c: Here.  New file.
516         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
517
518         [BZ #14557]
519         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
520         if IS_IN_rtld isn't defined.
521
522         * elf/dl-support.c (_dl_sysinfo_map): New.
523         Include "get-dynamic-info.h" and "setup-vdso.h".
524         (_dl_non_dynamic_init): Call setup_vdso.
525         * elf/dynamic-link.h: Don't include <assert.h>.
526         (elf_get_dynamic_info): Moved to ...
527         * elf/get-dynamic-info.h: Here.  New file.
528         * elf/dynamic-link.h: Include "get-dynamic-info.h".
529         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
530         * elf/setup-vdso.h: Here.  New file.
531         * elf/rtld.c: Include "setup-vdso.h".
532         (dl_main): Call setup_vdso.
533
534 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
535
536         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
537         creal in comment listing functions tested.  List finite, isinf,
538         isnan, isless, islessequal, isgreater, isgreaterequal,
539         islessgreater, isunordered, lgamma_r and pow10 as functions and
540         macros not tested.  Mention which functions not tested are aliases
541         for other functions.  Fix typo.  Note that signs of NaNs are not
542         tested.
543
544         * scripts/config.guess: Update from config.git.
545         * scripts/config.sub: Likewise.
546
547 2012-10-04  Roland McGrath  <roland@hack.frob.com>
548
549         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
550         * misc/madvise.c (madvise): Renamed to __madvise.
551         Make madvise a weak alias.
552         * include/sys/mman.h: Declare __madvise.
553         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
554         * sysdeps/unix/syscalls.list
555         (madvise): Make __madvise the strong name, and madvise a weak alias.
556         * sysdeps/unix/sysv/linux/syscalls.list
557         (madvise, mmap): Remove redundant entries.
558         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
559         * malloc/malloc.c (mtrim): Likewise.
560         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
561
562 2012-10-03  Roland McGrath  <roland@hack.frob.com>
563
564         * sysdeps/mach/hurd/dl-cache.c: File removed.
565         * config.h.in (USE_LDCONFIG): New #undef.
566         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
567         * configure: Regenerated.
568         * elf/Makefile (dl-routines): Add dl-cache only under
569         [$(use-ldconfig) = yes].
570         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
571         cache on [USE_LDCONFIG].
572         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
573         [USE_LDCONFIG].
574         * elf/rtld.c (dl_main): Likewise.
575
576 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
577
578         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
579         _SC_LEVEL4_CACHE_LINESIZE.
580
581 2012-10-03  Roland McGrath  <roland@hack.frob.com>
582
583         * sysdeps/unix/bsd/confstr.h: File removed.
584
585 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
586
587         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
588         sys/sdt-config.h.
589
590 2012-10-02  Roland McGrath  <roland@hack.frob.com>
591
592         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
593         Make 'mapoff' field ElfW(Off) rather than off_t.
594
595 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
596
597         * nscd/Makefile: Remove nscd-cflags and all its users.
598         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
599         (CFLAGS-nonlib): Add compiler flags for nscd modules.
600
601         [BZ #10631]
602         * malloc.c (malloc_printerr): Clarify error message.
603
604 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
605
606         [BZ #14648]
607         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
608         Set bit_FMA_Usable if FMA is supported.
609         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
610         macro.
611         (bit_FMA4_Usable): Updated.
612         (index_FMA_Usable): New macro.
613         (CPUID_FMA): Likewise
614         (HAS_FMA): Defined with bit_FMA_Usable.
615
616 2012-10-01  Roland McGrath  <roland@hack.frob.com>
617
618         * bits/types.h (__swblk_t): Type removed.
619         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
620         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
621         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
622         (__SWBLK_T_TYPE): Likewise.
623         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
624         (__SWBLK_T_TYPE): Likewise.
625         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
626         (__SWBLK_T_TYPE): Likewise.
627         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
628         (__SWBLK_T_TYPE): Likewise.
629
630 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
631             Honza Horak <hhorak@redhat.com>
632
633         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
634         (xdr_mapname): Use YPMAXMAP as maxsize.
635         (xdr_peername): Use YPMAXPEER as maxsize.
636         (xdr_keydat): Use YPAXRECORD as maxsize.
637         (xdr_valdat): Use YPMAXRECORD as maxsize.
638
639 2012-10-01  Roland McGrath  <roland@hack.frob.com>
640
641         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
642
643         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
644         * csu/init-first.c: ... here.
645         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
646         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
647         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
648         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
649         * sysdeps/i386/init-first.c: File removed.
650         * sysdeps/sh/init-first.c: File removed.
651
652 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
653
654         [BZ #14645]
655         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
656         if x * y might underflow to zero and z is zero.
657         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
658         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
659         * math/libm-test.inc (min_subnorm_value): New variable.
660         (fma_test): Add more tests.
661         (fma_test_towardzero): Likewise.
662         (fma_test_downward): Likewise
663         (fma_test_upward): Likewise.
664         (initialize): Set min_subnorm_value.
665
666 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
667
668         [BZ #14638]
669         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
670         0 + 0.
671         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
672         mode for addition resulting in exact zero.
673         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
674         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
675         exact 0 + 0.
676         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
677         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
678         * math/libm-test.inc (fma_test): Add more tests.
679         (fma_test_towardzero): New function.
680         (fma_test_downward): Likewise.
681         (fma_test_upward): Likewise.
682         (main): Call the new functions.
683
684 2012-09-28  David S. Miller  <davem@davemloft.net>
685
686         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
687
688 2012-09-28  Roland McGrath  <roland@hack.frob.com>
689
690         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
691         instead of SIGALRM.
692
693         * sysdeps/gnu/_G_config.h: Moved to ...
694         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
695         * sysdeps/mach/hurd/_G_config.h: Moved to ...
696         * sysdeps/generic/_G_config.h: ... here.
697
698         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
699
700         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
701
702         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
703         Conditionalize target on [libnss_test1.so-version].
704
705         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
706
707         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
708         (elfobjdir): Move out of conditionals.
709
710         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
711         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
712         (__nss_lookup_function): Conditionalize label remove_from_tree on
713         [!DO_STATIC_NSS || SHARED], matching its only use.
714
715 2012-09-28  David S. Miller  <davem@davemloft.net>
716
717         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
718         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
719         file.
720         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
721         sysdep_routines.
722         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
723         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
724         when HWCAP_SPARC_CRYPTO is present.
725
726 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
727
728         * io/tst-mknodat.c: Create a FIFO instead of a socket.
729
730 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
731
732         [BZ #6530]
733         * stdio-common/vfprintf.c (process_string_arg): Revert
734         2000-07-22 change.
735
736 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
737
738         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
739         for testcase.
740         * stdio-common/tst-sprintf.c: Include <locale.h>
741         (main): Test sprintf's handling of incomplete multibyte
742         characters.
743
744 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
745
746         * elf/dl-runtime.c (VERSYMIDX): Removed.
747         * elf/dl-version.c (VERSYMIDX): Likewise.
748         * elf/do-rel.h (VERSYMIDX): Likewise.
749         (VALIDX): Likewise.
750         * elf/dynamic-link.h (VERSYMIDX): Likewise.
751         * elf/rtld.c (VALIDX): Likewise.
752         (ADDRIDX): Likewise.
753         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
754         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
755         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
756         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
757         (VALIDX): Likewise.
758         (ADDRIDX): Likewise.
759
760 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
761
762         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
763
764 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
765
766         [BZ #11438]
767         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
768         to global scope.
769         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
770         addresses are in the same scope as 192.0.2/24.
771         * posix/gai.conf: Document new scope table defaults.
772
773 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
774
775         [BZ #5298]
776         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
777         for ftell.  Compute offsets from write pointers instead.
778         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
779
780 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
781
782         [BZ #14543]
783         * libio/Makefile (tests): New test case tst-fseek.
784         * libio/tst-fseek.c: New test case to verify that fseek/ftell
785         combination works in wide mode.
786         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
787         state when the external buffer state changes.
788
789 2012-09-27  David S. Miller  <davem@davemloft.net>
790
791         [BZ #14376]
792         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
793         pass reloc->r_addend in as the 'high' argument to
794         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
795
796         * sysdeps/sparc/fpu/libm-test-ulps: Update.
797
798 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
799
800         * rt/tst-aio2.c: Include <pthread.h>.
801         * rt/tst-aio3.c: Likewise.
802
803 2012-09-27  Steve Ellcey  <sellcey@mips.com>
804
805         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
806
807 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
808
809         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
810         contents on [SHARED].
811
812 2012-09-26  Marek Polacek  <polacek@redhat.com>
813
814         [BZ #14530]
815         [BZ #13741]
816         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
817         for C++ and GCC <4.3 as well as for non GCC compilers.
818
819 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
820
821         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
822
823 2012-09-25  Roland McGrath  <roland@hack.frob.com>
824
825         * Makefile.in (all, install): Declare with .PHONY.
826         Reported by Michael Hope <michael.hope@linaro.org>.
827
828 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
829
830         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
831         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
832         system header.
833         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
834         Likewise.
835         (sydep_routines): Add the new and the internal functions.
836         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
837         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
839         (GLIBC_2.17): Add the new function.
840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
841         (GLIBC_2.17): Likewise.
842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
843         (GLIBC_2.17): Likewise.
844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
845         (GLIBC_2.17): Likewise.
846         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
847
848 2012-09-25  Alan Modra  <amodra@gmail.com>
849
850         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
851         Add release barrier before setting once_control to say
852         initialisation is done.  Add hints on lwarx.  Use macro in
853         place of isync.
854         (clear_once_control): Add release barrier.
855
856 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
857
858         [BZ #13629]
859         * math/s_clog.c (__clog): Handle more values close to |z| = 1
860         specially.
861         * math/s_clog10.c (__clog10): Likewise.
862         * math/s_clog10f.c (__clog10f): Likewise.
863         * math/s_clog10l.c (__clog10l): Likewise.
864         * math/s_clogf.c (__clogf): Likewise.
865         * math/s_clogl.c (__clogl): Likewise.
866         * math/Makefile (libm-calls): Add x2y2m1.
867         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
868         (__x2y2m1): Likewise.
869         (__x2y2m1l): Likewise.
870         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
871         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
872         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
873         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
874         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
875         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
876         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
877         * sysdeps/i386/fpu/libm-test-ulps: Update.
878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
879
880         [BZ #14621]
881         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
882         int as type of variable DEPTH.
883         (glob): Use size_t instead of int as type of variables NEWCOUNT
884         and OLD_PATHC.
885
886 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
887
888         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
889         Add s_sincosf-sse2.
890         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
891         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
892         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
893         macros for using routine as __sincosf_ia32.
894         Use macro for function declaration and weak_alias.
895         * sysdeps/i386/fpu/libm-test-ulps: Update.
896
897         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
898         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
899
900         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
901         subnormal argument.
902         * math/s_cexpf.c (__cexpf): Likewise.
903         * math/s_csinf.c (__csinf): Likewise.
904         * math/s_csinhf.c (__csinhf): Likewise.
905         * math/s_ctanf.c (__ctanf): Likewise.
906         * math/s_ctanhf.c (__ctanhf): Likewise.
907         * math/s_ccosh.c (__ccoshf): Likewise.
908         * math/s_cexp.c (__cexpl): Likewise.
909         * math/s_csin.c (__csin): Likewise.
910         * math/s_csinh.c (__csinh): Likewise.
911         * math/s_ctan.c (__ctan): Likewise.
912         * math/s_ctanh.c (ctanh): Likewise.
913         * math/s_ccoshl.c (__ccoshl): Likewise.
914         * math/s_cexpl.c (__cexpl): Likewise.
915         * math/s_csinl.c (__csinl): Likewise.
916         * math/s_csinhl.c (__csinhl): Likewise.
917         * math/s_ctanl.c (__ctanl): Likewise.
918         * math/s_ctanhl.c (__ctanhl): Likewise.
919
920 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
921
922         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
923         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
924         (_IO_off_t): Define to __off_t, not _G_off_t.
925         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
926         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
927         (_IO_wint_t): Define to wint_t, not _G_wint_t.
928         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
929         type of __dummy and __dummy2 fields.
930         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
931         (_G_ssize_t): Likewise.
932         (_G_off_t): Likewise.
933         (_G_pid_t): Likewise.
934         (_G_uid_t): Likewise.
935         (_G_wchar_t): Likewise.
936         (_G_wint_t): Likewise.
937         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
938         (_G_ssize_t): Likewise.
939         (_G_off_t): Likewise.
940         (_G_pid_t): Likewise.
941         (_G_uid_t): Likewise.
942         (_G_wchar_t): Likewise.
943         (_G_wint_t): Likewise.
944         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
945         (_G_ssize_t): Likewise.
946         (_G_off_t): Likewise.
947         (_G_pid_t): Likewise.
948         (_G_uid_t): Likewise.
949         (_G_wchar_t): Likewise.
950         (_G_wint_t): Likewise.
951
952 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
953
954         * malloc/arena.c: Include malloc-sysdep.h.
955         (shrink_heap): Use check_may_shrink_heap to decide if madvise
956         is sufficient to shrink the heap or an unmap is needed.
957         * sysdeps/generic/malloc-sysdep.h: New file.  Define
958         new function check_may_shrink_heap.
959         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
960         new function check_may_shrink_heap.
961
962 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
963
964         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
965         comments.
966
967 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
968
969         * catgets/test-gencat.sh: Add "set -e".
970         * elf/tst-pathopt.sh: Likewise.
971         * grp/tst_fgetgrent.sh: Likewise.
972         * iconvdata/run-iconv-test.sh: Likewise.
973         * intl/tst-gettext.sh: Likewise.
974         * intl/tst-gettext2.sh: Likewise.
975         * intl/tst-gettext4.sh: Likewise.
976         * intl/tst-gettext6.sh: Likewise.
977         * intl/tst-translit.sh: Likewise.
978         * io/ftwtest-sh: Likewise.
979         * libio/test-freopen.sh: Likewise.
980         * malloc/tst-mtrace.sh: Likewise.
981         * posix/globtest.sh: Likewise.
982         * posix/tst-getconf.sh: Likewise.
983         * posix/wordexp-tst.sh: Likewise.
984         * stdio-common/tst-printf.sh: Likewise.
985         * stdio-common/tst-unbputc.sh: Likewise.
986         * stdlib/tst-fmtmsg.sh: Likewise.
987         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
988         * catgets/Makefile: Do not specify -e option when running
989         testsuite shell scripts.
990         * elf/Makefile: Likewise.
991         * grp/Makefile: Likewise.
992         * iconvdata/Makefile: Likewise.
993         * intl/Makefile: Likewise.
994         * io/Makefile: Likewise.
995         * libio/Makefile: Likewise.
996         * malloc/Makefile: Likewise.
997         * posix/Makefile: Likewise.
998         * stdio-common/Makefile: Likewise.
999         * stdlib/Makefile: Likewise.
1000         * sysdeps/x86_64/Makefile: Likewise.
1001
1002         * io/ftwtest-sh: Add copyright header.
1003         * posix/globtest.sh: Likewise.
1004         * posix/tst-getconf.sh: Likewise.
1005         * posix/wordexp-tst.sh: Likewise.
1006         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1007
1008 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1009
1010         [BZ #13679]
1011         * Makeconfig (+link): Defined as $(+link-static) if
1012         $(build-shared) isn't yes.
1013         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1014         isn't yes.
1015         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1016
1017         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1018
1019         [BZ #14562]
1020         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1021         new chunk size with MALLOC_ALIGN_MASK.
1022
1023 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1024
1025         [BZ #5044]
1026         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1027         <rounding-mode.h>.
1028         (__printf_fphex): Determine rounding using get_rounding_mode and
1029         round_away.
1030         * stdio-common/tst-printf-round.c (struct hex_test): New
1031         structure.
1032         (hex_tests): New variable.
1033         (test_hex_in_one_mode): New function.
1034         (do_test): Also run tests for hex float output.
1035
1036 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1037
1038         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1039         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1040         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1041         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1042         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1043         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1044         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1045         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1046
1047 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1048
1049         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1050         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1051         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1052         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1053
1054 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1055
1056         [BZ #14579]
1057         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1058         mode only.
1059         * elf/tst-rtld-load-self.sh: New test.
1060         * elf/Makefile: Run it.
1061
1062 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1063
1064         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1065         (tst-writev-ENV): Remove.
1066         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1067
1068 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1069
1070         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1071
1072 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1073
1074         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1075         unconditional.
1076         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1077         Likewise.
1078         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1079         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1080         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1081         Likewise.
1082
1083 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1084
1085         [BZ #14587]
1086         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1087         * config.make.in (have-cpp-asm-debuginfo): Removed.
1088         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1089         * configure: Regenerated.
1090
1091 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1092
1093         [BZ #5044]
1094         * stdio-common/printf_fp.c: Include <stdbool.h> and
1095         <rounding-mode.h>.
1096         (___printf_fp): Determine rounding using get_rounding_mode and
1097         round_away.
1098         * stdio-common/tst-printf-round.c: New file.
1099         * stdio-common/Makefile (tests): Add tst-printf-round.
1100         (link-libm): New variable.
1101         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1102
1103 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1104
1105         [BZ #14576]
1106         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1107         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1108         Likewise.
1109         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1110         Likewise.
1111
1112 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1113
1114         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1115         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1116         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1117         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1118
1119 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1120
1121         [BZ #14518]
1122         * include/rounding-mode.h: New file.
1123         * sysdeps/generic/get-rounding-mode.h: Likewise.
1124         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1125         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1126         (MAX_VALUE): New macro.
1127         (MIN_VALUE): Likewise.
1128         (overflow_value): New function.
1129         (underflow_value): Likewise.
1130         (round_and_return): Use overflow_value and underflow_value to
1131         determine return values in overflow and underflow cases.  Use
1132         round_away to determine rounding depending on rounding mode.
1133         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1134         determine return values in overflow and underflow cases.
1135         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1136         (struct test_results): New structure.
1137         (struct test): Use struct test_results to store expected results
1138         for all rounding modes.
1139         (TEST): Include expected results for all rounding modes.
1140         (test_in_one_mode): New function.
1141         (do_test): Use test_in_one_mode to compute and check results.
1142         Check results for all rounding modes.
1143         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1144         $(link-libm).
1145
1146 2012-12-09  Allan McRae  <allan@archlinux.org>
1147
1148         * sysdeps/i386/fpu/libm-test-ulps: Update
1149
1150 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1151
1152         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1153         (_G_int32_t): Likewise.
1154         (_G_uint16_t): Likewise.
1155         (_G_uint32_t): Likewise.
1156         (_G_HAVE_BOOL): Likewise.
1157         (_G_HAVE_ATEXIT): Likewise.
1158         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1159         (_G_HAVE_IO_FILE_OPEN): Likewise.
1160         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1161         (_G_int32_t): Likewise.
1162         (_G_uint16_t): Likewise.
1163         (_G_uint32_t): Likewise.
1164         (_G_HAVE_BOOL): Likewise.
1165         (_G_HAVE_ATEXIT): Likewise.
1166         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1167         (_G_HAVE_IO_FILE_OPEN): Likewise.
1168         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1169         (_G_int32_t): Likewise.
1170         (_G_uint16_t): Likewise.
1171         (_G_uint32_t): Likewise.
1172         (_G_HAVE_BOOL): Likewise.
1173         (_G_HAVE_ATEXIT): Likewise.
1174         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1175         (_G_HAVE_IO_FILE_OPEN): Likewise.
1176
1177 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1178
1179         * csu/libc-tls.c: Update copyright years.
1180
1181 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1182
1183         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1184         [!_G_USING_THUNKS]: Remove conditional code.
1185         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1186         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1187
1188         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1189         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1190         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1191         (_G_VTABLE_LABEL_PREFIX): Likewise.
1192         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1193         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1194         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1195         (_G_VTABLE_LABEL_PREFIX): Likewise.
1196         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1197         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1198         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1199         (_G_VTABLE_LABEL_PREFIX): Likewise.
1200         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1201
1202 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1203
1204         * libio/Makefile: Include ../Makeconfig before tests.
1205         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1206         only if $(build-shared) is yes.
1207
1208         * iconv/gconv_db.c: Update copyright years.
1209
1210 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1211
1212         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1213         unwind info if defined PIC. Fix special cases description.
1214         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1215
1216         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1217         DP_HI_MASK entry.
1218         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1219
1220 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1221
1222         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1223
1224         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1225         is NULL.
1226
1227         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1228         (LDLIBS-tst-chk4): This.
1229         (LDFLAGS-tst-chk5): Renamed to ...
1230         (LDLIBS-tst-chk5): This.
1231         (LDFLAGS-tst-chk6): Renamed to ...
1232         (LDLIBS-tst-chk6): This.
1233         (LDFLAGS-tst-lfschk4): Renamed to ...
1234         (LDLIBS-tst-lfschk4): This.
1235         (LDFLAGS-tst-lfschk5): Renamed to ...
1236         (LDLIBS-tst-lfschk5): This.
1237         (LDFLAGS-tst-lfschk6): Renamed to ...
1238         (LDLIBS-tst-lfschk6): This.
1239
1240         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1241         on $(common-objpfx)soversions.mk.
1242
1243 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1244
1245         [BZ #10014]
1246         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1247         example host name.
1248
1249 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1250
1251         * malloc/arena.c (arena_get_retry): New function that gets
1252         another arena for the caller to try its request on.
1253         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1254         current arena cannot fulfill the request.
1255         (__libc_memalign): Likewise.
1256         (__libc_memalign): Likewise.
1257         (__libc_pvalloc): Likewise.
1258         (__libc_calloc): Likewise.
1259
1260 2012-09-05  John Tobey  <john.tobey@gmail.com>
1261
1262         [BZ #13542]
1263         * manual/arith.texi (Operations on Complex): Fix description
1264         of carg branch cut.
1265
1266 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1267
1268         [BZ #10014]
1269         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1270         host name.
1271
1272         [BZ #10038]
1273         * manual/memory.texi (Memory): Make order of menu items match
1274         order of sections.
1275
1276 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1277
1278         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1279         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1280         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1281
1282 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1283
1284         * csu/libc-tls.c (static_dtv): Renamed to ...
1285         (_dl_static_dtv): This.  Make it global.
1286         (_dl_initial_dtv): Removed.
1287         (__libc_setup_tls): Updated.
1288         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1289         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1290         DL_INITIAL_DTV.
1291
1292 2012-09-06  Petr Machata  <pmachata@redhat.com>
1293
1294         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1295         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1296         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1297         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1298
1299 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1300
1301         [BZ #14545]
1302         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1303         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1304         freeing dtv[-1].
1305
1306 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1307
1308         [BZ #14544]
1309         * Makeconfig (link-static-before-libc): Replace $(+prector)
1310         with $(+prectorT).
1311         (link-static-after-libc): Replace $(+postctor) with
1312         $(+postctorT).
1313         (link-bounded): Replace $(+prector)/$(+postctor) with
1314         $(+prectorT)/$(+postctorT).
1315         (+prectorT): New macro.
1316         (+postctorT): Likewise.
1317
1318 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1319
1320         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1321         (round_str): Handle values above the maximum for IBM long double
1322         as inexact.
1323         * stdlib/tst-strtod-round.c (tests): Regenerated.
1324
1325 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1326
1327         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1328         assembler flag.
1329         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1330         zarch_nohighgprs around the zarch optimized routines.
1331         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1332         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1333         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1334         for zarch.
1335
1336 2012-09-05  David S. Miller  <davem@davemloft.net>
1337
1338         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1339
1340         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1341         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1342         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1343         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1344         entries.
1345
1346 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1347
1348         * malloc/arena.c: Fold copyright years.
1349         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1350
1351 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1352
1353         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1354
1355 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1356
1357         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1358
1359 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1360
1361         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1362         change internal state upon failure.
1363
1364 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1365
1366         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1367         * malloc/memusage.c (mmap): Likewise.
1368         (mmap64, mremap): Likewise.  Adjust name in comment.
1369
1370 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1371
1372         * libio/fileops.c: Fix typos in comments.
1373         * libio/oldfileops.c: Likewise.
1374         * libio/wfileops.c: Likewise.
1375
1376 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1377
1378         [BZ #1349]
1379         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1380         (tst-malloc-usable-ENV): Set environment for test case.
1381         * malloc/hooks.c (malloc_check_get_size): New function to get
1382         requested size.
1383         * malloc/malloc.c (musable): Use malloc_check_get_size.
1384         * malloc/tst-malloc-usable.c: New test case.
1385
1386 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1387
1388         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1389
1390 2012-09-05  Allan McRae  <allan@archlinux.org>
1391
1392         [BZ #13966]
1393         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1394         determine header location.
1395         * configure: Regenerated.
1396
1397 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1398
1399         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1400         float format.
1401         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1402         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1403         format.
1404         (test): Regenerate.
1405
1406 2012-09-04  David S. Miller  <davem@davemloft.net>
1407
1408         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1409         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1410         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1411
1412 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1413
1414         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1415         failures.
1416
1417         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1418
1419 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1420
1421         [BZ #9914]
1422         * libio/iogetdelim.c: Include <limits.h>.
1423         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1424         + len + 1 would overflow.
1425
1426 2012-09-03  Andreas Jaeger  <aj@suse.de>
1427
1428         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1429         * sysdeps/i386/fpu/libm-test-ulps: Update.
1430
1431 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1432
1433         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1434         Add s_sinf-sse2, s_conf-sse2.
1435
1436         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1437         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1438         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1439         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1440
1441         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1442         for using routine as __sinf_ia32.
1443         Use macro for function declaration and weak_alias.
1444         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1445         for using routine as __cosf_ia32.
1446         Use macro for function declaration and weak_alias.
1447
1448         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1449         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1450
1451         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1452         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1453         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1454
1455         * math/libm-test.inc (cos_test): Add more test cases.
1456         (sin_test): Likewise.
1457         (sincos_test): Likewise.
1458
1459 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1460
1461         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1462         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1463         hidden.
1464         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1465
1466 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1467
1468         [BZ #14538]
1469         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1470         first element of the GOT.
1471         (elf_machine_load_address): Return the difference between
1472         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1473
1474 2012-09-01  Allan McRae  <allan@archlinux.org>
1475
1476         [BZ #13412]
1477         * configure.in (AWK): Require gawk version 3.0 or later.
1478         * configure: Regenerated.
1479
1480 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1481
1482         * sysdeps/unix/sysv/linux/kernel-features.h
1483         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1484         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1485         [__NR_clock_getres]: Make code unconditional.
1486         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1487         (clock_getcpuclockid): Remove code left unreachable by removal of
1488         conditionals.
1489         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1490         code unconditional.
1491         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1492         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1493         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1494         Make code unconditional.
1495         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1496         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1497         * sysdeps/unix/sysv/linux/clock_settime.c
1498         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1499         conditional code.
1500         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1501         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1502
1503 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1504
1505         [BZ #14476]
1506         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1507         scripts/test-installation.pl.
1508
1509         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1510         and $ld_so_version if it is set.
1511
1512 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1513
1514         [BZ #14516]
1515         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1516         failure if reading from procfs failed.
1517         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1518
1519 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1520
1521         * sysdeps/unix/sysv/linux/kernel-features.h
1522         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1523         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1524         Remove conditional code.
1525         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1526         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1527         Remove conditional code.
1528         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1529         * sysdeps/unix/sysv/linux/i386/fxstat.c
1530         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1531         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1532         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1533         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1534         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1535         * sysdeps/unix/sysv/linux/i386/lxstat.c
1536         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1537         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1538         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1539         Remove conditional code.
1540         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1541         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1542         Remove conditional code.
1543         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1544         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1545         <kernel-features.h>.
1546         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1547         Remove.
1548         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1549         Remove conditional code.
1550         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1551         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1552         Remove conditional.
1553
1554 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1555
1556         [BZ #5400]
1557         * NEWS: Add fixed bug number.
1558
1559 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1560
1561         [BZ #14519]
1562         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1563         underflowing exponent in case of negative sign.
1564         * stdlib/tst-strtod-round-data: Add more tests.
1565         * stdlib/tst-strtod-round.c (tests): Regenerated.
1566
1567         [BZ #3479]
1568         * stdlib/strtod_l.c (NDIG): Remove.
1569         (HEXNDIG): Likewise.
1570         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1571         smallest representable value.
1572         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1573         lie within an exact representation of 1/2 ulp of the result.
1574         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1575         unconditionally.
1576         (TENS_P9_IDX): Define unconditionally.
1577         (TENS_P9_SIZE): Likewise.
1578         (TENS_P10_IDX): Likewise.
1579         (TENS_P10_SIZE): Likewise.
1580         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1581         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1582         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1583         entries for 10^2^13 and 10^2^14.
1584         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1585         (TENS_P13_IDX): Define.
1586         (TENS_P13_SIZE): Likewise.
1587         (TENS_P14_IDX): Likewise.
1588         (TENS_P14_SIZE): Likewise.
1589         (_fpioconst_pow10): Change array size to
1590         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1591         unconditional.
1592         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1593         1024]: Add entries for 10^2^13 and 10^2^14.
1594         [LAST_POW10 > _LAST_POW10]: Remove #error.
1595         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1596         (_fpioconst_pow10): Change array size to
1597         FPIOCONST_POW10_ARRAY_SIZE.
1598         * stdlib/gen-fpioconst.c: New file.
1599         * stdlib/gen-tst-strtod-round.c: Likewise.
1600         * stdlib/tst-strtod-round-data: Likewise.
1601         * stdlib/tst-strtod-round.c: Likewise.
1602         * stdlib/Makefile (tests): Add tst-strtod-round.
1603
1604         [BZ #14459]
1605         * stdlib/strtod_l.c: Include <stdint.h>.
1606         (NDEBUG): Do not define.
1607         (round_and_return): Change EXPONENT parameter to type intmax_t.
1608         Rearrange calculations to avoid internal overflow possibilities.
1609         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1610         Rearrange calculations to avoid internal overflow possibilities.
1611         Assert that number fits inside MPNSIZE limbs.
1612         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1613         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1614         calculations and add assertions to avoid internal overflow
1615         possibilities.  Add casts to avoid signed/unsigned operations.
1616         * stdlib/tst-strtod-overflow.c: New file.
1617         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1618
1619 2012-08-25  Marek Polacek  <polacek@redhat.com>
1620
1621         * time/time.h: Fix some typos in comments.
1622
1623 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1624
1625         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1626         * posix/tst-rfc3484-2.c: Likewise.
1627         * posix/tst-rfc3484-3.c: Likewise.
1628
1629 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1630
1631         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1632         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1633
1634 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1635
1636         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1637         #include of fxstatat64.c.
1638
1639 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1640
1641         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1642         * shadow/getspent_r.c: Likewise.
1643         * shadow/getspnam.c: Likewise.
1644         * shadow/getspnam_r.c: Likewise.
1645         * gshadow/getsgent.c: Likewise.
1646         * gshadow/getsgent_r.c: Likewise.
1647         * gshadow/getsgnam.c: Likewise.
1648         * gshadow/getsgnam_r.c: Likewise.
1649         * inet/getnetbyad.c: Likewise.
1650         * inet/getnetbyad_r.c: Likewise.
1651         * inet/getnetbynm.c: Likewise.
1652         * inet/getnetbynm_r.c: Likewise.
1653         * inet/getnetent.c: Likewise.
1654         * inet/getnetent_r.c: Likewise.
1655         * inet/getproto.c: Likewise.
1656         * inet/getproto_r.c: Likewise.
1657         * inet/getprtent.c: Likewise.
1658         * inet/getprtent_r.c: Likewise.
1659         * inet/getprtname.c: Likewise.
1660         * inet/getprtname_r.c: Likewise.
1661         * inet/getrpcbyname.c: Likewise.
1662         * inet/getrpcbyname_r.c: Likewise.
1663         * inet/getrpcbynumber.c: Likewise.
1664         * inet/getrpcbynumber_r.c: Likewise.
1665         * inet/getrpcent.c: Likewise.
1666         * inet/getrpcent_r.c: Likewise.
1667         * inet/getaliasent.c: Likewise.
1668         * inet/getaliasent_r.c: Likewise.
1669         * inet/getaliasname.c: Likewise.
1670         * inet/getaliasname_r.c: Likewise.
1671         * nscd/getgrgid_r.c: Likewise.
1672         * nscd/getgrnam_r.c: Likewise.
1673         * nscd/gethstbyad_r.c: Likewise.
1674         * nscd/gethstbynm3_r.c: Likewise.
1675         * nscd/getpwnam_r.c: Likewise.
1676         * nscd/getpwuid_r.c: Likewise.
1677         * nscd/getsrvbynm_r.c: Likewise.
1678         * nscd/getsrvbypt_r.c: Likewise.
1679         * nscd/gai.c: Likewise.
1680
1681         * configure.in (build_nscd): New substituted variable, set
1682         by --disable-build-nscd and defaults to $use_nscd.
1683         * configure: Regenerated.
1684         * config.make.in (build-nscd): New substituted variable.
1685         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1686         Change conditional to require [$(build-nscd) = yes] as well.
1687         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1688
1689         [BZ# 13696]
1690         * configure.in (use_nscd): New substituted variable, set by
1691         --disable-nscd.  If enabled, define USE_NSCD.
1692         * configure: Regenerated.
1693         * config.h.in: Add USE_NSCD.
1694         * config.make.in (use-nscd): New substituted variable.
1695         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1696         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1697         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1698         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1699         (CFLAGS-getgrnam_r.c): Likewise.
1700         (CFLAGS-initgroups.c): Likewise.
1701         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1702         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1703         Variables removed.
1704         * inet/getnetgrent_r.c
1705         (nscd_setnetgrent): New function, broken out of ...
1706         (setnetgrent): ... here.  Call it.
1707         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1708         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1709         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1710         * nscd/Makefile (routines, aux): Move definitions after include of
1711         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1712         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1713         Conditionalize on [USE_NSCD].
1714         (is_nscd, nscd_init_cb): Likewise.
1715         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1716         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1717         * nss/nss_db/db-init.c: Likewise.
1718         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1719         [USE_NSCD].
1720         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1721         (make_request): Use it.
1722         (cache_valid_p): New function.
1723         (__check_pf): Use it.
1724         * NEWS: Add item for --disable-nscd.
1725
1726 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1727
1728         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1729         to support sed >= 4.2.1-20-ga9bf076.
1730         * configure: Regenerated.
1731
1732 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1733
1734         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1735         Conditionalize whole body on [IREL].
1736
1737 2012-08-22  Jeff Law <law@redhat.com>
1738
1739         [BZ #14505]
1740         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1741         if the family is PF_UNSPEC.
1742
1743 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1744
1745         * Makerules (lib-version): Rename from V.
1746         (install-lib-nosubdir): Change V to lib-version.
1747
1748 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1749
1750         [BZ #14252]
1751         * powerpc32/power6/wcschr.c: New file.
1752         * powerpc32/power6/wcscpy.c: New file.
1753         * powerpc32/power6/wcsrchr.c: New file.
1754         * powerpc64/power6/wcschr.c: New file.
1755         * powerpc64/power6/wcscpy.c: New file.
1756         * powerpc64/power6/wcsrchr.c: New file.
1757
1758 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1759
1760         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1761         (two_way_short_needle): Use it.
1762         * string/strstr.c (AVAILABLE1_USES_J): Define.
1763         * string/strcasestr.c: Likewise.
1764
1765         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1766         array references.
1767         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1768
1769         [BZ #11607]
1770         * NEWS: Add an entry.
1771         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1772         define their defaults.
1773         (two_way_short_needle): Detect end-of-string on-the-fly.
1774         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1775         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1776         * string/bug-strcasestr1.c: New test.
1777         * string/Makefile: Run it.
1778
1779 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1780
1781         [BZ #11607]
1782         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1783         the first character.
1784
1785 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1786
1787         * csu/elf-init.c (__libc_csu_irel): Function removed.
1788         * csu/libc-start.c (apply_irel): New function.
1789         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1790
1791 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1792
1793         * sysdeps/unix/sysv/linux/kernel-features.h
1794         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1795         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1796         <kernel-features.h>.
1797         [__NR_fadvise64_64]: Make code unconditional.
1798         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1799         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1800         !__NR_fadvise64_64)]: Likewise.
1801         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1802         !__NR_fadvise64_64))]: Likewise.
1803         [__NR_fadvise64]: Make code unconditional.
1804         [!__NR_fadvise64]: Remove conditional code.
1805         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1806         <kernel-features.h>.
1807         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1808         unconditional.
1809         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1810         conditional code.
1811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1812         not include <kernel-features.h>.
1813         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1814         unconditional.
1815         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1816         conditional code.
1817         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1818         include <kernel-features.h>.
1819         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1820         unconditional.
1821         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1822         conditional code.
1823
1824 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1825
1826         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1827         slight instruction rearrangements per scrollpipe analysis.
1828         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1829
1830 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1831
1832         * manual/syslog.texi (syslog; vsyslog, closelog):
1833         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1834         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1835
1836         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1837         DSOCAPS to match condition on defining it.
1838
1839 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1840
1841         * sysdeps/unix/sysv/linux/kernel-features.h
1842         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1844         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1845         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1847         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1848         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1850         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1851         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1852
1853         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1854         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1855
1856         * sysdeps/unix/sysv/linux/kernel-features.h
1857         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1858         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1859         unconditional.
1860         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1861         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1862         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1863         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1864         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1865         Make code unconditional.
1866         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1867         (__mmap64) [!__NR_mmap2]: Likewise.
1868         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1869         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1870         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1871         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1872         [__NR_mmap2]: Make code unconditional.
1873         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1874         (__mmap64) [!__NR_mmap2]: Likewise.
1875
1876 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1877
1878         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1879
1880 2012-08-18  Andreas Jaeger  <aj@suse.de>
1881
1882         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1883
1884 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1885
1886         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1887         * include/unistd.h (__have_sock_cloexec): Likewise.
1888         (__have_pipe2): Likewise.
1889         (__have_dup3): Likewise.
1890
1891 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1892
1893         [BZ #9685]
1894         * include/unistd.h (__have_pipe2): Change define into an extern int.
1895         (__have_dup3): Likewise.
1896         * socket/have_sock_cloexec.c: Include fcntl.h.
1897         (__have_pipe2): New variable.
1898         (__have_dup3): Likewise.
1899
1900 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1901
1902         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1903
1904 2012-08-17  Marek Polacek  <polacek@redhat.com>
1905
1906         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1907         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1908
1909 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1910
1911         * configure.in: Add AC_SUBST for sysheaders.
1912         * configure: Regenerated.
1913         * config.make.in (sysheaders): New substituted variable.
1914
1915         * sysdeps/unix/mkfifo.c: Moved ...
1916         * sysdeps/posix/mkfifo.c: ... here.
1917         * sysdeps/unix/mkfifoat.c: Moved ...
1918         * sysdeps/posix/mkfifoat.c: ... here.
1919
1920         * sysdeps/unix/utime.c: Moved ...
1921         * sysdeps/posix/utime.c: ... here.
1922
1923         * sysdeps/unix/time.c: Moved ...
1924         * sysdeps/posix/time.c: ... here.
1925         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1926         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1927
1928         * sysdeps/unix/nice.c: Moved ...
1929         * sysdeps/posix/nice.c: ... here.
1930
1931         * sysdeps/unix/alarm.c: Moved ...
1932         * sysdeps/posix/alarm.c: ... here.
1933
1934         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1935
1936 2012-08-17  Jeff Law <law@redhat.com>
1937
1938         * intl/Makefile (codeset_mo): New variable.
1939         ($(codeset_mo)): New target.
1940         (tst-codeset.out): Depend on that.  Remove explicit rule.
1941         (tst-gettext3.out, tst-gettext5.out): Likewise.
1942         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1943         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1944         * intl/tst-codeset.sh: Remove.
1945         * intl/tst-gettext3.sh: Likewise.
1946         * intl/tst-gettext5.sh: Likewise.
1947
1948 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1949
1950         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1951         * sysdeps/unix/syscalls.list: ... here.
1952
1953         * sysdeps/posix/getaddrinfo.c
1954         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1955         (gaiconf_init, gaiconf_reload): Use them.
1956         [!_STATBUF_ST_NSEC]
1957         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1958         Define using time_t rather than struct timespec.
1959
1960         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1961         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1962         Macros removed.
1963         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1964         [!NO_THREADS].
1965         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1966         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1967         Likewise.
1968
1969         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1970         __libc_cleanup_push argument.
1971
1972         * bits/param.h: New file.
1973         * misc/sys/param.h: New file.
1974         * include/sys/param.h: New file.
1975         * misc/Makefile (headers): Add bits/param.h.
1976         * sysdeps/generic/sys/param.h: File removed.
1977         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1978         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1979         * sysdeps/mach/hurd/bits/param.h: New file.
1980         * sysdeps/mach/hurd/sys/param.h: New file.
1981
1982         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1983         last change.
1984
1985         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1986         [_IO_MTSAFE_IO].
1987         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1988         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1989         New macros.
1990
1991         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1992         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1993         rather than -D_IO_MTSAFE_IO conditionally.
1994         * stdio-common/Makefile (CPPFLAGS): Likewise.
1995         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1996         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1997         Use $(libio-mtsafe).
1998         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1999         of -D_IO_MTSAFE_IO.
2000         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2001         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2002         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2003         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2004         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2005         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2006         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2007         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2008         (CFLAGS-fread_u_chk.c): Likewise.
2009         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2010         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2011         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2012         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2013         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2014         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2015         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2016         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2017         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2018
2019         * libio/Makefile: Test [$(libc-reentrant) = yes]
2020         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2021
2022         * Makeconfig
2023         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2024         * sysdeps/pthread/configure: File removed.
2025         * sysdeps/pthread/Makeconfig: New file.
2026         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2027         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2028
2029 2012-08-16  Gary Benson  <gbenson@redhat.com>
2030
2031         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2032         unmapping the first object in a namespace.
2033
2034 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2035
2036         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2037         (__internal_setnetgrent): ... this.  Add internal_function to
2038         definition.  Add libc_hidden_def.
2039         (setnetgrent): Update caller.
2040         (internal_endnetgrent): Renamed to ...
2041         (__internal_endnetgrent): ... this.  Add internal_function to
2042         definition.  Add libc_hidden_def.
2043         (endnetgrent): Update caller.
2044         (internal_getnetgrent_r): Renamed to ...
2045         (__internal_getnetgrent_r): ... this.  Add internal_function to
2046         definition.  Add libc_hidden_def.
2047         (__getnetgrent_r): Update caller.
2048         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2049
2050 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2051
2052         * stdlib/longlong.h: Update from GCC.
2053
2054 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2055
2056         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2057         on _QL, which is set by umul_ppmm but never used.
2058         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2059         variables, which are set by GMP macros but never used.
2060         * stdio-common/_itowa.c (_itowa): Likewise.
2061         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2062         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2063
2064 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2065
2066         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2067         struct La_sh_regs is not constant.
2068         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2069         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2070         and struct La_sparc64_regs are not constant.
2071
2072 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2073
2074         * sysdeps/unix/sysv/linux/kernel-features.h
2075         (__ASSUME_POSIX_TIMERS): Remove.
2076         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2077         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2078         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2079         Make code unconditional.
2080         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2081         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2082         Make code unconditional.
2083         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2084         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2085         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2086         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2087         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2088         Make code unconditional.
2089         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2090         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2091         (__libc_missing_posix_timers): Remove.
2092
2093 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2094
2095         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2096         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2097
2098         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2099
2100         * elf/dl-sym.c: Include <stdlib.h>.
2101
2102         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2103         constants, which avoids warnings in 32-bit builds.
2104
2105         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2106         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2107
2108         * misc/lseek.c: File moved to ...
2109         * io/lseek.c: ... here.
2110
2111         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2112
2113         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2114         shifting LEN more than 31 bits at once.
2115
2116 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2117
2118         [BZ #14195]
2119         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2120         segmentation fault for a case of two empty input strings.
2121         * string/test-strncasecmp.c (check1): Renamed to...
2122         (bz12205): ...this.
2123         (bz14195): Add new testcase for two empty input strings and N > 0.
2124         (test_main): Call new testcase, adapt for renamed function.
2125
2126 2012-08-15  Andreas Jaeger  <aj@suse.de>
2127
2128         [BZ #14090]
2129         * crypt/md5test2.c: New test, based on test supplied by Serge
2130         Belyshev <belyshev@depni.sinp.msu.ru>.
2131         * crypt/Makefile (xtests): Add md5test-giant..
2132         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2133
2134 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2135
2136         [BZ #14090]
2137         * crypt/md5.c (md5_process_block): Don't assume the buffer
2138         length is less than 2**32.
2139         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2140         length is less than 2**64.
2141
2142 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2143
2144         * string/str-two-way.h: Include <sys/param.h>.
2145         (MAX): Macro removed.
2146
2147         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2148         Move #define and #undef of memmove to just before and after
2149         including <string.h>.
2150
2151         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2152         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2153         and after including <string.h>.  Move declarations of
2154         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2155         to before #include "string/memmove.c".
2156
2157         * include/dirent.h: Declare __getdirentries.
2158
2159         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2160         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2161
2162 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2163
2164         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2165         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2166         * sysdeps/i386/configure: Regenerated.
2167         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2168         STABS_CURRENT_FILE, and STABS_FUN.
2169         (END): Remove call to STABS_FUN_END.
2170         (STABS_CURRENT_FILE1): Delete.
2171         (STABS_CURRENT_FILE): Likewise.
2172         (STABS_FUN): Likewise.
2173         (STABS_FUN_END): Likewise.
2174         (STABS_FUN2): Likewise.
2175         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2176         * sysdeps/x86_64/configure: Regenerated.
2177
2178 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2179
2180         * elf/dl-open.c: Include <atomic.h>.
2181         * elf/dl-lookup.c: Likewise.
2182
2183 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2184
2185         * sysdeps/unix/sysv/linux/kernel-features.h
2186         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2187         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2188         unconditionally.
2189         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2190         unconditionally.
2191         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2192         condition on __ASSUME_CLONE_THREAD_FLAGS.
2193
2194 2012-08-14  Andreas Jaeger  <aj@suse.de>
2195
2196         * sysdeps/i386/fpu/libm-test-ulps: Update.
2197
2198 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2199
2200         * include/atomic.h (atomic_exchange_and_add): Split into ...
2201         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2202         New atomic macros.
2203
2204 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2205
2206         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2207
2208 2012-08-13  Jeff Law <law@redhat.com>
2209
2210         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2211         null byte in the output string.
2212
2213 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2214
2215         * sysdeps/unix/sysv/linux/kernel-features.h
2216         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2217         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2218         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2219         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2220         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2221         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2222         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2223
2224 2012-08-09  Jeff Law <law@redhat.com>
2225
2226         [BZ #13939]
2227         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2228         When avoid_arena is set, don't retry in the that arena.  Pick the
2229         next one, whatever it might be.
2230         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2231         (arena_lock): Pass in new parameter to arena_get2.
2232         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2233         arena_get2.
2234         (__libc_malloc): Unify retrying after main arena failure with
2235         __libc_memalign version.
2236         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2237
2238 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2239
2240         [BZ #14166]
2241         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2242         to __redirect_strstr.
2243         (__strstr_sse42): Use typeof __redirect_strstr.
2244         (__strstr_ia32): Likewise.
2245         (__libc_strstr): New prototype.
2246         (strstr): Renamed to ...
2247         (__libc_strstr): This.
2248         (strstr): New strong alias of __libc_strstr.
2249         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2250         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2251         __redirect_time.
2252         Include <time.h>.
2253         (__libc_time): New prototype.
2254         (time_ifunc): Replace time with __libc_time.
2255         (time): New strong alias and hidden definition of __libc_time.
2256         (__GI_time): Remove strong alias.
2257         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2258         Include <stddef.h>.
2259         (memmove): Redefined to __redirect_memmove.
2260         (__memmove_sse2): Use typeof __redirect_memmove.
2261         (__memmove_ssse3): Likewise.
2262         (__memmove_ssse3_back): Likewise.
2263         (__libc_memmove): New prototype.
2264         (memmove): Renamed to ...
2265         (__libc_memmove): This.
2266         (memmove): New strong alias of __libc_memmove.
2267
2268 2012-08-08  Mark Salter  <msalter@redhat.com>
2269
2270         * elf/elf.h
2271         (R_MN10300_TLS_GD): Define.
2272         (R_MN10300_TLS_LD): Likewise.
2273         (R_MN10300_TLS_LDO): Likewise.
2274         (R_MN10300_TLS_GOTIE): Likewise.
2275         (R_MN10300_TLS_IE): Likewise.
2276         (R_MN10300_TLS_LE): Likewise.
2277         (R_MN10300_TLS_DTPMOD): Likewise.
2278         (R_MN10300_TLS_DTPOFF): Likewise.
2279         (R_MN10300_TLS_TPOFF): Likewise.
2280         (R_MN10300_SYM_DIFF): Likewise.
2281         (R_MN10300_ALIGN): Likewise.
2282         (R_MN10300_NUM): Update.
2283
2284 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2285
2286         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2287         Remove.
2288
2289 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2290
2291         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2292
2293         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2294         sysdeps/unix -> sysdeps/posix move.
2295         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2296
2297 2012-08-07      Allan McRae     <allan@archlinux.org>
2298
2299         [BZ #14303]
2300         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2301         (SUNOS_CPP): Likewise.
2302         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2303         not found.
2304         (open_input): Call CPP using execvp.
2305
2306 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2307
2308         * sysdeps/unix/sysv/linux/kernel-features.h
2309         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2310         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2311         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2312         (__ASSUME_WAITID_SYSCALL): Likewise.
2313         * sysdeps/unix/sysv/linux/dl-execstack.c
2314         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2315         code unconditional.
2316         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2317         conditional code.
2318         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2319         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2320         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2321         code.
2322         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2323         unconditional.
2324         [__ASSUME_WAITID_SYSCALL]: Likewise.
2325         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2326
2327 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2328
2329         * sysdeps/unix/closedir.c: Renamed to ...
2330         * sysdeps/posix/closedir.c: ... here.
2331         * sysdeps/unix/dirfd.c: Renamed to ...
2332         * sysdeps/posix/dirfd.c: ... here.
2333         * sysdeps/unix/dirstream.h: Renamed to ...
2334         * sysdeps/posix/dirstream.h: ... here.
2335         * sysdeps/unix/fdopendir.c: Renamed to ...
2336         * sysdeps/posix/fdopendir.c: ... here.
2337         * sysdeps/unix/opendir.c: Renamed to ...
2338         * sysdeps/posix/opendir.c: ... here.
2339         * sysdeps/unix/readdir.c: Renamed to ...
2340         * sysdeps/posix/readdir.c: ... here.
2341         * sysdeps/unix/readdir_r.c: Renamed to ...
2342         * sysdeps/posix/readdir_r.c: ... here.
2343         * sysdeps/unix/rewinddir.c: Renamed to ...
2344         * sysdeps/posix/rewinddir.c: ... here.
2345         * sysdeps/unix/seekdir.c: Renamed to ...
2346         * sysdeps/posix/seekdir.c: ... here.
2347         * sysdeps/unix/telldir.c: Renamed to ...
2348         * sysdeps/posix/telldir.c: ... here.
2349         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2350         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2351         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2352         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2353
2354         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2355         * bits/fcntl.h: ... here.
2356
2357         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2358         not 0.
2359         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2360         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2361         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2362         (struct flock): Move l_start, l_len to the beginning.
2363         Use __pid_t for l_pid.
2364         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2365         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2366         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2367         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2368         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2369         [__USE_LARGEFILE64] (struct flock64): New type.
2370         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2371
2372         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2373         * bits/dirent.h: ... here.
2374
2375         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2376         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2377
2378 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2379
2380         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2381         Change from 2.6.0 to 2.6.16.
2382         * sysdeps/unix/sysv/linux/configure: Regenerated.
2383         * sysdeps/unix/sysv/linux/kernel-features.h
2384         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2385         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2386         version.
2387         (__ASSUME_UTIMES): Likewise.
2388         (__ASSUME_CLONE_STOPPED): Remove.
2389         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2390         architectures, not kernel version.
2391         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2392         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2393         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2394         (__ASSUME_WAITID_SYSCALL): Likewise.
2395         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2396         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2397         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2398         refer to older versions.
2399
2400 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2401
2402         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2403         Define alphasort64 as an alias.
2404         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2405         Define versionsort64 as an alias.
2406         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2407         Define scandir64 as an alias.
2408         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2409         Define scandirat64 as an alias.
2410         * dirent/alphasort64.c (alphasort64):
2411         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2412         * dirent/versionsort64.c: Likewise.
2413         * dirent/scandir64.c: Likewise.
2414         * dirent/scandirat64.c: Likewise.
2415         * sysdeps/wordsize-64/alphasort.c: File removed.
2416         * sysdeps/wordsize-64/alphasort64.c: File removed.
2417         * sysdeps/wordsize-64/scandir.c: File removed.
2418         * sysdeps/wordsize-64/scandir64.c: File removed.
2419         * sysdeps/wordsize-64/scandirat.c: File removed.
2420         * sysdeps/wordsize-64/scandirat64.c: File removed.
2421         * sysdeps/wordsize-64/versionsort.c: File removed.
2422         * sysdeps/wordsize-64/versionsort64.c: File removed.
2423         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2424         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2425         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2426         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2427         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2428         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2429         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2430         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2431
2432         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2433         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2434         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2435         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2436         [defined __arch64__ || defined __sparcv9]
2437         (__INO_T_MATCHES_INO64_T): New macro.
2438         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2439         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2440         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2441         * sysdeps/unix/sysv/linux/bits/dirent.h
2442         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2443         (_DIRENT_MATCHES_DIRENT64): New macro.
2444
2445         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2446         Define lockf64 as an alias.
2447         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2448         Define fseeko64 as an alias.
2449         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2450         Define ftello64 as an alias.
2451         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2452         Define _IO_fgetpos64 and fgetpos64 as aliases.
2453         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2454         Define _IO_fsetpos64 and fsetpos64 as aliases.
2455         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2456         Conditionalize body on this.
2457         * libio/fseeko64.c: Likewise.
2458         * libio/ftello64.c: Likewise.
2459         * libio/iofgetpos64.c: Likewise.
2460         * libio/iofsetpos64.c: Likewise.
2461         * sysdeps/wordsize-64/lockf.c: File removed.
2462         * sysdeps/wordsize-64/lockf64.c: File removed.
2463         * sysdeps/wordsize-64/fseeko.c: File removed.
2464         * sysdeps/wordsize-64/fseeko64.c: File removed.
2465         * sysdeps/wordsize-64/ftello.c: File removed.
2466         * sysdeps/wordsize-64/ftello64.c: File removed.
2467         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2468         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2469         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2470         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2471         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2472         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2473         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2474         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2475         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2476         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2477         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2478         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2479         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2480         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2481
2482         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2483         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2484         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2485         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2486         [defined __arch64__ || defined __sparcv9]
2487         (__OFF_T_MATCHES_OFF64_T): New macro.
2488         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2489         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2490         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2491         (__OFF_T_MATCHES_OFF64_T): New macro.
2492
2493 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2494
2495         * stdlib/secure-getenv.c (__secure_getenv): Replace
2496         GLIBC_2_16 with GLIBC_2_17.
2497
2498 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2499
2500         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2501         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2502
2503 2012-08-03  David S. Miller  <davem@davemloft.net>
2504
2505         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2506
2507 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2508
2509         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2510         Remove.
2511         (__ASSUME_CORRECT_SI_PID): Likewise.
2512         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2513         (__ASSUME_TMPFS_NAME): Likewise.
2514         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2515         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2516         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2517         (HAVE_AUX_SECURE): Make definition unconditional.
2518         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2519         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2520
2521 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2522
2523         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2524         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2525         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2526         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2527         __eloop_threshold instead of SYMLOOP_MAX.
2528
2529         * sysdeps/generic/eloop-threshold.h: New file.
2530         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2531         of MAXSYMLINKS.
2532         * elf/chroot_canon.c (chroot_canon): Likewise.
2533
2534 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2535
2536         [BZ #13717]
2537         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2538         Change to 2.6.0 everywhere.
2539         * sysdeps/unix/sysv/linux/configure: Regenerated.
2540         * sysdeps/unix/sysv/linux/kernel-features.h
2541         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2542         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2543         kernel versions.
2544         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2545         (__ASSUME_FUTEX_REQUEUE): Remove.
2546         (__ASSUME_STATFS64): Define unconditionally.
2547         (__ASSUME_AT_SECURE): Likewise.
2548         (__ASSUME_CORRECT_SI_PID): Likewise.
2549         (__ASSUME_TGKILL): Define without depending on kernel version for
2550         i386.
2551         (__ASSUME_UTIMES): Likewise.
2552         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2553         kernel version.
2554         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2555         (__ASSUME_TMPFS_NAME): Likewise.
2556         * README: Update reference to Linux kernel versions.
2557
2558 2012-08-02  Marek Polacek  <polacek@redhat.com>
2559
2560         [BZ# 14150]
2561         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2562         libc_cv_asm_type_prefix with %.
2563         * configure: Regenerated.
2564         * include/libc-symbols.h: Remove comment about
2565         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2566         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2567         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2568         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2569         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2570         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2571         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2572         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2573         * elf/tst-unique2mod1.c: Likewise.
2574         * elf/tst-unique1mod2.c: Likewise.
2575         * elf/tst-unique1mod1.c: Likewise.
2576         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2577         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2578         Replace ASM_TYPE_DIRECTIVE with .type.
2579         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2580         * sysdeps/i386/sysdep.h: Likewise.
2581         * sysdeps/x86_64/sysdep.h: Likewise.
2582         * sysdeps/sh/sysdep.h: Likewise.
2583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2584         Do not define ASM_TYPE_DIRECTIVE.
2585         * sysdeps/powerpc/sysdep.h: Likewise.
2586         * sysdeps/powerpc/powerpc32/sysdep.h:
2587         Replace ASM_TYPE_DIRECTIVE with .type.
2588         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2589         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2590         * sysdeps/i386/fpu/e_powf.S: Likewise.
2591         * sysdeps/i386/fpu/e_expl.S: Likewise.
2592         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2593         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2594         * sysdeps/i386/fpu/e_pow.S: Likewise.
2595         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2596         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2597         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2598         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2599         * sysdeps/i386/fpu/e_log2.S: Likewise.
2600         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2601         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2602         * sysdeps/i386/fpu/e_powl.S: Likewise.
2603         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2604         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2605         * sysdeps/i386/fpu/e_logl.S: Likewise.
2606         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2607         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2608         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2609         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2610         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2611         * sysdeps/i386/fpu/e_log.S: Likewise.
2612         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2613         * sysdeps/i386/fpu/e_logf.S: Likewise.
2614         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2615         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2616         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2617         * sysdeps/i386/fpu/e_log10.S: Likewise.
2618         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2619         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2620         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2621         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2622         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2623         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2624         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2625         * sysdeps/i386/i686/strtok.S: Likewise.
2626         * sysdeps/i386/i386-mcount.S: Likewise.
2627         * sysdeps/i386/strtok.S: Likewise.
2628         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2629         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2630         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2631         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2632         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2633         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2634         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2635         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2636         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2637         * sysdeps/x86_64/_mcount.S: Likewise.
2638         * sysdeps/x86_64/strtok.S: Likewise.
2639         * sysdeps/sh/_mcount.S: Likewise.
2640
2641 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2642
2643         * libio/iofopen.c: Include <fcntl.h>.
2644         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2645         (_IO_fopen64, fopen64): Define as aliases.
2646         * libio/iofopen64.c: Include <fcntl.h>.
2647         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2648         Conditionalize body on this.
2649         * sysdeps/wordsize-64/iofopen.c: File removed.
2650         * sysdeps/wordsize-64/iofopen64.c: File removed.
2651
2652 2012-08-01  Marek Polacek  <polacek@redhat.com>
2653
2654         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2655         Use dlfcn directly instead of a variable.
2656         (binfmt-subdir): Do not define.
2657         (dlfcn): Likewise.
2658
2659 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2660
2661         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2662         Remove all definitions.
2663         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2664         <kernel-features.h>.
2665         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2666         (miss_F_GETOWN_EX): Remove all definitions.
2667         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2668         macro definition.
2669         [!__ASSUME_FCNTL64]: Remove conditional code.
2670         [__ASSUME_FCNTL64]: Make code unconditional.
2671         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2672         <kernel-features.h>.
2673         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2674         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2675         (lockf64) [__NR_fcntl64]: Make code unconditional.
2676         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2677
2678         * sysdeps/unix/sysv/linux/kernel-features.h
2679         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2680         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2681         Make code unconditional.
2682         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2683         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2685         [__NR_vfork]: Make code unconditional.
2686         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2687         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2689         [__NR_vfork]: Make code unconditional.
2690         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2691         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2692
2693 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2694
2695         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2696         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2697
2698         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2699         Define mkstemp64 as an alias.
2700         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2701         Define mkstemps64 as an alias.
2702         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2703         Define mkostemp64 as an alias.
2704         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2705         Define mkostemps64 as an alias.
2706         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2707         Conditionalize body on this.
2708         * misc/mkostemp64.c: Likewise.
2709         * misc/mkostemps64.c: Likewise.
2710         * misc/mkstemps64.c: Likewise.
2711         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2712         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2713         * sysdeps/wordsize-64/mkostemp.c: File removed.
2714         * sysdeps/wordsize-64/mkstemp.c: File removed.
2715         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2716         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2717         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2718         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2719
2720         [BZ #14138]
2721         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2722         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2723         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2724         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2725
2726         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2727         compat_symbol macros from <shlib-compat.h> rather than the underlying
2728         default_symbol_version and symbol_version macros, so that DEFAULT
2729         lines in shlib-versions are respected.
2730         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2731
2732 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2733
2734         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2735         Declare with warn_unused_result.
2736         (setgid, setregid, setegid, setresgid): Likewise.
2737         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2738         Likewise.
2739         * WUR-REPORT: Remove set*id functions.
2740
2741 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2742
2743         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2744
2745 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2746
2747         * include/sys/socket.h (__libc_accept, __libc_accept4):
2748         Add attribute_hidden.
2749         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2750
2751         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2752         use of PTR_MANGLE.
2753         * inet/getnetgrent_r.c (setup): Likewise.
2754
2755         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2756
2757 2012-07-31  David S. Miller  <davem@davemloft.net>
2758
2759         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2760
2761 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2762
2763         [BZ #13629]
2764         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2765         value between 1.0 and 2.0 and smaller part has absolute value less
2766         than 1.0.
2767         * math/s_clog10.c (__clog10): Likewise.
2768         * math/s_clog10f.c (__clog10f): Likewise.
2769         * math/s_clog10l.c (__clog10l): Likewise.
2770         * math/s_clogf.c (__clogf): Likewise.
2771         * math/s_clogl.c (__clogl): Likewise.
2772         * math/libm-test.inc (clog_test): Add more tests.
2773         (clog10_test): Likewise.
2774         * sysdeps/i386/fpu/libm-test-ulps: Update.
2775         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2776
2777 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2778
2779         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2780         Exit with zero in case no suitable GID is found, and write a
2781         message to standard error.
2782
2783 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2784
2785         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2786         rather than to 1.
2787         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2788         (MAXPATHLEN): Removed.
2789         (NOGROUP, NODEV): New macros.
2790         (setbit, clrbit, isset, isclr): New macros.
2791         (howmany, roundup, powerof2): New macros.
2792         (DEV_BSIZE): New macro.
2793
2794         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2795         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2796
2797         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2798         definition on [!__NO_LONG_DOUBLE_MATH].
2799
2800         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2801         PTR_MANGLE and PTR_DEMANGLE.
2802
2803         * socket/accept4.c (accept4): Rename to __libc_accept4.
2804         Define accept4 as a weak alias.
2805
2806         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2807         on [_DIRENT_HAVE_D_TYPE].
2808         * io/ftw.c (ftw_dir): Likewise.
2809
2810         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2811
2812         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2813
2814         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2815         Use the BSD numbers rather than the arbitrary ones we had.
2816         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2817         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2818         (SIGXCPU, SIGXFSZ): New macros.
2819         (_NSIG): Now 32.
2820
2821         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2822         initializer on [_LIBC_REENTRANT].
2823
2824         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2825         definitions inside [_POSIX_MAPPED_FILES].
2826
2827         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2828
2829         * dirent/opendir.c: Include <fcntl.h>.
2830
2831         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2832         (__libc_getspecific): Likewise.
2833         (__libc_key_create): Likewise.
2834
2835         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2836         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2837         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2838         (tmpfile64): Define as alias.
2839         * sysdeps/wordsize-64/tmpfile.c: File removed.
2840         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2841         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2842         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2843
2844         * stdio-common/vfscanf.c: Include <stdbool.h>.
2845         * nss/makedb.c: Likewise.
2846         * stdio-common/_i18n_number.h: Likewise.
2847         * argp/argp-help.c: Likewise.
2848         * posix/wordexp.c: Likewise.
2849         * sysdeps/posix/spawni.c: Likewise.
2850         * nss/nss_files/files-initgroups.c: Likewise.
2851         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2852         * nss/nss_files/files-initgroups.c: Likewise.
2853         * nss/nss_db/db-netgrp.c: Likewise.
2854         * nss/nss_db/db-initgroups.c: Likewise.
2855         * io/fchmodat.c: Include <sys/stat.h>.
2856
2857         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2858         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2859
2860         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2861         [HAVE_MMAP].
2862
2863         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2864         Add multiple inclusion protection.
2865
2866 2012-07-27  David S. Miller  <davem@davemloft.net>
2867
2868         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2869
2870 2012-07-27  Gary Benson  <gbenson@redhat.com>
2871
2872         [BZ #14298]
2873         * elf/rtld.c: Include <stap-probe.h>.
2874         (dl_main): Added static probes "init_start" and "init_complete".
2875         * elf/dl-load.c: Include <stap-probe.h>.
2876         (lose): Take new parameter "nsid".
2877         Added static probe "map_failed".
2878         (_dl_map_object_from_fd): Pass namespace id to lose.
2879         Added static probe "map_start".
2880         (open_verify): Pass namespace id to lose.
2881         * elf/dl-open.c: Include <stap-probe.h>.
2882         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2883         and "reloc_complete".
2884         * elf/dl-close.c: Include <stap-probe.h>.
2885         (_dl_close_worker): Added static probes "unmap_start" and
2886         "unmap_complete".
2887         * elf/rtld-debugger-interface.txt: New file documenting the above.
2888
2889 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2890
2891         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2892         rather than a string variable.
2893         * sunrpc/rpc_main.c (h_output): Likewise.
2894         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2895
2896 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2897
2898         * inet/check_native.c: New file.
2899
2900 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2901
2902         [BZ #13629]
2903         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2904         if larger part has absolute value 1.0.
2905         * math/s_clog10.c (__clog10): Likewise.
2906         * math/s_clog10f.c (__clog10f): Likewise.
2907         * math/s_clog10l.c (__clog10l): Likewise.
2908         * math/s_clogf.c (__clogf): Likewise.
2909         * math/s_clogl.c (__clogl): Likewise.
2910         * math/libm-test.inc (clog_test): Add more tests.
2911         (clog10_test): Likewise.
2912         * sysdeps/i386/fpu/libm-test-ulps: Update.
2913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2914
2915         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2916         (pltexit): Likewise.
2917         (La_regs): Likewise.
2918         (La_retval): Likewise.
2919         (int_retval): Likewise.
2920         Update #error for removed macros to refer only to definitions in
2921         tst-audit.h.
2922         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2923         macro.
2924         (pltexit): Likewise.
2925         (La_regs): Likewise.
2926         (La_retval): Likewise.
2927         (int_retval): Likewise.
2928         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2929         macro.
2930         (pltexit): Likewise.
2931         (La_regs): Likewise.
2932         (La_retval): Likewise.
2933         (int_retval): Likewise.
2934         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2935         macro.
2936         (pltexit): Likewise.
2937         (La_regs): Likewise.
2938         (La_retval): Likewise.
2939         (int_retval): Likewise.
2940         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2941         macro.
2942         (pltexit): Likewise.
2943         (La_regs): Likewise.
2944         (La_retval): Likewise.
2945         (int_retval): Likewise.
2946         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2947         macro.
2948         (pltexit): Likewise.
2949         (La_regs): Likewise.
2950         (La_retval): Likewise.
2951         (int_retval): Likewise.
2952         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2953         macro.
2954         (pltexit): Likewise.
2955         (La_regs): Likewise.
2956         (La_retval): Likewise.
2957         (int_retval): Likewise.
2958         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2959         macro definitions in tst-audit.h.
2960         * sysdeps/i386/tst-audit.h: New file.
2961         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2962         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2963         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2964         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2965         * sysdeps/sh/tst-audit.h: Likewise.
2966         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2967         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2968         * sysdeps/x86_64/tst-audit.h: Likewise.
2969
2970 2012-07-26  Andreas Jaeger  <aj@suse.de>
2971
2972         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2973         ptrace.
2974
2975         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2976         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2977         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2978         PTRACE_O_MASK.
2979         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2980         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2981         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2982
2983         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2984         value.
2985
2986         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2987         _sigsys.
2988         (si_call_addr, si_syscall, si_arch): Define new macro.
2989         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2990         _sigsys.
2991         (si_call_addr, si_syscall, si_arch): Define new marcro.
2992         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2993         _sigsys.
2994         (si_call_addr, si_syscall, si_arch): Define new macro.
2995         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2996         _sigsys.
2997         (si_call_addr, si_syscall, si_arch): Define new macro.
2998
2999 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3000
3001         [BZ #13717]
3002         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3003         Change to 2.4.21 where previously 2.4.1.
3004         * sysdeps/unix/sysv/linux/configure: Regenerated.
3005         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3006         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3007         Linux kernel version.
3008         (__ASSUME_STD_AUXV): Remove.
3009         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3010         kernel version.
3011         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3012         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3013         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3014         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3015         (__ASSUME_NETLINK_SUPPORT): Likewise.
3016         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3017         (__no_netlink_support): Remove conditional definition.
3018         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3019         Remove.
3020         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3021         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3022         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3023         (if_nameindex_ioctl): Remove.
3024         (if_nameindex_netlink): Do not handle __no_netlink_support.
3025         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3026         code.
3027         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3028         Remove conditional code.
3029         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3030         code.
3031         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3032         unconditional.
3033         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3034         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3035         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3036         Remove.
3037         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3038         [!__ASSUME_STD_AUXV]: Remove conditional code.
3039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3040         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3041         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3043         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3044         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3045         code.
3046         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3048         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3049         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3050         conditional code.
3051         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3053         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3054         code.
3055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3056         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3057         conditional code.
3058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3059         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3060         code unconditional.
3061         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3062         conditional code.
3063         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3064         unconditional.
3065         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3066         conditional code.
3067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3068         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3069         unconditional.
3070         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3071         conditional code.
3072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3073         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3074         code unconditional.
3075         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3076         conditional code.
3077         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3078         unconditional.
3079         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3080         conditional code.
3081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3082         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3083         code unconditional.
3084         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3085         conditional code.
3086         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3087         unconditional.
3088         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3089         conditional code.
3090
3091 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3092
3093         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3094         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3095         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3096         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3097         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3098         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3099         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3100         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3101         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3102         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3103         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3104         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3105         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3106         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3107         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3108         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3109         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3110         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3111         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3112         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3113         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3114         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3115         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3116
3117 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3118
3119         * Versions.def: Add GLIBC_2.17.
3120         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3121         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3122         Introduce __libc_secure_getenv.
3123         * stdlib/Versions (2.17): Add secure_getenv
3124         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3125         * stdlib/secure-getenv.c: Rename __secure_getenv to
3126         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3127         symbol __secure_getenv for GLIBC_2.0.
3128         * stdlib/tst-secure-getenv.c: New.
3129         * stdlib/Makefile (tests): Add testcase.
3130         * manual/startup.texi (Environment Access): Document
3131         secure_getenv.
3132         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3133         __libc_secure_getenv.
3134         * inet/ruserpass.c (ruserpass): Likewise.
3135         * malloc/mtrace.c (mtrace): Likewise.
3136         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3137         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3138         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3139         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3140         HAVE_SECURE_GETENV.
3141         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3142         __secure_getenv to __libc_secure_getenv.
3143         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3145         Likewise.
3146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3147         Likewise.
3148         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3149         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3150         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3151         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3152         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3153         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3154         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3155
3156 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3157
3158         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3159         (struct La_i86_retval): Likewise.
3160         (struct La_x86_64_regs): Likewise.
3161         (struct La_x86_64_retval): Likewise.
3162         (struct La_x32_regs): Likewise.
3163         (struct La_x32_retval): Likewise.
3164         (struct La_ppc32_regs): Likewise.
3165         (struct La_ppc32_retval): Likewise.
3166         (struct La_ppc64_regs): Likewise.
3167         (struct La_ppc64_retval): Likewise.
3168         (struct La_sh_regs): Likewise.
3169         (struct La_sh_retval): Likewise.
3170         (struct La_s390_32_regs): Likewise.
3171         (struct La_s390_32_retval): Likewise.
3172         (struct La_s390_64_regs): Likewise.
3173         (struct La_s390_64_retval): Likewise.
3174         (struct La_sparc32_regs): Likewise.
3175         (struct La_sparc32_retval): Likewise.
3176         (struct La_sparc64_regs): Likewise.
3177         (struct La_sparc64_retval): Likewise.
3178         (struct audit_ifaces): Remove architecture-specific pltenter and
3179         pltexit members.
3180         * sysdeps/i386/ldsodefs.h: New file.
3181         * sysdeps/powerpc/ldsodefs.h: Likewise.
3182         * sysdeps/s390/ldsodefs.h: Likewise.
3183         * sysdeps/sh/ldsodefs.h: Likewise.
3184         * sysdeps/sparc/ldsodefs.h: Likewise.
3185         * sysdeps/x86_64/ldsodefs.h: Likewise.
3186
3187 2012-07-25  Marek Polacek  <polacek@redhat.com>
3188
3189         [BZ #6808]
3190         * math/libm-test.inc (yn_test): Add another test.
3191         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3192         to ERANGE when the result is +-Inf.
3193         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3194         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3195         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3196         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3197
3198 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3199
3200         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3201         equal to 0.
3202         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3203         clock_t.
3204         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3205
3206 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3207
3208         * configure.in <sysdeps resolving>: Correct printing
3209         Implies_before.
3210         * configure: Regenerate.
3211
3212 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3213
3214         * math/w_ilogb.c: Include <limits.h>.
3215         * math/w_ilogbl.c: Likewise.
3216
3217 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3218
3219         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3220         va_copy.  Document allowing for unavailable va_copy only as
3221         pre-C99 compatibility.
3222         * manual/string.texi (Copying and Concatenation): Use va_copy
3223         instead of __va_copy in concat example.
3224
3225 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3226
3227         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3228         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3229         it if not null.
3230
3231         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3232         with O_NOLINK passed to __file_name_lookup.
3233
3234         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3235         with O_NOLINK passed to __file_name_lookup.
3236
3237         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3238         negative N or less than NGIDS.
3239
3240         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3241         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3242         enough.  Use memcpy instead of strncpy.
3243
3244 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3245
3246         * elf/Makefile (check-data): Remove.
3247         (localplt.data): New vpath directive.
3248         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3249         instead of $(check-data).
3250         * scripts/data/localplt-generic.data: Move to ...
3251         * sysdeps/generic/localplt.data: ... here.
3252         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3253         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3254         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3256         ... here.
3257         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3259         ... here.
3260         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3262         ... here.
3263         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3264         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3265         ... here.
3266         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3267         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3268         ... here.
3269         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3270         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3271         ... here.
3272
3273 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3274
3275         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3276         PPC32 and PPC64 files.
3277         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3278         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3279
3280 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3281
3282         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3283         __makecontext_ret to ...
3284         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3285         ... here and call exit if uc_link is NULL.  New file.
3286         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3287         __makecontext_ret.S.
3288         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3289         __makecontext_ret to ...
3290         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3291         ... here and call exit if uc_link is NULL.  New file.
3292         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3293         __makecontext_ret.S.
3294
3295 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3296
3297         * elf/elf.h (R_390_IRELATIVE): New definition.
3298         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3299         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3300         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3301         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3302         (elf_machine_lazy_rel): Likewise.
3303         * sysdeps/s390/dl-irel.h: New file.
3304         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3305         * sysdeps/s390/s390-64/memset.S: New asm code.
3306         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3307         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3308         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3309         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3310         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3311         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3312         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3313         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3314         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3315         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3316         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3317         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3318         * sysdeps/s390/s390-32/memset.S: New asm code.
3319         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3320
3321 2012-07-17  Marek Polacek  <polacek@redhat.com>
3322
3323         [BZ #14349]
3324         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3325         * sysdeps/s390/s390-64/configure.in: Likewise.
3326         * sysdeps/sparc/configure.in: Likewise.
3327         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3328         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3329         * sysdeps/i386/configure.in: Likewise.
3330         * sysdeps/x86_64/configure.in: Likewise.
3331         * sysdeps/sh/configure.in: Likewise.
3332         * sysdeps/s390/s390-32/configure: Regenerated.
3333         * sysdeps/s390/s390-64/configure: Likewise.
3334         * sysdeps/x86_64/configure: Likewise.
3335         * sysdeps/sh/configure: Likewise.
3336         * sysdeps/powerpc/powerpc64/configure: Likewise.
3337         * sysdeps/powerpc/powerpc32/configure: Likewise.
3338         * sysdeps/sparc/configure: Likwise.
3339         * sysdeps/i386/configure: Likewise.
3340
3341         * elf/dl-open.c: Comment fixes.
3342
3343 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3344
3345         * Makefile [CXX] (check-data): Remove.
3346         [CXX] (c++-types.data): New vpath directive.
3347         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3348         vpath.  Do not allow for C++ type data being missing.
3349         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3350         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3351         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3352         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3353         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3354         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3355         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3357         ... here.
3358         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3360         ... here.
3361         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3362         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3363         ... here.
3364         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3366         ... here.
3367         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3368         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3369         ... here.
3370         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3371         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3372         ... here.
3373         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3374         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3375         ... here.
3376         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3377         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3378
3379         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3380         definitions to architecture-specific files.
3381         (TLS_IE): Likewise.
3382         (TLS_LD): Likewise.
3383         (TLS_GD): Likewise.
3384         * sysdeps/i386/tls-macros.h: New file.
3385         * sysdeps/powerpc/tls-macros.h: Likewise.
3386         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3387         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3388         * sysdeps/sh/tls-macros.h: Likewise.
3389         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3390         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3391         * sysdeps/x86_64/tls-macros.h: Likewise.
3392
3393 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3394
3395         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3396         zero value for regular exit case.
3397
3398         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3399         (__start_context): Preserve zero value for regular exit case.
3400
3401 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3402             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3403
3404         * manual/setjmp.texi (setcontext): Clarify normal process
3405         termination when uc_link is the null pointer.
3406         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3407         exit call.
3408
3409 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3410
3411         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3412         preprocessor.  Test for each exception mask separately.
3413
3414 2012-07-16  Andreas Jaeger  <aj@suse.de>
3415
3416         * po/ru.po: Update from translation team.
3417
3418 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3419
3420         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3421         equal to 0.
3422         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3423         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3424         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3425         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3426         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3427
3428 2012-07-13  Andreas Jaeger  <aj@suse.de>
3429
3430         * po/fr.po: Update from translation team.
3431
3432 2012-07-12  Marek Polacek  <polacek@redhat.com>
3433
3434         [BZ #14173]
3435         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3436         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3437         loop condition.
3438
3439 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3440
3441         [BZ #13717]
3442         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3443         Change to 2.4.1 where previously 2.4.0.
3444         * sysdeps/unix/sysv/linux/configure: Regenerated.
3445         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3446         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3447         version.
3448         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3449         (__ASSUME_AT_CLKTCK): Remove.
3450         (__ASSUME_AT_PAGESIZE): Likewise.
3451         (__ASSUME_AT_XID): Likewise.
3452         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3453         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3454         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3455         unconditionally.
3456         (HAVE_AUX_PAGESIZE): Likewise.
3457         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3458         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3459         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3460
3461 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3462
3463         [BZ #14307]
3464         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3465         the temporary buffer used to invoke __gethostbyname2_r,
3466         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3467         host_data / struct gaih_addrtuple.
3468         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3469         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3470         header file nss/nsswitch.h.
3471         * nss/nsswitch.h (global scope): Add definition of implementation
3472         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3473         resolv/nss_dns/dns-host.c).
3474
3475 2012-07-11  Andreas Jaeger  <aj@suse.de>
3476
3477         * po/fr.po: Update from translation team.
3478
3479         * po/sv.po: Update from translation team
3480         * po/fr.po: Another update from translation team.
3481
3482 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3483
3484         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3485         for subnormals or multiply small sinh result by itself.
3486         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3487         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3488
3489 2012-07-11  David S. Miller  <davem@davemloft.net>
3490
3491         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3492
3493 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3494
3495         [BZ #14347]
3496         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3497         (INTERNAL_MARK): Shift it here.
3498
3499 2012-07-10  Marek Polacek  <polacek@redhat.com>
3500
3501         [BZ #14151]
3502         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3503         libc_cv_asm_global_directive with .globl.
3504         * configure: Regenerated.
3505         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3506         with .globl.
3507         * sysdeps/i386/configure: Regenerated.
3508         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3509         with .globl.
3510         * sysdeps/x86_64/configure: Regenerated.
3511         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3512         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3513         * elf/tst-unique2mod2.c: Likewise.
3514         * elf/tst-unique2mod1.c: Likewise.
3515         * elf/tst-unique1mod2.c: Likewise.
3516         * elf/tst-unique1mod1.c: Likewise.
3517         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3518         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3519         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3520         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3521         * sysdeps/mach/sysdep.h: Likewise.
3522         * sysdeps/i386/sysdep.h: Likewise.
3523         * sysdeps/i386/i386-mcount.S: Likewise.
3524         * sysdeps/x86_64/_mcount.S: Likewise.
3525         * sysdeps/x86_64/sysdep.h: Likewise.
3526         * sysdeps/sh/_mcount.S: Likewise.
3527         * sysdeps/sh/sysdep.h: Likewise.
3528         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3529         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3530         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3531         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3532         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3533         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3534         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3535         * locale/localeinfo.h: Likewise.
3536         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3537         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3538
3539 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3540
3541         [BZ #14336]
3542         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3543         system".
3544         * manual/message.texi (The Uniforum approach): Likewise.
3545         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3546         (glibc iconv Implementation): Likewise.
3547
3548 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3549
3550         [BZ #14337]
3551         * math/s_clog.c (__clog): Avoid scaling a value down where that
3552         could result in underflow.
3553         * math/s_clog10.c (__clog10): Likewise.
3554         * math/s_clog10f.c (__clog10f): Likewise.
3555         * math/s_clog10l.c (__clog10l): Likewise.
3556         * math/s_clogf.c (__clogf): Likewise.
3557         * math/s_clogl.c (__clogl): Likewise.
3558         * math/libm-test.inc (clog_test): Add more tests.
3559         (clog10_test): Likewise.
3560         * sysdeps/i386/fpu/libm-test-ulps: Update.
3561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3562
3563 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3564
3565         [BZ #14283]
3566         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3567         by 7 not 8 to examine high bit of fractional part.
3568
3569         [BZ #14042]
3570         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3571         for call to __mcount_internal.
3572         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3573         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3574         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3575
3576 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3577
3578         [BZ #14154]
3579         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3580         approximation for values within 0x1p-13f of an odd multiple of
3581         pi/4.
3582         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3583         exception.  Add more tests.
3584         * sysdeps/i386/fpu/libm-test-ulps: Update.
3585
3586         [BZ #6778]
3587         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3588         inputs and return -1 for them.  Do not check for +Inf in case not
3589         reachable for +Inf.
3590         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3591         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3592         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3593         and return -1 for them.  Do not check for +Inf in case not
3594         reachable for +Inf.
3595         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3596         define.
3597         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3598         and return -1 for them.  Do not check for +Inf in case not
3599         reachable for +Inf.
3600         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3601         spurious underflow.
3602         * sysdeps/i386/fpu/libm-test-ulps: Update.
3603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3604
3605 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3606
3607         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3608
3609 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3610
3611         [BZ #14157]
3612         [BZ #14331]
3613         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3614         could result in spurious underflow.  Scale down values above
3615         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3616         * math/s_csqrtf.c (__csqrtf): Likewise.
3617         * math/s_csqrtl.c (__csqrtl): Likewise.
3618         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3619         spurious underflow.
3620         * sysdeps/i386/fpu/libm-test-ulps: Update.
3621         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3622
3623 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3624
3625         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3626         xopen-msg.sed.
3627         * catgets/xopen-msg.awk: New file.
3628         * catgets/xopen-msg.sed: Removed.
3629
3630         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3631         po2text.sed.
3632         * intl/po2test.awk: New file.
3633         * intl/po2test.sed: Removed.
3634
3635 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3636
3637         [BZ #14328]
3638         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3639         or multiply small sinh result by itself.
3640         * math/s_ctanf.c (__ctanf): Likewise.
3641         * math/s_ctanh.c (__ctanh): Likewise.
3642         * math/s_ctanhf.c (__ctanhf): Likewise.
3643         * math/s_ctanhl.c (__ctanhl): Likewise.
3644         * math/s_ctanl.c (__ctanl): Likewise.
3645         * math/libm-test.inc (ctan_test_tonearest): New function.
3646         (ctan_test_towardzero): Likewise.
3647         (ctan_test_downward): Likewise.
3648         (ctan_test_upward): Likewise.
3649         (ctanh_test_tonearest): Likewise.
3650         (ctanh_test_towardzero): Likewise.
3651         (ctanh_test_downward): Likewise.
3652         (ctanh_test_upward): Likewise.
3653         (main): Call these new functions.
3654         * sysdeps/i386/fpu/libm-test-ulps: Update.
3655         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3656
3657 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3658
3659         * .gitignore: Delete /ports entry.
3660
3661 2012-07-03  Andreas Jaeger  <aj@suse.de>
3662
3663         * po/bg.po: Update from translation team.
3664         * po/cs.po: Likewise.
3665         * po/de.po: Likewise.
3666         * po/hr.po: Likewise.
3667         * po/nl.pl: Likewise.
3668         * po/pl.po: Likewise.
3669         * po/vi.po: Likewise.
3670
3671 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3672
3673         * Makeconfig [!+link] (+link-before-libc): New variable.
3674         [!+link] (+link-after-libc): Likewise.
3675         [!+link] (+link-tests): Likewise.
3676         [!+link] (+link): Define in terms of $(+link-before-libc) and
3677         $(+link-after-libc).
3678         [!+link-static] (+link-static-before-libc): New variable.
3679         [!+link-static] (+link-static-after-libc): Likewise.
3680         [!+link-static] (+link-static-tests): Likewise.
3681         [!+link-static] (+link-static): Define in terms of
3682         $(+link-static-before-libc) and $(+link-static-after-libc).
3683         [build-shared] (link-libc-before-gnulib): New variable.
3684         [build-shared] (link-libc-tests): Likewise.
3685         [build-shared] (link-libc): Define in terms of
3686         $(link-libc-before-gnulib).
3687         [!build-shared] (link-libc-tests): New variable.
3688         (link-libc-static-tests): New variable.
3689         [!gnulib] (gnulib-arch): New variable.
3690         [!gnulib] (gnulib-tests): Likewise.
3691         [!gnulib] (static-gnulib-arch): Likewise.
3692         [!gnulib] (static-gnulib-tests): Likewise.
3693         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3694         Define with "=" instead of ":=".
3695         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3696         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3697         * Rules (binaries-all-notests): New variable.
3698         (binaries-all-tests): Likewise.
3699         (binaries-static-notests): Likewise.
3700         (binaries-static-tests): Likewise.
3701         (binaries-all): Define using $(binaries-all-notests) and
3702         $(binaries-all-tests).
3703         (binaries-static): Define using $(binaries-static-notests) and
3704         $(binaries-static-tests).
3705         (binaries-shared-tests): New variable.
3706         (binaries-shared-notests): Likewise.
3707         (binaries-shared): Remove variable.
3708         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3709         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3710         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3711         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3712         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3713         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3714         * elf/Makefile (sln-modules): New variable.
3715         (extra-objs): Add $(sln-modules:=.o).
3716         (ldconfig-modules): Add static-stubs.
3717         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3718         * elf/static-stubs.c: New file.
3719
3720         [BZ #14283]
3721         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3722         by 7 not 8 to examine high bit of fractional part.  Use volatile
3723         variables when splitting into final array of floats if
3724         __FLT_EVAL_METHOD__ != 0.
3725         * math/libm-test.inc (cos_test): Add another test.
3726         (sin_test): Likewise.
3727         * sysdeps/i386/fpu/libm-test-ulps: Update.
3728
3729         [BZ #14273]
3730         * math/libm-test.inc (cosh_test): Add more tests.
3731
3732         * version.h (RELEASE): Set to "development".
3733         (VERSION): Set to "2.16.90".
3734
3735 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3736
3737         * NEWS: Update copyright. Remove last-updated date.
3738         Mention math library bug fixes and timezone data changes.
3739         * README: Mention GNU/Hurd, x32, and HPPA support status.
3740
3741 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3742
3743         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3744
3745 2012-06-27  Andreas Jaeger  <aj@suse.de>
3746
3747         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3748
3749 2012-06-25  Andreas Jaeger  <aj@suse.de>
3750
3751         * sysdeps/s390/fpu/libm-test-ulps: Update.
3752
3753 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3754             Thomas Schwinge  <thomas@codesourcery.com>
3755
3756         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3757         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3758         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3759         fanotify_mark.
3760
3761 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3762
3763         * sysdeps/mach/start.c: Remove file.
3764         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3765         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3766         * sysdeps/sh/init-first.c: Likewise.
3767
3768         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3769         registers for frame unwinding purposes, add CFI directives.
3770         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3771         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3772         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3773         Likewise.
3774
3775         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3776         __fortify_fail returning.
3777         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3778
3779         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3780         sysdeps/sh/____longjmp_chk.S.
3781         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3782         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3783         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3784         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3785
3786         * sysdeps/sh/abort-instr.h: New file.
3787         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3788         process in case exit returns.
3789
3790         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3791         initialize the GOT register before use.
3792
3793         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3794         calculation of ARGC > 4.
3795
3796         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3797         meaningful names to some local labels.
3798
3799 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3800             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3801
3802         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3803         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3804         (__arch_compare_and_exchange_val_16_acq): Likewise.
3805         (__arch_compare_and_exchange_val_32_acq): Likewise.
3806         (atomic_exchange_and_add): Fix gUSA sequence.
3807         (atomic_add): Likewise.
3808         (atomic_add_negative): Likewise.
3809         (atomic_add_zero): Likewise.
3810         (atomic_bit_test_set): Likewise.
3811
3812 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3813
3814         [BZ #13579]
3815         * include/link.h (struct link_map): Add l_free_initfini.
3816         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3817         l_initfini.
3818         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3819         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3820         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3821         set.
3822
3823 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3824
3825         * configure.in: Use AC_LANG_SOURCE.
3826         * configure: Regenerate.
3827
3828 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3829
3830         * configure.in (libc_cv_localstatedir): New substituted variable.
3831         * configure: Regenerated.
3832         * config.make.in (localstatedir): New variable, substituted from
3833         libc_cv_localstatedir.
3834         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3835         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3836         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3837         * sysdeps/gnu/configure: Regenerated.
3838
3839 2012-06-21  Jeff Law  <law@redhat.com>
3840
3841         [BZ #14277]
3842         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3843         free.  Simplify list management for _LIBC case.
3844
3845 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3846
3847         [BZ #14273]
3848         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3849         Clear sign bit of 64-bit integer value before comparing against
3850         overflow value.
3851
3852         * sysdeps/mach/configure: Regenerated.
3853
3854 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3855
3856         [BZ #14278]
3857         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3858
3859 2012-06-21  Jeff Law  <law@redhat.com>
3860
3861         [BZ #13882]
3862         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3863         uint16_t for elements in the "seen" array to avoid char overflows.
3864         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3865         * elf/dl-open.c (dl_open_worker): Likewise.
3866
3867 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3868
3869         * scripts/list-sources.sh: Scan PORTS for translations.
3870         * po/libc.pot: Regenerated.
3871
3872 2012-06-21  Andreas Jaeger  <aj@suse.de>
3873
3874         [BZ #12194]
3875         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3876         warning.
3877         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3878         * bits/byteswap-16.h (__bswap_16): Likewise.
3879         * bits/byteswap.h (__bswap_constant_16): Likewise.
3880
3881 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3882
3883         [BZ #14117]
3884         * sysdeps/i386/fpu_control.h: Removed.
3885         * sysdeps/x86_64/fpu_control.h: Moved to ...
3886         * sysdeps/x86/fpu_control.h: Here.
3887
3888         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3889         (_FPU_SETCW): Likewise.
3890
3891 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3892
3893         [BZ #14117]
3894         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3895         * sysdeps/x86/fpu/bits/mathinline.h: This.
3896         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3897
3898         [BZ #14050]
3899         [BZ #14117]
3900         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3901         functions if __x86_64__ is defined.
3902
3903 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3904
3905         * string/endian.h: Add !__ASSEMBLER__ condition for including
3906         conversion interfaces.
3907
3908 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3909
3910         [BZ #14241]
3911         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3912         of ABS(x) in calculating zero to negative powers other than odd
3913         integers.
3914         * math/libm-test.inc (pow_test): Add more tests.
3915
3916 2012-06-15  Andreas Jaeger  <aj@suse.de>
3917
3918         * manual/contrib.texi (Contributors): Update entry of Liubov
3919         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3920         Machado Filho.
3921
3922 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3923
3924         * string/string.h: Add __wur to GNU version of strerror_r.
3925
3926 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3927
3928         [BZ #14229]
3929         * string/Makefile (tests): Add tst-strtok_r.
3930         * string/tst-strtok_r.c: New file.
3931         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3932         RAX_LP/RDX_LP on SAVE_PTR.
3933
3934 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3935
3936         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3937
3938 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3939
3940         * libm_test.inc (csqrt_test): Allow more spurious underflow
3941         exceptions.
3942         (j0_test): Likewise.
3943         (j1_test): Likewise.
3944         (y0_test): Likewise.
3945         (y1_test): Likewise.
3946
3947 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3948
3949         * po/Makefile (libc.pot): Use UTF-8 charset.
3950
3951 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3952
3953         [BZ #14210]
3954         Suppress sign-conversion warning from FD_SET.
3955         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3956         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3957         not unsigned long int.
3958         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3959
3960 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3961
3962         [BZ #14050]
3963         [BZ #14117]
3964         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3965         __extern_always_inline instead of __extern_inline.
3966         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3967         (__signbit): Likewise.
3968         (__signbitl): Support C++ namespace.
3969         (lrintf): New inline function.
3970         (lrint): Likewise.
3971         (llrintf): Likewise.
3972         (llrint): Likewise.
3973         (fmaxf): Likewise.
3974         (fmax): Likewise.
3975         (fminf): Likewise.
3976         (fmin): Likewise.
3977         (rint): Likewise.
3978         (rintf): Likewise.
3979         (ceil): Likewise.
3980         (ceilf): Likewise.
3981         (floor): Likewise.
3982         (floorf): Likewise.
3983         (nearbyint): Likewise.
3984         (nearbyintf): Likewise.
3985
3986 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3987
3988         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3989         non-default versions.
3990
3991 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3992
3993         [BZ #14218]
3994         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3995
3996 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3997
3998         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3999         (FE_UPWARD, FE_DOWNWARD): Don't define.
4000         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4001         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4002
4003         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4004         reading it.
4005         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4006         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4007
4008 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4009
4010         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4011         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4012         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4013         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4014
4015 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4016
4017         [BZ #14117]
4018         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4019         * sysdeps/i386/fpu/Implies: New file.
4020         * sysdeps/x86_64/fpu/Implies: Likewise.
4021         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4022         * sysdeps/x86/fpu/bits/fenv.h: This.
4023
4024         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4025         __SSE_MATH__.
4026
4027 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4028
4029         [BZ #14134]
4030         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4031         character 0xffff that matches the last element of the
4032         conversion table.
4033
4034 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4035
4036         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4037         fmodl commit.
4038
4039 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4040
4041         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4042         values higher than 25.6283.
4043
4044 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4045
4046         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4047         subnormal exponent extraction and add some __builtin_expect.
4048         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4049         Fix for subnormal mantissa calculation.
4050
4051 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4052
4053         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4054         cpu2 is -1 and errno is not ENOSYS.
4055
4056 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4057
4058         [BZ #14117]
4059         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4060         * sysdeps/x86/bits/string.h: This.
4061         * sysdeps/x86_64/bits/string.h: Removed.
4062
4063         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4064         if not compiling for x86-64, but compiling for >= i486.
4065
4066         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4067         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4068
4069         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4070         New macro from Linux kernel 3.4.0.
4071         (FP_XSTATE_MAGIC2): Likewise.
4072         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4073         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4074         (struct _fpx_sw_bytes): New struct.
4075         (struct _xsave_hdr): Likewise.
4076         (struct _ymmh_state): Likewise.
4077         (struct _xstate): Likewise.
4078
4079         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4080         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4081         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4082         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4083         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4084         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4085
4086         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4087         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4088         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4089         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4090         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4091         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4092
4093 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4094
4095         [BZ #13743]
4096         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4097         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4098         (sysdep_headers): Include sys/platform/ppc.h.
4099         * sysdeps/powerpc/test-gettimebase.c: Test for
4100         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4101         * manual/Makefile (appendices): Include platform.texi.
4102         * manual/contrib.texi (Contributors): Update @node pointers.
4103         * manual/maint.texi (Maintenance): Likewise.
4104         (Platform): New node.
4105         * manual/platform.texi: New file.  Document the new features.
4106
4107 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4108             Jakub Jelinek  <jakub@redhat.com>
4109
4110         [BZ #14188]
4111         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4112         where __builtin_expect is unavailable.
4113
4114 2012-06-03  David S. Miller  <davem@davemloft.net>
4115
4116         * stdlib/longlong.h: Updated from GCC.
4117
4118 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4119
4120         [BZ #14042]
4121         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4122         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4123         __mcount_internal.
4124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4125         (GLIBC_2.16): Likewise.
4126
4127 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4128
4129         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4130
4131 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4132
4133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4134         (default-abi): New variable.
4135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4136         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4137         variable.
4138         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4139         Likewise.
4140         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4141         Likewise.
4142         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4143         Likewise.
4144
4145         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4146         definition.  Document in comment.
4147
4148 2012-06-01  David S. Miller  <davem@davemloft.net>
4149
4150         * stdlib/longlong.h: Updated from GCC.
4151
4152 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4153
4154         [BZ #14117]
4155         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4156         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4157         sys/debugreg.h sys/io.h here.
4158         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4159         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4160         sys/io.h.
4161         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4162         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4163         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4164         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4165         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4166         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4167
4168         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4169         Define only if __x86_64__ is defined.
4170
4171 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4172
4173         [BZ #14048]
4174         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4175         Use int64_t for variable i.
4176         * math/libm-test.inc (fmod_test): Add more tests.
4177
4178         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4179         z computation is not scheduled after fetestexcept.
4180         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4181         Use math_force_eval instead of asm to ensure calculation scheduled
4182         before exception test.
4183         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4184         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4185
4186 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4187
4188         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4189         computation is not scheduled after fetestexcept.
4190
4191 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4192
4193         [BZ #14117]
4194         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4195         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4196
4197 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4198
4199         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4200         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4201
4202 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4203
4204         [BZ #14117]
4205         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4206         <bits/wordsize.h>.
4207         (__WCHAR_MIN): Support __WORDSIZE == 64.
4208         (__WCHAR_MAX): Likewise.
4209
4210         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4211         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4212
4213         [BZ #14183]
4214         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4215         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4216
4217         [BZ #14117]
4218         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4219         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4220
4221         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4222         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4223
4224         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4225         Defined to 1 if __x86_64__ isn't defined.
4226         (_STAT_VER_LINUX_OLD): New.
4227         (st_atime): Remove duplicate.
4228         (st_mtime): Likewise.
4229         (st_ctime): Likewise.
4230
4231 2012-05-31  David S. Miller  <davem@davemloft.net>
4232
4233         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4234         entries.
4235
4236 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4237
4238         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4239         gen-libm-test.pl.
4240
4241         [BZ #14132]
4242         * elf/dl-reloc.c: Include <_itoa.h>.
4243         (_dl_reloc_bad_type): Remove use of INTUSE.
4244         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4245         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4246         * stdio-common/psiginfo.c (psiginfo): Likewise.
4247         * stdio-common/psignal.c (psignal): Likewise.
4248         * string/strsignal.c (strsignal): Likewise.
4249         * include/signal.h (_sys_siglist): Declare hidden proto.
4250         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4251         INTVARDEF with libc_hidden_data_def.
4252         * stdio-common/itoa-udigits.c: Likewise.
4253         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4254         (_itoa_lower_digits_internal): Remove declaration.
4255         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4256         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4257         (_sys_sigabbrev_internal): Remove aliases.
4258         (_sys_siglist): Define hidden alias.
4259
4260 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4261
4262         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4263         bits/sysctl.h.
4264
4265 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4266
4267         [BZ #14117]
4268         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4269         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4270
4271         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4272         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4273         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4274         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4275         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4276         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4277
4278         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4279         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4280         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4281
4282         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4283         with __addr.
4284         (insw): Likewise.
4285         (insl): Likewise.
4286         (outsb): Likewise.
4287         (outsw): Likewise.
4288         (outsl): Likewise.
4289
4290         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4291         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4292         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4293
4294         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4295         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4296         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4297         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4298         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4299         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4300
4301         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4302         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4303
4304         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4305         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4306
4307         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4308         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4309         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4310
4311         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4312         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4313         to ...
4314         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4315
4316         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4317         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4318         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4319
4320         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4321         for x86-64.
4322         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4323
4324 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4325
4326         * math/math.h (M_El): Use two more decimal places.
4327         (M_LOG2El): Likewise.
4328         (M_LOG10El): Likewise.
4329         (M_LN2l): Likewise.
4330         (M_LN10l): Likewise.
4331         (M_PIl): Likewise.
4332         (M_PI_2l): Likewise.
4333         (M_PI_4l): Likewise.
4334         (M_1_PIl): Likewise.
4335         (M_2_PIl): Likewise.
4336         (M_2_SQRTPIl): Likewise.
4337         (M_SQRT2l): Likewise.
4338         (M_SQRT1_2l): Likewise.
4339
4340 2012-05-31  David S. Miller  <davem@davemloft.net>
4341
4342         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4343         values between float registers.
4344         * sysdeps/sparc/sparc64/memset.S: Likewise.
4345         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4346
4347 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4348
4349         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4350         -D_FORTIFY_SOURCE=1.
4351         (CPPFLAGS-tst-longjmp_chk.c): Define.
4352         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4353         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4354         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4355         CFLAGS-tst-wchar-h.c.
4356
4357 2012-05-31  Marek Polacek  <polacek@redhat.com>
4358
4359         [BZ #14132]
4360         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4361         __endmntent_internal): Remove declaration.
4362         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4363         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4364         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4365
4366 2012-05-30  David S. Miller  <davem@davemloft.net>
4367
4368         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4369         (___Q_simulate_exceptions): Use real FP ops rather than writing
4370         into the %fsr.
4371         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4372         Likewise.
4373
4374 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4375
4376         [BZ #14117]
4377         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4378         * sysdeps/x86/bits/xtitypes.h: This.
4379
4380         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4381         * sysdeps/x86/bits/wordsize.h: This.
4382
4383         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4384         * sysdeps/x86/bits/huge_vall.h: This.
4385
4386         * sysdeps/i386/bits/select.h: Removed.
4387         * sysdeps/x86_64/bits/select.h: Renamed to ...
4388         * sysdeps/x86/bits/select.h: This.
4389
4390         * sysdeps/i386/bits/setjmp.h: Removed.
4391         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4392         * sysdeps/x86/bits/setjmp.h: This.
4393
4394         * sysdeps/i386/bits/mathdef.h: Removed.
4395         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4396         * sysdeps/x86/bits/mathdef.h: This.
4397
4398 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4399
4400         [BZ #14132]
4401         * include/sys/socket.h (__connect_internal)
4402         (__libc_sa_len_internal): Remove declaration.
4403         (__connect, __libc_sa_len): Declare hidden_proto.
4404         (SA_LEN): Remove use of INTUSE.
4405         * socket/connect.c: Add libc_hidden_def.
4406         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4407         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4408         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4409         alias.
4410         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4411         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4412         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4413         of adding _internal alias.
4414
4415 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4416
4417         [BZ #14117]
4418         * sysdeps/i386/bits/link.h: Removed.
4419         * sysdeps/i386/bits/linkmap.h: Likewise.
4420         * sysdeps/x86_64/bits/link.h: Renamed to ...
4421         * sysdeps/x86/bits/link.h: This.
4422         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4423         * sysdeps/x86/bits/linkmap.h: This.
4424
4425         * sysdeps/i386/bits/endian.h: Removed.
4426         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4427         * sysdeps/x86/bits/endian.h: This.
4428
4429         * sysdeps/i386/bits/byteswap.h: Removed.
4430         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4431         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4432         * sysdeps/x86/bits/byteswap.h: This.
4433         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4434         * sysdeps/x86/bits/byteswap-16.h: This.
4435         * sysdeps/i386/Implies: Add x86.
4436         * sysdeps/x86_64/Implies: Likewise.
4437
4438 2012-05-30  David S. Miller  <davem@davemloft.net>
4439
4440         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4441         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4442         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4443         (FP_TRAPPING_EXCEPTIONS): Define.
4444         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4445         (FP_TRAPPING_EXCEPTIONS): Define.
4446         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4447         subnormals only when inexact has been signalled or underflow
4448         exceptions are enabled.
4449         (_FP_PACK_CANONICAL): Likewise.
4450
4451 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4452
4453         [BZ #14183]
4454         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4455         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4456
4457 2012-05-30  Richard Henderson  <rth@twiddle.net>
4458
4459         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4460         with #ifndef NOT_IN_libc.
4461
4462         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4463         marked to avoid plt entry.
4464
4465 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4466
4467         [BZ #14112]
4468         * Makeconfig (default-abi): New macro.
4469         (abi-includes): Likewise.
4470         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4471         $(abi-$(default-abi)-lib-soname) for soname if defined.
4472         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4473         abi-variants.
4474         * Makefile (installed-stubs): Likewise.
4475         * include/stubs-biarch.h: Removed.
4476         * scripts/lib-names.awk: Only handle one library at a time.
4477         * scripts/soversions.awk: Remove WORDSIZE support.
4478         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4479         entries.
4480         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4481         Removed.
4482         (syscall-list-default-condition): Likewise.
4483         (syscall-list-default-condition): Likewise.
4484         (syscall-list-includes): Likewise.
4485         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4486         syscall-list-* with abi-*.  Handle undefined abi-variants.
4487         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4488         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4489         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4490         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4491         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4492         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4493         Removed.
4494         (syscall-list-32-options): Likewise.
4495         (syscall-list-32-condition): Likewise.
4496         (syscall-list-64-options): Likewise.
4497         (syscall-list-64-condition): Likewise.
4498         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4499         macro.
4500         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4501         Renamed to ...
4502         (abi-*): This.
4503         (abi-64-ld-soname): New macro.
4504         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4505         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4506         Renamed to ...
4507         (abi-*): This.
4508         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4509         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4510
4511 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4512
4513         * sysdeps/unix/sysv/linux/kernel-features.h
4514         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4515         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4516         include <kernel-features.h>.
4517         [!__NR_ftruncate64]: Remove conditional code.
4518         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4519         [__NR_ftruncate64]: Make code unconditional.
4520         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4521         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4522         include <kernel-features.h>.
4523         [!__NR_ftruncate64]: Remove conditional code.
4524         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4525         [__NR_ftruncate64]: Make code unconditional.
4526         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4528         include <kernel-features.h>.
4529         [!__NR_ftruncate64]: Remove conditional code.
4530         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4531         [__NR_ftruncate64]: Make code unconditional.
4532         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4534         include <kernel-features.h>.
4535         [!__NR_ftruncate64]: Remove conditional code.
4536         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4537         [__NR_ftruncate64]: Make code unconditional.
4538         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4539
4540         * configure.in (libc_cv_fpie): Weaken to a compile test using
4541         LIBC_TRY_CC_OPTION.
4542         * configure: Regenerated.
4543
4544 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4545
4546         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4547         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4548         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4550         Refreshed.
4551         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4552         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4553         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4554         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4555         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4557         Refreshed.
4558
4559 2012-05-27  David S. Miller  <davem@davemloft.net>
4560
4561         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4562         (___Q_zero): New.
4563         (__Q_simulate_exceptions): Return void.  Change to simulate
4564         exceptions by writing into the %fsr.
4565         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4566         (__Qp_handle_exceptions): Likewise.
4567         (numbers): Delete.
4568         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4569         __Qp_handle_exceptions.
4570         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4571         __Qp_handle_exceptions.
4572         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4573         as unused and give dummy FP_RND_NEAREST initializer.
4574         (FP_INHIBIT_RESULTS): Define.
4575         (___Q_simulate_exceptions): Update declaration.
4576         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4577         formatting.
4578         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4579         as unused and give dummy FP_RND_NEAREST initializer.
4580         (__Qp_handle_exceptions): Update declaration.
4581         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4582         formatting.
4583
4584 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4585
4586         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4587         the temporary FPU control word.
4588         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4589         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4590         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4591         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4592         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4593         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4594         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4595         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4596         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4597         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4598         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4599
4600 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4601
4602         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4603         fields.
4604
4605 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4606
4607         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4608         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4609         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4610         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4611         Likewise.
4612         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4613         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4614         Likewise.
4615
4616 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4617
4618         * po/h.po: Update from translation team.
4619
4620 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4621
4622         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4623
4624         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4625         handling of denormals.
4626         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4627         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4628         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4629         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4630         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4631         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4632         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4633         Likewise.
4634
4635 2012-05-26  Marek Polacek  <polacek@redhat.com>
4636
4637         [BZ #14152]
4638         * math/libm-test.inc (fma_test): Don't always expect underflow
4639         exception.
4640
4641 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4642
4643         [BZ #12416]
4644         * elf/tst-execstack.c: Include stackinfo.h.
4645         (do_test): Adjust test case to ensure that pthread_getattr_np
4646         behaviour remains the same after marking stack executable.
4647
4648 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4649
4650         * sysdeps/unix/sysv/linux/kernel-features.h
4651         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4652         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4653         kernel-features.h.
4654         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4655         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4656         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4657         kernel-features.h.
4658         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4659         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4660
4661 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4662
4663         * configure.in: Define the default includes to being none.
4664         * configure: Regenerated.
4665
4666 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4667
4668         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4669         * sysdeps/x86_64/setjmp.S: Likewise.
4670         * sysdeps/i386/bsd-setjmp.S: Likewise.
4671         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4672         * sysdeps/i386/setjmp.S: Likewise.
4673         * sysdeps/i386/__longjmp.S: Likewise.
4674         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4675         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4676
4677         * include/stap-probe.h: New file.
4678         * configure.in: Handle --enable-systemtap.
4679         * configure: Regenerated.
4680         * config.h.in (USE_STAP_PROBE): New #undef.
4681         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4682         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4683         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4684
4685 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4686
4687         [BZ #13717]
4688         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4689         to 2.4.0 where earlier.
4690         * sysdeps/unix/sysv/linux/configure: Regenerated.
4691         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4692         <kernel-features.h>.
4693         [__ASSUME_32BITUIDS]: Make code unconditional.
4694         [!__ASSUME_32BITUIDS]: Remove conditional code.
4695         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4696         <kernel-features.h>.
4697         [__ASSUME_32BITUIDS]: Make code unconditional.
4698         [!__ASSUME_32BITUIDS]: Remove conditional code.
4699         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4700         [__ASSUME_32BITUIDS]: Make code unconditional.
4701         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4702         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4703         <kernel-features.h>.
4704         [__ASSUME_32BITUIDS]: Make code unconditional.
4705         [!__ASSUME_32BITUIDS]: Remove conditional code.
4706         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4707         <kernel-features.h>.
4708         [__ASSUME_32BITUIDS]: Make code unconditional.
4709         [!__ASSUME_32BITUIDS]: Remove conditional code.
4710         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4711         <kernel-features.h>.
4712         [__ASSUME_32BITUIDS]: Make code unconditional.
4713         [!__ASSUME_32BITUIDS]: Remove conditional code.
4714         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4715         <kernel-features.h>.
4716         [__ASSUME_32BITUIDS]: Make code unconditional.
4717         [!__ASSUME_32BITUIDS]: Remove conditional code.
4718         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4719         <kernel-features.h>.
4720         [__ASSUME_32BITUIDS]: Make code unconditional.
4721         [!__ASSUME_32BITUIDS]: Remove conditional code.
4722         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4723         <kernel-features.h>.
4724         [__ASSUME_32BITUIDS]: Make code unconditional.
4725         [!__ASSUME_32BITUIDS]: Remove conditional code.
4726         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4727         <kernel-features.h>.
4728         [__ASSUME_32BITUIDS]: Make code unconditional.
4729         [!__ASSUME_32BITUIDS]: Remove conditional code.
4730         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4731         <kernel-features.h>.
4732         [__ASSUME_32BITUIDS]: Make code unconditional.
4733         [!__ASSUME_32BITUIDS]: Remove conditional code.
4734         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4735         <kernel-features.h>.
4736         [__ASSUME_32BITUIDS]: Make code unconditional.
4737         [!__ASSUME_32BITUIDS]: Remove conditional code.
4738         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4739         <kernel-features.h>.
4740         [__ASSUME_32BITUIDS]: Make code unconditional.
4741         [!__ASSUME_32BITUIDS]: Remove conditional code.
4742         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4743         <kernel-features.h>.
4744         [__NR_setresgid] (__setresgid): Do not declare.
4745         [__ASSUME_32BITUIDS]: Make code unconditional.
4746         [!__ASSUME_32BITUIDS]: Remove conditional code.
4747         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4748         <kernel-features.h>.
4749         [__NR_setresuid] (__setresuid): Do not declare.
4750         [__ASSUME_32BITUIDS]: Make code unconditional.
4751         [!__ASSUME_32BITUIDS]: Remove conditional code.
4752         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4753         <kernel-features.h>.
4754         [__ASSUME_32BITUIDS]: Make code unconditional.
4755         [!__ASSUME_32BITUIDS]: Remove conditional code.
4756         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4757         <kernel-features.h>.
4758         [__ASSUME_32BITUIDS]: Make code unconditional.
4759         [!__ASSUME_32BITUIDS]: Remove conditional code.
4760         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4761         <kernel-features.h>.
4762         [__ASSUME_32BITUIDS]: Make code unconditional.
4763         [!__ASSUME_32BITUIDS]: Remove conditional code.
4764         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4765         <kernel-features.h>.
4766         [__ASSUME_32BITUIDS]: Make code unconditional.
4767         [!__ASSUME_32BITUIDS]: Remove conditional code.
4768         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4769         <kernel-features.h>.
4770         [__ASSUME_32BITUIDS]: Make code unconditional.
4771         [!__ASSUME_32BITUIDS]: Remove conditional code.
4772         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4773         <kernel-features.h>.
4774         [__ASSUME_32BITUIDS]: Make code unconditional.
4775         [!__ASSUME_32BITUIDS]: Remove conditional code.
4776         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4777         <kernel-features.h>.
4778         [__ASSUME_32BITUIDS]: Make code unconditional.
4779         [!__ASSUME_32BITUIDS]: Remove conditional code.
4780         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4781         <kernel-features.h>.
4782         [__ASSUME_32BITUIDS]: Make code unconditional.
4783         [!__ASSUME_32BITUIDS]: Remove conditional code.
4784         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4785         <kernel-features.h>.
4786         [__ASSUME_32BITUIDS]: Make code unconditional.
4787         [!__ASSUME_32BITUIDS]: Remove conditional code.
4788         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4789         <kernel-features.h>.
4790         [__ASSUME_32BITUIDS]: Make code unconditional.
4791         [!__ASSUME_32BITUIDS]: Remove conditional code.
4792         * sysdeps/unix/sysv/linux/kernel-features.h
4793         (__ASSUME_SETRESUID_SYSCALL): Remove.
4794         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4795         (__ASSUME_32BITUIDS): Likewise.
4796         (__ASSUME_LDT_WORKS): Likewise.
4797         (__ASSUME_O_DIRECTORY): Likewise.
4798         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4799         architecture but not kernel version.
4800         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4801         (__ASSUME_MMAP2_SYSCALL): Likewise.
4802         (__ASSUME_STAT64_SYSCALL): Likewise.
4803         (__ASSUME_IPC64): Likewise.
4804         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4805         <kernel-features.h>.
4806         [__ASSUME_32BITUIDS]: Make code unconditional.
4807         [!__ASSUME_32BITUIDS]: Remove conditional code.
4808         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4809         <kernel-features.h>.
4810         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4811         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4812         132096]: Remove conditional code.
4813         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4814         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4815         <kernel-features.h>.
4816         [__ASSUME_32BITUIDS]: Make code unconditional.
4817         [!__ASSUME_32BITUIDS]: Remove conditional code.
4818         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4819         <kernel-features.h>.
4820         [__ASSUME_32BITUIDS]: Make code unconditional.
4821         [!__ASSUME_32BITUIDS]: Remove conditional code.
4822         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4823         <kernel-features.h>.
4824         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4825         unconditional.
4826         (__setresgid): Do not declare.
4827         [__ASSUME_32BITUIDS]: Make code unconditional.
4828         [!__ASSUME_32BITUIDS]: Remove conditional code.
4829         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4830         <kernel-features.h>.
4831         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4832         unconditional.
4833         (__setresuid): Do not declare.
4834         [__ASSUME_32BITUIDS]: Make code unconditional.
4835         [!__ASSUME_32BITUIDS]: Remove conditional code.
4836         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4837         <kernel-features.h>.
4838         [__ASSUME_32BITUIDS]: Make code unconditional.
4839         [!__ASSUME_32BITUIDS]: Remove conditional code.
4840         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4841         <kernel-features.h>.
4842         [__ASSUME_32BITUIDS]: Make code unconditional.
4843         [!__ASSUME_32BITUIDS]: Remove conditional code.
4844
4845 2012-05-25  Richard Henderson  <rth@twiddle.net>
4846
4847         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4848         dl_hwcap to ifunc resolver.
4849         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4850         elf_ifunc_invoke.
4851         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4852         dl_hwcap to ifunc resolver.
4853         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4854
4855 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4856
4857         [BZ #14153]
4858         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4859         for |x| <= 2**-26, not 2**-57.
4860         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4861         exception.
4862
4863 2012-05-24  Jeff Law  <law@redhat.com>
4864
4865         * stdio-common/Makefile (tests): Add bug25.
4866         * stdio-common/bug25.c: New test.
4867
4868 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4869
4870         [BZ #13576]
4871         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4872         multiple of MALLOC_ALIGNMENT in size.
4873         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4874
4875 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4876
4877         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4878         Require >= 256.
4879         (FILENAME_MAX): Use macro-int-constant.
4880         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4881         (_IOFBF): Use macro-int-constant.
4882         (_IOLBF): Likewise.
4883         (_IONBF): Likewise.
4884         (SEEK_CUR): Likewise.
4885         (SEEK_END): Likewise.
4886         (SEEK_SET): Likewise.
4887         (TMP_MAX): Likewise.
4888         (EOF): Use macro-int-constant.  Require < 0.
4889         (NULL): Use macro-constant.  Require == 0.
4890         (stdin): Require type to be FILE *.
4891         (stdout): Likewise.
4892         (stderr): Likewise.
4893         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4894         macro-int-constant.
4895         (EXIT_SUCCESS): Likewise.
4896         (NULL): Use macro-constant.  Require == 0.
4897         (RAND_MAX): Use macro-int-constant.
4898         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4899         [C99-based standards] (strtof): Require function.
4900         [C99-based standards] (strtold): Likewise.
4901         [C99-based standards] (strtoll): Likewise.
4902         [C99-based standards] (strtoull): Likewise.
4903         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4904         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4905         [ISO || ISO99 || ISO11] (math.h): Likewise.
4906         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4907         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4908         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4909
4910 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4911
4912         [BZ #14132]
4913         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4914         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4915         * intl/dgettext.c (DCGETTEXT): Likewise.
4916         * intl/gettext.c (DCGETTEXT): Likewise.
4917         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4918         * posix/regex_internal.h (gettext): Likewise.
4919         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4920         Remove declaration.
4921         * include/argz.h (__argz_count_internal)
4922         (__argz_stringify_internal): Remove declaration.
4923         (__argz_count, __argz_stringify): Declare hidden proto.
4924         * intl/dcgettext.c: Remove use of INTDEF.
4925         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4926         * string/argz-stringify.c: Likewise.
4927         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4928         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4929         Declare hidden proto.
4930         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4931         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4932         Declare hidden proto.
4933         * include/stdio.h (__asprintf_internal): Don't declare.
4934         (__asprintf): Don't define as macro.  Declare hidden proto.
4935         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4936         (__fsetlocking): Declare hidden proto.
4937         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4938         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4939         hidden proto.
4940         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4941         (_IO_setlinebuf): Remove use of INTUSE.
4942         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4943         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4944         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4945         Remove declaration.
4946         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4947         (_IO_do_flush): Remove use of INTUSE.
4948         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4949         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4950         (_IO_adjust_column, _IO_least_wmarker)
4951         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4952         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4953         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4954         (_IO_default_doallocate, _IO_wdefault_doallocate)
4955         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4956         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4957         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4958         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4959         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4960         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4961         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4962         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4963         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4964         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4965         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4966         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4967         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4968         proto.
4969         (_IO_flush_all_internal, _IO_adjust_column_internal)
4970         (_IO_default_uflow_internal, _IO_default_finish_internal)
4971         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4972         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4973         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4974         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4975         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4976         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4977         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4978         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4979         (_IO_file_close_internal, _IO_file_close_it_internal)
4980         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4981         (_IO_file_init_internal, _IO_file_attach_internal)
4982         (_IO_file_fopen_internal, _IO_file_read_internal)
4983         (_IO_file_sync_internal, _IO_file_seek_internal)
4984         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4985         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4986         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4987         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4988         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4989         (_IO_list_all_internal, _IO_link_in_internal)
4990         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4991         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4992         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4993         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4994         (_IO_do_write_internal, _IO_padn_internal)
4995         (_IO_getline_info_internal, _IO_getline_internal)
4996         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4997         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4998         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4999         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5000         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5001         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5002         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5003         with libc_hidden_ver, remove use of INTUSE.
5004         * libio/genops.c: Likewise.
5005         * libio/freopen.c: Likewise.
5006         * libio/freopen64.c: Likewise.
5007         * libio/iofclose.c: Likewise.
5008         * libio/iofdopen.c: Likewise.
5009         * libio/iofflush.c: Likewise.
5010         * libio/iofflush_u.c: Likewise.
5011         * libio/iofgets.c: Likewise.
5012         * libio/iofgets_u.c: Likewise.
5013         * libio/iofopen.c: Likewise.
5014         * libio/iofopncook.c: Likewise.
5015         * libio/iofread.c: Likewise.
5016         * libio/iofread_u.c: Likewise.
5017         * libio/ioftell.c: Likewise.
5018         * libio/iofwrite.c: Likewise.
5019         * libio/iogetline.c: Likewise.
5020         * libio/iogets.c: Likewise.
5021         * libio/iogetwline.c: Likewise.
5022         * libio/iopadn.c: Likewise.
5023         * libio/iopopen.c: Likewise.
5024         * libio/ioseekoff.c: Likewise.
5025         * libio/ioseekpos.c: Likewise.
5026         * libio/iosetbuffer.c: Likewise.
5027         * libio/iosetvbuf.c: Likewise.
5028         * libio/ioungetc.c: Likewise.
5029         * libio/ioungetwc.c: Likewise.
5030         * libio/iovdprintf.c: Likewise.
5031         * libio/iovsprintf.c: Likewise.
5032         * libio/iovsscanf.c: Likewise.
5033         * libio/memstream.c: Likewise.
5034         * libio/obprintf.c: Likewise.
5035         * libio/oldfileops.c: Likewise.
5036         * libio/oldiofclose.c: Likewise.
5037         * libio/oldiofdopen.c: Likewise.
5038         * libio/oldiofopen.c: Likewise.
5039         * libio/oldiopopen.c: Likewise.
5040         * libio/oldstdfiles.c: Likewise.
5041         * libio/putc.c: Likewise.
5042         * libio/setbuf.c: Likewise.
5043         * libio/setlinebuf.c: Likewise.
5044         * libio/stdfiles.c: Likewise.
5045         * libio/strops.c: Likewise.
5046         * libio/vasprintf.c: Likewise.
5047         * libio/vscanf.c: Likewise.
5048         * libio/vsnprintf.c: Likewise.
5049         * libio/vswprintf.c: Likewise.
5050         * libio/wfiledoalloc.c: Likewise.
5051         * libio/wfileops.c: Likewise.
5052         * libio/wgenops.c: Likewise.
5053         * libio/wmemstream.c: Likewise.
5054         * libio/wstrops.c: Likewise.
5055         * libio/__fpurge.c: Likewise.
5056         * libio/__fsetlocking.c: Likewise.
5057         * assert/assert.c: Likewise.
5058         * debug/fgets_chk.c: Likewise.
5059         * debug/fgets_u_chk.c: Likewise.
5060         * debug/fread_chk.c: Likewise.
5061         * debug/fread_u_chk.c: Likewise.
5062         * debug/gets_chk.c: Likewise.
5063         * debug/obprintf_chk.c: Likewise.
5064         * debug/vasprintf_chk.c: Likewise.
5065         * debug/vdprintf_chk.c: Likewise.
5066         * debug/vsnprintf_chk.c: Likewise.
5067         * debug/vsprintf_chk.c: Likewise.
5068         * malloc/mtrace.c: Likewise.
5069         * misc/error.c: Likewise.
5070         * misc/syslog.c: Likewise.
5071         * stdio-common/asprintf.c: Likewise.
5072         * stdio-common/fxprintf.c: Likewise.
5073         * stdio-common/getw.c: Likewise.
5074         * stdio-common/isoc99_fscanf.c: Likewise.
5075         * stdio-common/isoc99_scanf.c: Likewise.
5076         * stdio-common/isoc99_vfscanf.c: Likewise.
5077         * stdio-common/isoc99_vscanf.c: Likewise.
5078         * stdio-common/isoc99_vsscanf.c: Likewise.
5079         * stdio-common/printf-prs.c: Likewise.
5080         * stdio-common/printf_fp.c: Likewise.
5081         * stdio-common/printf_fphex.c: Likewise.
5082         * stdio-common/printf_size.c: Likewise.
5083         * stdio-common/putw.c: Likewise.
5084         * stdio-common/scanf.c: Likewise.
5085         * stdio-common/sprintf.c: Likewise.
5086         * stdio-common/tmpfile.c: Likewise.
5087         * stdio-common/vfprintf.c: Likewise.
5088         * stdio-common/vfscanf.c: Likewise.
5089         * stdlib/strfmon_l.c: Likewise.
5090         * sunrpc/openchild.c: Likewise.
5091         * sunrpc/xdr_stdio.c: Likewise.
5092         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5093         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5094
5095 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5096
5097         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5098
5099         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5100         in the third column, to generate for the shared library an IFUNC
5101         that uses _dl_vdso_vsym.
5102         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5103         * Makeconfig (object-suffixes-noshared): New variable.
5104
5105         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5106         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5107         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5108         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5109
5110         [BZ #14132]
5111         * include/sys/time.h (__gettimeofday): Remove macro.
5112         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5113         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5114         Remove INTDEF.
5115         (__gettimeofday): Add libc_hidden_def.
5116         (gettimeofday): Add libc_hidden_weak.
5117         * sysdeps/mach/gettimeofday.c: Likewise.
5118         * sysdeps/posix/gettimeofday.c: Likewise.
5119         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5120         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5121         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5122         (__gettimeofday_internal): Remove strong_alias.
5123         (__gettimeofday): Add libc_hidden_def.
5124         (gettimeofday): Add libc_hidden_weak.
5125         * sysdeps/unix/syscalls.list (gettimeofday):
5126         Remove __gettimeofday_internal alias.
5127
5128 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5129             H.J. Lu  <hongjiu.lu@intel.com>
5130
5131         [BZ #12495]
5132         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5133         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5134         (largebin_index_32_big): New.
5135         (largebin_index): Use it for 16-byte alignment.
5136         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5137         correction with front_misalign.
5138
5139 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5140
5141         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5142         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5143         Likewise.
5144         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5145         Likewise.
5146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5147         Likewise.
5148         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5149         Likewise.
5150         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5151         Likewise.
5152         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5153         Likewise.
5154         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5155         Likewise.
5156         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5157         Likewise.
5158         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5159         Likewise.
5160         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5161         Likewise.
5162         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5163         Likewise.
5164         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5165         Likewise.
5166
5167         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5168         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5169
5170 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5171
5172         [BZ #10846]
5173         [BZ #14036]
5174         * math/libm-test.inc (exp_test): Add test from bug 14036.
5175         (pow_test): Add test from bug 10846.
5176
5177         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5178         and other flags.
5179         (special_function): Do not include flags in test name.
5180         (parse_args): Likewise.
5181         * sysdeps/i386/fpu/libm-test-ulps: Update.
5182         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5183         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5184         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5186
5187         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5188         exceptions.
5189         * math/libm-test.inc ("Philosophy"): Update comment about
5190         exception testing.
5191         (UNDERFLOW_EXCEPTION): New macro.
5192         (UNDERFLOW_EXCEPTION_OK): Likewise.
5193         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5194         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5195         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5196         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5197         (INVALID_EXCEPTION_OK): Update value.
5198         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5199         (OVERFLOW_EXCEPTION_OK): Likewise.
5200         (IGNORE_ZERO_INF_SIGN): Likewise.
5201         (test_exceptions): Handle underflow exceptions.
5202         (acos_test): Update for underflow exception expectations.
5203         (cexp_test): Likewise.
5204         (clog_test): Likewise.
5205         (clog10_test): Likewise.
5206         (csqrt_test): Likewise.
5207         (ctan_test): Likewise.
5208         (ctanh_test): Likewise.
5209         (exp_test): Likewise.
5210         (exp10_test): Likewise.
5211         (exp2_test): Likewise.
5212         (expm1_test): Likewise.
5213         (fma_test): Likewise.
5214         (j0_test): Likewise.
5215         (jn_test): Likewise.
5216         (nexttoward_test): Likewise.
5217         (pow_test): Likewise.
5218         (scalbn_test): Likewise.
5219         (scalbln_test): Likewise.
5220         (tan_test): Likewise.
5221         (y1_test): Likewise.
5222         * sysdeps/i386/fpu/libm-test-ulps: Update.
5223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5224
5225 2012-05-23  David S. Miller  <davem@davemloft.net>
5226
5227         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5228         (__libc_sigaction): Remove unused local variables.
5229
5230 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5231
5232         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5233
5234 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5235
5236         mktime: avoid signed integer overflow
5237         * time/mktime.c (__mktime_internal): Do not mishandle the case
5238         where diff == INT_MIN.
5239
5240         mktime: simplify computation of average
5241         * time/mktime.c (ranged_convert): Use new time_t_avg function
5242         instead of rolling our own (probably-slower) code.
5243
5244         mktime: do not assume signed right shift propagates sign bit
5245         * time/mktime.c (isdst_differ): New static function.
5246         (__mktime_internal): No need to normalize tm_isdst now.
5247         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5248         tm_isdst values.
5249
5250         mktime: merge another wrapv change from gnulib
5251         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5252         from some compilers.
5253
5254         mktime: remove incorrect attempt at unusual arithmetics
5255         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5256         The code didn't really work on such machines anyway.
5257         (TYPE_MINIMUM): Assume two's complement.
5258         (twos_complement_arithmetic): Verify that long_int and time_t
5259         are two's complement (or unsigned, in the latter case).
5260
5261         mktime: check signed shifts on long_int and time_t, too
5262         * time/mktime.c (SHR): Check that shifts work as desired
5263         on the types long_int and time_t too, as SHR is used on
5264         such types.
5265
5266         mktime: do not assume 'long' is wide enough
5267         * time/mktime.c (verify): Move decl up.
5268         (long_int): New type.
5269         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5270         to remove assumption in the code that 'long' is wide enough to
5271         store year values.  This assumption is not true on x32 and on
5272         some non-glibc platforms.
5273
5274         mktime: merge wrapv change from gnulib
5275         * time/mktime.c (WRAPV): New macro.
5276         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5277         (guess_time_tm, __mktime_internal): Do not assume that signed
5278         integer overflow wraps around; modern compilers generate code
5279         where this assumption is no longer valid.
5280
5281 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5282
5283         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5284         Replace "jmp L(pseudo_end)" with "ret".
5285         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5286         Likewise.
5287
5288 2012-05-23  Andreas Jaeger  <aj@suse.de>
5289
5290         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5291         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5292
5293 2012-05-23  Andreas Jaeger  <aj@suse.de>
5294             Maximilian Attems  <max@stro.at>
5295
5296         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5297         New macros.
5298
5299 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5300
5301         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5302         code so that pseudo_end is just ret and the stack pointer is
5303         correct also for static library in error case.
5304
5305 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5306
5307         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5308         move to syscalls.list.
5309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5313
5314         * manual/install.texi (Running make install): Do not mention Linux
5315         kernel version for which pt_chown is not needed.
5316         (Linux): Do not mention problems with nscd with 2.0 kernels.
5317         * INSTALL: Regenerated.
5318
5319 2012-05-23  Andreas Jaeger  <aj@suse.de>
5320
5321         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5322         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5323         macro.
5324         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5325         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5326         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5327         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5328         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5329         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5330         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5331         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5332         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5333         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5334         * sysdeps/unix/sysv/linux/bits/in.h
5335         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5336
5337 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5338
5339         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5340         (PREPARE_VERSION): Just use assert instead, it will be elided
5341         under [NDEBUG] anyway.
5342
5343 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5344
5345         * sysdeps/unix/sysv/linux/Makefile: Include
5346         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5347         (sysdep_routines): Remove sysctl.
5348         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5349         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5350         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5351         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5352         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5353
5354 2012-05-22  Andreas Jaeger  <aj@suse.de>
5355
5356         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5357         that pseudo_end is just ret and the stack pointer is correct also
5358         for static library in error case.
5359
5360 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5361
5362         [BZ #14122]
5363         * nss/nsswitch.c (defconfig_entries): New variable.
5364         (__nss_database_lookup): Don't leak defconfig entries.
5365         (nss_parse_service_list): Don't leak on error paths.
5366         (free_database_entries): New function.
5367         (free_defconfig): New function.
5368         (free_mem): Move common code to free_database_entries.
5369
5370 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5371
5372         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5373         Add arch_prctl.
5374         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5375
5376         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5377         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5378         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5379         New macro.
5380         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5381         (INTERNAL_SYSCALL_TYPES): Likewise.
5382         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5383         (LOAD_REGS_TYPES_[1-6]): Likewise.
5384         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5385         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5386
5387 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5388
5389         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5390         copysignl for GLIBC_2_0.
5391         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5392         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5393         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5394         logbl for GLIBC_2_0.
5395         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5396         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5397
5398 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5399
5400         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5401         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5402
5403         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5404         Use "neg %eax".
5405
5406         * time/mktime.c: Update copyright years.
5407
5408 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5409
5410         mktime: merge comment-quoting-style change from gnulib
5411         * time/mktime.c: Quote 'like this' in comments.
5412         The GNU coding standards suggest that we no longer quote `like this',
5413         as "`" and "'" are typically rendered asymmetrically nowadays.
5414         The typical gnulib style is to quote 'like this' when quoting
5415         code, and "like this" when quoting English.
5416
5417         * time/mktime.c (compile-command): Add "-I.".
5418
5419         mktime: merge mktime-internal.h change from gnulib
5420         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5421
5422         mktime: merge time_r change from gnulib
5423         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5424
5425         mktime: merge DEBUG change from gnulib
5426         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5427         case system <time.h> has a #define.
5428
5429         mktime: merge <sys/types.h> change from gnulib
5430         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5431         since <time.t> is now guaranteed to define time_t.
5432
5433         mktime: merge HAVE_CONFIG_H change from gnulib
5434         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5435
5436 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5437
5438         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5439         Use "neg %eax".
5440
5441         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5442         __rlim_t cast.
5443         (struct rusage): Use anonymous union to pad each field to
5444         __syscall_slong_t.
5445
5446 2012-05-21  David S. Miller  <davem@davemloft.net>
5447
5448         * Makefules (o-iterator): Remove .s cases.
5449         (compile-command.s): Delete.
5450         (COMPILE.s): Delete.
5451         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5452
5453 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5454
5455         * configure.in (libc_cv_predef_stack_protector): Only consider
5456         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5457         * configure: Regenerated.
5458
5459 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5460
5461         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5462         New macro.  Use R*LP on int and pointer.
5463         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5464         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5465         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5466         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5467
5468         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5469         [__WORDSIZE_TIME64_COMPAT32] instead of
5470         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5471         (struct utmp): Likewise.
5472         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5473         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5474         Renamed to ...
5475         (__WORDSIZE_TIME64_COMPAT32): This.
5476         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5477         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5478         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5479         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5480         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5481         (__WORDSIZE_TIME64_COMPAT32): New macro.
5482
5483 2012-05-21  Andreas Jaeger  <aj@suse.de>
5484
5485         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5486         only if [SHARED]. Add prototype for __wcschr_ia32.
5487
5488 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5489
5490         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5491         of %rbp unmolested in the jmp_buf while mangling the low bits.
5492         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5493         unmolested high bits of %rbp while demangling the low bits.
5494         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5495
5496 2012-05-21  Andreas Jaeger  <aj@suse.de>
5497
5498         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5499         * sunrpc/svc_simple.c: Use it for registerrpc.
5500         * sunrpc/xcrypt.c: Use it for passwd2des.
5501
5502         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5503
5504 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5505
5506         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5507         Don't define if [__SYSCALL_WORDSIZE != 32].
5508         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5509         New macro.
5510
5511 2012-05-21  Bruno Haible  <bruno@clisp.org>
5512             Andreas Jaeger  <aj@suse.de>
5513
5514         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5515         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5516         inptr and inend for must_buffer_ch.
5517         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5518         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5519         * stdio-common/Makefile (tests): Remove bug15.
5520         (bug15-ENV): Remove macro.
5521         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5522         anymore.
5523
5524 2012-05-19  Andreas Jaeger  <aj@suse.de>
5525             Roland McGrath  <roland@hack.frob.com>
5526
5527         * manual/contrib.texi: Completely rewritten. It contains now an
5528         alphabetical list of contributors and their contributions.
5529
5530 2012-05-21  Richard Henderson  <rth@twiddle.net>
5531
5532         * misc/getauxval.c (__getauxval): Use unsigned long int.
5533         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5534         (getauxval): Use unsigned long int.
5535
5536 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5537
5538         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5539
5540 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5541
5542         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5543         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5544         __alignof__ (long double).
5545
5546 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5547
5548         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5549
5550 2012-05-20  Richard Henderson  <rth@twiddle.net>
5551
5552         * misc/getauxval.c: New file.
5553         * misc/sys/auxv.h: New file.
5554         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5555         (routines): Add getauxval.
5556         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5557         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5558         * elf/dl-sysdep.c (_dl_auxv): Remove.
5559         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5560         * elf/dl-support.c (_dl_auxv): New variable.
5561         (_dl_aux_init): Initialize it.
5562         * manual/startup.texi (Auxiliary Vector): New node.
5563         * sysdeps/generic/bits/hwcap.h: New file.
5564         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5565         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5566         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5567         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5568         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5569         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5571         Update.
5572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5573         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5575         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5576         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5577         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5578         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5579         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5580
5581 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5582
5583         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5584
5585 2012-05-19  David S. Miller  <davem@davemloft.net>
5586
5587         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5588
5589 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5590
5591         [BZ #14123]
5592         * math/s_ccosh.c: Include <float.h>
5593         (__ccosh): Avoid internal overflow calculating sinh and cosh
5594         values before multiplying by sin and cos values.
5595         * math/s_ccoshf.c: Likewise.
5596         * math/s_ccoshl.c: Likewise.
5597         * math/s_csin.c: Likewise.
5598         * math/s_csinf.c: Likewise.
5599         * math/s_csinl.c: Likewise.
5600         * math/s_csinh.c: Likewise.
5601         * math/s_csinhf.c: Likewise.
5602         * math/s_csinhl.c: Likewise.
5603         * math/libm-test.inc (ccos_test): Add more tests.
5604         (ccosh_test): Likewise.
5605         (csin_test): Likewise.
5606         (csinh_test): Likewise.
5607         * sysdeps/i386/fpu/libm-test-ulps: Update.
5608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5609
5610 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5611
5612         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5613         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5614
5615         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5616
5617 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5618
5619         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5620         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5621         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5622         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5623         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5624         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5625         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5626         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5627         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5628         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5629         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5630         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5631         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5632         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5633         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5634         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5635         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5636         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5637         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5638         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5639         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5640         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5641         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5642         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5643         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5644         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5645         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5646         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5647         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5648         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5649         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5650
5651 2012-05-18  Andreas Jaeger  <aj@suse.de>
5652
5653         * csu/.gitignore: Delete.
5654
5655 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5656
5657         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5658         (timex): Use __syscall_slong_t.
5659
5660 2012-05-18  Andreas Jaeger  <aj@suse.de>
5661             Carlos O'Donell  <carlos_odonell@mentor.com>
5662
5663         * manual/install.texi (Configuring and compiling): Update
5664         description about files modified in the source directory.
5665         * INSTALL: Regenerated.
5666
5667 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5668
5669         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5670         value.  Use "or" to set return value to -1.
5671         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5672         negate return value.
5673
5674 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5675
5676         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5677         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5678         failure if the compiler has Graphite support disabled.
5679         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5680         Likewise.
5681         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5682         CFLAGS-memmove.c): Likewise.
5683         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5684         Likewise.
5685
5686 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5687
5688         * sysdeps/x86_64/x32/_itoa.h: New file.
5689
5690         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5691         getdents system call only if kernel and user dirents have the
5692         same d_ino and d_off.
5693
5694         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5695         LLONG_MAX != LONG_MAX.
5696         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5697         (_fitoa_word): Likewise.
5698
5699         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5700         years.
5701         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5702         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5703         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5704
5705         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5706         include <bits/wordsize.h>.  Check __x86_64__ instead of
5707         __WORDSIZE.
5708         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5709         if __x86_64__ is defined.  Use anonymous union on fpstate.
5710
5711         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5712         anonymous union.
5713
5714 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5715
5716         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5717         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5718         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5719         Refer to _rtld_local_ro instead of _rtld_global_ro.
5720         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5721         Likewise.
5722         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5723         Likewise.
5724         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5725         Likewise.
5726         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5727         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5728         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5729
5730         * sysdeps/powerpc/powerpc32/dl-machine.c
5731         (__elf_machine_runtime_setup) [PROF]: Don't reference
5732         _dl_prof_resolve.
5733
5734 2012-05-18  Andreas Jaeger  <aj@suse.de>
5735
5736         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5737         function only available for GCCs before 3.4 since GCC 3.4
5738         introduced a builtin.
5739         (lrint): Likewise.
5740         (llrintf): Likewise.
5741         (llrint): Likewise.
5742         (fmaxf): Likewise.
5743         (fmax): Likewise.
5744         (fminf): Likewise.
5745         (fmin): Likewise.
5746         (rint): Likewise.
5747         (rintf): Likewise.
5748         (nearbyint): Likewise.
5749         (nearbyintf): Likewise.
5750         (ceil): Likewise.
5751         (ceilf): Likewise.
5752         (floor): Likewise.
5753         (floorf): Likewise.
5754
5755 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5756
5757         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5758         on both fields and cast pointer to __syscall_ulong_t.
5759
5760         * bits/types.h (__fsword_t): New type.
5761         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5762         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5763         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5764         (__FSWORD_T_TYPE): Likewise.
5765         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5766         (__FSWORD_T_TYPE): Likewise.
5767         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5768         (__FSWORD_T_TYPE): Likewise.
5769         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5770         (__FSWORD_T_TYPE): Likewise.
5771         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5772         __SWORD_TYPE with __fsword_t.
5773         (statfs64): Likewise.
5774
5775 2012-05-17  David S. Miller  <davem@davemloft.net>
5776
5777         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5778
5779 2012-05-17  Andreas Jaeger  <aj@suse.de>
5780
5781         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5782         warning.
5783
5784 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5785
5786         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5787
5788 2012-05-17  Andreas Jaeger  <aj@suse.de>
5789
5790         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5791         when it is used.
5792
5793 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5794
5795         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5796
5797 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5798
5799         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5800         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5801
5802 2012-05-17  Andreas Jaeger  <aj@suse.de>
5803             Carlos O'Donell  <carlos_odonell@mentor.com>
5804
5805         [BZ #14059]
5806         * sysdeps/x86_64/multiarch/init-arch.h
5807         (bit_YMM_Usable): Rename to...
5808         (bit_AVX_Usable): ... this.
5809         (bit_FMA4_Usable): New macro.
5810         (bit_XMM_state): New macro.
5811         (bit_YMM_state): New macro.
5812         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5813         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5814         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5815         (CPUID_OSXSAVE): New macro.
5816         (CPUID_AVX): New macro.
5817         (CPUID_FMA4): New macro.
5818         (index_YMM_Usable): Rename to...
5819         (index_AVX_Usable): ... this.
5820         (HAS_AVX): Use HAS_ARCH_FEATURE.
5821         (HAS_FMA4): Likewise.
5822         (HAS_YMM_USABLE): Remove.
5823         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5824         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5825         are present.
5826         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5827         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5828         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5829         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5830         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5831
5832 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5833
5834         * math/libm-test.c: Support platforms without multiple rounding modes.
5835         * math/bug-nextafter.c: Support platforms without FP exceptions.
5836         * math/bug-nexttoward.c: Likewise.
5837         * math/test-fenv.c: Likewise.
5838         * math/test-misc.c: Likewise.
5839         * stdlib/bug-getcontext.c: Likewise.
5840
5841 2012-05-17  Andreas Jaeger  <aj@suse.de>
5842
5843         * manual/examples/search.c (critter_cmp): Change signature to
5844         avoid warnings.
5845         * manual/string.texi (Collation Functions): Likewise.
5846
5847 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5848
5849         * bits/types.h: Fold copyright years.
5850         * bits/typesizes.h: Likewise.
5851         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5852         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5853         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5854         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5855         * time/time.h: Likewise.
5856
5857 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5858
5859         [BZ #208]
5860         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5861         in instead of returning them.  Return void.
5862         (__libc_mallinfo): Accumulate over all arenas.
5863         (__malloc_stats): Adjust for change in int_mallinfo interface.
5864
5865 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5866
5867         [BZ #10375]
5868         * configure.in (NM): Add AC_CHECK_TOOL for it.
5869         (libc_extra_cflags): New substituted variable.
5870         Check for -fstack-protector being used implicitly.
5871         * configure: Regenerated.
5872         * config.make.in (config-extra-cflags): New variable,
5873         gets @libc_extra_cflags@.
5874         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5875
5876         [BZ #10375]
5877         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5878         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5879         * configure: Regenerated.
5880         * config.make.in (CPPUNDEFS): New substituted variable.
5881         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5882         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5883         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5884
5885 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5886
5887         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5888         (mq_attr): Use __syscall_slong_t.
5889
5890 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5891
5892         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5893         Check __x86_64__ instead of __WORDSIZE.
5894         (_STAT_VER_LINUX): Likewise.
5895         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5896         __syscall_ulong_t and __syscall_slong_t.
5897         (stat64): Likewise.
5898
5899 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5900
5901         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5902
5903 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5904
5905         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5906
5907 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5908
5909         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5910         __syscall_ulong_t.
5911
5912         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5913         include <bits/wordsize.h>.  Check __x86_64__ instead of
5914         __WORDSIZE.
5915         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5916         defined.
5917         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5918
5919         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5920         include <bits/wordsize.h>.  Check __x86_64__ instead of
5921         __WORDSIZE.
5922         (user_regs_struct): Use "__extension__ unsigned long long"
5923         instead of "unsigned long" if __x86_64__ is defined.
5924         (user): Likewise.  Pad after pointer field if __ILP32__ is
5925         defined.
5926
5927 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5928
5929         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5930         versions 5 to 9.
5931         * configure: Regenerated.
5932         * manual/install.texi (texinfo): Increase version requirement to
5933         4.5 or later.
5934         * INSTALL: Regenerated.
5935
5936         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5937
5938 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5939
5940         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5941
5942         * sysdeps/x86_64/x32/ffs.c: New file.
5943
5944         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5945         __syscall_ulong_t.
5946         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5947         defined.  Use __syscall_ulong_t.
5948         (shminfo): Use __syscall_ulong_t.
5949         (shm_info): Likewise.
5950
5951         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5952         __syscall_ulong_t.
5953
5954         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5955         <bits/wordsize.h>.
5956         (msgqnum_t): Use __syscall_ulong_t.
5957         (msglen_t): Likewise.
5958         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5959         __syscall_ulong_t.
5960
5961         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5962         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5963
5964         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5965
5966         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5967         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5968
5969         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5970         __syscall_slong_t.
5971
5972         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5973         include <bits/wordsize.h>.  Check __x86_64__ instead of
5974         __WORDSIZE.
5975
5976         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5977         "unsigned long long int" if __x86_64__ is defined.
5978         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5979
5980         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5981         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5982         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5983
5984         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5985         <stdint.h>.
5986         (GET_PC): Cast to uintptr_t first.
5987         (GET_FRAME): Likewise.
5988         (GET_STACK): Likewise.
5989
5990         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5991         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5992         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5993         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5994         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5995         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5996         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5997         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5998         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5999         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6000         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6001         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6002         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6003         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6004         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6005         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6006         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6007         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6008         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6009         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6010         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6011         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6012         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6013         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6014         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6015         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6016         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6017         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6018         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6019
6020 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6021
6022         * Makerules (+depfiles): Also collect depfiles from .oS in
6023         $(extra-objs).
6024         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6025         .oS, $(libnldbl-routines)).
6026
6027         * Makerules (native-compile-mkdep-flags): Define.
6028         * sunrpc/Makefile (extra-objs): Add $(addprefix
6029         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6030         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6031         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6032         calling $(make-target-directory).
6033
6034 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6035
6036         * bits/types.h (__snseconds_t): Removed.
6037         * time/time.h (struct timespec): Replace __snseconds_t with
6038         __syscall_slong_t.
6039         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6040         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6041         Likewise.
6042         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6043         (__SNSECONDS_T_TYPE): Likewise.
6044         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6045         (__SNSECONDS_T_TYPE): Likewise.
6046         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6047         (__SNSECONDS_T_TYPE): Likewise.
6048
6049 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6050
6051         * sysdeps/mach/hurd/bits/typesizes.h
6052         (__SYSCALL_SLONG_TYPE): New macro.
6053         (__SYSCALL_ULONG_TYPE): Likewise.
6054
6055 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6056
6057         * bits/types.h (__syscall_slong_t): New type.
6058         (__syscall_ulong_t): Likewise.
6059
6060         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6061         (__SYSCALL_ULONG_TYPE): Likewise.
6062         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6063         (__SYSCALL_SLONG_TYPE): Likewise.
6064         (__SYSCALL_ULONG_TYPE): Likewise.
6065         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6066         (__SYSCALL_SLONG_TYPE): Likewise.
6067         (__SYSCALL_ULONG_TYPE): Likewise.
6068         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6069         (__SYSCALL_SLONG_TYPE): Likewise.
6070         (__SYSCALL_ULONG_TYPE): Likewise.
6071
6072 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6073
6074         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6075         Add sigaltstack-offsets.sym.
6076         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6077         <sigaltstack-offsets.h>.
6078         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6079         longjmp_msg pointer.
6080         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6081         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6082         signal stack.
6083         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6084
6085 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6086
6087         * elf/stackguard-macros.h: Remove file.
6088         * sysdeps/generic/stackguard-macros.h: New file.
6089         * sysdeps/i386/stackguard-macros.h: Likewise.
6090         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6091         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6092         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6093         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6094         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6095         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6096         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6097         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6098         <elf/stackguard-macros.h>.
6099
6100         [BZ #14109]
6101         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6102         __aligned__ in attribute.
6103         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6104         (gregset_t): Likewise.
6105
6106 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6107
6108         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6109         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6110         * sysdeps/x86_64/x32/Implies-after: New file.
6111
6112 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6113
6114         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6115         and access return value for _dl_profile_fixup.  Use R10_LP to
6116         load frame size.
6117
6118 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6119
6120         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6121
6122 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6123
6124         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6125         * sysdeps/x86_64/x32/sysdep.h: New file.
6126
6127 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6128
6129         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6130         * sysdeps/x86_64/setjmp.S: Likewise.
6131
6132 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6133
6134         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6135         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6136         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6137         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6138         remove unused global constant.
6139
6140 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6141
6142         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6143         include of <not-cancel.h>.
6144
6145 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6146
6147         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6148
6149 2012-05-15  Jeff Law  <law@redhat.com>
6150             Andreas Jaeger  <aj@suse.de>
6151
6152         [BZ #13594]
6153         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6154         out from...
6155         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6156         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6157         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6158         code changing __hst_map_handle.map.
6159
6160 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6161
6162         * configure.in (sysnames): Look for Implies-before and Implies-after
6163         files.
6164         * configure: Regenerated.
6165
6166 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6167
6168         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6169         8-byte data alignment with LP_SIZE alignment.
6170
6171 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6172
6173         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6174         into R10_LP.
6175
6176 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6177
6178         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6179
6180 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6181
6182         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6183         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6184         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6185         Likewise.
6186         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6187
6188 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6189
6190         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6191         (stackinfo_sub_sp): Likewise.
6192
6193 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6194
6195         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6196         RAX_LP.
6197
6198 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6199
6200         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6201         into R*_LP.
6202
6203 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6204
6205         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6206         sizes into R*_LP.
6207
6208 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6209
6210         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6211
6212 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6213
6214         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6215         into R11_LP and load __x86_64_shared_cache_size_half into
6216         R8_LP.
6217
6218 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6219
6220         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6221         R8_LP.
6222
6223 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6224
6225         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6226         logb for POWER7.
6227         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6228         logbf for POWER7.
6229         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6230         logbl for POWER7.
6231         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6232         powerpc32/power7/fpu/s_logb.c via #include.
6233         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6234         powerpc32/power7/fpu/s_logbf.c via #include.
6235         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6236         powerpc32/power7/fpu/s_logbl.c via #include.
6237
6238 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6239
6240         * README.libm: Remove file.
6241
6242 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6243
6244         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6245         count for x32.  Use R*_LP and omit operand-size suffix.
6246
6247 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6248
6249         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6250         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6251         * sysdeps/x86_64/x32/shlib-versions: New file.
6252
6253 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6254
6255         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6256         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6257         Use _dl_fatal_printf instead.
6258
6259 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6260
6261         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6262         set if not set by the user.  Do not allow for being unset.
6263         * sysdeps/unix/sysv/linux/configure: Regenerated.
6264
6265 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6266
6267         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6268         the `q' suffix from lea and replace .quad with ASM_ADDR.
6269
6270 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6271
6272         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6273         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6274         instead of $17.
6275         (PTR_DEMANGLE): Likewise.
6276
6277 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6278
6279         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6280         (LP_OP): Likewise.
6281         (ASM_ADDR): Likewise.
6282         (RAX_LP): Likewise.
6283         (RBP_LP): Likewise.
6284         (RBX_LP): Likewise.
6285         (RCX_LP): Likewise.
6286         (RDI_LP): Likewise.
6287         (RSI_LP): Likewise.
6288         (RSP_LP): Likewise.
6289         (R8_LP): Likewise.
6290         (R9_LP): Likewise.
6291         (R10_LP): Likewise.
6292         (R10_LP): Likewise.
6293         (R11_LP): Likewise.
6294         (R12_LP): Likewise.
6295         (R13_LP): Likewise.
6296         (R14_LP): Likewise.
6297         (R15_LP): Likewise.
6298
6299 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6300
6301         * sysdeps/x86_64/x32/dl-machine.h: New file.
6302
6303 2012-05-14  Andreas Jaeger  <aj@suse.de>
6304
6305         * manual/Makefile (subdir): Remove export of subdir.
6306         (all): Remove target.
6307         (.PHONY): Remove all from list.
6308         (mkinstalldirs): Remove.
6309         (.PHONY): Remove installdirs from list.
6310         ($(inst_infodir)/libc.info): Use make-target-directory.
6311         (installdirs): Remove.
6312         (subdir_%): Remove.
6313         (glibc-targets): Remove.
6314         (lib): Remove.
6315         (stubs): Remove.
6316         ($(objpfx)stubs ../po/manual.pot): Remove.
6317         ($(objpfx)stamp%): Remove.
6318         (make-target-directory): Remove.
6319         (subdir_install): Remove.
6320         (routines): Remove.
6321         (aux): Remove.
6322         (sources): Remove.
6323         (objects): Remove.
6324         (headers): Remove.
6325
6326         [BZ #13750]
6327         * manual/.gitignore: Remove, it's not needed anymore.
6328         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6329         all files in it.
6330         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6331         directory.
6332         (texis): Renamed to $(objpfx)texis.
6333         (texis-path): New, contains path to generated files.
6334         (chapters.%): Use texis-path for complete path, add extra argument
6335         libc-texinfo.sh.
6336         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6337         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6338         (summary,texi, stamp-summary): Use complete path of
6339         files. Generate files in build dir.
6340         (dir-add.texi): Build in build dir.
6341         (libm-err.texi,stamp-libm-err): Likewise.
6342         (version.texi, stamp-version): Likewise.
6343         (.%c.texi): Likewise.
6344         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6345         (mostlyclean): Remove target.
6346         (realclean): Remove target.
6347         (generated): Add new variable with contents from mostlyclean and
6348         realclean, remove entries duplicated in common-mostlyclean, add
6349         stamp-libm-err and stamp-version.
6350         (generated-dirs): Add libc directory.
6351         ($(inst_infodir)/libc.info): Install files from build dir.
6352
6353         * manual/install.texi (Configuring and compiling): Adjust since
6354         the info files are not part of the tar ball anymore.
6355
6356 2012-05-14  Andreas Jaeger  <aj@suse.de>
6357
6358         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6359         variable.
6360
6361 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6362
6363         [BZ #13717]
6364         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6365         to 2.2.0 where earlier.
6366         * sysdeps/unix/sysv/linux/configure: Regenerated.
6367         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6368         Remove conditional code.
6369         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6370         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6371         Remove conditional code.
6372         [!__NR_lchown]: Likewise.
6373         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6374         [__NR_lchown]: Likewise.
6375         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6376         comment referencing __ASSUME_LCHOWN_SYSCALL.
6377         * sysdeps/unix/sysv/linux/i386/sigaction.c
6378         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6379         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6380         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6381         Remove conditional code.
6382         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6383         (__protocol_available): Remove #if 0 code.
6384         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6385         conditional code.
6386         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6387         * sysdeps/unix/sysv/linux/kernel-features.h
6388         (__ASSUME_GETCWD_SYSCALL): Don't define.
6389         (__ASSUME_REALTIME_SIGNALS): Likewise.
6390         (__ASSUME_PREAD_SYSCALL): Likewise.
6391         (__ASSUME_PWRITE_SYSCALL): Likewise.
6392         (__ASSUME_POLL_SYSCALL): Likewise.
6393         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6394         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6395         non-SPARC.
6396         (__ASSUME_SIOCGIFNAME): Don't define.
6397         (__ASSUME_MSG_NOSIGNAL): Likewise.
6398         (__ASSUME_SENDFILE): Define unconditionally.
6399         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6400         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6401         conditional code.
6402         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6403         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6404         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6405         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6406         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6407         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6408         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6410         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6411         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6413         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6414         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6416         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6417         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6419         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6420         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6422         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6423         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6425         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6426         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6428         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6429         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6431         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6432         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6433         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6434         Remove conditional code.
6435         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6436         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6437         Remove conditional code.
6438         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6439         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6440         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6441         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6442         Remove conditional code.
6443         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6444         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6445         Remove conditional code.
6446         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6447         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6448         Remove conditional code.
6449         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6450         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6451         Remove conditional code.
6452         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6453         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6454         Remove conditional code.
6455         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6456         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6457         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6458         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6459         * sysdeps/unix/sysv/linux/sigaction.c
6460         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6461         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6462         * sysdeps/unix/sysv/linux/sigpending.c
6463         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6464         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6465         * sysdeps/unix/sysv/linux/sigprocmask.c
6466         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6467         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6468         * sysdeps/unix/sysv/linux/sigsuspend.c
6469         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6470         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6471         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6472         (__libc_missing_rt_sigs): Remove.
6473         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6474         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6475         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6476         Remove conditional code.
6477         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6478         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6479         return 1.
6480         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6481         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6482         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6483         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6484
6485 2012-05-14  Andreas Jaeger  <aj@suse.de>
6486
6487         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6488         it's not used in glibc.
6489         (__coshm1): Likewise.
6490         (__acosh1p): Likewise.
6491         (__sgn): Likewise.
6492
6493         * manual/string.texi (Copying and Concatenation): Add missing
6494         variable in concat example.
6495         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6496
6497 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6498
6499         [BZ #14103]
6500         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6501         __builtin_clzl with __builtin_clzll.
6502
6503 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6504
6505         [BZ #14104]
6506         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6507         libc_freeres_ptr.
6508
6509 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6510
6511         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6512         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6513         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6514         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6515
6516 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6517
6518         * NEWS: Update ia64 info.
6519
6520 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6521
6522         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6523         used as bcopy.
6524
6525 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6526
6527         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6528         * sysdeps/unix/syscalls.list (dup3): Likewise.
6529         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6530         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6531
6532 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6533
6534         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6535         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6536
6537 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6538
6539         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6540         thread pointer.
6541         (TLS_IE): Use mov/add instead of movq/addq to load thread
6542         pointer.
6543         (TLS_GD_PREFIX): New.
6544         (TLS_GD): Use it.
6545
6546 2012-05-11  David S. Miller  <davem@davemloft.net>
6547
6548         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6549         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6550         (_FPU_SETCW): Likewise.
6551
6552 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6553
6554         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6555         is 32-byte aligned.
6556
6557 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6558
6559         [BZ #11837]
6560         * iconvdata/gb18030.c: Update tables.
6561         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6562         characters specially.
6563         (BODY for TO_LOOP): Add encoding of missing ranges.
6564
6565 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6566
6567         [BZ #13673]
6568         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6569         * sysdeps/mach/hurd/dup3.c: Likewise.
6570         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6571         * sysdeps/powerpc/memmove.c:: Likewise.
6572
6573 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6574
6575         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6576         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6577
6578 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6579
6580         * elf/elf.h (R_X86_64_RELATIVE64): New.
6581         (R_X86_64_NUM): Updated.
6582         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6583         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6584         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6585         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6586         tst-quad1pie tst-quad2pie
6587         (modules-names): Add tst-quadmod1 tst-quadmod2.
6588         ($(objpfx)tst-quad1): New dependency.
6589         ($(objpfx)tst-quad2): Likewise.
6590         ($(objpfx)tst-quad1pie): Likewise.
6591         ($(objpfx)tst-quad2pie): Likewise.
6592         * sysdeps/x86_64/tst-quad1.c: New file.
6593         * sysdeps/x86_64/tst-quad1pie.c: New file.
6594         * sysdeps/x86_64/tst-quad2.c: Likewise.
6595         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6596         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6597         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6598         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6599         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6600
6601 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6602
6603         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6604         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6605         * streams/stropts.h (t_scalar_t): Define type.
6606
6607         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6608         (_PATH_PRESERVE): Set to "/var/lib".
6609         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6610
6611         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6612         instead of int.
6613
6614         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6615         if __dir_mkfile succeeded.
6616
6617         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6618         checking for _hurd_dtablesize.  Unlock it right after having
6619         finished _hurd_dtable allocation.
6620
6621 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6622
6623         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6624         * sysdeps/mach/hurd/configure: Regenerated.
6625         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6626         special-casing to...
6627         * sysdeps/gnu/configure.in: ... this new file.
6628         * sysdeps/unix/sysv/linux/configure: Regenerated.
6629         * sysdeps/gnu/configure: New generated file.
6630
6631         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6632         for Linux: use nsec instead of usec, as well as:
6633         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6634         members of type struct timespec.
6635         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6636         New macros.
6637         (struct stat64): Likewise.
6638         (_STATBUF_ST_NSEC): New macro.
6639         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6640
6641         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6642         __strtoul_internal rather than strtoul.
6643
6644 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6645
6646         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6647         and reject them.
6648
6649 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6650
6651         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6652         which preserves existing values.
6653         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6654
6655 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6656
6657         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6658         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6659         greater than FD_SETSIZE.
6660
6661 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6662
6663         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6664         allocated, call __vm_protect to finish enabling the existing space, and
6665         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6666         allocate the remainder.
6667
6668 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6669
6670         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6671         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6672
6673 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6674
6675         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6676         sysdeps/mach/hurd/readlink.c.
6677
6678         * posix/tst-sysconf.c (posix_options): Only use
6679         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6680         _POSIX_SYNCHRONIZED_IO when they are defined
6681         * sysdeps/mach/hurd/bits/posix_opt.h:
6682         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6683         (_XOPEN_REALTIME): Undefine macro.
6684         (_XOPEN_REALTIME_THREADS): Undefine macro.
6685         (_XOPEN_SHM): Undefine macro.
6686         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6687         macro to -1.
6688         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6689         macro to -1.
6690         (_POSIX_ASYNC_IO): Undefine macro.
6691         (_POSIX_PRIORITIZED_IO): Undefine macro.
6692         (_POSIX_SPIN_LOCKS): Define macro to -1.
6693
6694         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6695         SA_NODEFER, SA_RESETHAND.
6696         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6697         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6698         F_DUPFD_CLOEXEC.
6699
6700 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6701
6702         * elf/Makefile (pldd-modules): Define unconditionally.
6703
6704 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6705
6706         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6707
6708 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6709
6710         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6711         Return ENOENT when name is empty.
6712         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6713
6714 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6715
6716         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6717
6718         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6719
6720 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6721
6722         Fix mlock in all cases except non-readable pages.
6723         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6724         instead of VM_PROT_ALL as parameter to __vm_wire function.
6725
6726         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6727         (__mkdir): When path is `/', just fail with EEXIST.
6728         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6729
6730 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6731
6732         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6733         <sys/uio.h> (for writev).
6734         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6735         and <sys/param.h> (for MIN).
6736
6737 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6738
6739         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6740         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6741         if interrupted.
6742
6743 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6744
6745         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6746         Depend on against $(link-rpcuserlibs).
6747
6748 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6749
6750         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6751         (__libc_stack_end): Do not use attribute_relro.
6752         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6753         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6754         to libthread-provided value.
6755         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6756         attribute_relro.
6757
6758 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6759
6760         [BZ #3748]
6761         * bits/libc-lock.h (__libc_once_get): New macro.
6762         * sysdeps/mach/bits/libc-lock.h: Likewise.
6763         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6764         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6765         instead of using implementation details.
6766
6767         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6768         * libio/freopen.c: Likewise.
6769         * libio/freopen64.c: Likewise.
6770         * misc/syslog.c: Likewise.
6771         * nscd/connections.c: Likewise.
6772         * nscd/netgroupcache.c: Likewise.
6773         * sysdeps/posix/getcwd.c: Likewise.
6774
6775 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6776
6777         * math/w_ilogbf.c: Add #include <limits.h>.
6778
6779 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6780
6781         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6782         path instead of returning without unlocking.
6783
6784         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6785         immediate-write ioctls.
6786         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6787
6788 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6789
6790         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6791         __builtin_frame_address instead of making assumptions about the
6792         location of the return address relative to DATA.  Force early load of
6793         the return address.
6794         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6795         __builtin_frame_address.
6796
6797         dup3 for GNU Hurd.
6798         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6799         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6800         implement dup3 and do some further code clean-ups.
6801         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6802         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6803
6804 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6805
6806         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6807
6808         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6809         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6810         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6811         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6812         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6813         d->port.lock.
6814
6815         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6816         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6817         when handler == SIG_ERR, not when handler != SIG_ERR.
6818
6819 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6820
6821         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6822         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6823         definitions.
6824
6825         accept4 for GNU Hurd.
6826         * include/sys/socket.h (__libc_accept4): New prototype.
6827         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6828         to implement __libc_accept4.
6829         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6830         __libc_accept4.
6831         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6832
6833         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6834         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6835         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6836         signal-defines.sym.
6837
6838 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6839
6840         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6841
6842 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6843
6844         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6845         assertion on O_CLOEXEC flag.
6846         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6847         * hurd/intern-fd.c: Likewise.
6848         * hurd/port2fd.c: Likewise.
6849
6850 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6851
6852         [BZ #3906]
6853         * bits/in.h (IPV6_PKTINFO): Define new macro.
6854         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6855
6856 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6857
6858         [BZ #13954]
6859         [BZ #13955]
6860         [BZ #13956]
6861         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6862         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6863         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6864         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6865         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6866         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6867         * math/libm-test.inc (logb_test) : Additional logb tests.
6868
6869 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6870             Andreas Jaeger  <aj@suse.de>
6871
6872         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6873         * configure: Regenerated.
6874         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6875         * config.make.in (link-obsolete-rpc): New substituted variable.
6876         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6877         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6878         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6879         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6880         so that libc.a contains the symbols.
6881         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6882         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6883         * sunrpc/auth_none.c: Likewise.
6884         * sunrpc/auth_unix.c: Likewise.
6885         * sunrpc/authdes_prot.c: Likewise.
6886         * sunrpc/authuxprot.c: Likewise.
6887         * sunrpc/clnt_gen.c: Likewise.
6888         * sunrpc/clnt_perr.c: Likewise.
6889         * sunrpc/clnt_raw.c: Likewise.
6890         * sunrpc/clnt_simp.c: Likewise.
6891         * sunrpc/clnt_tcp.c: Likewise.
6892         * sunrpc/clnt_udp.c: Likewise.
6893         * sunrpc/clnt_unix.c: Likewise.
6894         * sunrpc/des_crypt.c: Likewise.
6895         * sunrpc/des_soft.c: Likewise.
6896         * sunrpc/get_myaddr.c: Likewise.
6897         * sunrpc/key_call.c: Likewise.
6898         * sunrpc/key_prot.c: Likewise.
6899         * sunrpc/netname.c: Likewise.
6900         * sunrpc/pm_getmaps.c: Likewise.
6901         * sunrpc/pm_getport.c: Likewise.
6902         * sunrpc/pmap_clnt.c: Likewise.
6903         * sunrpc/pmap_prot.c: Likewise.
6904         * sunrpc/pmap_prot2.c: Likewise.
6905         * sunrpc/pmap_rmt.c: Likewise.
6906         * sunrpc/publickey.c: Likewise.
6907         * sunrpc/rpc_cmsg.c: Likewise.
6908         * sunrpc/rpc_common.c: Likewise.
6909         * sunrpc/rpc_dtable.c: Likewise.
6910         * sunrpc/rpc_prot.c: Likewise.
6911         * sunrpc/rpc_thread.c: Likewise.
6912         * sunrpc/rtime.c: Likewise.
6913         * sunrpc/svc.c: Likewise.
6914         * sunrpc/svc_auth.c: Likewise.
6915         * sunrpc/svc_raw.c: Likewise.
6916         * sunrpc/svc_run.c: Likewise.
6917         * sunrpc/svc_tcp.c: Likewise.
6918         * sunrpc/svc_udp.c: Likewise.
6919         * sunrpc/svc_unix.c: Likewise.
6920         * sunrpc/svcauth_des.c: Likewise.
6921         * sunrpc/xcrypt.c: Likewise.
6922         * sunrpc/xdr.c: Likewise.
6923         * sunrpc/xdr_array.c: Likewise.
6924         * sunrpc/xdr_float.c: Likewise.
6925         * sunrpc/xdr_intXX_t.c: Likewise.
6926         * sunrpc/xdr_mem.c: Likewise.
6927         * sunrpc/xdr_rec.c: Likewise.
6928         * sunrpc/xdr_ref.c: Likewise.
6929         * sunrpc/xdr_sizeof.c: Likewise.
6930         * sunrpc/xdr_stdio.c: Likewise.
6931
6932 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6933
6934         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6935         change.  Update copyright years.
6936
6937 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6938
6939         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6940
6941 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6942             Joseph Myers  <joseph@codesourcery.com>
6943             Paul Pluzhnikov  <ppluzhnikov@google.com>
6944
6945         [BZ #14012]
6946         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6947         requiring rpcgen.
6948         [cross-compiling] (extra-libs): Likewise.
6949         [cross-compiling] (extra-libs-others): Likewise.
6950         [cross-compiling] (librpcsvc-routines): Likewise.
6951         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6952         [cross-compiling] (omit-deps): Likewise.
6953         (sunrpc-CPPFLAGS): New variable.
6954         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6955         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6956         (cross-rpcgen-objs): New variable.
6957         (extra-objs): Append $(cross-rpcgen-objs).
6958         ($(cross-rpcgen-objs)): New rule.
6959         ($(objpfx)cross-rpcgen): Likewise.
6960         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6961         comment.
6962         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6963         ($(objpfx)x%.stmp): Likewise.
6964         * sunrpc/proto.h [IS_IN_build] (_): Define.
6965         [IS_IN_build] (_libc_intl_domainname): Likewise.
6966
6967 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6968
6969         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6970         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6971         and R_X86_64_TPOFF64.
6972
6973 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6974
6975         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6976         sysdeps/unix/sysv/syscalls.list.
6977         (stime): Likewise.
6978         (utime): Likewise.
6979         * sysdeps/unix/sysv/syscalls.list: Remove file.
6980
6981 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6982
6983         [BZ #3440]
6984         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6985         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6986         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6987         (__LC_IDENTIFICATION): Make these macros useful in #if
6988         expressions, as required by C99.
6989
6990 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6991
6992         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6993         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6994         after this.
6995
6996 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6997
6998         * stdlib/longlong.h: Updated from GCC.
6999
7000 2012-05-09  Andreas Jaeger  <aj@suse.de>
7001
7002         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7003         default is first entry.
7004         (run_mode): Set type.
7005         (main): Remove informal message about syslog.
7006         (options): Fix typo.
7007
7008         [BZ #14053]
7009         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7010         to asm.
7011         (lrint): Likewise.
7012         (llrintf): Likewise.
7013         (llrint): Likewise.
7014         (rint): Likewise.
7015         (rintf): Likewise.
7016         (nearbyint): Likewise.
7017         (nearbyintf): Likewise.
7018
7019 2012-05-09  Andreas Jaeger  <aj@suse.de>
7020             Pedro Alves  <palves@redhat.com>
7021
7022         * nscd/nscd.c (run_mode): Use enum.
7023         (main): Cleanup coding style issue.
7024
7025 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7026             Andreas Jaeger  <aj@suse.de>
7027
7028         * nscd/nscd.c (go_background): Replaced with...
7029         (run_mode): ... this.
7030         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7031         (options): Add -F --foreground.
7032         (main): Implement it.
7033         (parse_opt): Parse it.
7034
7035 2012-05-09  Andreas Jaeger  <aj@suse.de>
7036
7037         [BZ #14083]
7038         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7039         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7040         -Wconversion warning.
7041         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7042         Likewise.
7043
7044 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7045
7046         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7047         == 0.
7048         (LC_ALL): Use macro-int-constant.
7049         (LC_COLLATE): Likewise.
7050         (LC_CTYPE): Likewise.
7051         (LC_MESSAGES): Likewise.
7052         (LC_MONETARY): Likewise.
7053         (LC_NUMERIC): Likewise.
7054         (LC_TIME): Likewise.
7055         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7056         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7057         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7058         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7059         Specify type.
7060         [C99-based standards] (float_t): Expect type.
7061         [C99-based standards] (double_t): Expect type.
7062         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7063         type.
7064         [C99-based standards] (HUGE_VALL): Likewise.
7065         [C99-based standards] (INFINITY): Likewise.
7066         [C99-based standards] (NAN): Likewise.
7067         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7068         [C99-based standards] (FP_NAN): Likewise.
7069         [C99-based standards] (FP_NORMAL): Likewise.
7070         [C99-based standards] (FP_SUBNORMAL): Likewise.
7071         [C99-based standards] (FP_ZERO): Likewise.
7072         [C99-based standards] (FP_FAST_FMA): Use
7073         optional-macro-int-constant.  Specify type.  Require == 1.
7074         [C99-based standards] (FP_FAST_FMAF): Likewise.
7075         [C99-based standards] (FP_FAST_FMAL): Likewise.
7076         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7077         [C99-based standards] (FP_ILOGBNAN): Likewise.
7078         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7079         Specify type.
7080         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7081         [C99-based standards] (math_errhandling): Specify type.
7082         [ISO99 || ISO11] (signgam): Do not allow.
7083         [non-C99-based standards] (copysignf): Do not allow.
7084         [non-C99-based standards] (exp2f): Likewise.
7085         [non-C99-based standards] (log2f): Likewise.
7086         [non-C99-based standards] (modff): Allow.
7087         [non-C99-based standards] (erff): Do not allow.
7088         [non-C99-based standards] (erfcf): Likewise.
7089         [non-C99-based standards] (gammaf): Likewise.
7090         [non-C99-based standards] (hypotf): Likewise.
7091         [non-C99-based standards] (j0f): Likewise.
7092         [non-C99-based standards] (j1f): Likewise.
7093         [non-C99-based standards] (jnf): Likewise.
7094         [non-C99-based standards] (lgammaf): Likewise.
7095         [non-C99-based standards] (tgammaf): Likewise.
7096         [non-C99-based standards] (y0f): Likewise.
7097         [non-C99-based standards] (y1f): Likewise.
7098         [non-C99-based standards] (ynf): Likewise.
7099         [non-C99-based standards] (isnanf): Likewise.
7100         [non-C99-based standards] (acoshf): Likewise.
7101         [non-C99-based standards] (asinhf): Likewise.
7102         [non-C99-based standards] (atanhf): Likewise.
7103         [non-C99-based standards] (cbrtf): Likewise.
7104         [non-C99-based standards] (expm1f): Likewise.
7105         [non-C99-based standards] (ilogbf): Likewise.
7106         [non-C99-based standards] (log1pf): Likewise.
7107         [non-C99-based standards] (logbf): Likewise.
7108         [non-C99-based standards] (nextafterf): Likewise.
7109         [non-C99-based standards] (remainderf): Likewise.
7110         [non-C99-based standards] (rintf): Likewise.
7111         [non-C99-based standards] (scalbf): Likewise.
7112         [non-C99-based standards] (copysignl): Likewise.
7113         [non-C99-based standards] (exp2l): Likewise.
7114         [non-C99-based standards] (log2l): Likewise.
7115         [non-C99-based standards] (modfl): Allow.
7116         [non-C99-based standards] (erfl): Do not allow.
7117         [non-C99-based standards] (erfcl): Likewise.
7118         [non-C99-based standards] (gammal): Likewise.
7119         [non-C99-based standards] (hypotl): Likewise.
7120         [non-C99-based standards] (j0l): Likewise.
7121         [non-C99-based standards] (j1l): Likewise.
7122         [non-C99-based standards] (jnl): Likewise.
7123         [non-C99-based standards] (lgammal): Likewise.
7124         [non-C99-based standards] (tgammal): Likewise.
7125         [non-C99-based standards] (y0l): Likewise.
7126         [non-C99-based standards] (y1l): Likewise.
7127         [non-C99-based standards] (ynl): Likewise.
7128         [non-C99-based standards] (isnanl): Likewise.
7129         [non-C99-based standards] (acoshl): Likewise.
7130         [non-C99-based standards] (asinhl): Likewise.
7131         [non-C99-based standards] (atanhl): Likewise.
7132         [non-C99-based standards] (cbrtl): Likewise.
7133         [non-C99-based standards] (expm1l): Likewise.
7134         [non-C99-based standards] (ilogbl): Likewise.
7135         [non-C99-based standards] (log1pl): Likewise.
7136         [non-C99-based standards] (logbl): Likewise.
7137         [non-C99-based standards] (nextafterl): Likewise.
7138         [non-C99-based standards] (remainderl): Likewise.
7139         [non-C99-based standards] (rintl): Likewise.
7140         [non-C99-based standards] (scalbl): Likewise.
7141         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7142         [non-C99-based standards] (FP_*): Do not allow.
7143         [C99-based standards] (FP_*): Change to
7144         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7145         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7146         allow.
7147         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7148         (SIG_ERR): Likewise.
7149         [X/Open-based standards] (SIG_HOLD): Likewise.
7150         (SIG_IGN): Likewise.
7151         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7152         positive value.
7153         (SIGFPE): Likewise.
7154         (SIGILL): Likewise.
7155         (SIGINT): Likewise.
7156         (SIGSEGV): Likewise.
7157         (SIGTER): Likewise.
7158         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7159         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7160         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7161         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7162         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7163         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7164         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7165         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7166         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7167         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7168         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7169         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7170         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7171         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7172         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7173         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7174         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7175         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7176         [X/Open-based standards] (SIGTRAP): Likewise.
7177         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7178         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7179         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7180         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7181         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7182         allow.
7183
7184 2012-05-08  Ian Wienand  <ianw@vmware.com>
7185
7186         [BZ #14080]
7187         * time/tzset.c (__tzset_parse_tz): Update default rules for
7188         daylight time changes in the Energy Policy Act of 2005.
7189
7190 2012-05-09  Andreas Jaeger  <aj@suse.de>
7191
7192         [BZ #13983]
7193         * elf/ldconfig.c (parse_conf): Change string to make clear that
7194         ldconfig only issued a warning if ld.so.conf does not exist.
7195
7196 2012-05-08  David S. Miller  <davem@davemloft.net>
7197
7198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7199         movxtod instead of popping the value on the stack.
7200
7201         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7202
7203 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7204
7205         * config.h.in: Add HAVE_ARM_PCS_VFP.
7206
7207 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7208
7209         [BZ #13979]
7210         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7211         checking but the checks are disabled for any reason.
7212
7213 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7214
7215         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7216         and ELF64_R_TYPE with ELFW(R_TYPE).
7217
7218 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7219
7220         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7221         (ulimit): Likewise.
7222
7223         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7224         (settimeofday): Likewise.
7225
7226 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7227
7228         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7229         a struct th_u2 inside the union, and move tu_block/tu_code into
7230         a new th_u3 union of tu_block/tu_code inside of that.  Move
7231         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7232         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7233         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7234         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7235         (th_stuff): Change to th_u1.tu_stuff.
7236         (th_data): Define.
7237         (th_msg): Change to th_u1.th_u2.tu_data.
7238
7239 2012-05-07  David S. Miller  <davem@davemloft.net>
7240
7241         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7242
7243         [BZ #14074]
7244         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7245         (SETUP_PIC_REG): Use it.
7246         (SETUP_PIC_REG_LEAF): Use it.
7247
7248 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7249
7250         [BZ #13885]
7251         [BZ #13923]
7252         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7253         USE_AS_EXPM1L.
7254         (EXPL_FINITE): Likewise.
7255         (FLDLOG): Likewise.
7256         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7257         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7258         e_expl.S.
7259         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7260         USE_AS_EXPM1L.
7261         (EXPL_FINITE): Likewise.
7262         (FLDLOG): Likewise.
7263         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7264         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7265         e_expl.S.
7266         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7267         test of -max_value argument for long double.
7268         * sysdeps/i386/fpu/libm-test-ulps: Update.
7269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7270
7271 2012-05-06  David S. Miller  <davem@davemloft.net>
7272
7273         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7274         quad soft-float symbols whose references which are compiler
7275         generated.
7276         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7277
7278 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7279
7280         [BZ #13884]
7281         [BZ #13914]
7282         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7283         USE_AS_EXP10L.
7284         (EXPL_FINITE): Likewise.
7285         (FLDLOG): Likewise.
7286         (c0): Likewise.
7287         (c1): Likewise.
7288         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7289         Adjust comments for base varying.
7290         (__expl_finite): Change alias to EXPL_FINITE.
7291         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7292         e_expl.S.
7293         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7294         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7295         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7296         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7297         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7298         USE_AS_EXP10L.
7299         (EXPL_FINITE): Likewise.
7300         (FLDLOG): Likewise.
7301         (c0): Likewise.
7302         (c1): Likewise.
7303         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7304         Adjust comments for base varying.
7305         (__expl_finite): Change alias to EXPL_FINITE.
7306         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7307         tests for bugs.
7308         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7309
7310         [BZ #14064]
7311         * math/libm-test.inc (check_float_internal): Correct ulp
7312         calculation for subnormal expected results.
7313
7314 2012-05-06  Andreas Jaeger  <aj@suse.de>
7315
7316         * Makeconfig (+math-flags): New, set to -frounding-math.
7317         (+cflags): Add +math-flags so that all of glibc gets compiled with
7318         it.
7319
7320         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7321
7322 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7323
7324         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7325         Disable one test.
7326
7327         [BZ #13787]
7328         [BZ #13922]
7329         [BZ #14036]
7330         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7331         (__ieee754_expl): Allow for and saturate large arguments.
7332         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7333         (u_threshold): Likewise.
7334         (__exp): Call __ieee754_exp before checking for overflow and
7335         underflow.
7336         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7337         (u_threshold): Likewise.
7338         (__expf): Call __ieee754_expf before checking for overflow and
7339         underflow.
7340         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7341         (u_threshold): Likewise.
7342         (__expl): Call __ieee754_expl before checking for overflow and
7343         underflow.
7344         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7345         (__ieee754_expl): Allow for and saturate large arguments.
7346         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7347         missing overflow exception on overflow.
7348         (expm1_test): Do not allow missing overflow exception on overflow.
7349
7350         * sysdeps/i386/fpu/e_expl.c: Move to ...
7351         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7352         rather than using inline asm.
7353         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7354         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7355         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7356
7357         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7358         (nice): Likewise.
7359         (poll): Likewise.
7360         (signal): Likewise.
7361         (time): Likewise.
7362         (times): Likewise.
7363
7364 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7365
7366         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7367         sysdeps/unix/common/syscalls.list.
7368         (fchmod): Likewise.
7369         (fchown): Likewise.
7370         (ftruncate): Likewise.
7371         (getrusage): Likewise.
7372         (gettimeofday): Likewise.
7373         (setpgid): Likewise.
7374         (setregid): Likewise.
7375         (setreuid): Likewise.
7376         (sigaction): Likewise.
7377         (truncate): Likewise.
7378         (vhangup): Likewise.
7379         * sysdeps/unix/common/syscalls.list: Remove file.
7380         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7381         * sysdeps/unix/sysv/linux/Implies: Likewise.
7382
7383 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7384
7385         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7386         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7387         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7388         Moved to ...
7389         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7390         Here.
7391         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7392         to ...
7393         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7394         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7395         to ...
7396         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7397         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7398         to ...
7399         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7400         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7401         to ...
7402         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7403         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7404         to ...
7405         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7406         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7407         to ...
7408         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7409         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7410         to ...
7411         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7412         Here.
7413         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7414         to ...
7415         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7416         Here.
7417         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7418         to ...
7419         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7420         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7421         Moved to ...
7422         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7423         Here.
7424         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7425         to ...
7426         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7427
7428 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7429
7430         * sysdeps/unix/common/bits/dirent.h: Remove file.
7431         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7432
7433         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7434         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7435         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7436         * sysdeps/unix/bsd/isatty.c: Likewise.
7437         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7438         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7439         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7440
7441 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7442
7443         [BZ #13563]
7444         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7445         long double comparison inaccuracies.
7446         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7447         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7448
7449 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7450
7451         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7452         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7453
7454 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7455
7456         [BZ #14049]
7457         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7458         nonzero digits before rounding a hex value.
7459         * stdlib/tst-strtod.c (tests): Add another test.
7460
7461 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7462
7463         * sysdeps/s390/fpu/libm-test-ulps: Update.
7464
7465 2012-05-03  Andreas Jaeger  <aj@suse.de>
7466
7467         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7468         does not get optimized out.
7469         (malloc_opt_barrier): New.
7470
7471 2012-05-03  Andreas Jaeger  <aj@suse.de>
7472             Roland McGrath  <roland@hack.frob.com>
7473
7474         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7475         intermediate file deletion.
7476         (generated): Add .symlist files.
7477
7478 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7479
7480         [BZ #13775]
7481         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7482         Redirect under this condition.
7483         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7484         [__USE_GNU] (__dprintf_chk): Not under this condition.
7485         [__USE_GNU] (__vdprintf_chk): Likewise.
7486         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7487         under this condition.
7488         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7489         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7490         [__USE_XOPEN2K8] (vdprintf): Likewise.
7491         [__USE_GNU] (__dprintf_chk): Not under this condition.
7492         [__USE_GNU] (__vdprintf_chk): Likewise.
7493         [__USE_GNU] (dprintf): Likewise.
7494         [__USE_GNU] (vdprintf): Likewise.
7495
7496 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7497
7498         * elf/Makefile (common-generated): Set this instead of generated for
7499         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7500         $(all-built-dso)-derived lists.
7501
7502 2012-05-03  Andreas Jaeger  <aj@suse.de>
7503
7504         * sysdeps/i386/fpu/libm-test-ulps: Update.
7505
7506         * FAQ: Removed.
7507         * FAQ.in: Likewise.
7508         * scripts/gen-FAQ.pl: Likewise.
7509         * manual/install.texi (Installation): Point to online location of
7510         FAQ.
7511         * Makefile (files-for-dist): Remove FAQ.
7512         (FAQ): Remove.
7513
7514 2012-05-02  Allan McRae  <allan@archlinux.org>
7515
7516         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7517         (LDFLAGS-reldepmod5.so): Likewise.
7518         (LDFLAGS-reldep6mod1.so): Likewise.
7519         (LDFLAGS-reldep6mod4.so): Likewise.
7520         (LDFLAGS-reldep8mod3.so): Likewise.
7521         (LDFLAGS-unload4mod1.so): Likewise.
7522         (LDFLAGS-unload4mod2.so): Likewise.
7523         (LDFLAGS-tst-initorder): Likewise.
7524         (LDFLAGS-tst-initordera2.so): Likewise.
7525         (LDFLAGS-tst-initordera3.so): Likewise.
7526         (LDFLAGS-tst-initordera4.so): Likewise.
7527         (LDFLAGS-tst-initorderb2.so): Likewise.
7528         (LDFLAGS-noload): Likewise.
7529         (LDFLAGS-next): Likewise.
7530         (LDFLAGS-order2mod1.so): Likewise.
7531         (LDFLAGS-order2mod2.so): Likewise.
7532         (LDFLAGS-tst-initorder2): Likewise.
7533         (LDFLAGS-tst-initorder2a.so): Likewise.
7534         (LDFLAGS-tst-initorder2b.so): Likewise.
7535         (LDFLAGS-tst-initorder2c.so): Likewise.
7536         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7537
7538 2012-05-02  David S. Miller  <davem@davemloft.net>
7539
7540         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7541
7542 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7543
7544         [BZ #14055]
7545         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7546
7547 2012-05-02  Andreas Jaeger  <aj@suse.de>
7548
7549         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7550         since we manipulate rounding mode.
7551         (CPPFLAGS-test-idouble.c): Likewise.
7552         (CPPFLAGS-test-ifloat.c): Likewise.
7553         (CFLAGS-test-ldouble.c): Likewise.
7554         (CFLAGS-test-double.c): Likewise.
7555         (CFLAGS-test-float.c): Likewise.
7556         (CFLAGS-test-misc.c): Likewise.
7557         (CFLAGS-test-test-fenv.c): Likewise.
7558
7559 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7560
7561         [BZ #2550]
7562         [BZ #2570]
7563         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7564         comparisons to determine direction to adjust input.
7565
7566 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7567
7568         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7569         output to the target.
7570
7571         * scripts/localplt.awk: New file.
7572         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7573         (check-localplt-CFLAGS): Variable removed.
7574         ($(all-built-dso:=.jmprel)): New static pattern rule.
7575         (generated): Add those targets.
7576         (localplt-built-dso): New variable.
7577         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7578
7579         * elf/check-localplt.c: File removed.
7580
7581         * scripts/check-execstack.awk: New file.
7582         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7583         (check-execstack-CFLAGS): Variable removed.
7584         ($(objpfx)check-execstack.h): Target removed.
7585         ($(objpfx)execstack-default): New target.
7586         (generated): Add that instead of check-execstack.h.
7587         ($(all-built-dso:=.phdr)): New static pattern rule.
7588         (generated): Add those targets.
7589         * elf/check-execstack.c: File removed.
7590
7591         * scripts/check-textrel.awk: New file.
7592         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7593         (check-textrel-CFLAGS): Variable removed.
7594         (all-built-dso): Use := to define.o
7595         ($(all-built-dso:=.dyn)): New static pattern rule.
7596         (generated): Add those targets.
7597         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7598         * config.make.in (READELF): New substituted variable.
7599         * elf/check-textrel.c: File removed.
7600
7601 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7602
7603         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7604         allow.
7605         * conform/data/ctype.h-data [C99-based standards] (isblank):
7606         Expect function.
7607         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7608         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7609         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7610         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7611         Specify type.  Require positive value.
7612         (EILSEQ): Likewise.
7613         (ERANGE): Likewise.
7614         [ISO || POSIX] (EILSEQ): Do not expect.
7615         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7616         Specify type.  Require positive value.
7617         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7618         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7619         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7620         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7621         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7622         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7623         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7624         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7625         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7626         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7627         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7628         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7629         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7630         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7631         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7632         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7633         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7634         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7635         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7636         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7637         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7638         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7639         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7640         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7641         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7642         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7643         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7644         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7645         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7646         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7647         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7648         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7649         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7650         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7651         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7652         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7653         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7654         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7655         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7656         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7657         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7658         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7659         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7660         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7661         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7662         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7663         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7664         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7665         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7666         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7667         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7668         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7669         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7670         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7671         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7672         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7673         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7674         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7675         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7676         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7677         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7678         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7679         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7680         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7681         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7682         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7683         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7684         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7685         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7686         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7687         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7688         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7689         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7690         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7691         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7692         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7693         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7694         Require >= 2.
7695         (FLT_ROUNDS): Expect as macro, not constant.
7696         (FLT_MANT_DIG): Use macro-int-constant.
7697         (DBL_MANT_DIG): Likewise.
7698         (LDBL_MANT_DIG): Likewise.
7699         (FLT_DIG): Likewise.
7700         (DBL_DIG): Likewise.
7701         (LDBL_DIG): Likewise.
7702         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7703         (DBL_MIN_EXP): Likewise.
7704         (LDBL_MIN_EXP): Likewise.
7705         (FLT_MAX_EXP): Use macro-int-constant.
7706         (DBL_MAX_EXP): Likewise.
7707         (LDBL_MAX_EXP): Likewise.
7708         (FLT_MAX_10_EXP): Likewise.
7709         (DBL_MAX_10_EXP): Likewise.
7710         (LDBL_MAX_10_EXP): Likewise.
7711         (FLT_MAX): Use macro-constant.
7712         (DBL_MAX): Likewise.
7713         (LDBL_MAX): Likewise.
7714         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7715         (DBL_EPSILON): Likewise.
7716         (LDBL_EPSILON): Likewise.
7717         (FLT_MIN): Likewise.
7718         (DBL_MIN): Likewise.
7719         (LDBL_MIN): Likewise.
7720         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7721         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7722         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7723         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7724         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7725         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7726         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7727         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7728         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7729         [ISO11] (FLT_TRUE_MIN): Likewise.
7730         [ISO11] (LDBL_TRUE_MIN): Likewise.
7731         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7732         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7733         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7734         (SCHAR_MAX): Likewise.
7735         (UCHAR_MAX): Likewise.
7736         (CHAR_MIN): Likewise.
7737         (CHAR_MAX): Likewise.
7738         (MB_LEN_MAX): Use macro-int-constant.
7739         (SHRT_MIN): Use macro-int-constant.  Specify type.
7740         (SHRT_MAX): Likewise.
7741         (USHRT_MAX): Likewise.
7742         (INT_MAX): Likewise.
7743         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7744         bound negative.
7745         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7746         bound with "U".
7747         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7748         bound with "L".
7749         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7750         bound negative.  Suffix upper bound with "L".
7751         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7752         bound with "UL".
7753         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7754         Specify type.
7755         [C99-based standards] (LLONG_MAX): Likewise.
7756         [C99-based standards] (ULLONG_MAX): Likewise.
7757         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7758         == 0.
7759         [ISO11] (max_align_t): Require type.
7760         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7761
7762         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7763         from $CFLAGS, without defining away __attribute__ calls.
7764         (checknamespace): Use $CFLAGS_namespace.
7765
7766         * conform/conformtest.pl (@keywords): Only include C99 keywords
7767         for standards based on C99 or C11.
7768
7769         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7770         Disable tests.
7771         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7772         UNIX98]: Likewise.
7773
7774         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7775         usability of symbols in #if.
7776
7777         * conform/conformtest.pl: If macro or constant types start
7778         "promoted:", expect the symbol to be of the following type
7779         promoted by the integer promotions.
7780
7781         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7782         in one place.  Also handle "macro-constant".
7783
7784         * conform/conformtest.pl: Only accept expected macro values with
7785         "==".  Parse all "macro" lines in one place.
7786         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7787
7788         * conform/conformtest.pl: Handle braced types on "constant" lines
7789         instead of handling "typed-constant".
7790         * conform/data/signal.h-data: Use "constant" instead of
7791         "typed-constant".
7792
7793         * conform/conformtest.pl: Handle "optional-" at start of lines in
7794         one place rather than duplicating several cases.  Handle each
7795         format of "macro" line with initial "optional-".
7796
7797         * conform/conformtest.pl: Only accept expected constant or
7798         optional-constant values with "==".  Parse all "constant" lines in
7799         one place.  Parse all "optional-constant" lines in one place.
7800         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7801         * conform/data/fmtmsg.h-data: Likewise.
7802         * conform/data/netinet/in.h-data: Likewise.
7803         * conform/data/tar.h-data: Likewise.
7804         * conform/data/limits.h-data: Use "==" form on "constant" and
7805         "optional-constant" lines.
7806
7807         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7808         Use -std=c99 for XOPEN2K.
7809         (@knownproblems): Remove.
7810         (newtoken): Don't check %isknown.
7811
7812         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7813         Do not expect macro.
7814         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7815         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7816         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7817         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7818         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7819         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7820         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7821         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7822         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7823         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7824         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7825         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7826         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7827         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7828         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7829         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7830         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7831         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7832         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7833         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7834         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7835         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7836         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7837         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7838         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7839         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7840         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7841         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7842         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7843         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7844         [XPG3] (acosh): Likewise.
7845         [XPG3] (asinh): Likewise.
7846         [XPG3] (atanh): Likewise.
7847         [XPG3] (cbrt): Likewise.
7848         [XPG3] (expm1): Likewise.
7849         [XPG3] (ilogb): Likewise.
7850         [XPG3] (log1p): Likewise.
7851         [XPG3] (logb): Likewise.
7852         [XPG3] (nextafter): Likewise.
7853         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7854         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7855         [XPG3] (remainder): Likewise.
7856         [XPG3] (rint): Likewise.
7857         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7858         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7859         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7860         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7861         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7862         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7863         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7864         [UNIX98 || XOPEN2K] (scalb): Expect.
7865         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7866         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7867         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7868         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7869         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7870         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7871         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7872         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7873         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7874         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7875         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7876         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7877         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7878         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7879         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7880         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7881         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7882         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7883         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7884         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7885         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7886         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7887         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7888         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7889         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7890         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7891         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7892         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7893         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7894         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7895         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7896         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7897         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7898         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7899         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7900         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7901         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7902         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7903         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7904         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7905         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7906         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7907         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7908         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7909         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7910         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7911         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7912         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7913         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7914         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7915         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7916         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7917         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7918         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7919         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7920         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7921         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7922         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7923         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7924         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7925         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7926         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7927         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7928         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7929         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7930         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7931         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7932         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7933         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7934         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7935         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7936         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7937         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7938         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7939         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7940         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7941         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7942         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7943         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7944         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7945         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7946         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7947         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7948         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7949         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7950         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7951         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7952         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7953         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7954         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7955         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7956         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7957         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7958         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7959         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7960         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7961         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7962         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7963         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7964         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7965         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7966         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7967         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7968         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7969         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7970         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7971         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7972         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7973         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7974         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7975         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7976         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7977         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7978         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7979         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7980         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7981         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7982         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7983         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7984         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7985         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7986         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7987         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7988         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7989         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7990         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7991         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7992         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7993         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7994         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7995         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7996         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7997         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7998         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7999         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8000         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8001         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8002
8003         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8004         _XOPEN_SOURCE_EXTENDED for XPG4.
8005
8006         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8007
8008         * Makeconfig (localtime): Remove variable.
8009         (inst_localtime-file): Likewise.
8010
8011 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8012
8013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8014         Update.
8015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8016         Update.
8017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8018         Update.
8019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8020         Update.
8021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8022         Update.
8023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8024         Update.
8025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8026         Update.
8027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8028         Update.
8029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8030         Update.
8031
8032 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8033
8034         [BZ #2550]
8035         [BZ #2570]
8036         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8037         comparisons to determine direction to adjust input.
8038         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8039         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8040         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8041         Likewise.
8042         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8043         Likewise.
8044         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8045         Likewise.
8046         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8047         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8048         Likewise.
8049         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8050         Likewise.
8051         * math/libm-test.inc (nexttoward_test): Add more tests.
8052
8053 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8054
8055         [BZ #14040]
8056         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8057         in version GLIBC_2.1, not GLIBC_2.0.
8058         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8059         Likewise.
8060
8061 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8062
8063         [BZ #13942]
8064         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8065         (1 - x) * (1 + x).
8066         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8067         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8068         * math/libm-test.inc (acos_test): Add more tests.
8069         (asin_test): Likewise.
8070         * sysdeps/i386/fpu/libm-test-ulps: Update.
8071         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8072
8073         [BZ #14034]
8074         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8075         of square root.
8076         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8077         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8078         * math/libm-test.inc (acos_test_tonearest): New function.
8079         (acos_test_towardzero): Likewise.
8080         (acos_test_downward): Likewise.
8081         (acos_test_upward): Likewise.
8082         (asin_test_tonearest): Likewise.
8083         (asin_test_towardzero): Likewise.
8084         (asin_test_downward): Likewise.
8085         (asin_test_upward): Likewise.
8086         (main): Call the new functions.
8087         * sysdeps/i386/fpu/libm-test-ulps: Update.
8088         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8089
8090         [BZ #13884]
8091         [BZ #13924]
8092         * math/e_exp10.c: Include <float.h>.
8093         (__ieee754_exp10): Handle underflow here rather than multiplying
8094         large negative argument by M_LN10.
8095         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8096         of __ieee754_expf.
8097         * math/e_exp10l.c: Include <float.h>.
8098         (__ieee754_exp10l): Handle underflow here rather than multiplying
8099         large negative argument by M_LN10l.
8100         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8101         spurious overflow exception on underflow.
8102
8103 2012-04-29  Marek Polacek  <polacek@redhat.com>
8104
8105         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8106         (__fortify_function): New macro.
8107         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8108         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8109         __extern_always_inline.
8110         * libio/bits/stdio2.h: Likewise.
8111         * libio/bits/stdio.h: Likewise.
8112         * string/string.h: Likewise.
8113         * string/bits/string3.h: Likewise.
8114         * include/stdio.h: Likewise.
8115         * stdlib/bits/stdlib.h: Likewise.
8116         * stdlib/stdlib.h: Likewise.
8117         * rt/bits/mqueue2.h: Likewise.
8118         * rt/mqueue.h: Likewise.
8119         * posix/bits/unistd.h: Likewise.
8120         * posix/unistd.h: Likewise.
8121         * io/bits/poll2.h: Likewise.
8122         * io/bits/fcntl2.h: Likewise.
8123         * io/fcntl.h: Likewise.
8124         * io/sys/poll.h: Likewise.
8125         * misc/bits/syslog.h: Likewise.
8126         * misc/bits/syslog-ldbl.h: Likewise.
8127         * misc/sys/syslog.h: Likewise.
8128         * socket/bits/socket2.h: Likewise.
8129         * socket/sys/socket.h: Likewise.
8130         * debug/tst-chk1.c: Likewise.
8131         * wcsmbs/bits/wchar2.h: Likewise.
8132         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8133         * wcsmbs/wchar.h: Likewise.
8134
8135 2012-04-29  Andreas Jaeger  <aj@suse.de>
8136
8137         * Makerules (tests): Remove enable-check-abi protection.
8138         (check-abi-warn): Remove.
8139         (check-abi-%): Remove check-abi-warn usage.
8140
8141         * configure.in: Remove check-abi configure option.
8142         * configure: Regenerated.
8143         * config.make.in (enable-check-abi): Remove.
8144
8145 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8146
8147         [BZ #14033]
8148         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8149         double functions to double *_finite functions.
8150
8151         [BZ #13941]
8152         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8153         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8154         LDBL_MIN_EXP.
8155         * stdio-common/Makefile (tests): Add tst-sprintf3.
8156         * stdio-common/tst-sprintf3.c: New file.
8157
8158         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8159         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8160
8161 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8162
8163         * conform/conformtest.pl: Remove duplicate typed-constant
8164         handling.
8165
8166 2012-04-28  David S. Miller  <davem@davemloft.net>
8167
8168         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8169         (check-abi-%): Remove AWK script prerequisite and explicit
8170         abilist directory.
8171         (check-abi): Rewrite to just diff the symlist with the abilist.
8172         (config-tls, config-abi-config): Delete, no longer used.
8173         (update-abi-%): Remove AWK script and explicit abilist directory.
8174         (update-abi): Rewrite to simply compare and conditionally copy the
8175         symlist and the sysdep abilist file.  Remove update-abi-config
8176         checks.
8177         * abilist/ld.abilist: Remove.
8178         * abilist/libBrokenLocale.abilist: Remove.
8179         * abilist/libanl.abilist: Remove.
8180         * abilist/libcrypt.abilist: Remove.
8181         * abilist/libdl.abilist: Remove.
8182         * abilist/librt.abilist: Remove.
8183         * abilist/libthread_db.abilist: Remove.
8184         * abilist/libutil.abilist: Remove.
8185         * scripts/extract-abilist.awk: Remove.
8186         * scripts/merge-abilist.awk: Remove.
8187         * sysdeps/generic/libcidn.abilist: New file.
8188         * sysdeps/generic/libnss_compat.abilist: New file.
8189         * sysdeps/generic/libnss_db.abilist: New file.
8190         * sysdeps/generic/libnss_dns.abilist: New file.
8191         * sysdeps/generic/libnss_files.abilist: New file.
8192         * sysdeps/generic/libnss_hesiod.abilist: New file.
8193         * sysdeps/generic/libnss_nis.abilist: New file.
8194         * sysdeps/generic/libnss_nisplus.abilist: New file.
8195         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8196         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8197         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8198         file.
8199         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8200         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8201         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8202         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8203         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8204         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8205         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8206         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8207         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8208         file.
8209         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8210         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8211         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8212         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8213         file.
8214         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8215         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8216         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8217         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8218         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8219         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8220         file.
8221         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8222         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8223         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8224         file.
8225         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8226         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8227         New file.
8228         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8229         New file.
8230         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8231         New file.
8232         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8233         New file.
8234         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8235         New file.
8236         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8237         New file.
8238         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8239         New file.
8240         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8241         New file.
8242         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8243         New file.
8244         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8245         New file.
8246         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8247         New file.
8248         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8249         New file.
8250         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8251         New file.
8252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8253         file.
8254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8255         New file.
8256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8257         New file.
8258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8259         file.
8260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8261         New file.
8262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8263         New file.
8264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8265         file.
8266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8267         New file.
8268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8269         New file.
8270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8271         New file.
8272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8273         New file.
8274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8275         New file.
8276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8277         New file.
8278         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8280         file.
8281         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8282         New file.
8283         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8284         file.
8285         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8286         file.
8287         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8288         file.
8289         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8290         file.
8291         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8292         file.
8293         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8294         New file.
8295         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8296         file.
8297         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8298         file.
8299         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8300         New file.
8301         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8302         file.
8303         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8305         file.
8306         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8307         New file.
8308         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8309         file.
8310         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8311         file.
8312         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8313         file.
8314         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8315         file.
8316         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8317         file.
8318         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8319         New file.
8320         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8321         file.
8322         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8323         file.
8324         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8325         New file.
8326         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8327         file.
8328         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8329         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8330         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8331         file.
8332         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8333         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8334         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8335         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8336         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8337         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8338         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8339         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8340         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8341         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8342         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8344         file.
8345         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8346         New file.
8347         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8348         file.
8349         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8350         file.
8351         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8352         file.
8353         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8354         file.
8355         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8356         file.
8357         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8358         New file.
8359         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8360         New file.
8361         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8362         file.
8363         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8364         New file.
8365         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8366         file.
8367         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8369         file.
8370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8371         New file.
8372         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8373         file.
8374         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8375         file.
8376         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8377         file.
8378         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8379         file.
8380         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8381         file.
8382         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8383         New file.
8384         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8385         New file.
8386         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8387         file.
8388         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8389         New file.
8390         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8391         file.
8392
8393 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8394
8395         * conform/conformtest.pl: Fix typo in handling typed-constant from
8396         allow-header.
8397
8398 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8399
8400         * README: Cut down references to pre-2.6 Linux kernels and
8401         Linuxthreads.  Update lists of configurations in libc and ports
8402         and sort alphabetically.  Say "or newer" with Linux kernel version
8403         requirements.
8404
8405         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8406
8407 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8408
8409         [BZ #887]
8410         * math/libm-test.inc (logb_test_downward): New test to expose
8411         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8412         rounding mode.
8413
8414 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8415
8416         [BZ #14027]
8417         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8418         to be done.
8419         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8420         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8421
8422 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8423
8424         * sysdeps/unix/i386/brk.S: Remove file.
8425         * sysdeps/unix/i386/dl-brk.S: Likewise.
8426         * sysdeps/unix/i386/pipe.S: Likewise.
8427         * sysdeps/unix/i386/sigreturn.S: Likewise.
8428         * sysdeps/unix/i386/syscall.S: Likewise.
8429         * sysdeps/unix/i386/vfork.S: Likewise.
8430         * sysdeps/unix/i386/wait.S: Likewise.
8431
8432         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8433         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8434
8435         * configure.in (arm*-none*): Do not allow without
8436         --enable-hacker-mode.
8437         (netbsd*): Remove case setting base_os.
8438         (386bsd*): Likewise.
8439         (freebsd*): Likewise.
8440         (bsdi*): Likewise.
8441         (osf*): Likewise.
8442         (sunos*): Likewise.
8443         (ultrix*): Likewise.
8444         (newsos*): Likewise.
8445         (dynix*): Likewise.
8446         (*bsd*): Likewise.
8447         (sysv*): Likewise.
8448         (isc*): Likewise.
8449         (esix*): Likewise.
8450         (sco*): Likewise.
8451         (minix*): Likewise.
8452         (irix4*): Likewise.
8453         (irix6*): Likewise.
8454         (solaris[2-9]*): Likewise.
8455         (none): Likewise.
8456         * configure: Regenerated.
8457
8458 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8459
8460         [BZ #11521]
8461         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8462         overflow or cancellation in calculating denominator.
8463         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8464         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8465         down expression to avoid unexpected rounding in newer GCCs.
8466         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8467
8468 2012-04-26  David S. Miller  <davem@davemloft.net>
8469
8470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8471         long-double compat symbols.
8472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8477         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8479         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8480         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8481         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8482         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8483         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8484         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8485
8486 2012-04-25  David S. Miller  <davem@davemloft.net>
8487
8488         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8489         HWCAP_* values only after the memory barriers have been defined.
8490         (atomic_full_barrier): Define.
8491         (atomic_read_barrier): Define.
8492         (atomic_write_barrier): Define.
8493
8494 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8495
8496         * shlib-versions: Add libgcc_s version information.
8497         * sysdeps/generic/libgcc_s.h: Remove.
8498         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8499         libgcc_s.h.
8500         * sysdeps/gnu/unwind-resume.c: Likewise.
8501         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8502
8503 2012-04-25  David S. Miller  <davem@davemloft.net>
8504
8505         * sysdeps/unix/sparc/brk.S: Delete.
8506         * sysdeps/unix/sparc/dl-brk.S: Delete.
8507         * sysdeps/unix/sparc/pipe.S: Delete.
8508         * sysdeps/unix/sparc/sysdep.S: Delete.
8509         * sysdeps/unix/sparc/sysdep.h: Delete.
8510         * sysdeps/unix/sparc/vfork.S: Delete.
8511         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8512         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8513         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8514         ret_ERRVAL, r0, r1, MOVE): Define.
8515         (JUMPTARGET): Remove.
8516         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8517         sysdeps/unix/sparc/sysdep.h
8518         (ENTRY, END): Remove.
8519         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8520
8521 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8522
8523         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8524         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8525         -DIS_IN_build.
8526
8527         * timezone/README: Update upstream location and email address for
8528         tzcode and tzdata.
8529         * timezone/zdump.c: Update from tzcode 2012b.
8530         * timezone/zic.c: Likewise.
8531
8532         * configure.in (libc_cv_as_needed): Remove test.
8533         * configure: Regenerated.
8534         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8535         conditional definition.
8536         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8537         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8538         * config.make.in (have-as-needed): Remove variable.
8539
8540 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8541             Paul Pluzhnikov  <ppluzhnikov@google.com>
8542
8543         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8544         strings correctly.
8545
8546 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8547
8548         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8549         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8550         * sysdeps/sh/strlen.S: Likewise.
8551
8552 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8553
8554         * sysdeps/unix/fork.S: Remove file.
8555         * sysdeps/unix/i386/fork.S: Likewise.
8556         * sysdeps/unix/sparc/fork.S: Likewise.
8557
8558         * sysdeps/unix/system.c: Remove file.
8559         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8560
8561         * sysdeps/unix/getegid.S: Remove file.
8562         * sysdeps/unix/geteuid.S: Likewise.
8563
8564 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8565
8566         * scripts/check-localplt.awk: New file.
8567         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8568         of diff.
8569         * scripts/data/localplt-generic.data: Add a comment.
8570
8571         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8572         NODE when __dir_mkfile failed.
8573         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8574         Reported by Ludovic Courtès <ludo@gnu.org>.
8575
8576 2012-04-24  Andreas Jaeger  <aj@suse.de>
8577
8578         * Makerules (common-clean): Also remove gen-as-const-headers
8579         files.
8580
8581 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8582
8583         * Makerules (native-compile): Do not change working directory for
8584         build.  Use $(OUTPUT_OPTION) in command.
8585         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8586
8587 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8588
8589         [BZ #13886]
8590         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8591         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8592         * math/libm-test.inc (floor_test): Add more tests.
8593         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8594
8595 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8596
8597         * sysdeps/unix/getdents.c: Remove file.
8598         * sysdeps/unix/sysv/getdents.c: Likewise.
8599         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8600
8601         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8602         sysdeps/unix/mman/syscalls.list.
8603         (mmap): Likewise.
8604         (mprotect): Likewise.
8605         (msync): Likewise.
8606         (munmap): Likewise.
8607         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8608         * sysdeps/unix/mman/syscalls.list: Remove.
8609         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8610
8611         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8612         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8613         * configure: Regenerated.
8614         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8615         $(libgcc_s_suffix).
8616         * config.make.in (libgcc_s_suffix): Remove variable.
8617
8618 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8619
8620         * sysdeps/unix/sysv/gethostname.c: Move to ...
8621         * sysdeps/posix/gethostname.c: ... here.
8622
8623         * sysdeps/unix/execve.S: Remove file.
8624
8625         * sysdeps/unix/_exit.S: Remove file.
8626
8627 2012-04-23  Andreas Jaeger  <aj@suse.de>
8628
8629         [BZ #13739]
8630         * manual/Makefile: Remove make dist support, there's no
8631         need for a stand-alone documentation tar ball.
8632         (TEXI2DVI): Define always, it's not in Makeconfig.
8633         (dist): Removed.
8634         (tar-it): Removed.
8635         (edition): Removed.
8636         (glibc-doc-$(edition).tar): Removed
8637         (%.Z): Removed.
8638         (%.gz): Removed.
8639         (%.uu): Removed.
8640         (ETAGS): Remove, it's in Makeconfig.
8641         (move-if-change): Remove, it's in Makeconfig.
8642
8643 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8644
8645         [BZ #13970]
8646         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8647         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8648         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8649         (strtod_l, strtof_l, strtold_l): Remove __wur.
8650         It is not necessarily an error to ignore strtol's return value.
8651         One can reliably look at the stored endptr to decide whether
8652         the number had valid syntax.
8653
8654 2012-04-21  Andreas Jaeger  <aj@suse.de>
8655
8656         [BZ #13739]
8657         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8658
8659 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8660
8661         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8662         * sysdeps/unix/sysv/Versions: Remove file.
8663
8664 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8665
8666         [BZ #13927]
8667         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8668
8669 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8670
8671         [BZ #7064]
8672         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8673         version from __vm86.
8674
8675 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8676
8677         * sysdeps/unix/common/lxstat.c: Remove file.
8678         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8679
8680         * sysdeps/unix/sysv/Makefile: Remove file.
8681
8682         * sysdeps/unix/sysv/direct.h: Remove file.
8683
8684         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8685         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8686         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8687         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8688         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8689         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8690         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8691
8692         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8693
8694         * sysdeps/unix/xmknod.c: Remove file.
8695         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8696
8697         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8698
8699         * sysdeps/unix/sysv/i386/time.S: Remove file.
8700
8701         * sysdeps/unix/fxstat.c: Remove file.
8702         * sysdeps/unix/xstat.c: Likewise.
8703         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8704
8705         * sysdeps/unix/sysv/sigaction.c: Remove file.
8706
8707         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8708         (sysdep_headers): Remove variable.
8709         [termio.h not in sysdep_headers] (generated): Likewise.
8710         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8711         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8712         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8713         * sysdeps/unix/sysv/tcflow.c: Likewise.
8714         * sysdeps/unix/sysv/tcflush.c: Likewise.
8715         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8716         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8717         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8718         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8719         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8720
8721         * sysdeps/unix/siglist.c: Remove file.
8722
8723         * sysdeps/unix/getppid.S: Remove file.
8724
8725         * sysdeps/unix/mkdir.c: Remove file.
8726         * sysdeps/unix/rmdir.c: Likewise.
8727
8728 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8729
8730         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8731         ERR_MAX value.
8732         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8733         errlist-compat value.
8734
8735 2012-04-18  David S. Miller  <davem@davemloft.net>
8736
8737         * sysdeps/generic/memcopy.h (reg_char): Delete.
8738         * debug/strcat_chk.c: Use char, not reg_char.
8739         * debug/strcpy_chk.c: Likewise.
8740         * debug/strncat_chk.c: Likewise.
8741         * debug/strncpy_chk.c: Likewise.
8742         * string/memchr.c: Likewise.
8743         * string/memrchr.c: Likewise.
8744         * string/rawmemchr.c: Likewise.
8745         * string/strcat.c: Likewise.
8746         * string/strchr.c: Likewise.
8747         * string/strchrnul.c: Likewise.
8748         * string/strcmp.c: Likewise.
8749         * string/strcpy.c: Likewise.
8750         * string/strncat.c: Likewise.
8751         * string/strncmp.c: Likewise.
8752         * string/strncpy.c: Likewise.
8753
8754 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8755
8756         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8757         __builtin_memcopy is called when src and dest ranges are known to not
8758         overlap.
8759
8760 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8761
8762         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8763         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8764         fwd_align_merge macro call.
8765         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8766         bwd_align_merge macro call.
8767         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8768
8769 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8770
8771         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8772         bwd_align_merge macros.
8773         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8774         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8775         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8776
8777 2012-04-18  David S. Miller  <davem@davemloft.net>
8778
8779         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8780
8781 2012-04-18  Andreas Jaeger  <aj@suse.de>
8782
8783         [BZ# 6794]
8784         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8785         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8786         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8787
8788         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8789         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8790         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8791
8792         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8793         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8794         Adjust for changed ldbl-128 files.
8795
8796         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8797         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8798         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8799
8800 2012-04-17  David S. Miller  <davem@davemloft.net>
8801
8802         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8803
8804 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8805
8806         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8807         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8808         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8809         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8810         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8811         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8812
8813 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8814
8815         [BZ #6794]
8816         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8817         * math/libm-test.inc: Add ilogb errno and exception tests.
8818         * math/w_ilogb.c: New file: ilogb wrapper.
8819         * math/w_ilogbf.c: New file: ilogbf wrapper.
8820         * math/w_ilogbl.c: New file: ilogbl wrapper.
8821         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8822         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8823         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8824         exception being thrown with 0.0 as argument.
8825         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8826         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8827         exception being thrown with 0.0 as argument.
8828         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8829         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8830         exception being thrown with 0.0 as argument.
8831         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8832         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8833         exception being thrown with 0.0 as argument.
8834         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8835         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8836         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8837         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8838         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8839         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8840         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8841         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8842         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8843
8844 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8845
8846         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8847         with altivec.
8848
8849 2012-04-16  Marek Polacek  <polacek@redhat.com>
8850
8851         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8852
8853 2012-04-16  Marek Polacek  <polacek@redhat.com>
8854
8855         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8856         operands of fdivp instruction.
8857
8858 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8859
8860         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8861         * elf/tst-auditmod3b.c: Likewise.
8862         * elf/tst-auditmod4b.c: Likewise.
8863         * elf/tst-auditmod5b.c: Likewise.
8864         * elf/tst-auditmod6b.c: Likewise.
8865         * elf/tst-auditmod6c.c: Likewise.
8866         * elf/tst-auditmod7b.c: Likewise.
8867         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8868         * sysdeps/x86_64/preconfigure.in: Likewise.
8869         * sysdeps/x86_64/preconfigure: Regenerated.
8870
8871 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8872
8873         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8874         __ILP32__.
8875
8876 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8877
8878         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8879         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8880
8881 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8882
8883         [BZ #13973]
8884         * locale/iso-639.def: Fix gl language name. Spotted by
8885         Yaron Shahrabani.
8886
8887 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8888
8889         [BZ #2074]
8890         * libio/libio.h (__io_write_fn): Update comment.
8891
8892 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8893
8894         [BZ #2074]
8895         * stdio.texi (Hook Functions): The user provided writer function
8896         is not allowed to return -1.
8897
8898 2012-04-11  David S. Miller  <davem@davemloft.net>
8899
8900         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8901
8902 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8903
8904         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8905         Add a leading slash to rtkaio.
8906
8907 2012-04-11  Jim Meyering  <meyering@redhat.com>
8908
8909         [BZ #11959]
8910         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8911         It is not necessarily an error to ignore fwrite's return
8912         value.  One can reliably use ferror to test for errors after
8913         the fact.
8914
8915 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8916
8917         * bits/types.h (__snseconds_t): New type.
8918         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8919
8920         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8921         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8922         (__SNSECONDS_T_TYPE): Likewise.
8923         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8924         (__SNSECONDS_T_TYPE): Likewise.
8925         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8926         (__SNSECONDS_T_TYPE): Likewise.
8927
8928 2012-04-10  Andreas Jaeger  <aj@suse.de>
8929
8930         [BZ #2636]
8931         * manual/time.texi (Processor Time): Return type of times is
8932         elapsed real time since an arbitrary point in the past.
8933         (CPU Time): Move CLK_TCK from here...
8934         (Processor Time): ...to here.  Correct description.
8935         * manual/conf.texi (Constants for Sysconf): Correct description of
8936         _SC_CLK_TCK.
8937
8938 2012-04-10  David S. Miller  <davem@davemloft.net>
8939
8940         [BZ #13967]
8941         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8942         where the is a gap between DT_REL(A) and DT_JMPREL.
8943
8944 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8945
8946         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8947         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8948         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8949
8950 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8951
8952         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8953         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8954         (dl_main): Handle --inhibit-cache.
8955         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8956         _dl_inhibit_cache.
8957         * elf/dl-load.c (_dl_map_object): Use it.
8958         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8959
8960 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8961
8962         [BZ #13872]
8963         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8964         (__ieee754_powl): Saturate large exponents rather than testing for
8965         overflow of y*log2(x).
8966         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8967         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8968         exceptions.
8969
8970         [BZ #11521]
8971         * math/s_ctan.c: Include <float.h>.
8972         (__ctan): Avoid internal overflow or cancellation in calculating
8973         denominator.
8974         * math/s_ctanf.c: Likewise.
8975         * math/s_ctanl.c: Likewise.
8976         * math/s_ctanh.c: Likewise.
8977         * math/s_ctanhf.c: Likewise.
8978         * math/s_ctanhl.c: Likewise.
8979         * math/libm-test.inc (ctan_test): Add more tests.
8980         (ctanh_test): Likewise.
8981         * sysdeps/i386/fpu/libm-test-ulps: Update.
8982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8983
8984 2012-04-09  Andreas Jaeger  <aj@suse.de>
8985
8986         [BZ #6894]
8987         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8988         is an optional BSD extension.
8989
8990         [BZ #10254]
8991         * manual/stdio.texi (Opening Streams): Document additional fopen
8992         parameters.
8993
8994 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8995
8996         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8997         %eax without telling the compiler.
8998
8999 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9000
9001         [BZ # 13963]
9002         * manual/install.texi: Use sourceware.org.
9003
9004 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9005
9006         [BZ #13873]
9007         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9008         (__ieee754_pow): Generate overflow and underflow using huge*huge
9009         and tiny*tiny rather than just returning constant infinity or zero
9010         for large exponents.
9011         * math/libm-test.inc (pow_test): Require overflow exceptions for
9012         applicable cases of large exponents.
9013
9014         [BZ #706]
9015         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9016         (__ieee754_pow): Use iterative multiplication algorithm only for
9017         integer exponents with absolute value below 1024.  Check for odd
9018         integer exponents when using algorithm for real exponents.
9019         * math/libm-test.inc (pow_test): Add more tests.
9020         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9021
9022 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9023
9024         [BZ #13705]
9025         * math/libm-test.inc (exp_test): Do not allow overflow exception
9026         on underflow test.
9027
9028 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9029
9030         [BZ #13705]
9031         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9032         instead of __kernel_standard_f.
9033
9034 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9035
9036         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9037         * sysdeps/x86_64/memset_chk.S: Likewise.
9038
9039 2012-04-08  Andreas Jaeger  <aj@suse.de>
9040
9041         [BZ #10153]
9042         * manual/startup.texi (Environment Access): Describe return value
9043         for putenv and setenv.
9044
9045         [BZ #6895]
9046         * manual/filesys.texi (Directory Entries): Add description for
9047         DT_LNK.
9048
9049         [BZ #6890]
9050         * manual/filesys.texi (Directory Entries): Clarify that it's file
9051         system not operating system in the description of DT_UNKNOWN.
9052
9053         [BZ #6578]
9054         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9055
9056 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9057
9058         [BZ #6649]
9059         * manual/llio.texi (Opening and Closing Files): Add cross
9060         reference to explain mode argument.
9061
9062 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9063
9064         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9065         * sysdeps/x86_64/memset_chk.S: Likewise.
9066
9067 2012-04-07  David S. Miller  <davem@davemloft.net>
9068
9069         * elf/elf.h (R_SPARC_WDISP10): Define.
9070         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9071         R_SPARC_SIZE32.
9072         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9073         R_SPARC_SIZE64 and R_SPARC_H34.
9074
9075 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9076
9077         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9078         conditions and remove no longer applicable assertion.
9079
9080 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9081
9082         * bits/byteswap.h: Include <features.h>.
9083         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9084         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9085
9086 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9087
9088         * bits/byteswap.h (__bswap_16): Removed.
9089         Include <bits/byteswap-16.h> to get __bswap_16.
9090         * sysdeps/i386/bits/byteswap.h: Likewise.
9091         * sysdeps/s390/bits/byteswap.h: Likewise.
9092         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9093         * bits/byteswap-16.h: New file.
9094         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9095         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9096         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9097         * string/Makefile (headers): Add bits/byteswap-16.h.
9098
9099 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9100
9101         [BZ #13895]
9102         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9103         extra indirection.
9104         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9105         * nss/tst-nss-static.c: New.
9106
9107 2012-04-06  Robert Millan  <rmh@gnu.org>
9108
9109         [BZ #6486]
9110         * manual/llio.texi (File Position Primitive): lseek
9111         refers to WHENCE when it really means OFFSET.
9112
9113 2012-04-06  Andreas Jaeger  <aj@suse.de>
9114
9115         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9116         strncmp declarations.
9117
9118         * abilist/libc.abilist: Add __poll and __ppoll.
9119
9120 2012-04-05  David S. Miller  <davem@davemloft.net>
9121
9122         * scripts/check-local-headers.sh: Accept a host triplet in the
9123         path matched by the exclude regexp.
9124
9125         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9126         definition.
9127         * sysdeps/powerpc/powerpc32/dl-machine.h
9128         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9129         * sysdeps/s390/s390-32/dl-machine.h
9130         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9131         * sysdeps/sparc/sparc32/dl-machine.h
9132         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9133         * sysdeps/sparc/sparc64/dl-machine.h
9134         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9135
9136         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9137         lazy binding.
9138         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9139         undefined symbol errors.
9140
9141         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9142         DT_NEEDED entries.
9143
9144 2012-04-05  Michael Matz  <matz@suse.de>
9145
9146         [BZ #13592]
9147         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9148
9149 2012-04-05  Andreas Jaeger  <aj@suse.de>
9150
9151         [BZ #13908]
9152         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9153         comment.
9154
9155 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9156
9157         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9158         which ROUND is no valid rounding mode.
9159
9160 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9161
9162         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9163         read again.
9164         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9165
9166 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9167
9168         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9169         an exception using FPU order intentionally.
9170
9171 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9172
9173         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9174         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9175         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9176         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9177
9178 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9179
9180         [BZ #12340]
9181         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9182         EINVAL when BUFLEN is too smal.
9183
9184 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9185
9186         [BZ #13553]
9187         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9188         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9189
9190 2012-04-03  Andreas Jaeger  <aj@suse.de>
9191
9192         [BZ #13938]
9193         * manual/setjmp.texi (System V contexts): Fix sentence.
9194
9195         [BZ #13926]
9196         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9197         New macro for this case.
9198         [!__GNUC__] (__bswap_64): New inline function for this case.
9199         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9200         * bits/byteswap.h: Likewise.
9201         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9202         ull, guard with __GLIBC_HAVE_LONG_LONG.
9203
9204         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9205         __GLIBC_HAVE_LONG_LONG.
9206
9207         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9208         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9209
9210 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9211
9212         [BZ #13691]
9213         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9214         inptr and inend, rather than using last_ch.
9215
9216 2012-04-02  David S. Miller  <davem@davemloft.net>
9217
9218         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9219         * stdio-common/printf-parse.h (read_int): Change return type to
9220         'int', return -1 on INT_MAX overflow.
9221         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9222         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9223         overflows INT_MAX.  Check for overflow of in-format-string precision
9224         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9225         SIZE_MAX not INT_MAX for integer overflow test.
9226         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9227         skip the construct in the format string but do not record anything.
9228         * stdio-common/bug22.c: Adjust to test both width/prevision
9229         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9230         explicitly for proper errno values.
9231
9232 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9233
9234         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9235         CHAR_MAX.
9236         * string/test-strcmp.c [! WIDE]: Likewise.
9237         * time/tst-mktime2.c: Likewise for INT_MAX.
9238         * string/test-string.h: #include <sys/param.h> for MIN.
9239
9240         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9241         * sysdeps/i386/init-first.c (init): Likewise.
9242         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9243         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9244         * sysdeps/sh/init-first.c (init): Likewise.
9245
9246 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9247
9248         * po/ru.po: Update from translation team.
9249         * po/vi.po: Likewise.
9250
9251 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9252
9253         * resolv/nss_dns/dns-host.c: Merge copyright years.
9254
9255 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9256
9257         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9258         Optimize memcpy with prefetch if
9259         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9260         src, dst pointers have unequal 16 byte alignments.
9261
9262 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9263
9264         [BZ #13928]
9265         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9266         from a CNAME entry and return the minimum ttl for the query.
9267         (gaih_getanswer_slice): Likewise.
9268
9269 2012-03-30  Jeff Law  <law@redhat.com>
9270
9271         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9272         due to long keys.
9273         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9274         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9275
9276         * resolv/nss_dns/dns-host.c: Update copyright year.
9277
9278 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9279
9280         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9281         requests to save a system call.  Fix check that all bytes are sent.
9282
9283         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9284         comments for sendmmsg.
9285
9286 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9287
9288         [BZ #13691]
9289         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9290         with only 1 character between 0x0041 and 0x01b0.
9291         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9292         * wcsmbs/tst-mbsnrtowcs.c: New file.
9293
9294 2012-03-29  David S. Miller  <davem@davemloft.net>
9295
9296         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9297         small copies by hand.
9298
9299 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9300
9301         [BZ #13761]
9302         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9303         _nss_compat_initgroups_dyn): Fall back to malloc/free
9304         for large group memberships.
9305
9306 2012-03-28  David S. Miller  <davem@davemloft.net>
9307
9308         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9309         that branches into memcpy.
9310         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9311         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9312         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9313         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9314         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9315         bits.
9316         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9317         implementation too.
9318         * sysdeps/sparc/mempcpy.S: New file.
9319
9320         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9321         the IFUNC routine in the libc case.
9322         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9323
9324         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9325         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9326         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9327         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9328         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9329         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9330         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9331         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9332
9333         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9334         loop to 256 bytes instead of 64 bytes and fix test signedness.
9335
9336         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9337         * sysdeps/sparc/sparc32/Makefile: rather than here...
9338         * sysdeps/sparc/sparc64/Makefile: and here.
9339
9340 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9341
9342         * malloc/mallocbug.c: Avoid warnings about unused variables.
9343
9344 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9345
9346         [BZ #13760]
9347         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9348         in the right place. Discard and retry query if response is
9349         larger than input buffer size.
9350
9351 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9352
9353         [BZ #369]
9354         [BZ #2678]
9355         [BZ #3866]
9356         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9357         x for large integer exponent.
9358         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9359         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9360         sign of result as needed afterwards.
9361         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9362         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9363         result for underflowing pow the same as for overflow.
9364         (__kernel_standard_l): Handle powl overflow and underflow here
9365         rather than calling __kernel_standard.
9366         * math/libm-test.inc (pow_test): Add more tests.
9367
9368         [BZ #3868]
9369         [BZ #13879]
9370         [BZ #13910]
9371         [BZ #13911]
9372         [BZ #13912]
9373         [BZ #13913]
9374         [BZ #13915]
9375         [BZ #13916]
9376         [BZ #13917]
9377         [BZ #13918]
9378         [BZ #13919]
9379         [BZ #13920]
9380         [BZ #13921]
9381         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9382         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9383         (__kernel_standard_l): New function.
9384         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9385         __kernel_standard.
9386         * math/w_acosl.c (__acosl): Likewise.
9387         * math/w_asinl.c (__asinl): Likewise.
9388         * math/w_atan2l.c (__atan2l): Likewise.
9389         * math/w_atanhl.c (__atanhl): Likewise.
9390         * math/w_coshl.c (__coshl): Likewise.
9391         * math/w_exp10l.c (__exp10l): Likewise.
9392         * math/w_exp2l.c (__exp2l): Likewise.
9393         * math/w_fmodl.c (__fmodl): Likewise.
9394         * math/w_hypotl.c (__hypotl): Likewise.
9395         * math/w_j0l.c (__j0l, __y0l): Likewise.
9396         * math/w_j1l.c (__j1l, __y1l): Likewise.
9397         * math/w_jnl.c (__jnl, __ynl): Likewise.
9398         * math/w_lgammal.c (__lgammal): Likewise.
9399         * math/w_log10l.c (__log10l): Likewise.
9400         * math/w_log2l.c (__log2l): Likewise.
9401         * math/w_logl.c (__logl): Likewise.
9402         * math/w_powl.c (__powl): Likewise.
9403         * math/w_remainderl.c (__remainderl): Likewise.
9404         * math/w_scalbl.c (sysv_scalbl): Likewise.
9405         * math/w_sinhl.c (__sinhl): Likewise.
9406         * math/w_sqrtl.c (__sqrtl): Likewise.
9407         * math/w_tgammal.c (__tgammal): Likewise.
9408         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9409         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9410         * math/libm-test.inc (acos_test): Add more tests.
9411         (acosh_test): Likewise.
9412         (asin_test): Likewise.
9413         (atanh_test): Likewise.
9414         (exp_test): Likewise.
9415         (exp10_test): Likewise.
9416         (exp2_test): Likewise.
9417         (expm1_test): Likewise.
9418         (lgamma_test): Likewise.
9419         (log_test): Likewise.
9420         (log10_test): Likewise.
9421         (log1p_test): Likewise.
9422         (log2_test): Likewise.
9423         (pow_test): Do not allow some spurious overflow exceptions.
9424         (sqrt_test): Add more tests.
9425         (tgamma_test): Likewise.
9426         (y0_test): Likewise.
9427         (y1_test): Likewise.
9428         (yn_test): Likewise.
9429
9430 2012-03-27  Anton Blanchard  <anton@samba.org>
9431
9432         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9433         MAP_HUGETLB.
9434         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9435         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9436         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9437
9438 2012-03-27  David S. Miller  <davem@davemloft.net>
9439
9440         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9441
9442         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9443         have-as-vis3 check.
9444
9445 2012-03-27  Andreas Jaeger  <aj@suse.de>
9446
9447         * sysdeps/x86_64/elf/configure.in: Moved to ...
9448         * sysdeps/x86_64/configure.in: ... here.
9449         * sysdeps/x86_64/elf/start.S: Moved to ...
9450         * sysdeps/x86_64/start.S: ... here.
9451         * sysdeps/x86_64/elf/configure: Delete.
9452
9453         * sysdeps/x86_64/configure.in: Merge contents from
9454         sysdeps/i386/configure.in (without i686 check).
9455
9456         * sysdeps/i386/elf/Versions: Merge into ...
9457         * sysdeps/i386/Versions: ... this.
9458         * sysdeps/i386/elf/Versions: Delete file.
9459         * sysdeps/i386/elf/start.S: Moved to ...
9460         * sysdeps/i386/start.S: ...here.
9461         * sysdeps/i386/elf/configure.in: Merge into...
9462         * sysdeps/i386/configure.in: ...here.
9463         * sysdeps/i386/elf/configure.in: Delete file.
9464         * sysdeps/i386/elf/configure: Delete file.
9465
9466         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9467         * debug/backtracesyms.c: ... here.
9468         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9469         * debug/backtracesymsfd.c: ... here.
9470         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9471         * sysdeps/generic/ifunc-sel.h: ... here.
9472
9473         * sysdeps/unix/i386/start.c: Delete file.
9474         * sysdeps/unix/sparc/start.c: Delete file.
9475         * sysdeps/unix/start.c: Delete file.
9476
9477         * sysdeps/sh/elf/configure.in: Moved to ...
9478         * sysdeps/sh/configure.in: ... here.
9479         * sysdeps/sh/elf/start.S: Moved to ...
9480         * sysdeps/sh/start.S: ... here.
9481         * sysdeps/sh/elf/configure: Delete file.
9482
9483         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9484         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9485         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9486         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9487         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9488         * sysdeps/powerpc/powerpc64/start.S: here.
9489         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9490         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9491         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9492         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9493         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9494
9495         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9496         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9497         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9498         * sysdeps/powerpc/powerpc32/start.S: ... here.
9499         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9500         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9501         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9502
9503         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9504         * sysdeps/powerpc/ifunc-sel.h: ... here.
9505         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9506         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9507
9508         * sysdeps/sparc/elf/configure.in: Moved to ...
9509         * sysdeps/sparc/configure.in: ... here.
9510         * sysdeps/sparc/elf/configure: Delete file.
9511         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9512         * sysdeps/sparc/sparc32/start.S: ... here.
9513         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9514         * sysdeps/sparc/sparc64/start.S: ... here.
9515         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9516         * sysdeps/sparc/sparc32/Makefile: ... this.
9517         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9518         * sysdeps/sparc/sparc64/Makefile: ... this.
9519
9520         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9521         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9522         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9523         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9524         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9525         * sysdeps/s390/s390-32/setjmp.S: ... here.
9526         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9527         * sysdeps/s390/s390-32/configure.in: ... here.
9528         * sysdeps/s390/s390-32/elf/configure: Delete file.
9529         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9530         * sysdeps/s390/s390-32/start.S: ... here.
9531
9532         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9533         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9534         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9535         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9536         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9537         * sysdeps/s390/s390-64/setjmp.S: ... here.
9538         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9539         * sysdeps/s390/s390-64/configure.in: ... here
9540         * sysdeps/s390/s390-64/elf/configure: Delete file.
9541         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9542         * sysdeps/s390/s390-64/start.S: ... here.
9543         * sysdeps/s390/s390-64/elf/configure: Delete.
9544
9545         * configure.in: Remove support for elf directories in sysdeps.
9546
9547         * configure: Regenerated.
9548         * sysdeps/i386/configure: Regenerated.
9549         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9550         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9551         * sysdeps/s390/s390-32/configure: Regenerated.
9552         * sysdeps/s390/s390-64/configure: Regenerated.
9553         * sysdeps/sh/configure: Regenerated.
9554         * sysdeps/sparc/configure: Regenerated.
9555         * sysdeps/x86_64/configure: Regenerated.
9556
9557 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9558
9559         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9560
9561         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9562         denormal result into account.
9563
9564 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9565
9566         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9567         Reported by Allan McRae <allan@archlinux.org>.
9568
9569 2012-03-23  Jeff Law  <law@redhat.com>
9570
9571         * nss/getnssent.c (__nss_getent): Fix typo.
9572
9573 2012-03-23  David S. Miller  <davem@davemloft.net>
9574
9575         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9576
9577 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9578
9579         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9580         to pad to uint64_t for each field.
9581         (dl_tls_index): Replace unsigned long with uint64_t.
9582
9583 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9584         Paul Pluzhnikov  <ppluzhnikov@google.com>
9585
9586         [BZ #6528]
9587         * grp/Makefile (otherlibs): Don't set it.
9588         * inet/Makefile (otherlibs): Likewise.
9589         * login/Makefile (otherlibs): Likewise.
9590         * nscd/Makefile (otherlibs): Likewise.
9591         * posix/Makefile (otherlibs): Likewise.
9592         * pwd/Makefile (otherlibs): Likewise.
9593         * rt/Makefile (otherlibs): Likewise.
9594         * sunrpc/Makefile (otherlibs): Likewise.
9595         * nss/Makefile (otherlibs): Likewise.
9596         Add libnss_files to routines and static-only-routines.
9597         ($(objpfx)getent): Remove rule.
9598         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9599         static-only-routines.
9600
9601 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9602
9603         [BZ #13892]
9604         * math/s_cexp.c: Include <float.h>.
9605         (__cexp): Handle exp result overflowing not necessarily
9606         overflowing both real and imaginary parts of result.
9607         * math/s_cexpf.c: Likewise.
9608         * math/s_cexpl.c: Likewise.
9609         * math/libm-test.inc (cexp_test): Add more tests.
9610         * sysdeps/i386/fpu/libm-test-ulps: Update.
9611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9612
9613 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9614
9615         * include/link.h (ELFW): New macro.
9616         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9617         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9618
9619 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9620
9621         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9622         with uint64_t.
9623
9624 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9625
9626         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9627         declaration.
9628         (struct La_x32_retval): Likewise.
9629
9630 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9631
9632         * sysdeps/x86_64/preconfigure.in: New file.
9633         * sysdeps/x86_64/preconfigure: New generated file.
9634
9635 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9636
9637         [BZ #13824]
9638         * math/e_exp2l.c: Include <float.h>.
9639         (__ieee754_exp2l): Handle overflow and underflow cases
9640         separately.  Only pass fractional part of argument to
9641         __ieee754_expl.
9642         * math/libm-test.inc (exp2_test): Add more tests.
9643
9644         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9645         negating x to take absolute value.
9646         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9647         Likewise.
9648         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9649         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9650         Likewise.
9651         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9652         computing low part if x was negated.
9653         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9654
9655 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9656
9657         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9658         la_x32_gnu_pltexit.
9659         (pltexit): Cast int_retval to ptrdiff_t.
9660         * elf/tst-auditmod3b.c: Likewise.
9661         * elf/tst-auditmod4b.c: Likewise.
9662         * elf/tst-auditmod5b.c: Likewise.
9663         * elf/tst-auditmod6b.c: Likewise.
9664         * elf/tst-auditmod6c.c: Likewise.
9665         * elf/tst-auditmod7b.c: Likewise.
9666
9667         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9668         and x32_gnu_pltexit.
9669
9670         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9671         __ELF_NATIVE_CLASS.
9672         (La_x32_regs): New macro.
9673         (La_x32_retval): Likewise.
9674         (la_x32_gnu_pltenter): New function prototype.
9675         (la_x32_gnu_pltexit): Likewise.
9676
9677 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9678
9679         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9680         exponent.
9681
9682         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9683
9684         * configure.in (libc_cv_cc_nofma): Check for option to disable
9685         generation of FMA instructions.
9686         * configure: Regenerate.
9687         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9688         * sysdeps/ieee754/dbl-64/Makefile: New file.
9689         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9690         Remove brandred-fma4.
9691         (CFLAGS-brandred-fma4.c): Remove.
9692         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9693         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9694         define.
9695         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9696         define.
9697
9698 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9699
9700         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9701         LLONG_MAX != LONG_MAX.
9702         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9703         (_fitoa_word): Likewise.
9704         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9705         LLONG_MAX != LONG_MAX.
9706         * stdio-common/_itowa.h: Include <_itoa.h>.
9707         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9708         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9709         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9710         only if not defined.
9711         (_ITOA_WORD_TYPE): Likewise.
9712         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9713         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9714
9715 2012-03-21  David S. Miller  <davem@davemloft.net>
9716
9717         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9718
9719 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9720
9721         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9722         of x86_64 when setting libc_cv_slibdir, libdir and
9723         libc_cv_localedir.
9724         * sysdeps/unix/sysv/linux/configure: Regenerated.
9725
9726 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9727
9728         * manual/lang.texi (Old Varargs): Remove section.
9729         (How Variadic): Update menu.
9730         (va_start): Do not mention varargs.h.
9731
9732 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9733             Joseph Myers  <joseph@codesourcery.com>
9734
9735         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9736         link test.
9737         * configure: Regenerated.
9738
9739 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9740
9741         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9742         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9743         conformtest.pl
9744
9745 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9746
9747         * NOTES: Remove.
9748         * Makefile (files-for-dist): Remove NOTES.
9749         (NOTES): Remove rule.
9750         * README: Don't refer to NOTES.
9751         * manual/creature.texi: Don't include macros.texi.
9752         * manual/intro.texi (creature.texi): Remove comment referring to
9753         NOTES.
9754
9755         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9756         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9757         * configure: Regenerated.
9758         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9759         LIBC_TRY_CC_OPTION.
9760         (libc_cv_as_i686): Likewise.
9761         (libc_cv_cc_avx): Likewise.
9762         (libc_cv_cc_sse2avx): Likewise.
9763         (libc_cv_cc_fma4): Likewise.
9764         (libc_cv_cc_novzeroupper): Likewise.
9765         * sysdeps/i386/configure: Regenerated.
9766
9767         [BZ #13883]
9768         * sysdeps/i386/fpu/s_cexp.S: Remove.
9769         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9770         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9771         * math/libm-test.inc (cexp_test): Add more tests.
9772         * sysdeps/i386/fpu/libm-test-ulps: Update.
9773         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9774
9775 2012-03-21  Allan McRae  <allan@archlinux.org>
9776
9777         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9778
9779 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9780
9781         [BZ #13871]
9782         * math/w_exp2.c: Do not include <float.h>.
9783         (o_threshold, u_threshold): Remove.
9784         (__exp2): Calculate result before checking finiteness and calling
9785         __kernel_standard.
9786         * math/w_exp2f.c: Likewise.
9787         * math/w_exp2l.c: Likewise.
9788         * math/libm-test.inc (exp2_test): Require overflow exception for
9789         1e6 input.
9790
9791         [BZ #3866]
9792         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9793         range of signed 64-bit integers before using fistpll.  Remove
9794         checks for whether integers fit in mantissa bits.
9795         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9796         the range of signed 32-bit integers before using fistpl.  Remove
9797         checks for whether integers fit in mantissa bits.
9798         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9799         (__ieee754_powl): Test for y outside the range of signed 64-bit
9800         integers before using fistpll.  Reduce 64-bit values to 63-bit
9801         ones as needed.
9802         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9803         divide-by-zero is raised for zero to large negative powers.
9804         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9805         (__ieee754_powl): Test for y outside the range of signed 64-bit
9806         integers before using fistpll.  Reduce 64-bit values to 63-bit
9807         ones as needed.
9808         * math/libm-test.inc (pow_test): Add more tests.
9809
9810 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9811
9812         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9813         <stdio-common/_itoa.h>.
9814         * debug/segfault.c: Likewise.
9815         * elf/dl-cache.c: Likewise.
9816         * elf/dl-minimal.c: Likewise.
9817         * elf/dl-misc.c: Likewise.
9818         * elf/dl-sysdep.c: Likewise.
9819         * elf/dl-version.c: Likewise.
9820         * elf/rtld.c: Likewise.
9821         * hurd/hurdsock.c: Likewise.
9822         * hurd/lookup-retry.c: Likewise.
9823         * malloc/malloc.c: Likewise.
9824         * malloc/mtrace.c: Likewise.
9825         * nscd/nscd_getgr_r.c: Likewise.
9826         * nscd/nscd_getpw_r.c: Likewise.
9827         * nscd/nscd_getserv_r.c: Likewise.
9828         * posix/getopt_init.c: Likewise.
9829         * posix/wordexp.c: Likewise.
9830         * stdio-common/_itoa.c: Likewise.
9831         * stdio-common/printf_fphex.c: Likewise.
9832         * stdio-common/vfprintf.c: Likewise.
9833         * string/_strerror.c: Likewise.
9834         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9835         * sysdeps/i386/i686/hp-timing.h: Likewise.
9836         * sysdeps/mach/_strerror.c: Likewise.
9837         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9838         * sysdeps/mach/hurd/sethostid.c: Likewise.
9839         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9840         * sysdeps/mach/xpg-strerror.c: Likewise.
9841         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9842         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9843         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9844         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9845         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9846         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9847         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9848         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9849         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9850         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9851         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9852         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9853         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9854         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9855         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9856         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9857         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9858         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9859         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9860         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9861         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9862
9863         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9864
9865         * stdio-common/_itoa.h: Moved to ...
9866         * sysdeps/generic/_itoa.h: Here.
9867
9868         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9869
9870         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9871         instead of "_itoa.h" and "_itowa.h".
9872         * stdio-common/vfprintf.: Likewise.
9873
9874 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9875
9876         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9877         <bits/wordsize.h>.
9878         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9879         (__signbit): Likwise.
9880         (llrintf): Likwise.
9881         (llrint): Likwise.
9882
9883 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9884
9885         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9886         __WORDSIZE != 64.
9887
9888 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9889
9890         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9891         OVERFLOW_EXCEPTION_OK.
9892         * math/libm-test.inc ("Philosophy"): Update comment about
9893         exception testing.
9894         (OVERFLOW_EXCEPTION): Define.
9895         (OVERFLOW_EXCEPTION_OK): Likewise.
9896         (INVALID_EXCEPTION_OK): Renumber.
9897         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9898         (IGNORE_ZERO_INF_SIGN): Likewise.
9899         (test_exceptions): Handle FE_OVERFLOW.
9900         (exp10_test): Expect overflow exceptions.
9901         (exp2_test): Likewise.
9902         (expm1_test): Likewise.
9903         (nextafter_test): Likewise.
9904         (pow_test): Likewise.
9905         (scalbn_test): Likewise.
9906         (scalbln_test): Likewise.
9907
9908 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9909
9910         * sysdeps/x86_64/bits/atomic.h
9911         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9912         64bit integer.
9913         (atomic_exchange_acq): Likewise.
9914         (__arch_exchange_and_add_body): Likewise.
9915         (__arch_add_body): Likewise.
9916         (atomic_add_negative): Likewise.
9917         (atomic_add_zero): Likewise.
9918
9919 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9920
9921         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9922         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9923
9924 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9925
9926         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9927         Check __x86_64__ instead of __WORDSIZE.
9928
9929 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9930
9931         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9932
9933 2012-03-19  David S. Miller  <davem@davemloft.net>
9934
9935         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9936
9937         * sysdeps/sparc/fpu/fenv_private.h: New file.
9938         * sysdeps/sparc/fpu/math_private.h: Use it.
9939         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9940         Remove.
9941         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9942         (libc_feholdexcept_setroundl): Remove.
9943         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9944         Remove.
9945         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9946         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9947
9948 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9949
9950         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9951         int64_t instead of long int.
9952         (INSERT_WORDS64): Likwise.
9953
9954 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9955
9956         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9957         _Unwind_GetCFA return to _Unwind_Ptr first.
9958
9959 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9960
9961         [BZ #13629]
9962         * math/s_clog.c: Include <float.h>.
9963         (__clog): Scale large or subnormal inputs.
9964         * math/s_clogf.c: Likewise.
9965         * math/s_clogl.c: Likewise.
9966         * math/s_clog10.c: Include <float.h>.
9967         (M_LOG10_2): Define.
9968         (__clog10): Scale large or subnormal inputs.
9969         * math/s_clog10f.c: Likewise.
9970         * math/s_clog10l.c: Likewise.
9971         * math/libm-test.inc (clog_test): Add more tests.
9972         (clog10_test): Likewise.
9973         * sysdeps/i386/fpu/libm-test-ulps: Update.
9974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9975
9976         [BZ #11451]
9977         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9978         x and y.
9979         * math/libm-test.inc (atan2_test): Add another test.
9980
9981         * Makerules (common-objdir-compile): Remove.
9982         * sysdeps/unix/Makefile (config-generated): Do not add
9983         $(unix-generated) to variable.
9984         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9985         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9986         Remove rule.
9987         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9988         Likewise.
9989         [generic bits/local_lim.h] (before-compile): Do not append to
9990         variable.
9991         [generic bits/local_lim.h] (common-generated): Likewise.
9992         [generic sys/param.h] (before-compile): Do not append to variable.
9993         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9994         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9995         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9996         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9997         include.
9998         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9999         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10000         [generic sys/param.h] ($(addprefix
10001         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10002         [generic sys/param.h] (common-generated): Do not append to
10003         variable.
10004         [generic sys/param.h] (sysdep_headers): Likewise.
10005         [generic bits/errno.h] (before-compile): Do not append to
10006         variable.
10007         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10008         rule.
10009         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10010         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10011         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10012         [generic bits/errno.h] (common-generated): Do not append to
10013         variable.
10014         [generic bits/ioctls.h] (before-compile): Do not append to
10015         variable.
10016         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10017         rule.
10018         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10019         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10020         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10021         rule.
10022         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10023         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10024         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10025         [generic bits/ioctls.h] (common-generated): Do not append to
10026         variable.
10027         [generic sys/syscall.h] (syscall.h): Remove variable.
10028         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10029         rule.
10030         [generic sys/syscall.h] (before-compile): Do not append to
10031         variable.
10032         [generic sys/syscall.h] (common-generated): Likewise.
10033         * sysdeps/unix/errnos-tmpl.c: Remove file.
10034         * sysdeps/unix/errnos.awk: Likewise.
10035         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10036         * sysdeps/unix/ioctls.awk: Likewise.
10037         * sysdeps/unix/mk-local_lim.c: Likewise.
10038         * sysdeps/unix/snarf-ioctls: Likewise.
10039
10040 2012-03-19  Richard Henderson  <rth@twiddle.net>
10041
10042         * sysdeps/i386/fpu/fenv_private.h: New file.
10043         * sysdeps/i386/fpu/math_private.h: Use it.
10044         (math_opt_barrier, math_force_eval): Remove.
10045         (libc_feholdexcept_setround_53bit): Remove.
10046         (libc_feupdateenv_53bit): Remove.
10047         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10048         (math_opt_barrier, math_force_eval): Remove.
10049         (libc_feholdexcept): Remove.
10050         (libc_feholdexcept_setround): Remove.
10051         (libc_fetestexcept, libc_fesetenv): Remove.
10052         (libc_feupdateenv_test): Remove.
10053         (libc_feupdateenv, libc_feholdsetround): Remove.
10054         (libc_feresetround): Remove.
10055
10056         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10057         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10058
10059         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10060         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10061         (libc_feupdateenv_testl): New.
10062         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10063         (libc_feupdateenv_testf): New.
10064         (libc_feupdateenv): Use libc_feupdateenv_test.
10065         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10066         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10067
10068         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10069         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10070         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10071         (libc_feresetround_noex): New.
10072         (libc_feresetround_noexf): New.
10073         (libc_feresetround_noexl): New.
10074         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10075         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10076         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10077         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10078         SET_RESTORE_ROUND.
10079         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10080         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10081         (__cos): Likewise.
10082         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10083         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10084         SET_RESTORE_ROUND_NOEX.
10085         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10086         SET_RESTORE_ROUND_NOEXF.
10087         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10088         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10089         (libc_feholdsetroundf): New.
10090         (libc_feresetround, libc_feresetroundf): New.
10091
10092         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10093         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10094         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10095
10096         * sysdeps/generic/math_private.h: Include <fenv.h>.
10097         (default_libc_feholdexcept): New.
10098         (default_libc_feholdexcept_setround): New.
10099         (default_libc_fesetenv, default_libc_feupdateenv): New.
10100         (libc_feholdexcept): Only define if undefined.
10101         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10102         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10103         (libc_feholdexcept_setroundl): Likewise.
10104         (libc_feholdexcept_setround_53bit): Likewise.
10105         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10106         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10107         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10108         (libc_feupdateenv_53bit): Likewise.
10109         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10110         (libc_feholdexcept): Convert from macro to inline function.
10111         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10112         (libc_fesetenv, libc_feupdateenv): Likewise.
10113
10114         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10115         not previously defined.
10116         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10117         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10118         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10119         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10120         * sysdeps/ieee754/flt-32/math_private.h: New file.
10121         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10122         math_private.h below SET_FLOAT_WORD.
10123         (__isnan, __isinf_ns, __finite): Remove.
10124         (__isnanf, __isinf_nsf, __finitef): Remove.
10125
10126 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10127
10128         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10129
10130 2012-03-17  David S. Miller  <davem@davemloft.net>
10131
10132         [BZ #6471]
10133         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10134         for 2.16.
10135
10136 2012-03-16  David S. Miller  <davem@davemloft.net>
10137
10138         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10139         warnings.
10140
10141         [BZ #6471]
10142         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10143         properly.
10144         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10145         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10146         sysdep_routines when subdir is sysvipc.
10147         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10148         __getshmlba helper.
10149
10150         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10151
10152 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10153
10154         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10155         [__LP64__].
10156
10157 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10158
10159         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10160         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10161         (__lround): Renamed to ...
10162         (__llround): This.  Replace long int with long long int.
10163         Define lround functions as aliases of llround functions.
10164         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10165
10166 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10167
10168         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10169         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10170         adresses to uintptr_t.  Replace "long int" and "unsigned long
10171         int" with "greg_t" on va_arg.
10172
10173 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10174
10175         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10176         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10177
10178         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10179         Move e_machine check before EI_CLASS check.  Handle x32
10180         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10181         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10182         SKIP_EM_IA_64 and include
10183         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10184
10185         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10186         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10187         (add_system_dir): New macro.
10188
10189         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10190         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10191
10192 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10193
10194         [BZ #2551]
10195         [BZ #2552]
10196         [BZ #2553]
10197         [BZ #2554]
10198         [BZ #2562]
10199         [BZ #2563]
10200         [BZ #2565]
10201         [BZ #2566]
10202         [BZ #2576]
10203         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10204         (y0): Likewise.
10205         * math/w_j0f.c (j0f): Likewise.
10206         (y0f): Likewise.
10207         * math/w_j0l.c (__j0l): Likewise.
10208         (__y0l): Likewise.
10209         * math/w_j1.c (j1): Likewise.
10210         (y1): Likewise.
10211         * math/w_j1f.c (j1f): Likewise.
10212         (y1f): Likewise.
10213         * math/w_j1l.c (__j1l): Likewise.
10214         (__y1l): Likewise.
10215         * math/w_jn.c (jn): Likewise.
10216         (yn): Likewise.
10217         * math/w_jnf.c (jnf): Likewise.
10218         (ynf): Likewise.
10219         * math/w_jnl.c (__jnl): Likewise.
10220         (__ynl): Likewise.
10221         * math/libm-test.inc (j0_test): Add more tests.
10222         (j1_test): Likewise.
10223         (jn_test): Likewise.  Add trailing semicolon to existing test.
10224         (y0_test): Likewise.
10225         (y1_test): Likewise.
10226         * sysdeps/i386/fpu/libm-test-ulps: Update.
10227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10228
10229         [BZ #13851]
10230         [BZ #13854]
10231         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10232         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10233         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10234         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10235         (__tanl): Set errno for infinite argument.
10236         * sysdeps/i386/fpu/mptan.c: Remove.
10237         * sysdeps/i386/fpu/s_tan.S: Likewise.
10238         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10239         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10240         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10241         * math/libm-test.inc (tan_test): Add more tests and enable more
10242         tests for double and long double.
10243         * sysdeps/i386/fpu/libm-test-ulps: Update.
10244         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10245
10246 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10247
10248         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10249         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10250
10251 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10252
10253         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10254         * configure.in: Use it for both main tree and add-ons.
10255         * configure: Regenerated.
10256
10257 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10258
10259         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10260
10261 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10262
10263         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10264         in comment.
10265
10266         [BZ #13851]
10267         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10268         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10269         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10270         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10271         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10272         infinite argument.
10273         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10274         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10275         != 0 for prec == 2.
10276         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10277         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10278         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10279         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10280         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10281         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10282         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10283         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10284         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10285         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10286         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10287         * math/libm-test.inc (cos_test): Add more tests and enable more
10288         tests for long double.
10289         (sin_test): Likewise.
10290         (sincos_test): Likewise.
10291         * sysdeps/i386/fpu/libm-test-ulps: Update.
10292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10293
10294 2012-03-16  David S. Miller  <davem@davemloft.net>
10295
10296         * sysdeps/sparc/fpu/math_private.h: New file.
10297
10298 2012-03-15  David S. Miller  <davem@davemloft.net>
10299
10300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10301         file.
10302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10304         file.
10305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10306         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10307         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10308         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10309         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10310         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10311         sysdep routines.
10312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10313
10314         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10315         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10316
10317         * sysdeps/sparc/sparc-ifunc.h: New file.
10318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10319         sparc-ifunc.h
10320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10322         Likewise.
10323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10324         Likewise.
10325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10329         Likewise.
10330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10335         Likewise.
10336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10337         Likewise.
10338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10342         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10343         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10344         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10345         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10346         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10347         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10348         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10349         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10350         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10351         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10352         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10353         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10354         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10355         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10356         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10357         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10358         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10359         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10360         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10361         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10362
10363 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10364
10365         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10366         scaling.
10367         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10368
10369 2012-03-15  Andreas Jaeger  <aj@suse.de>
10370
10371         [BZ #13852]
10372         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10373         ieee754/flt-32 implementation for sin, cos and sincos.
10374         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10375         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10376         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10377         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10378         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10379         ieee754/flt-32 implementation for tan.
10380
10381         * math/libm-test.inc (cos_test): Enable some large input tests for
10382         float as well
10383         (sin_test): Likewise.
10384         (sincos_test): Likewise.
10385         (tan_test): Add tests for large input.
10386
10387         * sysdeps/i386/fpu/libm-test-ulps: Update.
10388
10389 2012-03-15  Andreas Jaeger  <aj@suse.de>
10390
10391         [BZ #13658]
10392         * math/libm-test.inc (cos_test): Add more test cases.
10393         (sin_test): Likewise.
10394         (sincos_test): Likewise.
10395
10396 2012-03-15  Andreas Jaeger  <aj@suse.de>
10397
10398         [BZ #13837]
10399         * math/libm-test.inc (cos_test): Add a test case for large input
10400         value.
10401         (sin_test): Likewise.
10402         (sincos_test): Likewise.
10403
10404 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10405         Joseph Myers  <joseph@codesourcery.com>
10406
10407         [BZ #13658]
10408         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10409         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10410         * sysdeps/i386/fpu/branred.c: Likewise.
10411         * sysdeps/i386/fpu/dosincos.c: Likewise.
10412         * sysdeps/i386/fpu/mpa.c: Likewise.
10413         * sysdeps/i386/fpu/s_cos.S: Likewise.
10414         * sysdeps/i386/fpu/s_sin.S: Likewise.
10415         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10416         * sysdeps/i386/fpu/sincos32.c: Likewise.
10417
10418         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10419         Define.
10420         (libc_feupdateenv_53bit): Define.
10421         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10422         Define.
10423         (libc_feupdateenv_53bit): Define.
10424
10425         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10426         53 bit (without extend i386 double precision).
10427
10428         * math/libm-test.inc (sincos_test): Add tests for large input.
10429         (sin): Likewise.
10430         (cos): Likewise.
10431
10432         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10433
10434 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10435
10436         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10437
10438 2012-03-15  David S. Miller  <davem@davemloft.net>
10439
10440         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10441         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10442         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10443         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10444         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10445         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10446         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10447         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10448         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10449         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10450         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10451         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10452         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10453         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10454         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10456         file.
10457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10459         file.
10460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10462         file.
10463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10465         file.
10466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10467         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10468         fmin/fmax sysdep routines.
10469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10470
10471 2012-03-14  David S. Miller  <davem@davemloft.net>
10472
10473         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10474         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10475         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10476         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10477         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10478         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10479         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10480         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10481         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10482         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10483         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10484         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10485         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10486         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10487         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10488         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10489         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10490         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10491         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10492         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10493         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10494         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10495         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10496         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10497         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10498         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10499         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10500         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10501         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10502         routines.
10503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10504         file.
10505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10507         file.
10508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10510         file.
10511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10513         file.
10514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10516         file.
10517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10519         file.
10520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10521         file.
10522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10523         file.
10524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10525         file.
10526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10527         New file.
10528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10529         file.
10530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10531         file.
10532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10534         file.
10535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10537         file.
10538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10540         file.
10541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10543         VIS3 routines.
10544
10545         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10546         New file.
10547
10548         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10549
10550         * sysdeps/sparc/configure.in: New file.
10551         * sysdeps/sparc/configure: Generate.
10552         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10553         * configure: Regenerate.
10554         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10555         * config.make.in (have-as-vis3): New.
10556         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10557         available use -Av9d instead of -Av9a.
10558         * sysdeps/sparc/sparc64/Makefile: Likewise.
10559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10561         New file.
10562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10563         file.
10564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10565         New file.
10566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10567         file.
10568         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10569         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10570         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10571         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10572         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10573
10574         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10575         fzeros/fnegs to load 0x80000000 into a float register instead of
10576         using the stack.
10577         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10578
10579 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10580
10581         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10582         bits/syscall.h.
10583         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10584         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10585         ($(inst_includedir)/bits/syscall.h): Remove rule.
10586         ($(objpfx)bits/syscall.d): Include instead of
10587         $(objpfx)syscall-list.d.
10588         (generated): Change syscall-list.h and syscall-list.d to
10589         bits/syscall.h and bits/syscall.d.
10590
10591 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10592
10593         [BZ #13846]
10594         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10595
10596 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10597
10598         [BZ #13841]
10599         * math/s_csqrt.c: Include <float.h>.
10600         (__csqrt): Scale large or subnormal inputs.
10601         * math/s_csqrtf.c: Likewise.
10602         * math/s_csqrtl.c: Likewise.
10603         * math/libm-test.inc (csqrt_test): Add more tests.
10604         * sysdeps/i386/fpu/libm-test-ulps: Update.
10605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10606
10607         [BZ #13840]
10608         * math/libm-test.inc (hypot_test): Add more tests.
10609
10610 2012-03-13  David S. Miller  <davem@davemloft.net>
10611
10612         [BZ #13840]
10613         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10614         double-precision for the calculation instead of scaling.
10615
10616 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10617
10618         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10619         manipulate bits before adding and subtracting TWO52[sx].
10620         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10621         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10622         Likewise.
10623         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10624
10625 2012-03-13  David S. Miller  <davem@davemloft.net>
10626
10627         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10628         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10629         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10630         rtld-global-offsets.h
10631         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10632
10633         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10634         large parameters.
10635
10636         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10637
10638         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10639         'err' in the ifdef scope in which it is actually used.
10640
10641         * nss/nss_db/db-init.c: Include string.h
10642
10643 2012-03-12  David S. Miller  <davem@davemloft.net>
10644
10645         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10646         masking out of the most significant byte of random value used.
10647         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10648         Fix coding style in previous change.
10649
10650         * sysdeps/unix/sysv/linux/kernel-features.h
10651         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10652         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10653         expression.
10654         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10655         later.
10656
10657 2012-03-11  David S. Miller  <davem@davemloft.net>
10658
10659         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10660         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10661         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10662         for 'resultvar' otherwise things get truncated on 64-bit.
10663
10664         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10665         Fix masking out of the most significant byte of random value used.
10666
10667         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10668
10669 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10670
10671         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10672
10673 2012-03-09  David S. Miller  <davem@davemloft.net>
10674
10675         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10676         variables with appropriate CPP guards.
10677         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10678         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10679         on resulting framesize and the management of the outregs buffer for pltexit.
10680         Preserve floating point return values across _dl_call_pltexit call.
10681         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10682         framesize and the management of the outregs buffer for pltexit.
10683         Preserve floating point return values across _dl_call_pltexit
10684         call.
10685         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10686         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10687         (print_exit): Fix format string for return register value.
10688
10689 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10690
10691         * sunrpc/Makefile (others): Add rpcgen.
10692         ($(objpfx)rpcgen): Remove special build rule and dependency on
10693         libc.
10694         * sunrpc/rpcgen.c: New file.
10695
10696 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10697
10698         [BZ #13673]
10699         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10700         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10701         * sysdeps/i386/crti.S: Likewise.
10702         * sysdeps/i386/crtn.S: Likewise.
10703         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10704         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10705         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10706         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10707         * sysdeps/sh/crti.S: Likewise.
10708         * sysdeps/sh/crtn.S: Likewise.
10709         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10710
10711         [BZ #13673]
10712         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10713         with URL.
10714         * locale/programs/locfile-kw.gperf: Likewise.
10715         * locale/programs/charmap-kw.h: Regenerated.
10716         * locale/programs/locfile-kw.h: Likewise.
10717
10718         [BZ #13673]
10719         * intl/plural.y: Replace FSF snail mail address with URL.
10720         * intl/plural.c: Regenerated.
10721
10722 2012-03-09  Richard Henderson  <rth@twiddle.net>
10723
10724         * include/math_private.h: Remove file.
10725         * math/math_private.h: Move file ...
10726         * sysdeps/generic/math_private.h: ... here.
10727
10728         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10729         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10730         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10731
10732         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10733         and <math_private.h>.
10734         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10735         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10736         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10737         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10738         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10739         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10740         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10741         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10742         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10743         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10744         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10745         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10746         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10747         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10748         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10749         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10750         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10751         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10752         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10753         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10754         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10755         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10756         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10757         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10758         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10759         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10760         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10761         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10762         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10763         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10764         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10765         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10766         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10767         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10768         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10769         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10770         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10771         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10772         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10773         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10774         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10775         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10776         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10777         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10778         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10779         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10780         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10781         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10782         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10783         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10784         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10785         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10786         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10787         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10788         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10789         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10790         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10791         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10792         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10793         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10794         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10795         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10796         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10797         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10798         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10799         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10800         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10801         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10802         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10803         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10804         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10805         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10806         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10807         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10808         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10809         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10810         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10811         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10812         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10813         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10814         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10815         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10816         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10817         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10818         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10819         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10820         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10821         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10822         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10823         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10824         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10825         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10826         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10827         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10828         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10829         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10830         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10831         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10832         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10833         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10834         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10835         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10836         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10837         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10838         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10839         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10840         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10841         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10842         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10843         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10844         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10845         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10846         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10847         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10848         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10849         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10850         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10851         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10852         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10853         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10854         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10855         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10856         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10857         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10858         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10859         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10860         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10861         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10862         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10863         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10864         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10865         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10866         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10867         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10868         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10869         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10870         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10871         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10872         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10873         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10874         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10875         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10876         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10877         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10878         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10879         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10880         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10881         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10882         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10883         * sysdeps/ieee754/k_standard.c: Likewise.
10884         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10885         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10886         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10887         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10888         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10889         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10890         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10891         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10892         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10893         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10894         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10895         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10896         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10897         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10898         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10899         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10900         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10901         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10902         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10903         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10904         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10905         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10906         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10907         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10908         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10909         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10910         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10911         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10912         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10913         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10914         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10915         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10916         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10917         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10918         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10919         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10920         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10921         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10922         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10923         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10924         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10925         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10926         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10927         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10928         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10929         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10930         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10931         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10932         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10933         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10934         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10935         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10936         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10937         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10938         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10939         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10940         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10941         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10942         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10943         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10944         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10945         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10946         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10947         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10948         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10949         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10950         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10951         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10952         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10953         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10954         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10955         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10956         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10957         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10958         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10959         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10960         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10961         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10962         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10963         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10964         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10965         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10966         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10967         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10968         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10969         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10970         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10971         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10972         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10973         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10974         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10975         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10976         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10977         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10978         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10979         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10980         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10981         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10982         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10983         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10984         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10985         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10986         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10987         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10988         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10989         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10990         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10991         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10992         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10993         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10994         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10995         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10996         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10997         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10998         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10999         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11000         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11001         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11002         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11003         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11004         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11005         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11006         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11007         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11008         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11009         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11010         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11011         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11012         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11013         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11014         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11015         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11016         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11017         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11018         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11019         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11020         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11021         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11022         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11023         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11024         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11025         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11026         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11027         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11028         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11029         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11030         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11031         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11032         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11033         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11034         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11035         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11036         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11037         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11038         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11039         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11040         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11041         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11042         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11043         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11044         * sysdeps/ieee754/s_lib_version.c: Likewise.
11045         * sysdeps/ieee754/s_matherr.c: Likewise.
11046         * sysdeps/ieee754/s_signgam.c: Likewise.
11047         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11048         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11049         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11050         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11051         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11052         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11053         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11054         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11055         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11056         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11057         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11058         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11059         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11060         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11061         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11062         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11063         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11064         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11065         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11066         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11067         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11068
11069 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11070
11071         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11072         * sunrpc/rpc_main.c: Likewise.
11073         * sunrpc/rpc_svcout.c: Likewise.
11074
11075 2012-03-09  David S. Miller  <davem@davemloft.net>
11076
11077         * include/math_private.h: New file.
11078
11079 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11080
11081         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11082         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11083         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11084         from <bits/socket_type.h>.
11085         (enum __socket_type): Don't define here.
11086         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11087         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11088         bits/socket_type.h.
11089
11090         [BZ #13566]
11091         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11092         checking __USE_GNU.
11093
11094         * Makerules ($(inst_includedir)/%.h): New rule.
11095         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11096         (install-others): Remove variable setting.
11097         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11098
11099 2012-03-08  Richard Henderson  <rth@twiddle.net>
11100
11101         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11102         from macro to inline function; merge with the
11103         !__LIBC_INTERNAL_MATH_INLINES version.
11104         (__ieee754_sqrtf): Likewise.
11105
11106         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11107         to inline function.
11108         (__rintf, __floor, __floorf): Likewise.
11109
11110         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11111         macro to inline function.
11112         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11113
11114         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11115         not <math/math_private.h>.
11116
11117 2012-03-08  David S. Miller  <davem@davemloft.net>
11118
11119         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11120         copyright year.
11121         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11122
11123 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11124
11125         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11126         normalization.
11127         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11128         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11129
11130 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11131
11132         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11133         be defined individually, they must be defined as a block.  Define
11134         S for printing a string instead of hidint the different by using a
11135         macro for adding the 'l'.
11136         * stdio-common/tst-fphex-wide.c: Adjust.
11137
11138 2012-03-07  Marek Polacek  <polacek@redhat.com>
11139
11140         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11141
11142 2012-03-08  Marek Polacek  <polacek@redhat.com>
11143
11144         [BZ #13806]
11145         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11146         * stdio-common/tst-fphex.c: Define a few macros to make the
11147         test reusable.  Use them.
11148         * stdio-common/tst-fphex-wide.c: New file.
11149
11150 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11151
11152         [BZ #6911]
11153         * manual/macros.texi (gnusystems): New macro.
11154         (nongnusystems): Likewise.
11155         (gnulinuxhurdsystems): Likewise.
11156         (gnuhurdsystems): Likewise..
11157         (gnulinuxsystems): Likewise.
11158         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11159         variants of the GNU system, not "GNU system".
11160         * manual/conf.texi: Likewise.
11161         * manual/errno.texi: Likewise.  Update example of errno macro
11162         expansion.
11163         * manual/filesys.texi: Likewise.
11164         (getumask): Document as specific to GNU/Hurd.
11165         * manual/install.texi: Likewise.  Reword some references to
11166         GNU/Linux.
11167         * manual/intro.texi: Likewise.
11168         * manual/io.texi: Likewise.
11169         (File Name Portability): Detail which constraints are inapplicable
11170         to all GNU systems and which are only inapplicable to GNU/Hurd.
11171         * manual/job.texi: Likewise.
11172         * manual/llio.texi: Likewise.
11173         (O_NOCTTY): Document as present on GNU/Linux.
11174         * manual/maint.texi: Likewise.
11175         * manual/memory.texi: Likewise.
11176         * manual/pattern.texi: Likewise.
11177         * manual/pipe.texi: Likewise.
11178         * manual/process.texi: Likewise.
11179         * manual/resource.texi: Likewise.
11180         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11181         child on GNU/Hurd.
11182         * manual/setjmp.texi: Likewise.
11183         * manual/signal.texi: Likewise.
11184         * manual/startup.texi: Likewise.
11185         * manual/stdio.texi: Likewise.
11186         * manual/terminal.texi: Likewise.
11187         (ONLCR): Document as POSIX.
11188         (OXTABS): Document availability on GNU/Linux as XTABS.
11189         (ONOEOT): Document availability separately from other bits.
11190         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11191         * manual/time.texi: Likewise.
11192         * manual/users.texi: Likewise.
11193         * INSTALL: Regenerated.
11194         * sysdeps/gnu/errlist.c: Regenerated.
11195
11196         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11197         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11198         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11199         puts.
11200         * configure: Regenerated.
11201
11202 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11203
11204         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11205         default includes instead of AC_HEADER_CHECK.
11206         * sysdeps/i386/configure: Regenerated.
11207
11208         [BZ #10716]
11209         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11210         * math/s_cacoshf.c (__cacoshf): Likewise.
11211         * math/s_cacoshl.c (__cacoshl): Likewise.
11212         * math/s_casinh.c (__casinh): Set signs of result from argument.
11213         * math/s_casinhf.c (__casinhf): Likewise.
11214         * math/s_casinhl.c (__casinhl): Likewise.
11215         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11216         (casinh_test): Add more tests.
11217         * sysdeps/i386/fpu/libm-test-ulps: Update.
11218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11219
11220 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11221
11222         * po/zh_TW.po: Update from translation team.
11223
11224         * login/Makefile (distribute): Remove variable.
11225         * catgets/Makefile: Likewise.
11226         * mach/Makefile: Likewise.
11227         * malloc/Makefile: Likewise.
11228         * misc/Makefile: Likewise.
11229         * iconv/Makefile: Likewise.
11230         * nscd/Makefile: Likewise.
11231         * hurd/Makefile: Likewise.
11232         * manual/Makefile: Likewise.
11233         * locale/Makefile: Likewise.
11234         * intl/Makefile: Likewise.
11235         * conform/Makefile: Likewise.
11236         * nss/Makefile: Likewise.
11237         * time/Makefile: Likewise.
11238         * soft-fp/Makefile: Likewise.
11239         * dirent/Makefile: Likewise.
11240         * gmon/Makefile: Likewise.
11241         * po/Makefile: Likewise.
11242         * rt/Makefile: Likewise.
11243         * socket/Makefile: Likewise.
11244         * math/Makefile: Likewise.
11245         * signal/Makefile: Likewise.
11246         * debug/Makefile: Likewise.
11247         * elf/Makefile: Likewise.
11248         * timezone/Makefile: Likewise.
11249         * stdlib/Makefile: Likewise.
11250         * iconvdata/Makefile: Likewise.
11251         * sunrpc/Makefile: Likewise.
11252         * io/Makefile: Likewise.
11253         * argp/Makefile: Likewise.
11254         * inet/Makefile: Likewise.
11255         * hesiod/Makefile: Likewise.
11256         * grp/Makefile: Likewise.
11257         * csu/Makefile: Likewise.
11258         * wctype/Makefile: Likewise.
11259         * crypt/Makefile: Likewise.
11260         * libio/Makefile: Likewise.
11261         * string/Makefile: Likewise.
11262         * nis/Makefile: Likewise.
11263         * resolv/Makefile: Likewise.
11264         * stdio-common/Makefile: Likewise.
11265         * wcsmbs/Makefile: Likewise.
11266         * dlfcn/Makefile: Likewise.
11267         * posix/Makefile: Likewise.
11268
11269         [BZ #6959]
11270         * timezone/Makefile: Don't install timezone files, just the programs
11271         and scripts.
11272
11273 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11274
11275         * nss/databases.def: Add missing gshadow entry.
11276
11277         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11278
11279 2012-03-06  Marek Polacek  <polacek@redhat.com>
11280
11281         [BZ #13726]
11282         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11283         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11284         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11285         * stdio-common/tst-long-dbl-fphex.c: New file.
11286
11287 2012-03-06  David S. Miller  <davem@davemloft.net>
11288
11289         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11290         (set_obp_int): New function.
11291         (get_obp_int): New function.
11292         (__get_clockfreq_via_dev_openprom): Likewise.
11293         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11294         Avoid unused variable warnings on 'val' and use builtin_expect.
11295         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11296         __builtin_expect.
11297         (INLINE_CLONE_SYSCALL): Likewise.
11298
11299 2012-03-05  David S. Miller  <davem@davemloft.net>
11300
11301         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11302
11303 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11304
11305         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11306
11307         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11308         only for |x| >= 40.
11309         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11310
11311 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11312
11313         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11314         Replace gettimeofday with __vdso_gettimeofday.
11315
11316         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11317         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11318         __vdso_clock_gettime and __vdso_getcpu.
11319
11320         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11321         time with __vdso_time.
11322
11323 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11324
11325         * manual/lang.texi (size_t): Note types to which size_t may be
11326         equivalent with the GNU C Library, but do not describe when
11327         differences between them are significant.
11328
11329 2012-03-05  Andreas Jaeger  <aj@suse.de>
11330
11331         * sysdeps/i386/fpu/libm-test-ulps: Update.
11332
11333 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11334
11335         [BZ #3976]
11336         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11337         (__ieee754_pow): Save and restore rounding mode and use
11338         round-to-nearest for main computations.
11339         * math/libm-test.inc (pow_test_tonearest): New function.
11340         (pow_test_towardzero): Likewise.
11341         (pow_test_downward): Likewise.
11342         (pow_test_upward): Likewise.
11343         (main): Call the new functions.
11344         * sysdeps/i386/fpu/libm-test-ulps: Update.
11345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11346
11347         [BZ #3976]
11348         * math/libm-test.inc (cosh_test_tonearest): New function.
11349         (cosh_test_towardzero): Likewise.
11350         (cosh_test_downward): Likewise.
11351         (cosh_test_upward): Likewise.
11352         (sinh_test_tonearest): Likewise.
11353         (sinh_test_towardzero): Likewise.
11354         (sinh_test_downward): Likewise.
11355         (sinh_test_upward): Likewise.
11356         (main): Call the new functions.
11357         * sysdeps/i386/fpu/libm-test-ulps: Update.
11358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11359
11360 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11361
11362         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11363         default stack guard is set in last bytes.
11364         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11365
11366 2012-03-05  Kees Cook  <keescook@chromium.org>
11367
11368         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11369
11370         [BZ #13656]
11371         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11372         possibly allocate from heap instead of stack.
11373         * stdio-common/bug-vfprintf-nargs.c: New file.
11374         * stdio-common/Makefile (tests): Add nargs overflow test.
11375
11376 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11377
11378         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11379
11380 2012-03-03  Marek Polacek  <polacek@redhat.com>
11381
11382         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11383         * math/math_private.h: Likewise.
11384         * stdlib/tst-strtod.c: Likewise.
11385         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11386         * sysdeps/x86_64/bits/atomic.h: Likewise.
11387
11388 2012-03-02  David S. Miller  <davem@davemloft.net>
11389
11390         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11391         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11392         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11393         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11394         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11395         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11396         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11397         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11398
11399 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11400
11401         [BZ #13792]
11402         * manual/examples/README: New file, says the example source files
11403         can be used under GPL>=2.
11404         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11405         line containing just "*/".
11406         * manual/examples/add.c: Add copyright header (GPL>=2).
11407         * manual/examples/argp-ex1.c: Likewise.
11408         * manual/examples/argp-ex2.c: Likewise.
11409         * manual/examples/argp-ex3.c: Likewise.
11410         * manual/examples/argp-ex4.c: Likewise.
11411         * manual/examples/atexit.c: Likewise.
11412         * manual/examples/db.c: Likewise.
11413         * manual/examples/dir.c: Likewise.
11414         * manual/examples/dir2.c: Likewise.
11415         * manual/examples/execinfo.c: Likewise.
11416         * manual/examples/filecli.c: Likewise.
11417         * manual/examples/filesrv.c: Likewise.
11418         * manual/examples/fmtmsgexpl.c: Likewise.
11419         * manual/examples/genpass.c: Likewise.
11420         * manual/examples/inetcli.c: Likewise.
11421         * manual/examples/inetsrv.c: Likewise.
11422         * manual/examples/isockad.c: Likewise.
11423         * manual/examples/longopt.c: Likewise.
11424         * manual/examples/memopen.c: Likewise.
11425         * manual/examples/memstrm.c: Likewise.
11426         * manual/examples/mkfsock.c: Likewise.
11427         * manual/examples/mkisock.c: Likewise.
11428         * manual/examples/mygetpass.c: Likewise.
11429         * manual/examples/pipe.c: Likewise.
11430         * manual/examples/popen.c: Likewise.
11431         * manual/examples/rprintf.c: Likewise.
11432         * manual/examples/search.c: Likewise.
11433         * manual/examples/select.c: Likewise.
11434         * manual/examples/setjmp.c: Likewise.
11435         * manual/examples/sigh1.c: Likewise.
11436         * manual/examples/sigusr.c: Likewise.
11437         * manual/examples/stpcpy.c: Likewise.
11438         * manual/examples/strdupa.c: Likewise.
11439         * manual/examples/strftim.c: Likewise.
11440         * manual/examples/strncat.c: Likewise.
11441         * manual/examples/subopt.c: Likewise.
11442         * manual/examples/swapcontext.c: Likewise.
11443         * manual/examples/termios.c: Likewise.
11444         * manual/examples/testopt.c: Likewise.
11445         * manual/examples/testpass.c: Likewise.
11446         * manual/examples/timeval_subtract.c: Likewise.
11447
11448         [BZ #13792]
11449         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11450         function to ...
11451         * manual/timeval_subtract.c.texi: ... here, new file.
11452
11453 2012-03-02  David S. Miller  <davem@davemloft.net>
11454
11455         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11456
11457 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11458
11459         [BZ #3976]
11460         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11461         (__sin): Save and restore rounding mode and use round-to-nearest
11462         for all computations.
11463         (__cos): Save and restore rounding mode and use round-to-nearest
11464         for all computations.
11465         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11466         <fenv.h>.
11467         (tan): Save and restore rounding mode and use round-to-nearest for
11468         all computations.
11469         * math/libm-test.inc (cos_test_tonearest): New function.
11470         (cos_test_towardzero): Likewise.
11471         (cos_test_downward): Likewise.
11472         (cos_test_upward): Likewise.
11473         (sin_test_tonearest): Likewise.
11474         (sin_test_towardzero): Likewise.
11475         (sin_test_downward): Likewise.
11476         (sin_test_upward): Likewise.
11477         (tan_test_tonearest): Likewise.
11478         (tan_test_towardzero): Likewise.
11479         (tan_test_downward): Likewise.
11480         (tan_test_upward): Likewise.
11481         (main): Call the new functions.
11482         * sysdeps/i386/fpu/libm-test-ulps: Update.
11483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11484
11485         [BZ #10135]
11486         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11487         small n, then large n, before computing and testing k+n.
11488         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11489         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11490         Likewise.
11491         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11492         Likewise.
11493         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11494         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11495         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11496         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11497         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11498         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11499         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11500         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11501         * math/libm-test.inc (scalbn_test): Add more tests.
11502         (scalbln_test): Likewise.
11503
11504         * manual/filesys.texi (mode_t): Describe constraints on size and
11505         signedness, not exact equivalence to a particular type.
11506         (ino_t): Likewise.
11507         (ino64_t): Likewise.
11508         (dev_t): Likewise.
11509         (nlink_t): Likewise.
11510         (blkcnt_t): Likewise.
11511         (blkcnt64_t): Likewise.
11512         * manual/llio.texi (off_t): Likewise.
11513
11514         [BZ #3976]
11515         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11516         (__ieee754_exp): Save and restore rounding mode and use
11517         round-to-nearest for all computations.
11518         * math/libm-test.inc (exp_test_tonearest): New function.
11519         (exp_test_towardzero): Likewise.
11520         (exp_test_downward): Likewise.
11521         (exp_test_upward): Likewise.
11522         (main): Call the new functions.
11523         * sysdeps/i386/fpu/libm-test-ulps: Update.
11524         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11525
11526 2012-03-01  Chris Demetriou  <cgd@google.com>
11527
11528         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11529         have predictable order.
11530
11531 2012-03-01  David S. Miller  <davem@davemloft.net>
11532
11533         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11534
11535         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11536         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11537         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11538         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11539
11540         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11541         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11542         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11543         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11544         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11545         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11546         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11547         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11548         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11549
11550         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11551
11552         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11553         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11554         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11555
11556         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11557         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11558         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11559         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11560         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11561         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11562         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11563         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11564         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11565         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11566         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11567         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11568         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11569         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11570         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11571         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11572         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11573         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11574         * sysdeps/sparc/elf/configure: Regenerated.
11575
11576 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11577
11578         * configure.in (AS, LD): Require binutils 2.20 or later.
11579         * configure: Regenerated.
11580         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11581         as required minimum version.
11582         * INSTALL: Regenerated.
11583
11584         [BZ #2541]
11585         [BZ #4108]
11586         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11587         before squaring exponent.
11588         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11589         bottom long double and 27 bits of top long double before squaring
11590         exponent.
11591         * math/libm-test.inc (erfc_test): Add more tests.
11592         * sysdeps/i386/fpu/libm-test-ulps: Update.
11593         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11595
11596 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11597
11598         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11599         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11600         containing bit-fields.
11601         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11602         * soft-fp/single.h (_FP_UNION_S): Likewise.
11603         * soft-fp/double.h (_FP_UNION_D): Likewise.
11604
11605 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11606
11607         [BZ #13786]
11608         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11609         not include ../strcmp.S.
11610         [USE_AS_STRNCASECMP_L]: Likewise.
11611         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11612         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11613         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11614         (__strncasecmp_l_ia32): Define as alias to
11615         __strncasecmp_l_nonascii.
11616
11617         [BZ #5794]
11618         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11619         * sysdeps/i386/fpu/libm-test-ulps: Update.
11620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11621
11622         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11623         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11624
11625 2012-02-29  Jeff Law  <law@redhat.com>
11626
11627         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11628         out of bounds read.
11629
11630 2012-02-29  Marek Polacek  <polacek@redhat.com>
11631
11632         [BZ #13706]
11633         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11634         * elf/Makefile: Add rules to run tst-unused-dep.out.
11635
11636 2012-02-28  David S. Miller  <davem@davemloft.net>
11637
11638         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11639         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11640         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11641         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11642         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11643         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11644
11645 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11646
11647         * math/libm-test.inc (llround_test): Move one test from
11648         lround_test.  Use TEST_f_L in moved test.
11649         (lround_test): Move misplaced test to llround_test.  Add testcase
11650         from bug 2561.
11651
11652 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11653
11654         * sysdeps/x86_64/fpu/e_expf.S: New file.
11655         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11656
11657 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11658
11659         [BZ #13637]
11660         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11661         of remain_len that may cause incomplete multi-byte character and
11662         false match.
11663         * posix/bug-regex33.c: New file.
11664         * posix/Makefile (tests): Add bug-regex33.
11665
11666 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11667
11668         * manual/macros.texi: New file.
11669         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11670         * manual/libc.texinfo: Include macros.texi.
11671         * manual/creatute.texi: Likewise.
11672         * manual/install.texi: Likewise.
11673         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11674         @glibcadj{} in references to the GNU C Library.
11675         * manual/charset.texi: Likewise.
11676         * manual/conf.texi: Likewise.
11677         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11678         when not using those macros.
11679         * manual/creature.texi: Likewise.
11680         * manual/crypt.texi: Likewise.
11681         * manual/errno.texi: Likewise.
11682         * manual/filesys.texi: Likewise.
11683         * manual/header.texi: Likewise.
11684         * manual/install.texi: Likewise.
11685         * manual/intro.texi: Likewise.
11686         * manual/io.texi: Likewise.
11687         * manual/job.texi: Likewise.
11688         * manual/lang.texi: Likewise.
11689         * manual/libc.texiinfo: Likewise.
11690         * manual/llio.texi: Likewise.
11691         * manual/locale.texi: Likewise.
11692         * manual/maint.texi: Likewise.
11693         * manual/math.texi: Likewise.
11694         * manual/memory.texi: Likewise.
11695         * manual/message.texi: Likewise.
11696         * manual/nss.texi: Likewise.
11697         * manual/pattern.texi: Likewise.
11698         * manual/process.texi: Likewise.
11699         * manual/resource.texi: Likewise.
11700         * manual/search.texi: Likewise.
11701         * manual/setjmp.texi: Likewise.
11702         * manual/signal.texi: Likewise.
11703         * manual/socket.texi: Likewise.
11704         * manual/startup.texi: Likewise.
11705         * manual/stdio.texi: Likewise.
11706         * manual/string.texi: Likewise.
11707         * manual/sysinfo.texi: Likewise.
11708         * manual/syslog.texi: Likewise.
11709         * manual/terminal.texi: Likewise.
11710         * manual/time.texi: Likewise.
11711         * manual/users.texi: Likewise.
11712         * INSTALL: Regenerated.
11713         * NOTES: Regenerated.
11714         * sysdeps/gnu/errlist.c: Regenerated.
11715
11716 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11717
11718         * include/dirent.h: Include <dirstream.h> before
11719         <dirent/dirent.h>.
11720
11721 2012-02-28  David S. Miller  <davem@davemloft.net>
11722
11723         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11724         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11725         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11726         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11727
11728 2012-02-27  David S. Miller  <davem@davemloft.net>
11729
11730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11732         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11733         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11734
11735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11736         frame pointer instead of stack pointer relative arg slot.
11737         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11738         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11739         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11740
11741 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11742
11743         [BZ #3992]
11744         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11745
11746 2012-02-27  David S. Miller  <davem@davemloft.net>
11747
11748         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11749         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11750         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11751         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11752         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11753         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11754         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11755         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11756
11757 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11758
11759         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11760         later.  Allow versions 5-9.
11761         * configure: Regenerated.
11762         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11763         required minimum version and 4.6 as recommended version.  Do not
11764         mention bugs in GCC 2.7 and 2.8.
11765         * INSTALL: Regenerated.
11766
11767 2012-02-27  David S. Miller  <davem@davemloft.net>
11768
11769         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11770         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11772         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11773         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11774         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11775         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11776         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11777
11778         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11779         manipulate bits before adding and subtracting TWO112[sx].
11780         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11781
11782 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11783
11784         [BZ #13775]
11785         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11786         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11787         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11788         being in POSIX, because they are in 1003.1-2008.
11789
11790         * rt/tst-aio.c: Include <fcntl.h>.
11791         * rt/tst-aio7.c: Likewise.
11792         * rt/tst-aio64.c: Likewise.
11793
11794         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11795
11796 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11797
11798         * manual/install.texi (--with-headers): Describe headers as
11799         interface headers, not private headers.
11800         (Specific advice for GNU/Linux systems): Describe use of headers
11801         from "make headers_install", not private headers from older
11802         kernels.
11803         * INSTALL: Regenerated.
11804         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11805         Change to 2.6.19.
11806         * sysdeps/unix/sysv/linux/configure: Regenerated.
11807
11808         * manual/llio.texi (fclean): Remove documentation.
11809
11810         * manual/Makefile (libc-texi-generated): New variable.  Include
11811         version.texi.
11812         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11813         $(libc-texi-generated), not duplicated list of files.
11814         (version.texi, stamp-version): New rules.
11815         (realclean): Remove $(libc-texi-generated), not individual files
11816         from that list.  Do not remove dir-add.texinfo.
11817         * manual/libc.texinfo: Comment out uses of edition numbers and
11818         references to printed manual.  Remove last-updated dates.
11819         (EDITION): Comment out.
11820         (ISBN): Likewise.
11821         (VERSION, UPDATED): Remove.
11822         (version.texi): Include.
11823
11824 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11825
11826         * sysdeps/posix/spawni.c: Include <signal.h>.
11827         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11828         * sysdeps/pthread/aio_fsync.c: Likewise.
11829
11830 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11831
11832         * conform/Makefile (tests): Run only when not cross-compiling and
11833         when fast-check is not defined.
11834
11835         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11836         * conform/data/limits.h-data: Fixes for POSIX2008.
11837         * conform/run-conformtest.sh: Run all tests.
11838         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11839         headers.
11840         * include/bits/dlfcn.h: Likewise.
11841         * include/langinfo.h: Likewise.
11842         * include/monetary.h: Likewise.
11843         * include/sys/poll.h: Likewise.
11844
11845         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11846         for __USE_GNU.
11847         * posix/spawn.h: Define __need_sigset_t.
11848         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11849         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11850         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11851         to get sigevent_t only.
11852         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11853         only for __USE_GNU.
11854         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11855         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11856         process_vm_writev only for __USE_GNU.
11857         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11858
11859         * conform/Makefile: For now ignore errors from run-conformtest.
11860         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11861         POSIX to avoid namespace pollution.  Don't prepend headers.
11862         * conform/data/aio.h-data: Fixes for POSIX testing.
11863         * conform/data/fcntl.h-data: Likewise.
11864         * conform/data/glob.h-data: Likewise.
11865         * conform/data/grp.h-data: Likewise.
11866         * conform/data/pthread.h-data: Likewise.
11867         * conform/data/pwd.h-data: Likewise.
11868         * conform/data/signal.h-data: Likewise.
11869         * conform/data/spawn.h-data: Likewise.
11870         * conform/data/stdio.h-data: Likewise.
11871         * conform/data/stdlib.h-data: Likewise.
11872         * conform/data/stropts.h-data: Likewise.
11873         * conform/data/sys/mman.h-data: Likewise.
11874         * conform/data/sys/stat.h-data: Likewise.
11875         * conform/data/sys/types.h-data: Likewise.
11876         * conform/data/sys/wait.h-data: Likewise.
11877         * conform/data/time.h-data: Likewise.
11878         * conform/data/unistd.h-data: Likewise.
11879         * conform/data/utime.h-data: Likewise.
11880
11881         * io/sys/stat.h: fchmod was always in POSIX.
11882         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11883         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11884         * rt/aio.h: Define __need_timespec before including <time.h>.
11885         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11886         struct.  Add forward declaration of pthread_attr_t and use it in
11887         sigevent.
11888         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11889         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11890         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11891         always remove CLK_TCK definition.
11892
11893 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11894
11895         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11896
11897 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11898
11899         * conform/run-conformtest.sh: New file.
11900         * conform/Makefile: Run run-conformtest for tests.
11901         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11902         support.
11903
11904         * conform/data/uchar.h-data: New file.
11905         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11906         * conform/data/arpa/inet.h-data: Likewise.
11907         * conform/data/assert.h-data: Likewise.
11908         * conform/data/complex.h-data: Likewise.
11909         * conform/data/cpio.h-data: Likewise.
11910         * conform/data/ctype.h-data: Likewise.
11911         * conform/data/dirent.h-data: Likewise.
11912         * conform/data/dlfcn.h-data: Likewise.
11913         * conform/data/errno.h-data: Likewise.
11914         * conform/data/fcntl.h-data: Likewise.
11915         * conform/data/float.h-data: Likewise.
11916         * conform/data/fmtmsg.h-data: Likewise.
11917         * conform/data/fnmatch.h-data: Likewise.
11918         * conform/data/ftw.h-data: Likewise.
11919         * conform/data/glob.h-data: Likewise.
11920         * conform/data/grp.h-data: Likewise.
11921         * conform/data/iconv.h-data: Likewise.
11922         * conform/data/inttypes.h-data: Likewise.
11923         * conform/data/langinfo.h-data: Likewise.
11924         * conform/data/libgen.h-data: Likewise.
11925         * conform/data/limits.h-data: Likewise.
11926         * conform/data/locale.h-data: Likewise.
11927         * conform/data/math.h-data: Likewise.
11928         * conform/data/monetary.h-data: Likewise.
11929         * conform/data/mqueue.h-data: Likewise.
11930         * conform/data/ndbm.h-data: Likewise.
11931         * conform/data/net/if.h-data: Likewise.
11932         * conform/data/netdb.h-data: Likewise.
11933         * conform/data/netinet/in.h-data: Likewise.
11934         * conform/data/nl_types.h-data: Likewise.
11935         * conform/data/poll.h-data: Likewise.
11936         * conform/data/pthread.h-data: Likewise.
11937         * conform/data/pwd.h-data: Likewise.
11938         * conform/data/regex.h-data: Likewise.
11939         * conform/data/sched.h-data: Likewise.
11940         * conform/data/search.h-data: Likewise.
11941         * conform/data/semaphore.h-data: Likewise.
11942         * conform/data/setjmp.h-data: Likewise.
11943         * conform/data/signal.h-data: Likewise.
11944         * conform/data/spawn.h-data: Likewise.
11945         * conform/data/stdarg.h-data: Likewise.
11946         * conform/data/stdio.h-data: Likewise.
11947         * conform/data/stdlib.h-data: Likewise.
11948         * conform/data/string.h-data: Likewise.
11949         * conform/data/strings.h-data: Likewise.
11950         * conform/data/stropts.h-data: Likewise.
11951         * conform/data/sys/ipc.h-data: Likewise.
11952         * conform/data/sys/mman.h-data: Likewise.
11953         * conform/data/sys/msg.h-data: Likewise.
11954         * conform/data/sys/resource.h-data: Likewise.
11955         * conform/data/sys/select.h-data: Likewise.
11956         * conform/data/sys/sem.h-data: Likewise.
11957         * conform/data/sys/shm.h-data: Likewise.
11958         * conform/data/sys/socket.h-data: Likewise.
11959         * conform/data/sys/stat.h-data: Likewise.
11960         * conform/data/sys/statvfs.h-data: Likewise.
11961         * conform/data/sys/time.h-data: Likewise.
11962         * conform/data/sys/timeb.h-data: Likewise.
11963         * conform/data/sys/times.h-data: Likewise.
11964         * conform/data/sys/types.h-data: Likewise.
11965         * conform/data/sys/uio.h-data: Likewise.
11966         * conform/data/sys/un.h-data: Likewise.
11967         * conform/data/sys/utsname.h-data: Likewise.
11968         * conform/data/sys/wait.h-data: Likewise.
11969         * conform/data/syslog.h-data: Likewise.
11970         * conform/data/tar.h-data: Likewise.
11971         * conform/data/termios.h-data: Likewise.
11972         * conform/data/utime.h-data: Likewise.
11973         * conform/data/utmpx.h-data: Likewise.
11974         * conform/data/varargs.h-data: Likewise.
11975         * conform/data/wchar.h-data: Likewise.
11976         * conform/data/wctype.h-data: Likewise.
11977         * conform/data/wordexp.h-data: Likewise.
11978
11979         * include/stropts.h: New file.
11980         * include/uchar.h: New file.
11981         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11982         * include/assert.h: Likewise.
11983         * include/ctype.h: Likewise.
11984         * include/dirent.h: Likewise.
11985         * include/dlfcn.h: Likewise.
11986         * include/fcntl.h: Likewise.
11987         * include/fnmatch.h: Likewise.
11988         * include/glob.h: Likewise.
11989         * include/grp.h: Likewise.
11990         * include/libio.h: Likewise.
11991         * include/locale.h: Likewise.
11992         * include/math.h: Likewise.
11993         * include/net/if.h: Likewise.
11994         * include/netdb.h: Likewise.
11995         * include/netinet/in.h: Likewise.
11996         * include/pthread.h: Likewise.
11997         * include/pwd.h: Likewise.
11998         * include/regex.h: Likewise.
11999         * include/sched.h: Likewise.
12000         * include/search.h: Likewise.
12001         * include/setjmp.h: Likewise.
12002         * include/signal.h: Likewise.
12003         * include/stdio.h: Likewise.
12004         * include/stdlib.h: Likewise.
12005         * include/string.h: Likewise.
12006         * include/sys/cdefs.h: Likewise.
12007         * include/sys/mman.h: Likewise.
12008         * include/sys/msg.h: Likewise.
12009         * include/sys/resource.h: Likewise.
12010         * include/sys/select.h: Likewise.
12011         * include/sys/socket.h: Likewise.
12012         * include/sys/stat.h: Likewise.
12013         * include/sys/statvfs.h: Likewise.
12014         * include/sys/time.h: Likewise.
12015         * include/sys/times.h: Likewise.
12016         * include/sys/uio.h: Likewise.
12017         * include/sys/utsname.h: Likewise.
12018         * include/sys/wait.h: Likewise.
12019         * include/termios.h: Likewise.
12020         * include/time.h: Likewise.
12021         * include/ulimit.h: Likewise.
12022         * include/unistd.h: Likewise.
12023         * include/utime.h: Likewise.
12024         * include/wchar.h: Likewise.
12025         * include/wctype.h: Likewise.
12026         * include/wordexp.h: Likewise.
12027
12028         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12029
12030         * time/time.h: TIME_UTC must be a macro.
12031         Make timespec_get available for ISO C11 only as well.
12032
12033 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12034
12035         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12036         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12037
12038 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12039
12040         * configure.in: Use -o not -a in test for unsupported multi-arch.
12041
12042 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12043
12044         * manual/texinfo.tex: Update to version 2012-01-19.16.
12045
12046 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12047
12048         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12049
12050 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12051
12052         [BZ #13738]
12053         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12054         * manual/fdl-1.3.texi: New file.
12055         * manual/fdl-1.1.texi: File removed.
12056
12057         [BZ #13738]
12058         * manual/libc.texinfo (FDL_VERSION): New @set.
12059         Use it for mention of FDL in cover text.
12060         (Documentation License): Use it in @include file name.
12061
12062 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12063             Roland McGrath  <roland@hack.frob.com>
12064
12065         [BZ #5461]
12066         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12067         not LONG_LONG_MAX and LONG_LONG_MIN.
12068         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12069         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12070         name.
12071         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12072
12073 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12074
12075         [BZ #2547]
12076         [BZ #11365]
12077         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12078         manipulate bits before adding and subtracting TWO23[sx].
12079         * math/libm-test.inc (nearbyint_test): Add more tests.
12080
12081 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12082
12083         [BZ #2548]
12084         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12085         bits before adding and subtracting TWO23[sx].
12086         * math/libm-test.inc (rint_test): Add more tests.
12087         (rint_test_tonearest): Likewise.
12088         (rint_test_towardzero): Likewise.
12089         (rint_test_downward): Likewise.
12090         (rint_test_upward: Likewise.
12091
12092 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12093
12094         [BZ #10110]
12095         * include/stdc-predef.h: New file.  Extracted from features.h.
12096         * include/features.h: Include stdc-predef.h.
12097         * Makefile (headers): Add stdc-predef.h.
12098         * CONFORMANCE (Compiler limitations): Update.
12099
12100 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12101
12102         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12103
12104 2012-02-21  David S. Miller  <davem@davemloft.net>
12105
12106         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12107         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12108
12109 2012-02-20  David S. Miller  <davem@davemloft.net>
12110
12111         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12112         using a normal save/restore sequence, rather than allocating a
12113         dummy stack frame just to store a frame pointer and restore.
12114         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12115
12116 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12117
12118         * manual/install.texi: Fix stray word in line-wrapped comment.
12119
12120 2012-02-20  David S. Miller  <davem@davemloft.net>
12121
12122         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12123         both binutils and gcc support GOTDATA.
12124
12125         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12126         "rd %pc" in the PIC register setup sequences.
12127
12128         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12129         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12130         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12131         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12132         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12133         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12134         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12135         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12136         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12137         (SYSCALL_ERROR_HANDLER): Likewise.
12138         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12139         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12140         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12141         (SYSCALL_ERROR_HANDLER): Likewise.
12142
12143         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12144         (HAVE_GCC_GOTDATA): New.
12145         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12146         relocation support in both binutils and gcc.
12147         * sysdeps/sparc/elf/configure: Regenerate.
12148
12149         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12150         * sysdeps/sparc/sparc32/elf/configure: Delete.
12151         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12152         * sysdeps/sparc/sparc64/elf/configure: Delete.
12153         * sysdeps/sparc/elf/configure.in: New file.
12154         * sysdeps/sparc/elf/configure: Generate.
12155
12156         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12157         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12158         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12159         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12160         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12161
12162 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12163
12164         * manual/install.texi: Do not mention specific glibc version
12165         numbers.
12166         * manual/libc.texinfo (VERSION, UPDATED): Update.
12167         (@copying): Use @copyright{} and range of years.
12168
12169 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12170
12171         [BZ #13695]
12172         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12173         [crti.S not in sysdirs] (generated): Do not append.
12174         [crti.S not in sysdirs] (omit-deps): Likewise.
12175         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12176         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12177         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12178         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12179         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12180         Likewise.
12181         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12182         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12183         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12184         * csu/defs.awk: Remove file.
12185         * sysdeps/generic/initfini.c: Likewise.
12186         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12187         variable.
12188         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12189         Likewise.
12190
12191 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12192
12193         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12194         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12195         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12196         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12197         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12198         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12199         <bits/epoll.h>.
12200         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12201         (__EPOLL_PACKED): Define to empty if not defined by
12202         <bits/epoll.h>.
12203         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12204         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12205         bits/epoll.h.
12206
12207 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12208
12209         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12210         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12211         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12212         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12213         <bits/timerfd.h>.
12214         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12215         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12216         bits/timerfd.h.
12217
12218 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12219
12220         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12221         in C locale.
12222         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12223         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12224         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12226
12227 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12228
12229         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12230         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12231
12232 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12233
12234         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12235         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12236         defined.
12237         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12238         Likewise.
12239         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12240         entry for 2.16.
12241
12242 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12243
12244         * math/w_acos.c: Use non-signaling floating-point comparisons.
12245         * math/w_acosf.c: Likewise.
12246         * math/w_acosh.c: Likewise.
12247         * math/w_acoshf.c: Likewise.
12248         * math/w_acoshl.c: Likewise.
12249         * math/w_acosl.c: Likewise.
12250         * math/w_asin.c: Likewise.
12251         * math/w_asinf.c: Likewise.
12252         * math/w_asinl.c: Likewise.
12253         * math/w_atanh.c: Likewise.
12254         * math/w_atanhf.c: Likewise.
12255         * math/w_atanhl.c: Likewise.
12256         * math/w_exp2.c: Likewise.
12257         * math/w_exp2f.c: Likewise.
12258         * math/w_exp2l.c: Likewise.
12259         * math/w_j0.c: Likewise.
12260         * math/w_j0f.c: Likewise.
12261         * math/w_j0l.c: Likewise.
12262         * math/w_j1.c: Likewise.
12263         * math/w_j1f.c: Likewise.
12264         * math/w_j1l.c: Likewise.
12265         * math/w_jn.c: Likewise.
12266         * math/w_jnf.c: Likewise.
12267         * math/w_log.c: Likewise.
12268         * math/w_log10.c: Likewise.
12269         * math/w_log10f.c: Likewise.
12270         * math/w_log10l.c: Likewise.
12271         * math/w_log2.c: Likewise.
12272         * math/w_log2f.c: Likewise.
12273         * math/w_log2l.c: Likewise.
12274         * math/w_logf.c: Likewise.
12275         * math/w_logl.c: Likewise.
12276         * math/w_sqrt.c: Likewise.
12277         * math/w_sqrtf.c: Likewise.
12278         * math/w_sqrtl.c: Likewise.
12279         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12280         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12281         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12282         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12283         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12284
12285 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12286
12287         [BZ #9739]
12288         * manual/string.texi (strnlen): Use correct parameter name in
12289         equivalent expression.
12290
12291 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12292
12293         [BZ #11174]
12294         * manual/users.texi (seteuid): Consistently use neweuid for
12295         argument name.
12296
12297 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12298
12299         [BZ #13704]
12300         * manual/nss.texi (Services in the NSS configuration): Correct
12301         list of services in example configuration file.
12302
12303 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12304
12305         [BZ #11322]
12306         * manual/arith.texi: Remove statements about negative zero
12307         behaving identically to zero.
12308
12309 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12310
12311         [BZ #5993]
12312         * manual/install.texi: Do not document upgrading from libc5.
12313
12314 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12315
12316         [BZ #4596]
12317         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12318
12319 2012-02-18  David S. Miller  <davem@davemloft.net>
12320
12321         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12322         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12323         %o7 across the call.
12324         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12325         instead.
12326         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12327         SETUP_PIC_REG_LEAF.
12328         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12329         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12330         * sysdeps/sparc/crtn.S: Likewise.
12331
12332 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12333
12334         * aout/Makefile: Remove.
12335
12336 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12337
12338         [BZ #13058]
12339         * manual/examples/argp-ex1.c (main): Format definition in GNU
12340         style.
12341         * manual/examples/argp-ex2.c (main): Likewise.
12342         * manual/examples/argp-ex3.c (main): Likewise.
12343         * manual/examples/argp-ex4.c (main): Likewise.
12344         * manual/examples/longopt.c (main): Use new-style prototype
12345         definition.
12346         * manual/examples/strncat.c (main): Specify return type and use
12347         (void) for arguments.
12348         * manual/examples/subopt.c (main): Use char **argv argument.
12349
12350 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12351
12352         [BZ #5077]
12353         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12354         rounding modes.
12355
12356 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12357
12358         [BZ #6907]
12359         * manual/string.texi (strchr): Change when strchrnul is
12360         recommended.
12361
12362 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12363
12364         [BZ #174]
12365         * manual/locale.texi (setlocale): Document LOCPATH.
12366
12367 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12368
12369         [BZ #10210]
12370         * manual/process.texi (execle): Move @dots{} before last argument.
12371
12372 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12373
12374         [BZ #12047]
12375         * manual/charset.texi (Generic Charset Conversion): Fix typo
12376         (LC_TYPE -> LC_CTYPE).
12377
12378 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12379
12380         [BZ #5805]
12381         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12382         (scalbnf): Likewise.
12383         (scalbnl): Likewise.
12384         (scalbln): Likewise.
12385         (scalblnf): Likewise.
12386         (scalblnl): Likewise.
12387         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12388         (vwarnx): Likewise.
12389         (verr): Likewise.
12390         (verrx): Likewise.
12391         * manual/filesys.texi (telldir): Use braces around return type.
12392         * manual/llio.texi (mmap): Add space after comma.
12393         (mmap64): Likewise.
12394         * manual/math.texi (jn): Use @var{} on parameter names.
12395         (jnf): Likewise.
12396         (jnl): Likewise.
12397         (yn): Likewise.
12398         (ynf): Likewise.
12399         (ynl): Likewise.
12400         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12401         line.
12402         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12403         "...".
12404         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12405         (sched_get_priority_max): Likewise.
12406         * manual/signal.texi (sigvec): Add space after comma.
12407         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12408         names.
12409         (if_indextoname): Likewise.
12410         (if_freenameindex): Likewise.
12411         (sendto): Use ',' instead of '.' in prototype.
12412         * manual/startup.texi (syscall): Use @dots{} instead of literal
12413         "...".
12414         * manual/stdio.texi (__fpending): Separate initial words of
12415         paragraph from @deftypefun line.
12416         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12417         "...".
12418         (vsyslog): Use @var{} on parameter names.
12419         * manual/terminal.texi (stty): Use @var{} on parameter names.
12420         * manual/users.texi (getutmp): Use @var{} on parameter names.
12421         (getutmpx): Likewise.
12422
12423 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12424
12425         [BZ #6884]
12426         * manual/stdio.texi (fopen): Fix typos in description of
12427         ",ccs=STRING".
12428
12429 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12430
12431         [BZ #4026]
12432         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12433         get clock_id definition.
12434
12435 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12436
12437         [BZ #4822]
12438         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12439         (madvise): Cast every argument to void on its own.
12440
12441 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12442
12443         [BZ #9902]
12444         * manual/startup.texi (Exit Status): Fix typo.
12445
12446 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12447
12448         [BZ #10140]
12449         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12450         * manual/examples/argp-ex2.c: Likewise.
12451         * manual/examples/argp-ex3.c: Likewise.
12452
12453 2012-02-16  Richard Henderson  <rth@redhat.com>
12454
12455         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12456         * sysdeps/s390/s390-32/initfini.c: Remove.
12457         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12458         * sysdeps/s390/s390-64/initfini.c: Remove.
12459
12460 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12461
12462         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12463         compiler output for sysdeps/generic/initfini.c.
12464         * sysdeps/sh/elf/initfini.c: Remove file.
12465
12466 2012-02-16  David S. Miller  <davem@davemloft.net>
12467
12468         [BZ #11494]
12469         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12470
12471         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12472         * sysdeps/sparc/crti.S: New file.
12473         * sysdeps/sparc/crtn.S: New file.
12474         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12475         * sysdeps/sparc/sparc64/Makefile: Likewise.
12476
12477 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12478
12479         [BZ #3335]
12480         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12481
12482 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12483
12484         [BZ #4822]
12485         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12486
12487         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12488         (write, read, close): Likewise.
12489         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12490
12491 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12492
12493         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12494         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12495         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12496         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12497         <bits/signalfd.h>.
12498         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12499         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12500         bits/signalfd.h.
12501
12502 2012-02-14  Marek Polacek  <polacek@redhat.com>
12503
12504         * sysdeps/x86_64/crti.S: New file.
12505         * sysdeps/x86_64/crtn.S: New file.
12506         * sysdeps/x86_64/elf/initfini.c: Remove file.
12507
12508 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12509
12510         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12511         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12512         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12513         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12514         <bits/inotify.h>.
12515         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12516         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12517         bits/inotify.h.
12518
12519 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12520
12521         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12522         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12523         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12524         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12525         <bits/eventfd.h>.
12526         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12527         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12528         bits/eventfd.h.
12529
12530 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12531
12532         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12533         __feraiseexcept instead of feraiseexcept.
12534
12535         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12536         nanosleep invocations.
12537         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12538         strings, and add error checking for a nanosleep invocations.
12539
12540 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12541
12542         Replace FSF snail mail address with URLs, as per GNU coding standards.
12543         Most of the snail mail addresses were wrong anyway, and omitting
12544         them makes the source code easier to maintain.  Almost all of the
12545         changes are to license notices and to locale LC_IDENTIFICATION
12546         addresses, except for this one:
12547         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12548         not its snail mail address.
12549
12550 2012-02-09  Richard Henderson  <rth@twiddle.net>
12551
12552         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12553         of kernel-features.h.
12554
12555         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12556
12557 2012-02-08  Marek Polacek  <polacek@redhat.com>
12558
12559         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12560         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12561         * sysdeps/gnu/_G_config.h: Likewise.
12562         * sysdeps/generic/_G_config.h: Likewise.
12563
12564 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12565
12566         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12567         tests.
12568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12569
12570         * sysdeps/powerpc/powerpc32/crti.S: New file.
12571         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12572         * sysdeps/powerpc/powerpc64/crti.S: New file.
12573         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12574
12575         * Makeconfig (have-initfini): Don't set.
12576         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12577         * configure.in (nopic_initfini): Don't substitute.
12578         * config.h.in (HAVE_INITFINI): Don't #undef.
12579         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12580         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12581
12582 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12583
12584         Support crti.S and crtn.S provided directly by architectures.
12585         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12586         [crti.S in sysdirs] (omit-deps): Likewise.
12587         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12588         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12589         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12590         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12591         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12592         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12593         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12594         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12595         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12596         compiler output for sysdeps/generic/initfini.c.
12597         * sysdeps/i386/elf/Makefile: Remove file.
12598         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12599
12600 2012-02-07  Marek Polacek  <polacek@redhat.com>
12601
12602         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12603         * sysdeps/gnu/_G_config.h: Likewise.
12604         * sysdeps/mach/hurd/_G_config.h: Likewise.
12605
12606 2012-02-07  Marek Polacek  <polacek@redhat.com>
12607
12608         * math/Makefile (tests): Add tst-CMPLX2.
12609         * math/tst-CMPLX2.c: New file.
12610
12611 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12612
12613         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12614
12615         * math/libm-test.inc (jn_test): Add missing L suffix.
12616
12617 2012-02-06  Marek Polacek  <polacek@redhat.com>
12618
12619         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12620         * sysdeps/i386/fpu/e_powf.S: Likewise.
12621         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12622         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12623         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12624         * sysdeps/i386/fpu/e_pow.S: Likewise.
12625         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12626         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12627         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12628         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12629         * sysdeps/i386/fpu/e_log2.S: Likewise.
12630         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12631         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12632         * sysdeps/i386/fpu/e_powl.S: Likewise.
12633         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12634         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12635         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12636         * sysdeps/i386/fpu/e_logl.S: Likewise.
12637         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12638         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12639         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12640         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12641         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12642         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12643         * sysdeps/i386/fpu/e_log.S: Likewise.
12644         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12645         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12646         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12647         * sysdeps/i386/fpu/e_logf.S: Likewise.
12648         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12649         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12650         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12651         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12652         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12653         * sysdeps/i386/fpu/e_log10.S: Likewise.
12654         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12655         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12656         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12657         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12658         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12659         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12660         * sysdeps/i386/asm-syntax.h: Likewise.
12661         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12662         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12663         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12664         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12665         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12666         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12667         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12668         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12669         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12670         * sysdeps/powerpc/sysdep.h: Likewise.
12671         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12672         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12673
12674 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12675
12676         [BZ #411]
12677         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12678
12679 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12680
12681         * sysdeps/i386/sysdep.h: Include <features.h>.
12682         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12683         version.
12684
12685 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12686
12687         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12688         Define.
12689         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12690         LOAD_PIC_REG_STR.
12691
12692 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12693
12694         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12695         (SETUP_PIC_REG): Use GET_PC_THUNK.
12696         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12697         macro.
12698
12699 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12700
12701         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12702         for non-PIC compilation.
12703         (SETUP_PIC_REG): Add .p2align directive.
12704         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12705         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12706         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12707         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12708         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12709         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12710         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12711         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12712         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12713         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12714         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12715         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12716         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12717         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12718         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12719         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12720         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12721         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12722         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12723         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12724         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12725         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12726         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12727         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12728         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12729         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12730         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12731         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12732         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12733         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12734         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12735         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12736         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12737         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12738         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12739         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12740         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12741         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12742         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12743         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12744         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12745
12746 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12747
12748         * math/tst-CMPLX.c: Include <stdio.h>.
12749
12750 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12751
12752         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12753         float.
12754         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12755         * sysdeps/sparc/bits/mathdef.h: Likewise.
12756
12757 2012-01-31  Marek Polacek  <polacek@redhat.com>
12758
12759         * libio/libio.h: Don't define _PARAMS.
12760         * locale/programs/config.h: Don't define PARAMS.
12761         * stdlib/strtol_l.c: Likewise.
12762         (__strtol_l): Remove PARAMS from the prototype.
12763
12764 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12765
12766         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12767         names.  Just use the correct names.  Remove unnecessary wrapper
12768         functions.
12769         * malloc/arena.c: Likewise.
12770         * malloc/hooks.c: Likewise.
12771
12772         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12773         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12774         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12775
12776 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12777
12778         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12779         into tail calls.
12780         (update_get_addr): New function.
12781         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12782         GET_ADDR_MODULE parameter.
12783
12784 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12785
12786         * crypt/cert.c: Remove __STDC__ conditionals.
12787         * crypt/crypt-entry.c: Likewise.
12788         * crypt/crypt_util.c: Likewise.
12789         * libio/filedoalloc.c: Likewise.
12790         * libio/fileops.c: Likewise.
12791         * libio/genops.c: Likewise.
12792         * libio/iofclose.c: Likewise.
12793         * libio/iofdopen.c: Likewise.
12794         * libio/iofopen.c: Likewise.
12795         * libio/iofopen64.c: Likewise.
12796         * libio/iogetdelim.c: Likewise.
12797         * libio/iopopen.c: Likewise.
12798         * libio/obprintf.c: Likewise.
12799         * libio/oldfileops.c: Likewise.
12800         * libio/oldiofclose.c: Likewise.
12801         * libio/oldiofdopen.c: Likewise.
12802         * libio/oldiofopen.c: Likewise.
12803         * libio/oldiopopen.c: Likewise.
12804         * libio/wfiledoalloc.c: Likewise.
12805         * libio/wgenops.c: Likewise.
12806         * locale/programs/xmalloc.c: Likewise.
12807         * misc/syslog.c: Likewise.
12808         * stdio-common/xbug.c: Likewise.
12809         * string/memchr.c: Likewise.
12810         * string/memcmp.c: Likewise.
12811         * string/memrchr.c: Likewise.
12812         * string/rawmemchr.c: Likewise.
12813         * sysdeps/posix/getcwd.c: Likewise.
12814         * time/strftime_l.c: Likewise.
12815
12816 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12817
12818         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12819         * config.make.in (config-cflags-sse2avx): Define.
12820         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12821         Fix typo.
12822
12823 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12824
12825         * scripts/config.guess: Update from upstream config git repository.
12826         * scripts/config.sub: Likewise.
12827
12828 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12829
12830         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12831         (EM_NUM): Update.
12832         (R_TILEPRO_*, R_TILEGX_*): New macros.
12833
12834         * scripts/firstversions.awk: Fix bug in version range handling.
12835
12836         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12837
12838         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12839
12840         * include/sys/epoll.h: New file.
12841         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12842         libc_hidden_def.
12843
12844 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12845
12846         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12847         Avoid unnecessary __WORDSIZE == 64 test.
12848         (fmaxf): Use VEX format if possible.
12849         (fmax): Likewise.
12850         (fminf): Likewise.
12851         (fmin): Likewise.
12852
12853         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12854         * math/math_private.h: Remove libc_fegetround* and
12855         libc_fesetround*.
12856         * sysdeps/i386/configure.in: Check for -msse2avx.
12857         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12858         also if SSE2AVX is defined.
12859         Remove libc_fegetround* and libc_fesetround*.
12860         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12861         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12862         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12863         of HAS_YMM_USABLE.
12864         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12865         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12866         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12867         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12868         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12869
12870         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12871
12872 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12873
12874         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12875         size is not set.
12876         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12877
12878 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12879
12880         [BZ #13618]
12881         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12882         relocation.
12883         * Makeconfig (libm): Define.
12884         * elf/Makefile: Add rules to build and run tst-relsort1.
12885         * elf/tst-relsort1.c: New file.
12886         * elf/tst-relsort1mod1.c: New file.
12887         * elf/tst-relsort1mod2.c: New file.
12888
12889 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12890
12891         * math/s_ldexp.c: Remove __STDC__ conditionals.
12892         * math/s_ldexpf.c: Likewise.
12893         * math/s_ldexpl.c: Likewise.
12894         * math/s_nextafter.c: Likewise.
12895         * math/s_nexttowardf.c: Likewise.
12896         * math/s_significand.c: Likewise.
12897         * math/s_significandf.c: Likewise.
12898         * math/s_significandl.c: Likewise.
12899         * math/w_jnl.c: Likewise.
12900         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12901         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12902         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12903         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12904         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12905         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12906         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12907         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12908         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12909         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12910         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12911         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12912         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12913         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12914         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12915         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12916         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12917         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12918         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12919         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12920         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12921         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12922         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12923         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12924         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12925         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12926         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12927         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12928         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12929         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12930         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12931         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12932         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12933         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12934         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12935         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12936         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12937         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12938         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12939         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12940         * sysdeps/ieee754/k_standard.c: Likewise.
12941         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12942         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12943         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12944         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12945         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12946         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12947         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12948         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12949         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12950         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12951         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12952         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12953         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12954         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12955         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12956         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12957         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12958         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12959         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12960         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12961         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12962         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12963         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12964         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12965         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12966         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12967         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12968         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12969         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12970         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12971         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12972         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12973         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12974         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12975         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12976         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12977         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12978         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12979         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12980         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12981         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12982         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12983         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12984         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12985         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12986         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12987         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12988         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12989         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12990         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12991         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12992         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12993         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12994         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12995         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12996         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12997         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12998         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12999         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13000         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13001         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13002         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13003         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13004         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13005         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13006         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13007         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13008         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13009         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13010         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13011         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13012         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13013         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13014         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13015         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13016         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13017         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13018         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13019         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13020         * sysdeps/ieee754/s_matherr.c: Likewise.
13021         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13022         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13023         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13024         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13025
13026 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13027
13028         * crypt/md5.h: Remove __STDC__ conditionals.
13029         * libio/libioP.h: Likewise.
13030         * locale/programs/config.h: Likewise.
13031         * sysdeps/generic/sysdep.h: Likewise.
13032         * sysdeps/i386/asm-syntax.h: Likewise.
13033         * sysdeps/s390/asm-syntax.h: Likewise.
13034         * sysdeps/unix/sysdep.h: Likewise.
13035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13037
13038 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13039
13040         * libio/libio.h: Remove __STDC__ conditionals.
13041         * malloc/obstack.h: Likewise.
13042         * math/complex.h: Likewise.
13043         * math/math.h: Likewise.
13044         * sysdeps/generic/_G_config.h: Likewise.
13045         * sysdeps/gnu/_G_config.h: Likewise.
13046         * sysdeps/mach/hurd/_G_config.h: Likewise.
13047         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13048         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13049         * sysdeps/sparc/bits/mathdef.h: Likewise.
13050
13051 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13052
13053         [BZ #13583]
13054         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13055         Clean up HAS_* macros.
13056         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13057         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13058         possible.
13059         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13060         HAS_AVX.
13061         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13062         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13063         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13064         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13065         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13066
13067 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13068
13069         * elf/tst-unique3.cc (gets): Remove declaration.
13070         * elf/tst-unique3lib.cc (gets): Likewise.
13071         * elf/tst-unique3lib2.cc (gets): Likewise.
13072         * elf/tst-unique4.cc (gets): Likewise.
13073
13074 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13075
13076         * include/stdio.h: Add C++ protection.  Add gets declarations and
13077         definitions.
13078         * debug/tst-chk1.c: Don't declare gets here.
13079         * stdio-common/tst-gets.c: Likewise.
13080
13081 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13082
13083         * posix/glob: Remove directory.
13084
13085 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13086
13087         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13088
13089 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13090
13091         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13092         of the non-standard EPFNOSUPPORT.
13093
13094 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13095
13096         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13097         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13098         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13099
13100 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13101
13102         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13103
13104 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13105
13106         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13107         transient errors.
13108         * nscd/grpcache.c (cache_addgr): Likewise.
13109         * nscd/hstcache.c (cache_addhst): Likewise.
13110         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13111         * nscd/pwdcache.c (cache_addpw): Likewise.
13112         * nscd/servicescache.c (cache_addserv): Likewise.
13113
13114 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13115
13116         * malloc/malloc.c: Various cleanups.
13117         * malloc/hooks.c: Likewise.
13118
13119         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13120         * stdlib/bug-fmtmsg1.c: New file.
13121
13122         * stdlib/fmtmsg.c (init): Add missing unlock.
13123         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13124
13125 2012-01-12  Marek Polacek  <polacek@redhat.com>
13126
13127         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13128         and _GNU_SOURCE.
13129
13130 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13131
13132         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13133         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13134         macro to ensure uniqueness of label name.
13135         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13136         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13137
13138 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13139
13140         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13141
13142         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13143         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13144         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13145         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13146
13147 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13148
13149         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13150
13151         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13152         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13153         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13154
13155         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13156
13157         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13158         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13159         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13160         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13161
13162         * math/bits/math-finite.h: Add ldexp support.
13163
13164 2012-01-10  Marek Polacek  <polacek@redhat.com>
13165
13166         * locale/programs/localedef.h (show_archive_content): Add noreturn
13167         attribute.
13168
13169 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13170
13171         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13172
13173 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13174
13175         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13176
13177         * io/Makefile (headers): Add bits/poll2.h.
13178
13179 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13180
13181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13182         typo #include statement.
13183
13184 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13185
13186         * include/sys/cdefs.h: Define __attribute_alloc_size.
13187         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13188         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13189         * elf/pldd.c: Likewise.
13190         * iconv/iconv_charmap.c: Likewise.
13191         * iconv/iconvconfig.c: Likewise.
13192         * iconv/strtab.c: Likewise.
13193         * locale/programs/locale.c: Likewise.
13194         * locale/programs/localedef.h: Likewise.
13195         * locale/programs/simple-hash.c: Likewise.
13196         * nscd/nscd.h: Likewise.
13197         * nss/makedb.c: Likewise.
13198         * sysdeps/generic/ldconfig.h: Likewise.
13199         * locale/programs/localedef.c: Remove xmalloc prototype.
13200         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13201
13202 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13203
13204         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13205         appropriate.
13206
13207 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13208
13209         * math/Makefile (tests): Add tst-CMPLX.
13210         * math/tst-CMPLX.c: New file.
13211
13212         * math/complex.h (CMPLXL): Fix typo.
13213
13214         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13215         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13216         GLIBC_2.16.
13217         * debug/tst-chk1.c: Add poll and ppoll tests.
13218         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13219         * include/sys/poll.h: Add hidden proto for ppoll.
13220         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13221         * sysdeps/mach/hurd/ppoll.c: Likewise.
13222         * io/ppoll.c: Likewise.
13223         * debug/poll_chk.c: New file.
13224         * debug/ppoll_chk.c: New file.
13225         * include/bits/poll2.h: New file.
13226         * io/bits/poll2.h: New file.
13227
13228         [BZ #1350]
13229         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13230
13231         * configure.in: static is always set to yes.  Remove.
13232         * config.make.in: Don't set build-static.
13233         * Makeconfig: Remove use of build-static.
13234         * dlfcn/Makefile: Likewise.
13235         * elf/Makefile: Likewise.
13236         * math/Makefile: Likewise.
13237         * misc/Makefile: Likewise.
13238         * nptl/Makefile: Likewise.
13239         * sysdeps/mach/hurd/Makefile: Likewise.
13240
13241         * configure.in: PWD_P is not used anymore.
13242         * config.make.in: Remove PWD_P entry.
13243
13244         * configure.in: Remove last remnants of RANLIB.
13245         No need to check for signed size_t anymore.
13246         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13247         and IA-64.
13248         Remove __builtin_expect test because we require at least gcc 3.4.
13249         * aclocal.m4: Likewise.
13250
13251         * wcsmbs/mbrtoc16.c: Implement using towc function.
13252         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13253         * wcsmbs/wcsmbsload.c: Likewise.
13254         * iconv/gconv_simple.c: Likewise.
13255         * iconv/gconv_int.h: Likewise.
13256         * iconv/gconv_builtin.h: Likewise.
13257         * iconv/iconv_prog.c: Remove CHAR16 handling.
13258
13259         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13260
13261         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13262
13263         * configure.in: Remove --with-elf and --enable-bounded options.
13264         Dont set base_machine for ia64.  More non-ELF conditions removed.
13265         Remove testing and setting of leading underscore information.
13266         * config.make.in (build-bounded): Set to no.
13267         * config.h.in: Remove NO_UNDERSCORES entry.
13268         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13269         them.
13270         * csu/start.c: Remove !NO_UNDERSCORE code.
13271         * locale/localeinfo.h: Likewise.
13272         * sysdeps/generic/machine-gmon.h: Likewise.
13273         * sysdeps/generic/sysdep.h: Likewise.
13274         * sysdeps/i386/sysdep.h: Likewise.
13275         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13276         * sysdeps/mach/sysdep.h: Likewise.
13277         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13278         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13279         * sysdeps/sh/sysdep.h: Likewise.
13280         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13281         * sysdeps/unix/i386/sysdep.S: Likewise.
13282         * sysdeps/unix/sparc/start.c: Likewise.
13283         * sysdeps/unix/sparc/sysdep.S: Likewise.
13284         * sysdeps/unix/sparc/sysdep.h: Likewise.
13285         * sysdeps/unix/start.c: Likewise.
13286         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13287         * sysdeps/x86_64/sysdep.h: Likewise.
13288
13289 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13290
13291         [BZ #13553]
13292         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13293         for non-gcc.
13294         * argp/argp-fmtstream.h: Use const instead __const.
13295         * argp/argp.h: Likewise.
13296         * assert/assert.h: Likewise.
13297         * bits/fenv.h: Likewise.
13298         * bits/sched.h: Likewise.
13299         * bits/sigset.h: Likewise.
13300         * bits/sigthread.h: Likewise.
13301         * catgets/nl_types.h: Likewise.
13302         * conform/data/pthread.h-data: Likewise.
13303         * crypt/crypt-private.h: Likewise.
13304         * crypt/crypt.h: Likewise.
13305         * crypt/crypt_util.c: Likewise.
13306         * ctype/ctype.h: Likewise.
13307         * debug/execinfo.h: Likewise.
13308         * debug/mbsnrtowcs_chk.c: Likewise.
13309         * debug/mbsrtowcs_chk.c: Likewise.
13310         * debug/wcsnrtombs_chk.c: Likewise.
13311         * debug/wcsrtombs_chk.c: Likewise.
13312         * debug/wcstombs_chk.c: Likewise.
13313         * dirent/dirent.h: Likewise.
13314         * dlfcn/dlfcn.h: Likewise.
13315         * elf/neededtest4.c: Likewise.
13316         * grp/grp.h: Likewise.
13317         * gshadow/gshadow.h: Likewise.
13318         * iconv/gconv.h: Likewise.
13319         * iconv/gconv_int.h: Likewise.
13320         * iconv/gconv_simple.c: Likewise.
13321         * iconv/iconv.h: Likewise.
13322         * iconv/loop.c: Likewise.
13323         * iconv/skeleton.c: Likewise.
13324         * include/aio.h: Likewise.
13325         * include/aliases.h: Likewise.
13326         * include/argz.h: Likewise.
13327         * include/arpa/inet.h: Likewise.
13328         * include/assert.h: Likewise.
13329         * include/dirent.h: Likewise.
13330         * include/dlfcn.h: Likewise.
13331         * include/execinfo.h: Likewise.
13332         * include/fcntl.h: Likewise.
13333         * include/fenv.h: Likewise.
13334         * include/glob.h: Likewise.
13335         * include/grp.h: Likewise.
13336         * include/libintl.h: Likewise.
13337         * include/mntent.h: Likewise.
13338         * include/netdb.h: Likewise.
13339         * include/pwd.h: Likewise.
13340         * include/rpc/netdb.h: Likewise.
13341         * include/sched.h: Likewise.
13342         * include/search.h: Likewise.
13343         * include/shadow.h: Likewise.
13344         * include/signal.h: Likewise.
13345         * include/stdio.h: Likewise.
13346         * include/stdlib.h: Likewise.
13347         * include/string.h: Likewise.
13348         * include/sys/socket.h: Likewise.
13349         * include/sys/stat.h: Likewise.
13350         * include/sys/statfs.h: Likewise.
13351         * include/sys/statvfs.h: Likewise.
13352         * include/sys/syslog.h: Likewise.
13353         * include/sys/time.h: Likewise.
13354         * include/sys/uio.h: Likewise.
13355         * include/time.h: Likewise.
13356         * include/unistd.h: Likewise.
13357         * include/utmp.h: Likewise.
13358         * include/wchar.h: Likewise.
13359         * include/wctype.h: Likewise.
13360         * inet/aliases.h: Likewise.
13361         * inet/arpa/inet.h: Likewise.
13362         * inet/netinet/ether.h: Likewise.
13363         * inet/netinet/in.h: Likewise.
13364         * intl/libintl.h: Likewise.
13365         * io/bits/fcntl2.h: Likewise.
13366         * io/fcntl.h: Likewise.
13367         * io/ftw.h: Likewise.
13368         * io/sys/poll.h: Likewise.
13369         * io/sys/stat.h: Likewise.
13370         * io/sys/statfs.h: Likewise.
13371         * io/sys/statvfs.h: Likewise.
13372         * io/utime.h: Likewise.
13373         * libio/bits/stdio.h: Likewise.
13374         * libio/bits/stdio2.h: Likewise.
13375         * libio/libio.h: Likewise.
13376         * libio/libioP.h: Likewise.
13377         * libio/stdio.h: Likewise.
13378         * locale/lc-ctype.c: Likewise.
13379         * locale/locale.h: Likewise.
13380         * login/utmp.h: Likewise.
13381         * malloc/arena.c: Likewise.
13382         * malloc/malloc.c: Likewise.
13383         * malloc/malloc.h: Likewise.
13384         * malloc/mcheck.c: Likewise.
13385         * malloc/mtrace.c: Likewise.
13386         * math/bits/mathcalls.h: Likewise.
13387         * math/fenv.h: Likewise.
13388         * math/math_private.h: Likewise.
13389         * misc/bits/error.h: Likewise.
13390         * misc/bits/syslog.h: Likewise.
13391         * misc/err.h: Likewise.
13392         * misc/error.h: Likewise.
13393         * misc/fstab.h: Likewise.
13394         * misc/mntent.h: Likewise.
13395         * misc/regexp.h: Likewise.
13396         * misc/search.h: Likewise.
13397         * misc/sgtty.h: Likewise.
13398         * misc/sys/mman.h: Likewise.
13399         * misc/sys/syslog.h: Likewise.
13400         * misc/sys/uio.h: Likewise.
13401         * misc/sys/xattr.h: Likewise.
13402         * misc/ttyent.h: Likewise.
13403         * nis/rpcsvc/ypclnt.h: Likewise.
13404         * nss/nss.h: Likewise.
13405         * posix/bits/unistd.h: Likewise.
13406         * posix/fnmatch.h: Likewise.
13407         * posix/glob.h: Likewise.
13408         * posix/sched.h: Likewise.
13409         * posix/spawn.h: Likewise.
13410         * posix/sys/wait.h: Likewise.
13411         * posix/unistd.h: Likewise.
13412         * posix/wordexp.h: Likewise.
13413         * pwd/pwd.h: Likewise.
13414         * resolv/netdb.h: Likewise.
13415         * resource/sys/resource.h: Likewise.
13416         * rt/aio.h: Likewise.
13417         * rt/bits/mqueue2.h: Likewise.
13418         * rt/mqueue.h: Likewise.
13419         * shadow/shadow.h: Likewise.
13420         * signal/signal.h: Likewise.
13421         * socket/send.c: Likewise.
13422         * socket/sendto.c: Likewise.
13423         * socket/sys/socket.h: Likewise.
13424         * stdio-common/printf.h: Likewise.
13425         * stdlib/bits/stdlib.h: Likewise.
13426         * stdlib/fmtmsg.h: Likewise.
13427         * stdlib/monetary.h: Likewise.
13428         * stdlib/stdlib.h: Likewise.
13429         * stdlib/ucontext.h: Likewise.
13430         * streams/stropts.h: Likewise.
13431         * string/argz.h: Likewise.
13432         * string/bits/string2.h: Likewise.
13433         * string/string.h: Likewise.
13434         * string/strings.h: Likewise.
13435         * sunrpc/rpc/auth.h: Likewise.
13436         * sunrpc/rpc/auth_des.h: Likewise.
13437         * sunrpc/rpc/clnt.h: Likewise.
13438         * sunrpc/rpc/netdb.h: Likewise.
13439         * sunrpc/rpc/pmap_clnt.h: Likewise.
13440         * sunrpc/rpc/xdr.h: Likewise.
13441         * sysdeps/generic/inttypes.h: Likewise.
13442         * sysdeps/generic/net/if.h: Likewise.
13443         * sysdeps/generic/sys/swap.h: Likewise.
13444         * sysdeps/gnu/net/if.h: Likewise.
13445         * sysdeps/gnu/utmpx.h: Likewise.
13446         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13447         * sysdeps/i386/i486/bits/string.h: Likewise.
13448         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13449         * sysdeps/s390/bits/string.h: Likewise.
13450         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13451         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13452         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13453         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13454         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13455         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13456         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13457         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13458         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13459         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13460         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13461         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13462         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13463         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13464         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13465         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13466         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13467         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13468         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13469         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13470         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13471         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13472         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13473         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13474         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13475         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13476         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13477         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13478         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13479         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13480         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13481         * sysvipc/sys/ipc.h: Likewise.
13482         * sysvipc/sys/msg.h: Likewise.
13483         * sysvipc/sys/sem.h: Likewise.
13484         * sysvipc/sys/shm.h: Likewise.
13485         * termios/termios.h: Likewise.
13486         * time/sys/time.h: Likewise.
13487         * time/time.h: Likewise.
13488         * wcsmbs/bits/wchar2.h: Likewise.
13489         * wcsmbs/uchar.h: Likewise.
13490         * wcsmbs/wchar.h: Likewise.
13491         * wctype/wctype.h: Likewise.
13492
13493         [BZ #13551]
13494         * Makeconfig: Remove all but ELF support including AIX support.
13495         * Makerules: Likewise.
13496         * config.h.in: Likewise.
13497         * config.make.in: Likewise.
13498         * configure: Likewise.
13499         * configure.in: Likewise.
13500         * csu/Makefile: Likewise.
13501         * csu/version.c: Likewise.
13502         * debug/Makefile: Likewise.
13503         * dlfcn/Makefile: Likewise.
13504         * elf/Makefile: Likewise.
13505         * extra-lib.mk: Likewise.
13506         * iconv/Makefile: Likewise.
13507         * include/libc-symbols.h: Likewise.
13508         * include/shlib-compat.h: Likewise.
13509         * resolv/Makefile: Likewise.
13510         * resolv/res_libc.c: Likewise.
13511         * rt/Makefile: Likewise.
13512         * sysdeps/i386/asm-syntax.h: Likewise.
13513         * sysdeps/i386/sysdep.h: Likewise.
13514         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13515         * sysdeps/mach/sysdep.h: Likewise.
13516         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13517         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13518         * sysdeps/s390/asm-syntax.h: Likewise.
13519         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13520         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13521         * sysdeps/sh/sysdep.h: Likewise.
13522         * sysdeps/unix/sparc/sysdep.h: Likewise.
13523         * sysdeps/wordsize-32/divdi3.c: Likewise.
13524         * sysdeps/x86_64/sysdep.h: Likewise.
13525
13526         * argp/Versions: Remove _argp_unlock_xxx.
13527
13528         [BZ #13559]
13529         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13530         * abilist/libBrokenLocale.abilist: Likewise.
13531         * abilist/libanl.abilist: Likewise.
13532         * abilist/libc.abilist: Likewise.
13533         * abilist/libcrypt.abilist: Likewise.
13534         * abilist/libdl.abilist: Likewise.
13535         * abilist/libm.abilist: Likewise.
13536         * abilist/libnsl.abilist: Likewise.
13537         * abilist/libpthread.abilist: Likewise.
13538         * abilist/libresolv.abilist: Likewise.
13539         * abilist/librt.abilist: Likewise.
13540         * abilist/libthread_db.abilist: Likewise.
13541         * abilist/libutil.abilist: Likewise.
13542         * abilist/libnss_db.abilist: New file.
13543
13544         * scripts/abilist.awk: Add support for indirect functions.
13545
13546         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13547
13548         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13549
13550         * shlib-versions: Remove entries for ports architectures.
13551
13552         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13553         files in ports.
13554         * elf/stackguard-macros.h: Remove support for IA-64.
13555         * elf/tst-auditmod1.c: Likewise.
13556         * sysdeps/generic/ldsodefs.h: Likewise.
13557
13558         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13559         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13560         configure files.
13561
13562         [BZ #13552]
13563         * configure.in: Remove --enable-omitfp support.
13564         * FAQ.in: Adjust.
13565         * config.make.in: Likewise.
13566         * Makeconfig: Likewise.
13567         * manual/install.texi: Likewise.
13568
13569         In case anyone cares, the IA-64 architecture could move to ports.
13570         * sysdeps/ia64/*: Removed.
13571         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13572         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13573
13574         [BZ #13555]
13575         * configure.in: Remove entries for unsupported architectures.
13576
13577         [BZ #13533]
13578         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13579         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13580         routines.
13581         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13582         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13583         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13584         fall back to using wcrtomb.
13585         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13586         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13587         renaming.
13588         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13589         * wcsmbs/tst-c16c32-1.c: New file.
13590
13591         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13592         local variable.
13593
13594         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13595
13596         * elf/tst-unique3.cc: Add explicit declaration of gets.
13597         * elf/tst-unique3lib.cc: Likewise.
13598         * elf/tst-unique3lib2.cc: Likewise.
13599         * elf/tst-unique4.cc: Likewise.
13600
13601         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13602
13603 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13604
13605         [BZ #13566]
13606         * assert/assert.h (static_assert): Don't define for C++.
13607         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13608         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13609
13610 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13611
13612         * iconv/loop.c (single loop): Fix assertion in storing of
13613         remaining bytes.
13614
13615         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13616
13617 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13618
13619         * posix/getconf.c: Update copyright year.
13620         * nss/getent.c: Likewise.
13621         * nss/makedb.c: Likewise.
13622         * iconv/iconvconfig.c: Likewise.
13623         * iconv/iconv_prog.c: Likewise.
13624         * elf/ldconfig.c: Likewise.
13625         * elf/pldd.c: Likewise.
13626         * elf/sotruss.ksh: Likewise.
13627         * catgets/gencat.c: Likewise.
13628         * csu/version.c: Likewise.
13629         * elf/ldd.bash.in: Likewise.
13630         * elf/sprof.c (print_version): Likewise.
13631         * locale/programs/locale.c: Likewise.
13632         * locale/programs/localedef.c: Likewise.
13633         * login/programs/pt_chown.c: Likewise.
13634         * nscd/nscd.c (print_version): Likewise.
13635         * debug/xtrace.sh: Likewise.
13636         * malloc/memusage.sh: Likewise.
13637         * malloc/mtrace.pl: Likewise.
13638         * debug/catchsegv.sh: Likewise.
13639
13640 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13641
13642         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13643         pure attribute.
13644
13645 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13646
13647         [BZ #13533]
13648         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13649         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13650         transformations.
13651         * iconv/gconv_int.h: Likewise.
13652         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13653         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13654         from libc for GLIBC_2.16.
13655         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13656         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13657         * wcsmbs/uchar.h: Really define mbstate_t.
13658         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13659         * wcsmbs/c16rtomb.c: New file.
13660         * wcsmbs/mbrtoc16.c: New file.
13661         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13662         for C/POSIX locale.
13663         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13664         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13665
13666         * wcsmbs/wchar.h: Add missing __restrict.
13667
13668 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13669
13670         [BZ #13532]
13671         * time/Makefile (routines): Add timespec_get.
13672         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13673         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13674         timespec for ISO C11.
13675         * time/timespec_get.c: New file.
13676         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13677         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13678
13679         [BZ #13531]
13680         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13681         * stdlib/stdlib.h: Declare aligned_alloc.
13682         * Versions.def: Add GLIBC_2.16 for libc.
13683         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13684
13685         [BZ 13527]
13686         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13687         ISO C11.
13688
13689         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13690         code.
13691
13692         [BZ #13528]
13693         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13694
13695         [BZ #13529]
13696         * assert/assert.h (static_assert): Define.
13697
13698         * version.h: Update for 2.16 development version.
13699
13700         [BZ #13526]
13701         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13702         _ISOC11_SOURCE.
13703
13704         * version.h (RELEASE): Bump for 2.15 release.
13705         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13706
13707         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13708         Patch by Marek Polacek <mpolacek@redhat.com>.
13709
13710         * bits/byteswap.h: Protect long long constants with __extension__.
13711         * sysdeps/i386/bits/byteswap.h: Likewise.
13712         * sysdeps/ia64/bits/byteswap.h: Likewise.
13713         * sysdeps/s390/bits/byteswap.h: Likewise.
13714         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13715
13716 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13717
13718         [BZ #13540]
13719         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13720         destination buffer.
13721         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13722
13723 2011-12-23  Marek Polacek  <polacek@redhat.com>
13724
13725         * elf/dl-addr.c (determine_info): Add inline keyword.
13726         * elf/tst-auditmod4b.c (check_avx): Likewise.
13727         * elf/tst-auditmod6b.c (check_avx): Likewise.
13728         * elf/tst-auditmod6c.c (check_avx): Likewise.
13729         * elf/tst-auditmod7b.c (check_avx): Likewise.
13730
13731 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13732
13733         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13734         !__SSE_MATH__.
13735
13736 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13737
13738         [BZ #13540]
13739         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13740         processing for last bytes.
13741
13742 2011-08-06  Bruno Haible  <bruno@clisp.org>
13743
13744         [BZ #13061]
13745         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13746         U+0385, not to U+1FEE.
13747
13748         [BZ #13062]
13749         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13750         entry for U+00A5 U+0301.
13751
13752 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13753
13754         [BZ #13166]
13755         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13756         buffer for the output is too small.
13757
13758         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13759         optimization.
13760
13761         [BZ #13185]
13762         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13763         SSE flags if possible.
13764
13765 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13766
13767         [BZ #13540]
13768         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13769         processing for last bytes.
13770
13771 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13772
13773         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13774         (syscall-list-default-options, syscall-list-default-condition)
13775         (syscall-list-includes): Define.
13776         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13777         list of ABIs and options and #if conditions for each ABI.  Do not
13778         handle common syscalls between ABIs specially.
13779         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13780         Remove.
13781         (syscall-list-variants, syscall-list-32bit-options)
13782         (syscall-list-32bit-condition, syscall-list-64bit-options)
13783         (syscall-list-64bit-condition): Define.
13784         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13785         (syscall-list-variants, syscall-list-32bit-options)
13786         (syscall-list-32bit-condition, syscall-list-64bit-options)
13787         (syscall-list-64bit-condition): Define.
13788         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13789         Remove.
13790         (syscall-list-variants, syscall-list-32bit-options)
13791         (syscall-list-32bit-condition, syscall-list-64bit-options)
13792         (syscall-list-64bit-condition): Define.
13793         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13794         Remove.
13795         (syscall-list-variants, syscall-list-32bit-options)
13796         (syscall-list-32bit-condition, syscall-list-64bit-options)
13797         (syscall-list-64bit-condition): Define.
13798
13799 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13800
13801         * locale/iso-639.def: Add brx entry.
13802
13803         [BZ #13328]
13804         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13805         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13806
13807         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13808         __feraiseexcept_renamed.
13809
13810 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13811
13812         [BZ #13538]
13813         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13814         EPOLLET with unsigned values.
13815         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13816         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13817
13818         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13819         to large cancellation.
13820         * math/s_cacoshf.c: Likewise.
13821         * math/s_cacoshl.c: Likewise.
13822
13823 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13824
13825         [BZ #13305]
13826         [BZ #12786]
13827         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13828         * math/s_cacoshf.c: Likewise.
13829         * math/s_cacoshl.c: Likewise.
13830
13831 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13832
13833         [BZ #13439]
13834         * iconv/gconv.h: Define __GCONV_SWAP.
13835         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13836         * iconvdata/utf-16.c: Likewise.
13837         * iconvdata/utf-32.c: Likewise.
13838
13839 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13840
13841         [BZ #13524]
13842         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13843         numerator after shifting it by one limb.
13844
13845 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13846
13847         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13848         under [__USE_EXTERN_INLINES].
13849
13850 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13851
13852         [BZ #13446]
13853         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13854
13855 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13856
13857         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13858         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13859         optimized code.
13860         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13861         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13862         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13863         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13864         for strncasecmp/strncasecmp_l compilation.
13865         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13866         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13867
13868 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13869
13870         [BZ #13484]
13871         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13872         of __asm__.
13873
13874 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13875
13876         [BZ #13506]
13877         * time/tzfile.c (__tzfile_read): Check values from file header.
13878
13879 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13880
13881         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13882         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13883         * powerpc/powerpc32/dl-start.S: Likewise.
13884         * powerpc/powerpc32/elf/start.S: Likewise.
13885         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13886         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13887         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13888         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13889         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13890         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13891         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13892         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13893         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13894         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13895         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13896         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13897         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13898         * powerpc/powerpc32/memset.S: Likewise.
13899         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13900         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13901         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13902         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13903         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13904         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13905         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13906         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13907         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13908         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13909         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13910         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13911         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13912
13913 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13914
13915         * math/libm-test.inc: Added more nearbyint tests.
13916         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13917         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13918         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13919         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13920
13921 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13922
13923         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13924         FD_CLOEXEC.
13925
13926 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13927
13928         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13929         Add wcscpy-ssse3 wcscpy-c.
13930         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13931         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13932         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13933         * sysdeps/x86_64/wcschr.S: New file.
13934         * sysdeps/x86_64/wcsrchr.S: New file.
13935         * string/test-strcmp.c: Remove checking of wcscmp function for
13936         wrong alignments.
13937         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13938         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13939         wcsrchr-sse2 wcsrchr-c.
13940         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13941         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13942         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13943         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13944         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13945         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13946         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13947         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13948         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13949         * wcsmbc/wcschr.c (WCSCHR): New macro.
13950
13951 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13952
13953         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13954         * wcsmbs/test-wcsrchr.c: New file.
13955         * string/test-strrchr.c: Add wcsrchr support.
13956         (WIDE): New macro.
13957         * wcsmbs/test-wcscpy.c: New file.
13958         * string/test-strcpy.c: Add wcscpy support.
13959         (WIDE): New macro.
13960
13961 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13962
13963         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13964         the inner loop.
13965
13966 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13967
13968         [BZ #13472]
13969         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13970
13971 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13972
13973         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13974         Minor optimizations.
13975
13976         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13977         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13978         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13979
13980 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13981
13982         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13983         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13984         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13985         for gcc to avoid warnings.
13986         * inet/Makefile (tests): Add tst-checks.
13987         * inet/tst-checks.c: New file.
13988
13989         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13990         warning.
13991
13992         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13993         __wmemcmp_sse2.
13994
13995         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13996         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13997
13998         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13999
14000 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14001
14002         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14003         problem.
14004
14005         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14006
14007 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14008
14009         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14010         conditional on GCC version.
14011         (__arch_compare_and_exchange_val_8_acq)
14012         (__arch_compare_and_exchange_val_16_acq)
14013         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14014         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14015         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14016
14017 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14018
14019         * sysdeps/sh/backtrace.c: New file.
14020
14021 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14022
14023         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14024         parenthesis.
14025
14026 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14027
14028         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14029         falling back to utime.
14030
14031 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14032
14033         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14034         expectations for float.
14035
14036 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14037
14038         * locale/weight.h (findidx): Add parameter len.
14039         * locale/weightwc.h (findidx): Likewise.
14040         * posix/fnmatch_loop.c (FCT): Adjust caller.
14041         * posix/regcomp.c (build_equiv_class): Likewise.
14042         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14043         * posix/regexec.c (check_node_accept_bytes): Likewise.
14044         * string/strcoll_l.c (STRCOLL): Likewise.
14045         * string/strxfrm_l.c (STRXFRM): Likewise.
14046
14047 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14048
14049         * Makefile.in: Remove CVSOPT handling.
14050         * configure.in: Remove use of AC_REVISION.
14051         * iconvdata/Makefile (distribute): No need to filter out CVS.
14052         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14053         handling.
14054
14055 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14056
14057         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14058         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14059         [USE_AS_STRNCASECMP_L]: Likewise.
14060         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14061         NO_TLS_DIRECT_SEG_REFS.
14062         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14063         Fix argument offsets for non-PIC.
14064         [USE_AS_STRNCASECMP_L]: Likewise.
14065         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14066         NO_TLS_DIRECT_SEG_REFS.
14067
14068 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14069
14070         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14071         O_CLOEXEC.
14072         * locale/loadlocale.c (_nl_load_locale): Likewise.
14073
14074 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14075
14076         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14077         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14078         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14079         (SYSCALL_GETTIME): Set errno on error.
14080
14081         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14082         count references to noai6ai_cached.
14083
14084 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14085
14086         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14087
14088         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14089         FD_CLOEXEC for /proc/self/maps.
14090
14091         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14092         FD_CLOEXEC for /proc/meminfo.
14093
14094         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14095         gai.conf.
14096
14097         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14098         FD_CLOEXEC for given file.
14099
14100         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14101
14102         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14103         FD_CLOEXEC for /etc/hosts.
14104         (_gethtent): Likewise.
14105
14106         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14107
14108         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14109         cancellation and set FD_CLOEXEC for /etc/netgroup.
14110
14111         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14112         reading /etc/publickey.
14113
14114         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14115         allow cancellation when reading /etc/group.
14116
14117         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14118         cancellation.
14119         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14120
14121         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14122         when using data file.
14123
14124         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14125
14126         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14127         (write_nis_obj): Use "c" and "e" in fopen.
14128
14129         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14130
14131         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14132
14133         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14134
14135         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14136
14137         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14138         locale.alias.
14139
14140         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14141
14142         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14143
14144         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14145
14146         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14147         file parsing and set FD_CLOEXEC.
14148
14149 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14150
14151         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14152
14153 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14154
14155         * malloc/arena.c (arena_get2): Don't call reused_arena when
14156         _int_new_arena failed.
14157
14158 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14159
14160         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14161         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14162         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14163         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14164         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14165         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14166         to compile strcasecmp and strncasecmp.
14167         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14168         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14169
14170         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14171
14172 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14173
14174         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14175         locale-defines.sym to gen-as-const-headers.
14176         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14177         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14178         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14179         to compile strcasecmp and strncasecmp.
14180         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14181         strcasecmp_l and strncasecmp_l.
14182         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14183         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14184         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14185         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14186         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14187         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14188         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14189         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14190         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14191         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14192         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14193
14194 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14195
14196         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14197         result of SYSDEP_GETTIME_CPU to retval.
14198         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14199         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14200
14201         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14202         variable.
14203
14204         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14205         mantissa words.
14206         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14207
14208         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14209         from unused variable.
14210
14211         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14212         DWARF definitions.
14213         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14214         for assembling.
14215
14216         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14217         over namespaces.
14218
14219         * sunrpc/rpc_prot.c (rejected): Fix case value.
14220
14221         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14222         unsigned long long int to avoid warnings in shift.
14223
14224         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14225         of use of trans.
14226         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14227         variable tmp.
14228
14229         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14230         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14231         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14232
14233         * nis/nis_table.c (nis_list): Use variable of correct type for
14234         result of __follow_path call.
14235
14236 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14237
14238         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14239         of math functions ceil, trunc, floor, round, and sqrt, when
14240         avaliable on the platform.
14241         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14242         name clash.
14243         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14244         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14245         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14246
14247 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14248
14249         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14250         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14251
14252 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14253
14254         * include/unistd.h: Fix __readlink return type.
14255         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14256
14257 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14258
14259         * stdlib/ucontext.h: Undo last change for makecontext.
14260
14261 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14262
14263         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14264
14265         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14266         * setjmp/setjmp.h: Mark functions as non-leaf.
14267         * setjmp/bits/setjmp2.h: Likewise.
14268         * stdlib/ucontext.h: Likewise.
14269
14270 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14271
14272         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14273         (reused_arena): Don't check arena limit.
14274         (arena_get2): Atomically check arena limit.
14275
14276 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14277
14278         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14279         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14280
14281         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14282         instructions.
14283
14284 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14285
14286         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14287         handler when locking.
14288
14289         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14290         Fix size of allocated buffer.
14291
14292 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14293
14294         [BZ #10103]
14295         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14296         declarations for long double functions.
14297         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14298
14299         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14300
14301 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14302
14303         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14304         installed.
14305
14306         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14307         is disabled.
14308
14309 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14310
14311         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14312
14313 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14314
14315         * include/alloca.h (stackinfo_alloca_round): Define.
14316         (extend_alloca): Use it.
14317         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14318         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14319         here.
14320
14321         * scripts/check-local-headers.sh: Ignore libaudit.h.
14322
14323         * nscd/Makefile (extra-objs): Make recursively expanded.
14324
14325 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14326
14327         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14328         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14329
14330         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14331         * posix/tst-rfc3484-2.c: Likewise.
14332         * posix/tst-rfc3484-3.c: Likewise.
14333
14334         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14335         process_vm_writev.
14336         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14337         process_vm_writev.
14338         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14339         process_vm_writev from libc using GLIBC_2.15 version.
14340
14341         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14342
14343 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14344
14345         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14346         stack usage.
14347
14348 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14349
14350         [BZ #13367]
14351         * nss/getent.c (initgroups_keys): Show error message in case no group
14352         names are given.
14353
14354         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14355         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14356         __bump_nl_timestamp.
14357         * nscd/connections (nscd_init): When host database is served open
14358         netlink socket and request notification about configuration changes.
14359         (main_loop_poll): Track netlink file descriptor and bump timestamp
14360         in case data becomes available.
14361         (main_loop_epoll): Likewise.
14362         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14363         (database_pers_head): Add extra_data fileds.
14364         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14365         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14366         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14367         Adjust caller.
14368         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14369         in6ai data, call __free_in6ai.
14370         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14371         Add -DHAVE_NETLINK.
14372         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14373         interface information.  Reuse previous data if netlink timestamp
14374         is not changed.
14375         (__bump_nl_timestamp): New function.
14376         (__free_in6ai): New function.
14377
14378 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14379
14380         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14381         close_not_cancel_no_status here.
14382         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14383
14384 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14385
14386         [BZ #13276]
14387         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14388         return value.
14389
14390         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14391         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14392         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14393
14394 2011-07-03  Andreas Jaeger  <aj@suse.de>
14395
14396         [BZ #10709]
14397         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14398         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14399         * math/libm-test.inc (sin_test): Add test case.
14400
14401 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14402
14403         [BZ #13337]
14404         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14405         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14406
14407         * elf/chroot_canon.c (chroot_canon): Cleanups.
14408
14409         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14410
14411         [BZ #13335]
14412         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14413         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14414
14415         * string/test-strchr.c: Make usable for strchrnul testing.
14416         * string/test-strchrnul.c: New file.
14417         * string/Makefile (strop-tests): Add strchrnul.
14418
14419         * po/it.po: Update from translation team.
14420         * po/es.po: Likewise.
14421
14422 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14423
14424         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14425         the three constants needed as parameters.  Drop the others.
14426         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14427         __m128i_strloadu_tolower.
14428         Create and initialize variable zero and use it in all the places
14429         where _mm_setzero_si128 was used.
14430
14431         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14432         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14433         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14434         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14435         anymore.
14436         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14437         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14438         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14439         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14440         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14441         __mpranred, __mptan.
14442         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14443         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14444         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14445         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14446         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14447         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14448         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14449         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14450         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14451
14452 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14453
14454         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14455         redefine if SHARED.
14456         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14457
14458         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14459         wide char related routines to wcsmbs subdir.
14460
14461 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14462
14463         [BZ #13344]
14464         * misc/sys/cdefs.h (__THROWNL): Define.
14465         * posix/unistd.h: Use __THREADNL instead of __THREAD
14466         for memory synchronization functions.
14467
14468 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14469
14470         [BZ #13349]
14471         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14472         doesn't exist.
14473         * manual/stdio.texi (Obstack Streams): Node removed.
14474
14475 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14476
14477         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14478         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14479         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14480
14481         * math/math_private.h (math_force_eval): Allow non-addressable
14482         arguments.
14483         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14484
14485 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14486
14487         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14488         file is not needed.
14489
14490         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14491         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14492         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14493         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14494         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14495         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14496         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14497         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14498         Add AVX variants.
14499         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14500         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14501         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14502         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14503         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14504         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14505         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14506         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14507         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14508         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14509         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14510         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14511         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14512         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14513         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14514         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14515         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14516         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14517         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14518
14519         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14520         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14521
14522         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14523         place.  Use VEX encoding when compiling for AVX.
14524
14525 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14526
14527         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14528         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14529
14530         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14531
14532 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14533
14534         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14535         useless if() expression.
14536         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14537         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14538         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14539         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14540         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14541         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14542         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14543         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14544         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14545         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14546         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14547         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14548         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14549         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14550         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14551         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14552         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14553         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14554         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14555
14556         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14557
14558 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14559
14560         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14561         condition.
14562         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14563
14564 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14565
14566         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14567         .text section.  Avoid duplicate constants.
14568         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14569         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14570         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14571         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14572         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14573         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14574         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14575         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14576         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14577         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14578         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14579         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14580         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14581         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14582         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14583         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14584         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14585         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14586         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14587         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14588         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14589         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14590         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14591         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14592         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14593         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14594         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14595         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14596         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14597         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14598         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14599         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14600         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14601         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14602         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14603         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14604         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14605         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14606         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14607         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14608         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14609         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14610         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14611         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14612         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14613
14614 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14615
14616         * sysdeps/x86_64/dla.h: Move to ...
14617         * sysdeps/x86_64/fpu/dla.h: ...here.
14618         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14619         situations.  Use __builtin_fma only for gcc 4.6 and up.
14620
14621         * config.make.in: Add have-mfma4 entry.
14622         * configure.in: Substitute libc_cv_cc_fma4.
14623         * math/Makefile (dbl-only-routines): Add sincostab.
14624         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14625         Use __sincostab not sincos.
14626         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14627         name is a macro.
14628         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14629         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14630         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14631         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14632         using __copysign.
14633         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14634         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14635         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14636         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14637         and __inv.
14638         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14639         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14640         __copysign.
14641         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14642         define aliases when function name is a macro.
14643         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14644         sysdeps/ieee754/dbl-64/sincos.tbl.
14645         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14646         fma4-enabled routines.
14647         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14648         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14649         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14650         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14651         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14652         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14653         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14654         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14655         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14656         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14657         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14658         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14659         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14660         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14661         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14662         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14663         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14664         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14665         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14666         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14667         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14668         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14669         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14670         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14671         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14672         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14673         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14674         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14675         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14676         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14677
14678         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14679         rename.
14680         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14681         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14682         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14683         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14684         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14685         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14686         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14687         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14688
14689 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14690
14691         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14692
14693 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14694
14695         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14696
14697         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14698         prediction.
14699         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14700
14701         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14702         Remove unused variable magic_bits.
14703         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14704
14705         * string/strnlen.c: Define and use STRNLEN macro.
14706         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14707         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14708         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14709         * wcsmbs/wcslen.c: Define and use WCSLEN.
14710         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14711         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14712         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14713         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14714         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14715         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14716         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14717
14718 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14719
14720         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14721         strnlen-sse2-no-bsf.
14722         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14723         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14724         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14725         Add strnlen support.
14726         (USE_AS_STRNLEN): New macro.
14727         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14728         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14729         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14730         * sysdeps/x86_64/wcslen.S: New file.
14731
14732 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14733
14734         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14735         XMM-moves are used for copying on small sizes.
14736
14737 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14738
14739         * wcsmbs/Makefile (strop-tests): Add wcschr.
14740         * wcsmbs/test-wcschr.c: New file.
14741         * string/test-strchr.c: Update.
14742         Add wcschr support.
14743         (WIDE): New macro.
14744
14745 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14746
14747         * wcsmbs/Makefile (strop-tests): Add wcslen.
14748         * wcsmbs/test-wcslen.c: New file.
14749         * string/test-strlen.c: Update.
14750         Add wcslen support.
14751         (WIDE): New macro.
14752
14753 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14754
14755         * po/it.po: Update from translation team.
14756
14757 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14758
14759         * sysdeps/x86_64/wcscmp.S: Update.
14760         Fix wrong comparison semantics.
14761         wcscmp shall use signed comparison not unsigned.
14762         Don't use substraction to avoid overflow bug.
14763         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14764         * wcsmbc/wcscmp.c: Likewise.
14765         * string/test-strcmp.c: Likewise.
14766         Add new tests to check cases with negative values.
14767
14768 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14769
14770         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14771         * sysdeps/x86_64/dla.h: ...here.  New file.
14772         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14773         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14774         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14775         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14776         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14777         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14778         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14779         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14780         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14781
14782 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14783
14784         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14785         __ynl_finite aliases.
14786
14787 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14788
14789         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14790
14791         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14792         define DLA_FMA.
14793         [DLA_FMA] (EMULV): Use DLA_FMA.
14794         [DLA_FMA] (MUL12): Use EMULV.
14795         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14796         that are not needed.
14797         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14798         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14799         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14800         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14801         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14802         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14803         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14804
14805 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14806
14807         * math/s_nan.c: Undef __nan.
14808         * math/s_nanf.c: Undef __nanf.
14809         * math/s_nanl.c: Undef __nanl.
14810         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14811         "math_private.h".
14812
14813 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14814
14815         * math/s_catan.c: Add branch predictions.
14816         * math/s_catanf.c: Likewise.
14817         * math/s_catanh.c: Likewise.
14818         * math/s_catanhf.c: Likewise.
14819         * math/s_catanhl.c: Likewise.
14820         * math/s_catanl.c: Likewise.
14821         * math/s_cexp.c: Likewise.
14822         * math/s_cexpf.c: Likewise.
14823         * math/s_cexpl.c: Likewise.
14824         * math/s_clog.c: Likewise.
14825         * math/s_clog10.c: Likewise.
14826         * math/s_clog10f.c: Likewise.
14827         * math/s_clog10l.c: Likewise.
14828         * math/s_clogf.c: Likewise.
14829         * math/s_clogl.c: Likewise.
14830         * math/s_csqrt.c: Likewise.
14831         * math/s_csqrtf.c: Likewise.
14832         * math/s_csqrtl.c: Likewise.
14833         * math/s_ctanf.c: Likewise.
14834         * math/s_ctanh.c: Likewise.
14835         * math/s_ctanhf.c: Likewise.
14836         * math/s_ctanhl.c: Likewise.
14837         * math/s_ctanl.c: Likewise.
14838
14839         * math/math_private.h: Define __nan, __nanf, __nanl.
14840         * math/s_cacosh.c: Include <math_private.h>.
14841         * math/s_cacoshl.c: Likewise.
14842         * math/s_casinh.c: Likewise.
14843         * math/s_casinhf.c: Likewise.
14844         * math/s_casinhl.c: Likewise.
14845         * math/s_ccos.c: Rely entire on ccosh.
14846         * math/s_ccosf.c: Rely entire on ccoshf.
14847         * math/s_ccosl.c: Rely entirely on ccoshl.
14848         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14849         Remove tests for FE_INVALID.
14850         * math/s_ccoshf.c: Likewise.
14851         * math/s_ccoshl.c: Likewise.
14852         * math/s_csin.c: Likewise.
14853         * math/s_csinf.c: Likewise.
14854         * math/s_csinh.c Likewise.
14855         * math/s_csinhf.c: Likewise.
14856         * math/s_csinhl.c: Likewise.
14857         * math/s_csinl.c: Likewise.
14858         * math/s_ctan.c: Likewise.
14859         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14860         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14861         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14862
14863 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14864
14865         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14866         compilation problems.
14867
14868         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14869         __builtin_expect.
14870
14871 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14872
14873         * sysdeps/i386/configure.in: Test for -mfma4 option.
14874         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14875         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14876         COMMON_CPUID_INDEX_80000001.
14877         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14878         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14879         use it if FMA3 is not supported.
14880         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14881
14882         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14883         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14884
14885 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14886
14887         [BZ #12892]
14888         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14889         it would create a cycle with a link time dependency.
14890
14891 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14892
14893         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14894         instruction.
14895         * string/Makefile (strop-tests): Add rawmemchr.
14896         * string/test-rawmemchr.c: New file.
14897
14898         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14899         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14900         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14901         when compiling str{,n}casecmp and when AVX is available.  Hook up
14902         new optimized code in initializers.
14903
14904 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14905
14906         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14907         __feraiseexcept instead of feraiseexcept.
14908
14909 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14910
14911         * math/math_private.h: Define defaults for libc_fetestexcept and
14912         libc_feupdateenv.
14913         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14914         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14915         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14916         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14917         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14918         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14919         libc_fetestexcept and libc_feupdateenv.
14920
14921         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14922         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14923         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14924         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14925         libc_feholdexcept_setround.
14926
14927         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14928         Add s_nearbyint-c and s_nearbyintf-c.
14929         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14930         nearbyintf inlines.
14931         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14932         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14933         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14934         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14935
14936         * math/math_private.h: Define defaults for libc_fegetround,
14937         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14938         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14939         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14940         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14941         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14942         standard functions.
14943         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14944         Remove comments and hacks for old compiler versions.
14945         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14946         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14947         libc_feholdexceptl.
14948
14949 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14950
14951         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14952         (__feraiseexcept_renamed): Add __NTH.
14953         (feraiseexcept): Add __NTH.  Rename local variables to fix
14954         namespace violations.
14955
14956 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14957
14958         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14959
14960         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14961
14962         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14963         recently added interfaces.
14964         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14965
14966         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14967         about macro parameter expansion.
14968
14969         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14970         __NO_MATH_INLINES is defined.  Cleanups.
14971
14972         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14973         and __floorf is target has SSE4.1.
14974         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14975         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14976         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14977         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14978
14979         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14980         name.
14981         (floorf): Likewise.
14982
14983         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14984
14985 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14986
14987         * misc/sys/cdefs.h: Fix last change.
14988
14989         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14990         database lookup.
14991
14992 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14993
14994         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14995
14996         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14997         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14998         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14999         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15000         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15001         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15002         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15003         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15004         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15005         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15006         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15007         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15008         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15009         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15010         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15011         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15012         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15013         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15014         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15015         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15016         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15017         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15018
15019         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15020         ceil, ceilf, floor, floorf.
15021
15022         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15023         Perform IRELATIVE relocations last.
15024
15025         * elf/do-rel.h: Add another parameter nrelative, replacing the
15026         local variable with the same name.  Change name of the function
15027         to end in Rel or Rela (uppercase).
15028         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15029         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15030         elf_dynamic_do_##reloc function.
15031
15032 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15033
15034         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15035         is sufficient, at least on modern CPUs.
15036
15037         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15038
15039         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15040         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15041
15042         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15043         __expl_finite.
15044         * math/bits/math-finite.h: Add entries for exp.
15045         * math/e_expl.c: Add __*_finite alias.
15046         * sysdeps/i386/fpu/e_exp.S: Likewise.
15047         * sysdeps/i386/fpu/e_expf.S: Likewise.
15048         * sysdeps/i386/fpu/e_expl.c: Likewise.
15049         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15050         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15051         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15052         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15053         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15054         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15055         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15056
15057         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15058         is sufficient, at least on modern CPUs.
15059
15060         * ctype/ctype-info.c (__ctype_init): Define.
15061         * include/ctype.h (__ctype_init): Declare.
15062         (__ctype_b_loc): The variable is always initialized.
15063         (__ctype_toupper_loc): Likewise.
15064         (__ctype_tolower_loc): Likewise.
15065         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15066         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15067
15068 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15069
15070         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15071
15072         * configure.in: Also look in $cxxmachine/include for C++ system
15073         headers.
15074
15075 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15076
15077         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15078         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15079         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15080         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15081         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15082         (USE_AS_WMEMCMP): New macro.
15083         Fixing indents.
15084         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15085         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15086         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15087         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15088         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15089         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15090         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15091         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15092         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15093         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15094         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15095         (USE_AS_WMEMCMP): New macro.
15096         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15097         * sysdeps/string/test-memcmp.c: Update.
15098         Fix simple_wmemcmp.
15099         Add new tests.
15100         * wcsmbs/wmemcmp.c: Update.
15101         (WMEMCMP): New macro.
15102         Fix overflow bug.
15103
15104 2011-10-12  Andreas Jaeger  <aj@suse.de>
15105
15106         [BZ #13268]
15107         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15108
15109 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15110
15111         * libio/iofwide.c (do_length): Avoid warning.
15112
15113         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15114
15115 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15116
15117         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15118
15119         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15120         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15121         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15122         * sysdeps/i386/i686/fpu/e_log.S: New file.
15123         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15124         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15125
15126         * ctype/ctype.h: Add support for inlined isXXX functions when
15127         compiling C++ code.
15128
15129 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15130
15131         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15132
15133         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15134
15135 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15136
15137         [BZ #13291]
15138         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15139
15140 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15141
15142         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15143         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15144         feraiseexcept.
15145
15146         * sysdeps/x86_64/memrchr.S: Check for zero size.
15147
15148         * string/stratcliff.c: Add memrchr tests.
15149
15150 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15151
15152         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15153         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15154         rawmemchr-sse2 rawmemchr-sse2-bsf.
15155         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15156         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15157         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15158         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15159         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15160         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15161         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15162         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15163         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15164         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15165         * string/memrchr.c (MEMRCHR): New macro.
15166
15167 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15168
15169         Add integration with gcc's -ffinite-math-only and optimize wrapper
15170         functions in libm.
15171         * Versions.def: Define GLIBC_2.15 version for libm.
15172         * math/Makefile (headers): Add bits/math-finite.h.
15173         * math/bits/math-finite.h: New file.
15174         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15175         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15176         * math/e_acoshl.c: Add __*_finite alias.
15177         * math/e_acosl.c: Likewise.
15178         * math/e_asinl.c: Likewise.
15179         * math/e_atan2l.c: Likewise.
15180         * math/e_atanhl.c: Likewise.
15181         * math/e_coshl.c: Likewise.
15182         * math/e_exp10.c: Likewise.
15183         * math/e_exp10f.c: Likewise.
15184         * math/e_exp10l.c: Likewise.
15185         * math/e_exp2l.c: Likewise.
15186         * math/e_fmodl.c: Likewise.
15187         * math/e_gammal_r.c: Likewise.
15188         * math/e_hypotl.c: Likewise.
15189         * math/e_j0l.c: Likewise.
15190         * math/e_j1l.c: Likewise.
15191         * math/e_jnl.c: Likewise.
15192         * math/e_lgammal_r.c: Likewise.
15193         * math/e_log10l.c: Likewise.
15194         * math/e_log2l.c: Likewise.
15195         * math/e_logl.c: Likewise.
15196         * math/e_powl.c: Likewise.
15197         * math/e_sinhl.c: Likewise.
15198         * math/e_sqrtl.c: Likewise.
15199         * math/e_scalb.c: Completely rewritten and optimized.
15200         * math/e_scalbf.c: Likewise.
15201         * math/e_scalbl.c: Likewise.
15202         * math/w_acos.c: Likewise.
15203         * math/w_acosf.c: Likewise.
15204         * math/w_acosl.c: Likewise.
15205         * math/w_acosh.c: Likewise.
15206         * math/w_acoshf.c: Likewise.
15207         * math/w_acoshl.c: Likewise.
15208         * math/w_asin.c: Likewise.
15209         * math/w_asinf.c: Likewise.
15210         * math/w_asinl.c: Likewise.
15211         * math/w_atan2.c: Likewise.
15212         * math/w_atan2f.c: Likewise.
15213         * math/w_atan2l.c: Likewise.
15214         * math/w_atanh.c: Likewise.
15215         * math/w_atanhf.c: Likewise.
15216         * math/w_atanhl.c: Likewise.
15217         * math/w_exp10.c: Likewise.
15218         * math/w_exp10f.c: Likewise.
15219         * math/w_exp10l.c: Likewise.
15220         * math/w_fmod.c: Likewise.
15221         * math/w_fmodf.c: Likewise.
15222         * math/w_fmodl.c: Likewise.
15223         * math/w_j0.c: Likewise.
15224         * math/w_j0f.c: Likewise.
15225         * math/w_j0l.c: Likewise.
15226         * math/w_j1.c: Likewise.
15227         * math/w_j1f.c: Likewise.
15228         * math/w_j1l.c: Likewise.
15229         * math/w_jn.c: Likewise.
15230         * math/w_jnf.c: Likewise.
15231         * math/w_log.c: Likewise.
15232         * math/w_logf.c: Likewise.
15233         * math/w_logl.c: Likewise.
15234         * math/w_log10.c: Likewise.
15235         * math/w_log10f.c: Likewise.
15236         * math/w_log10l.c: Likewise.
15237         * math/w_log2.c: Likewise.
15238         * math/w_log2f.c: Likewise.
15239         * math/w_log2l.c: Likewise.
15240         * math/w_pow.c: Likewise.
15241         * math/w_powf.c: Likewise.
15242         * math/w_powl.c: Likewise.
15243         * math/w_remainder.c: Likewise.
15244         * math/w_remainderf.c: Likewise.
15245         * math/w_remainderl.c: Likewise.
15246         * math/w_scalb.c: Likewise.
15247         * math/w_scalbf.c: Likewise.
15248         * math/w_scalbl.c: Likewise.
15249         * math/w_sqrt.c: Likewise.
15250         * math/w_sqrtf.c: Likewise.
15251         * math/w_sqrtl.c: Likewise.
15252         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15253         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15254         used.
15255         * math/math_private.h: Declare __kernel_standard_f.
15256         * math/w_cosh.c: Remove cruft and optimize a bit.
15257         * math/w_coshf.c: Likewise.
15258         * math/w_coshl.c: Likewise.
15259         * math/w_exp2.c: Likewise.
15260         * math/w_exp2f.c: Likewise.
15261         * math/w_exp2l.c: Likewise.
15262         * math/w_hypot.c: Likewise.
15263         * math/w_hypotf.c: Likewise.
15264         * math/w_hypotl.c: Likewise.
15265         * math/w_lgamma.c: Likewise.
15266         * math/w_lgamma_r.c: Likewise.
15267         * math/w_lgammaf.c: Likewise.
15268         * math/w_lgammaf_r.c: Likewise.
15269         * math/w_lgammal.c: Likewise.
15270         * math/w_lgammal_r.c: Likewise.
15271         * math/w_sinh.c: Likewise.
15272         * math/w_sinhf.c: Likewise.
15273         * math/w_sinhl.c: Likewise.
15274         * math/w_tgamma.c: Likewise.
15275         * math/w_tgammaf.c: Likewise.
15276         * math/w_tgammal.c: Likewise.
15277         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15278         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15279         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15280         Minor optimizations.  Pretty printing.  Remove cruft.
15281         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15282         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15283         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15284         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15285         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15286         * sysdeps/i386/fpu/e_asin.S: Likewise.
15287         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15288         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15289         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15290         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15291         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15292         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15293         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15294         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15295         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15296         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15297         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15298         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15299         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15300         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15301         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15302         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15303         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15304         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15305         * sysdeps/i386/fpu/e_log.S: Likewise.
15306         * sysdeps/i386/fpu/e_log10.S: Likewise.
15307         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15308         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15309         * sysdeps/i386/fpu/e_log2.S: Likewise.
15310         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15311         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15312         * sysdeps/i386/fpu/e_logf.S: Likewise.
15313         * sysdeps/i386/fpu/e_logl.S: Likewise.
15314         * sysdeps/i386/fpu/e_pow.S: Likewise.
15315         * sysdeps/i386/fpu/e_powf.S: Likewise.
15316         * sysdeps/i386/fpu/e_powl.S: Likewise.
15317         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15318         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15319         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15320         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15321         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15322         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15323         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15324         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15325         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15326         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15327         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15328         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15329         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15330         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15331         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15332         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15333         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15334         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15335         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15336         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15337         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15338         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15339         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15340         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15341         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15342         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15343         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15344         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15345         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15346         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15347         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15348         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15349         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15350         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15351         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15352         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15353         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15354         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15355         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15356         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15357         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15358         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15359         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15360         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15361         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15362         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15363         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15364         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15365         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15366         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15367         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15368         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15369         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15370         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15371         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15372         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15373         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15374         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15375         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15376         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15377         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15378         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15379         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15380         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15381         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15382         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15383         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15384         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15385         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15386         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15387         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15388         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15389         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15390         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15391         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15392         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15393         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15394         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15395         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15396         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15397         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15398         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15399         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15400         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15401         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15402         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15403         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15404         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15405         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15406         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15407         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15408         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15409         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15410         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15411         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15412         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15413         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15414         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15415         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15416         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15417         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15418         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15419         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15420         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15421         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15422         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15423         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15424         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15425         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15426         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15427         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15428         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15429         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15430         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15431         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15432         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15433         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15434         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15435         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15436         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15437         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15438         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15439         (__isnanf): Likewise.
15440         (__isinf_ns): Likewise.
15441         (__isinf_nsf): Likewise.
15442         (__finite): Likewise.
15443         (__finitef): Likewise.
15444         (__ieee754_sqrt): Define as macro.
15445         (__ieee754_sqrtf): Define as macro.
15446         (__ieee754_sqrtl): Define as macro.
15447         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15448         inlined copy.
15449         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15450         __FINITE_MATH_ONLY__ consistent.
15451         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15452
15453 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15454
15455         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15456         of rawmemchr.
15457
15458         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15459
15460 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15461
15462         * po/ja.po: Update from translation team.
15463
15464 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15465
15466         * locale/programs/locarchive.c (prepare_address_space): New function.
15467         (create_archive, enlarge_archive, open_archive): Use it.
15468
15469         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15470         inside [SHARED], where it is used.
15471
15472         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15473
15474         * nss/getent.c (netgroup_keys): Remove unused variable.
15475         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15476
15477 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15478
15479         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15480         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15481         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15482         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15483         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15484         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15485         * math/Makefile (libm-calls): Add s_isinf_ns.
15486         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15487         * math/multc3.c: Likewise.
15488         * math/s_casin.c: Likewise.
15489         * math/s_casinf.c: Likewise.
15490         * math/s_casinl.c: Likewise.
15491         * math/s_ccos.c: Likewise.
15492         * math/s_ccosf.c: Likewise.
15493         * math/s_ccosl.c: Likewise.
15494         * math/s_ctan.c: Likewise.
15495         * math/s_ctanf.c: Likewise.
15496         * math/s_ctanh.c: Likewise.
15497         * math/s_ctanhf.c: Likewise.
15498         * math/s_ctanhl.c: Likewise.
15499         * math/s_ctanl.c: Likewise.
15500         * math/w_fmod.c: Likewise.
15501         * math/w_fmodf.c: Likewise.
15502         * math/w_fmodl.c: Likewise.
15503         * math/w_remainder.c: Likewise.
15504         * math/w_remainderf.c: Likewise.
15505         * math/w_remainderl.c: Likewise.
15506         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15507         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15508         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15509         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15510         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15511         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15512         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15513         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15514
15515         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15516         of the number.
15517         * stdio-common/printf_fphex.c: Likewise.
15518         * stdio-common/printf_size.c: Likewise.
15519
15520         * math/e_exp10.c: Include math_private.h using <...> not "...".
15521         * math/e_exp10f.c: Likewise.
15522         * math/e_exp10l.c: Likewise.
15523         * math/e_exp2l.c: Likewise.
15524         * math/e_j0l.c: Likewise.
15525         * math/e_j1l.c: Likewise.
15526         * math/e_jnl.c: Likewise.
15527         * math/e_lgammal_r.c: Likewise.
15528         * math/e_rem_pio2l.c: Likewise.
15529         * math/e_scalb.c: Likewise.
15530         * math/e_scalbf.c: Likewise.
15531         * math/e_scalbl.c: Likewise.
15532         * math/k_cosl.c: Likewise.
15533         * math/k_sinl.c: Likewise.
15534         * math/k_tanl.c: Likewise.
15535         * math/s_cacoshf.c: Likewise.
15536         * math/s_catan.c: Likewise.
15537         * math/s_catanf.c: Likewise.
15538         * math/s_catanh.c: Likewise.
15539         * math/s_catanhf.c: Likewise.
15540         * math/s_catanhl.c: Likewise.
15541         * math/s_catanl.c: Likewise.
15542         * math/s_ccosh.c: Likewise.
15543         * math/s_ccoshf.c: Likewise.
15544         * math/s_ccoshl.c: Likewise.
15545         * math/s_cexp.c: Likewise.
15546         * math/s_cexpf.c: Likewise.
15547         * math/s_cexpl.c: Likewise.
15548         * math/s_clog.c: Likewise.
15549         * math/s_clog10.c: Likewise.
15550         * math/s_clog10f.c: Likewise.
15551         * math/s_clog10l.c: Likewise.
15552         * math/s_clogf.c: Likewise.
15553         * math/s_clogl.c: Likewise.
15554         * math/s_csin.c: Likewise.
15555         * math/s_csinf.c: Likewise.
15556         * math/s_csinh.c: Likewise.
15557         * math/s_csinhf.c: Likewise.
15558         * math/s_csinhl.c: Likewise.
15559         * math/s_csinl.c: Likewise.
15560         * math/s_csqrt.c: Likewise.
15561         * math/s_csqrtf.c: Likewise.
15562         * math/s_csqrtl.c: Likewise.
15563         * math/s_ctan.c: Likewise.
15564         * math/s_ctanf.c: Likewise.
15565         * math/s_ctanh.c: Likewise.
15566         * math/s_ctanhf.c: Likewise.
15567         * math/s_ctanhl.c: Likewise.
15568         * math/s_ctanl.c: Likewise.
15569         * math/s_ldexp.c: Likewise.
15570         * math/s_ldexpf.c: Likewise.
15571         * math/s_ldexpl.c: Likewise.
15572         * math/s_significand.c: Likewise.
15573         * math/s_significandf.c: Likewise.
15574         * math/s_significandl.c: Likewise.
15575         * math/w_acos.c: Likewise.
15576         * math/w_acosf.c: Likewise.
15577         * math/w_acosh.c: Likewise.
15578         * math/w_acoshf.c: Likewise.
15579         * math/w_acoshl.c: Likewise.
15580         * math/w_acosl.c: Likewise.
15581         * math/w_asin.c: Likewise.
15582         * math/w_asinf.c: Likewise.
15583         * math/w_asinl.c: Likewise.
15584         * math/w_atan2.c: Likewise.
15585         * math/w_atan2f.c: Likewise.
15586         * math/w_atan2l.c: Likewise.
15587         * math/w_atanh.c: Likewise.
15588         * math/w_atanhf.c: Likewise.
15589         * math/w_atanhl.c: Likewise.
15590         * math/w_cosh.c: Likewise.
15591         * math/w_coshf.c: Likewise.
15592         * math/w_coshl.c: Likewise.
15593         * math/w_dremf.c: Likewise.
15594         * math/w_exp10.c: Likewise.
15595         * math/w_exp10f.c: Likewise.
15596         * math/w_exp10l.c: Likewise.
15597         * math/w_exp2.c: Likewise.
15598         * math/w_exp2f.c: Likewise.
15599         * math/w_fmod.c: Likewise.
15600         * math/w_fmodf.c: Likewise.
15601         * math/w_fmodl.c: Likewise.
15602         * math/w_hypot.c: Likewise.
15603         * math/w_hypotf.c: Likewise.
15604         * math/w_hypotl.c: Likewise.
15605         * math/w_j0.c: Likewise.
15606         * math/w_j0f.c: Likewise.
15607         * math/w_j0l.c: Likewise.
15608         * math/w_j1.c: Likewise.
15609         * math/w_j1f.c: Likewise.
15610         * math/w_j1l.c: Likewise.
15611         * math/w_jn.c: Likewise.
15612         * math/w_jnf.c: Likewise.
15613         * math/w_jnl.c: Likewise.
15614         * math/w_lgamma.c: Likewise.
15615         * math/w_lgamma_r.c: Likewise.
15616         * math/w_lgammaf.c: Likewise.
15617         * math/w_lgammaf_r.c: Likewise.
15618         * math/w_lgammal.c: Likewise.
15619         * math/w_lgammal_r.c: Likewise.
15620         * math/w_log.c: Likewise.
15621         * math/w_log10.c: Likewise.
15622         * math/w_log10f.c: Likewise.
15623         * math/w_log10l.c: Likewise.
15624         * math/w_log2.c: Likewise.
15625         * math/w_log2f.c: Likewise.
15626         * math/w_log2l.c: Likewise.
15627         * math/w_logf.c: Likewise.
15628         * math/w_logl.c: Likewise.
15629         * math/w_pow.c: Likewise.
15630         * math/w_powf.c: Likewise.
15631         * math/w_powl.c: Likewise.
15632         * math/w_remainder.c: Likewise.
15633         * math/w_remainderf.c: Likewise.
15634         * math/w_remainderl.c: Likewise.
15635         * math/w_scalb.c: Likewise.
15636         * math/w_scalbf.c: Likewise.
15637         * math/w_scalbl.c: Likewise.
15638         * math/w_sinh.c: Likewise.
15639         * math/w_sinhf.c: Likewise.
15640         * math/w_sinhl.c: Likewise.
15641         * math/w_sqrt.c: Likewise.
15642         * math/w_sqrtf.c: Likewise.
15643         * math/w_sqrtl.c: Likewise.
15644         * math/w_tgamma.c: Likewise.
15645         * math/w_tgammaf.c: Likewise.
15646         * math/w_tgammal.c: Likewise.
15647
15648         * po/ja.po: Update from translation team.
15649
15650 2011-09-29  Andreas Jaeger  <aj@suse.de>
15651
15652         [BZ #13179]
15653         * sunrpc/netname.c (netname2host): Fix logic.
15654
15655         [BZ #6779]
15656         [BZ #6783]
15657         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15658         correctly.
15659         * math/w_remainder.c (__remainder): Likewise.
15660         * math/w_remainderf.c (__remainderf): Likewise.
15661         * math/libm-test.inc (remainder_test): Add test cases.
15662
15663 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15664
15665         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15666         sdiv_qrnnd.
15667
15668 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15669
15670         * string/test-memcmp.c: Avoid unncessary #defines.
15671         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15672
15673 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15674
15675         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15676         Use new sse2 version for core i3 - i7 as it's faster
15677         than sse42 version.
15678         (bit_Prefer_PMINUB_for_stringop): New.
15679         * sysdeps/x86_64/rawmemchr.S: Update.
15680         Replace with faster SSE2 version.
15681         * sysdeps/x86_64/memrchr.S: New file.
15682         * sysdeps/x86_64/memchr.S: Update.
15683         Replace with faster SSE2 version.
15684
15685 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15686
15687         * elf/dl-load.c (lose): Add cast to avoid warning.
15688
15689 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15690
15691         * po/ca.po: Update from translation team.
15692
15693         * inet/getnetgrent_r.c: Hook up nscd.
15694         * nscd/Makefile (routines): Add nscd_netgroup.
15695         (nscd-modules): Add netgroupcache.
15696         (CFLAGS-netgroupcache.c): Define.
15697         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15698         (cache_search): Add const to second parameter.
15699         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15700         INNETGR.
15701         (dbs): Add netgrdb entry.
15702         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15703         (verify_persistent_db): Handle netgrdb.
15704         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15705         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15706         GETFDNETGR.
15707         (netgroup_response_header): Define.
15708         (innetgroup_response_header): Define.
15709         (datahead): Add netgroup_response_header and innetgroup_response_header
15710         elements.
15711         * nscd/nscd.conf: Add entries for netgroup cache.
15712         * nscd/nscd.h (dbtype): Add netgrdb.
15713         (_PATH_NSCD_NETGROUP_DB): Define.
15714         (netgroup_iov_disabled): Declare.
15715         (xmalloc, xcalloc, xrealloc): Move declarations here.
15716         (cache_search): Adjust prototype.
15717         Add netgroup-related prototypes.
15718         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15719         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15720         (__nscd_innetgr): Declare.
15721         * nscd/selinux.c (perms): Use access_vector_t as element type and
15722         add netgroup-related initializers.
15723         * nscd/netgroupcache.c: New file.
15724         * nscd/nscd_netgroup.c: New file.
15725         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15726         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15727         For four parameters use innetgr.
15728         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15729         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15730         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15731         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15732
15733         * nscd/connections.c (register_traced_file): Don't register file
15734         for disabled databases.
15735
15736 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15737
15738         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15739
15740         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15741         from tree and freeing node.
15742
15743 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15744
15745         * nss/nsswitch.c (__nss_database_lookup): Handle
15746         nss_parse_service_list out of memory case.
15747
15748 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15749
15750         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15751         out of memory case.
15752
15753 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15754
15755         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15756         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15757         pass it down.
15758         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15759         elf_machine_rela, elf_machine_lazy_rel.
15760         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15761         (ELF_DYNAMIC_DO_REL): Likewise.
15762         (ELF_DYNAMIC_DO_RELA): Likewise.
15763         (ELF_DYNAMIC_RELOCATE): Likewise.
15764         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15765         to ELF_DYNAMIC_DO_REL.
15766         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15767         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15768         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15769         elf_machine_rela.
15770         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15771         skip_ifunc, don't call ifunc function if non-zero.
15772         (elf_machine_rela): Likewise.
15773         (elf_machine_lazy_rel): Likewise.
15774         (elf_machine_lazy_rela): Likewise.
15775         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15776         (elf_machine_lazy_rel): Likewise.
15777         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15778         Likewise.
15779         (elf_machine_lazy_rel): Likewise.
15780         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15781         Likewise.
15782         (elf_machine_lazy_rel): Likewise.
15783         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15784         (elf_machine_lazy_rel): Likewise.
15785         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15786         (elf_machine_lazy_rel): Likewise.
15787         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15788         (elf_machine_lazy_rel): Likewise.
15789         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15790         (elf_machine_lazy_rel): Likewise.
15791         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15792         (elf_machine_lazy_rel): Likewise.
15793         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15794         (elf_machine_lazy_rel): Likewise.
15795
15796 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15797
15798         * nss/nss_files/files-init.c (_nss_files_init): Use static
15799         initialization for all the *_traced_file variables.
15800
15801 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15802
15803         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15804
15805 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15806
15807         [BZ #13226]
15808         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15809
15810 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15811
15812         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15813         Reread the line before reparsing it.
15814
15815 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15816
15817         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15818
15819 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15820             Maxim Kuvyrkov  <maxim@codesourcery.com>
15821             Joseph Myers  <joseph@codesourcery.com>
15822
15823         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15824         if needed for __stack_chk_guard.
15825
15826 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15827
15828         * sysdeps/posix/spawni.c (script_execute): Always define it.
15829         It will be optimized away if unused.
15830         (maybe_script_execute): New function.
15831         (__spawni): Call it.
15832
15833         * Makerules: Don't include tls.make.
15834         (config-tls): Always set to thread.
15835         * tls.make.c: File removed.
15836
15837 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15838
15839         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15840         * config.make.in (CPPFLAGS-config): New substituted variable.
15841
15842 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15843
15844         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15845
15846         [BZ #13192]
15847         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15848         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15849
15850 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15851
15852         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15853         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15854         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15855         (CALL_FAIL): Likewise.
15856         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15857         (CALL_FAIL): Macro removed.
15858         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15859
15860 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15861
15862         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15863         for __FINITE_MATH_ONLY__ == 1.
15864
15865 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15866
15867         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15868         __ieee754_sqrt instead of sqrt.
15869         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15870         __ieee754_sqrtf instead of sqrtf.
15871         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15872         __floorf instead of floorf.
15873         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15874         __floorf, __truncf instead of floorf, truncf.
15875
15876 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15877
15878         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15879
15880         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15881         __extern_always_inline.
15882         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15883         32-bit.
15884
15885 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15886
15887         * elf/rtld.c (dl_main): Also relocate in dependency order when
15888         doing symbol dependency testing.
15889
15890 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15891
15892         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15893         Always define `refsym'.
15894
15895 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15896
15897         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15898         (__FD_ELT): Renamed from __FDELT.
15899         * misc/bits/select2.h (__FD_ELT): Likewise.
15900         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15901         __FD_MASK instead of __FDELT, __FDMASK.
15902         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15903         Likewise.
15904         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15905         Likewise.
15906
15907         * elf/Makefile (gen-ldd): Fix pattern.
15908
15909         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15910         (init_tls): Likewise.
15911
15912 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15913
15914         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15915
15916 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15917
15918         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15919         `struct cmsghdr *' instead of `void *'.
15920         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15921         Likewise.
15922
15923 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15924
15925         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15926         if non-absolute.
15927         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15928         ldd_rewrite_script.
15929
15930 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15931
15932         * configure.in: Remove --with-tls option.
15933         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15934         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15935         out in case it is missing.
15936         * sysdeps/ia64/elf/configure.in: Likewise.
15937         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15938         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15939         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15940         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15941         * sysdeps/sh/elf/configure.in: Likewise.
15942         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15943         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15944         * sysdeps/x86_64/elf/configure.in: Likewise.
15945         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15946         * sysdeps/mach/hurd/tls.h: Likewise.
15947
15948         [BZ #13067]
15949         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15950
15951         [BZ #13090]
15952         * configure.in: Fix use of AC_INIT.
15953
15954         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15955
15956 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15957
15958         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15959         __set_errno.
15960         * malloc/hooks.c: Likewise.
15961
15962         [BZ #11929]
15963         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15964         variables statically.
15965         (narenas): Initialize.
15966         (list_lock): Initialize.
15967         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15968         initializtion of main_arena and list_lock.  Small cleanups.
15969         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15970         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15971         Add initializers to main_arena and mp_.
15972         (malloc_state): Remove pagesize member.  Change all users to use
15973         GLRO(dl_pagesize).
15974
15975         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15976         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15977         is always initialized.
15978
15979         * malloc/malloc.c: Removed unused configurations and dead code.
15980         * malloc/arena.c: Likewise.
15981         * malloc/hooks.c: Likewise.
15982         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15983
15984         * include/tls.h: Removed.  USE___THREAD must always be defined.
15985         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15986         * elf/dl-libc.c: Likewise.
15987         * elf/dl-tsd.c: Likewise.
15988         * include/errno.h: Likewise.
15989         * include/netdb.h: Likewise.
15990         * include/resolv.h: Likewise.
15991         * inet/herrno-loc.c: Likewise.
15992         * inet/herrno.c: Likewise.
15993         * malloc/arena.c: Likewise.
15994         * malloc/hooks.c: Likewise.
15995         * malloc/malloc.c: Likewise.
15996         * resolv/res-state.c: Likewise.
15997         * resolv/res_libc.c: Likewise.
15998         * sysdeps/i386/dl-machine.h: Likewise.
15999         * sysdeps/ia64/dl-machine.h: Likewise.
16000         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16001         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16002         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16003         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16004         * sysdeps/sh/dl-machine.h: Likewise.
16005         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16006         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16007         * sysdeps/unix/i386/sysdep.S: Likewise.
16008         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16009         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16010         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16011         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16012         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16013         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16014         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16015         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16016         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16017         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16018         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16019         * sysdeps/x86_64/dl-machine.h: Likewise.
16020         * tls.make.c: Likewise.
16021
16022         * configure.in: Remove --with-__thread option.  Make tests for
16023         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16024         tls_model attribute fail if no support is available.  Remove
16025         USE_IN_LIBIO.
16026         * Makeconfig: Adjust for dropped configure option.  All features are
16027         now mandatory.
16028         * Makerules: Likewise.
16029         * Versions.def: Likewise.
16030         * argp/argp-fmtstream.c: Likewise.
16031         * argp/argp-fmtstream.h: Likewise.
16032         * argp/argp-help.c: Likewise.
16033         * assert/assert.c: Likewise.
16034         * config.h.in: Likewise.
16035         * config.make.in: Likewise.
16036         * configure: Likewise.
16037         * configure.in: Likewise.
16038         * csu/Versions: Likewise.
16039         * csu/init.c: Likewise.
16040         * elf/tst-audit2.c: Likewise.
16041         * elf/tst-tls10.c: Likewise.
16042         * elf/tst-tls10.h: Likewise.
16043         * elf/tst-tls11.c: Likewise.
16044         * elf/tst-tls12.c: Likewise.
16045         * elf/tst-tls14.c: Likewise.
16046         * elf/tst-tlsmod11.c: Likewise.
16047         * elf/tst-tlsmod12.c: Likewise.
16048         * elf/tst-tlsmod13.c: Likewise.
16049         * elf/tst-tlsmod13a.c: Likewise.
16050         * elf/tst-tlsmod14a.c: Likewise.
16051         * elf/tst-tlsmod15b.c: Likewise.
16052         * elf/tst-tlsmod16a.c: Likewise.
16053         * elf/tst-tlsmod16b.c: Likewise.
16054         * elf/tst-tlsmod7.c: Likewise.
16055         * elf/tst-tlsmod8.c: Likewise.
16056         * elf/tst-tlsmod9.c: Likewise.
16057         * gmon/gmon.c: Likewise.
16058         * grp/fgetgrent_r.c: Likewise.
16059         * grp/putgrent.c: Likewise.
16060         * hurd/fopenport.c: Likewise.
16061         * include/libc-symbols.h: Likewise.
16062         * include/tls.h: Likewise.
16063         * intl/gettextP.h: Likewise.
16064         * intl/loadinfo.h: Likewise.
16065         * locale/global-locale.c: Likewise.
16066         * locale/localeinfo.h: Likewise.
16067         * mach/devstream.c: Likewise.
16068         * malloc/arena.c: Likewise.
16069         * malloc/set-freeres.c: Likewise.
16070         * misc/err.c: Likewise.
16071         * misc/getttyent.c: Likewise.
16072         * misc/mntent_r.c: Likewise.
16073         * posix/getopt.c: Likewise.
16074         * posix/wordexp.c: Likewise.
16075         * pwd/fgetpwent_r.c: Likewise.
16076         * resolv/Versions: Likewise.
16077         * resolv/res_hconf.c: Likewise.
16078         * shadow/fgetspent_r.c: Likewise.
16079         * shadow/putspent.c: Likewise.
16080         * stdio-common/printf_fphex.c: Likewise.
16081         * stdio-common/tmpfile.c: Likewise.
16082         * stdlib/abort.c: Likewise.
16083         * stdlib/fmtmsg.c: Likewise.
16084         * sunrpc/auth_unix.c: Likewise.
16085         * sunrpc/clnt_perr.c: Likewise.
16086         * sunrpc/clnt_tcp.c: Likewise.
16087         * sunrpc/clnt_udp.c: Likewise.
16088         * sunrpc/clnt_unix.c: Likewise.
16089         * sunrpc/openchild.c: Likewise.
16090         * sunrpc/svc_simple.c: Likewise.
16091         * sunrpc/svc_tcp.c: Likewise.
16092         * sunrpc/svc_udp.c: Likewise.
16093         * sunrpc/svc_unix.c: Likewise.
16094         * sunrpc/xdr.c: Likewise.
16095         * sunrpc/xdr_array.c: Likewise.
16096         * sunrpc/xdr_rec.c: Likewise.
16097         * sunrpc/xdr_ref.c: Likewise.
16098         * sunrpc/xdr_stdio.c: Likewise.
16099
16100 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16101
16102         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16103
16104 2011-07-03  Andreas Jaeger  <aj@suse.de>
16105
16106         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16107         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16108         regenerate with gen-libm-tests.pl.
16109
16110 2010-05-12  Petr Baudis  <pasky@suse.cz>
16111
16112         [BZ #11589]
16113         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16114         around j0() zero points by switching to j1().
16115         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16116         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16117         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16118         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16119
16120 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16121
16122         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16123         instead of 0.
16124         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16125         instead of 0.                              .
16126         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16127         Patch in part by Pavel Roskin <proski@gnu.org>.
16128
16129         [BZ #13138]
16130         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16131         realloc.
16132         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16133         Free memory block if necessary.
16134
16135         [BZ #12847]
16136         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16137         be NULL.  Don't lock in this case.
16138
16139 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16140
16141         * elf/elf.h (ELFOSABI_GNU): New macro.
16142         (ELFOSABI_LINUX): Define to that.
16143
16144 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16145
16146         * string/strncat.c (strncat): Undef the symbol in case it has been
16147         defined in bits/string.h.
16148
16149 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16150
16151         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16152
16153         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16154         link map.
16155
16156 2011-08-17  Andreas Jaeger  <aj@suse.de>
16157
16158         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16159
16160 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16161             Ian Lance Taylor  <iant@google.com>
16162
16163         * math/libm-test.inc (lround_test): New testcase.
16164         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16165
16166 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16167
16168         * Makefile: Remove support for automatic cvs check-ins.
16169         * Makerules: Likewise.
16170         * config.make.in: Likewise.
16171         * configure.in: Likewise.
16172         * intl/Makefile: Likewise.
16173         * locale/Makefile: Likewise.
16174         * po/Makefile: Likewise.
16175         * posix/Makefile: Likewise.
16176         * sysdeps/gnu/Makefile: Likewise.
16177         * sysdeps/mach/hurd/Makefile: Likewise.
16178         * sysdeps/sparc/sparc32/Makefile: Likewise.
16179
16180         [BZ #13118]
16181         * posix/Makefile (bug-regex32-ENV): Define.
16182         Patch by John Stanley <jpsinthemix@verizon.net>.
16183
16184         * misc/Makefile (headers): Add bits/select2.h.
16185         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16186         * misc/bits/select2.h: New file.
16187         * include/bits/select2.h: New file.
16188         * debug/Makefile (routines): Add fdelt_chk.
16189         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16190         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16191         FD_ISSET.
16192         * debug/fdelt_chk.c: New file.
16193
16194         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16195         * wcsmbs/test-wmemcmp.c: Likewise.
16196         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16197         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16198
16199 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16200
16201         * string/Makefile (strop-tests): Add memcmp.
16202         * string/test-wmemcmp.c: New file.
16203         * string/test-memcmp.c: Add wmemcmp support.
16204
16205 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16206
16207         [BZ #13153]
16208         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16209         2011-07-19 change.
16210
16211         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16212         garbage value in a __mach_port_mod_refs call in the cases of the
16213         task-self and thread-self ports.
16214
16215 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16216
16217         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16218
16219 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16220
16221         * elf/dl-load.c (lose): Check for non-null L.
16222
16223 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16224
16225         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16226
16227         * elf/dl-libc.c (dlerror_run): Pass back error code from
16228         dl_catch_error.
16229
16230         [BZ #13123]
16231         * elf/dl-load.c (lose): Free l_origin if it is valid.
16232
16233         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16234         names.
16235         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16236         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16237         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16238         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16239         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16240         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16241
16242 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16243
16244         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16245         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16246         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16247         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16248         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16249         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16250         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16251         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16252         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16253         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16254
16255 2011-08-15  Alan Modra  <amodra@gmail.com>
16256
16257         [BZ #13092]
16258         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16259         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16260         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16261         ppc_mcount to static-only-routines.
16262         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16263         __mcount_internal.
16264         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16265         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16266
16267 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16268
16269         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16270         for finite and infinity parameters.
16271
16272 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16273
16274         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16275         and add nop instructions for throughput optimization.
16276         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16277
16278 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16279
16280         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16281         aligned copy for power7 with vector-scalar instructions.
16282         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16283
16284 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16285
16286         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16287         AVX check.
16288
16289 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16290
16291         [BZ #13144]
16292         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16293         last change.
16294
16295 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16296
16297         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16298         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16299         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16300         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16301         clock_gettime.
16302
16303 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16304
16305         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16306         Forgot to demangle the pointer.
16307
16308         * sysdeps/i386/sysdep.h: Define atom_text_section.
16309         * sysdeps/x86_64/sysdep.h: Likewise.
16310         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16311         section with atom_text_section.
16312         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16313         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16314         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16315         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16316         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16317
16318         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16319         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16320         already be defined.  Change to take two parameters and don't assign
16321         result to variable.  Adjust all users.
16322         Define INTERNAL_GETTIME if not already defined.
16323         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16324         call.
16325         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16326         HAVE_CLOCK_GETTIME_VSYSCALL.
16327         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16328
16329         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16330         gettimeofday vsyscall, just use time.
16331
16332 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16333
16334         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16335         <errno.h>.
16336
16337 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16338
16339         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16340         syscall on x86-64.
16341         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16342         syscall.
16343         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16344         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16345         syscall if possible.
16346
16347 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16348
16349         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16350         e_ident.  Don't pass to find_mapsXX.
16351         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16352
16353 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16354
16355         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16356         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16357         * sysdeps/x86_64/multiarch/strchr.S: Update.
16358         Check bit_slow_BSF bit.
16359         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16360         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16361         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16362
16363 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16364
16365         [BZ #13134]
16366         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16367         before glibc 2.15.
16368         (tryshell): Define.
16369         (__spawni): Change last parameter to be flag.  Test
16370         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16371         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16372         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16373         * posix/spawni.c: Likewise.
16374         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16375         * posix/spawnp.c: Likewise.  Change normal version to use
16376         SPAWN_XFLAGS_USE_PATH.
16377         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16378         SPAWN_XFLAGS_TRY_SHELL.
16379
16380         [BZ #13150]
16381         * posix/glob.h: Remove gcc 1.x support.
16382
16383         [BZ #13068]
16384         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16385
16386 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16387
16388         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16389         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16390         strrchr-sse2-bsf
16391         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16392         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16393         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16394         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16395         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16396         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16397
16398 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16399
16400         * sysdeps/x86_64/wcscmp.S: New file.
16401
16402         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16403         wcscmp-c wcscmp-sse2
16404         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16405         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16406         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16407         * wcsmbs/wcscmp.c: Allow renaming.
16408
16409 2011-09-05  David S. Miller  <davem@davemloft.net>
16410
16411         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16412         stack slot, rather than the struct return pointer slot.
16413         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16414         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16415         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16416         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16417
16418 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16419
16420         * po/ja.po: Update from translation team.
16421
16422         [BZ #13144]
16423         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16424         kernel in 64-bit binaries.
16425
16426 2011-09-01  David S. Miller  <davem@davemloft.net>
16427
16428         * elf/elf.h (HWCAP_SPARC_*): Move to..
16429         * sysdeps/sparc/sysdep.h: this new file and add new values.
16430         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16431         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16432         _DL_HWCAP_COUNT to 24.
16433         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16434         entries.
16435         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16436         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16437         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16438         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16439         instead of magic constants.
16440         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16441
16442 2011-08-31  David S. Miller  <davem@davemloft.net>
16443
16444         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16445         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16446         Reimplement to do errno handling inline.
16447         (SYSCALL_ERROR_HANDLER): New macro.
16448         (__SYSCALL_STRING): Do not do errno handling in asm.
16449         (__CLONE_SYSCALL_STRING): Delete.
16450         (__INTERNAL_SYSCALL_STRING): Delete.
16451         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16452         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16453         (PSEUDO): Reimplement to do errno handling inline.
16454         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16455         (SYSCALL_ERROR_HANDLER): New macro.
16456         (__SYSCALL_STRING): Do not do errno handling in asm.
16457         (__CLONE_SYSCALL_STRING): Delete.
16458         (__INTERNAL_SYSCALL_STRING): Delete.
16459         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16460         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16461         i386.
16462         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16463         (inline_syscall*): Add 'err' argument.
16464         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16465         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16466         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16467         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16468
16469         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16470         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16471
16472 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16473
16474         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16475
16476 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16477
16478         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16479         directive.
16480
16481 2011-08-24  David S. Miller  <davem@davemloft.net>
16482
16483         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16484
16485 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16486
16487         * elf/Makefile: Add rules to build and run unload8 test.
16488         * elf/unload8.c: New file.
16489         * elf/unload8mod1.c: New file.
16490         * elf/unload8mod1x.c: New file.
16491         * elf/unload8mod2.c: New file.
16492         * elf/unload8mod3.c: New file.
16493
16494         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16495         it wasn't used.
16496
16497 2011-08-23  David S. Miller  <davem@davemloft.net>
16498
16499         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16500         subtract stack bias.
16501         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16502         %sp not %fp in calculations.
16503         (_JMPBUF_UNWINDS_ADJ): Likewise.
16504
16505         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16506         (aio_suspend): Call it to force an exception region around the
16507         AIO_MISC_WAIT() invocation.
16508
16509 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16510
16511         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16512         backslash.
16513
16514 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16515
16516         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16517         protection macro.
16518         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16519         and <dl-machine.h>.
16520         (Elf64_FuncDesc): Remove.
16521
16522 2011-08-22  David S. Miller  <davem@davemloft.net>
16523
16524         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16525         sigaltstack check, add missing cfi directives.
16526         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16527         missing cfi directives, and sigaltstack handling.
16528
16529 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16530
16531         [BZ #11724]
16532         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16533         object is seen twice.
16534         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16535
16536         * elf/Makefile (distribute): Add tst-initorder2.c.
16537         (tests): Add tst-initorder2.
16538         (modules-names): Add tst-initorder2a tst-initorder2b
16539         tst-initorder2c tst-initorder2d.  Add rules to build them.
16540         ($(objpfx)tst-initorder2.out): New rule.
16541         * elf/tst-initorder2.c: New file.
16542         * elf/tst-initorder2.exp: New file.
16543
16544 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16545
16546         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16547
16548         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16549         dependencies back to end of function.
16550
16551         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16552         $(elfobjdir)/ld.so.
16553
16554 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16555
16556         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16557         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16558         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16559         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16560         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16561         of __vdso_gettimeofday.
16562         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16563         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16564         attribute_hidden.
16565         (_libc_vdso_platform_setup): Remove initialization of
16566         __vdso_gettimeofday and __vdso_time.
16567
16568 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16569
16570         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16571         and fgetc_unlocked.
16572         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16573         getc_unlocked.
16574
16575         * elf/dl-open.c (add_to_global): Report additions to the global scope
16576         for LD_DEBUG=scopes.
16577         (dl_open_worker): Also print scope of newly loaded dependencies.
16578         (_dl_show_scope): Indicate if there is no scope.
16579
16580         [BZ #13114]
16581         * stdio-common/Makefile (tests): Add bug24.
16582         * stdio-common/bug24.c: New file.
16583
16584 2011-08-19  Andreas Jaeger  <aj@suse.de>
16585
16586         [BZ #13114]
16587         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16588         non-existant file when using close-on-exec mode.
16589
16590 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16591
16592         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16593         the very first instruction.
16594
16595         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16596         the CFI state in the end.
16597         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16598         inclusion of dl-trampoline.h.
16599         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16600
16601 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16602
16603         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16604         expectations for long double.
16605
16606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16607         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16608
16609 2011-08-14  David S. Miller  <davem@davemloft.net>
16610
16611         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16612         artificual limit depends upon the system page size.
16613
16614 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16615
16616         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16617         * resolv/Makefile: Define CFLAGS-libresolv.
16618
16619 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16620
16621         * nss/makedb.c (compute_tables): Make variables used in nested
16622         function static.
16623
16624 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16625
16626         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16627         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16628         if buffer was too small.
16629
16630         * elf/pldd.c (main): Attach to all threads in the process.
16631         Rewrite /proc handling to use *at functions.
16632
16633 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16634
16635         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16636         specifies first scope to show.
16637         (dl_open_worker): Update callers.  Move printing scope of new
16638         object to before the relocation.
16639         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16640         * sysdeps/generic/ldsodefs.h: Update declaration.
16641
16642         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16643         string for the scope number.
16644
16645 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16646
16647         * nscd/servicescache.c (cache_addserv): Make sure written is always
16648         initialized.
16649
16650 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16651
16652         * sysdeps/i386/i486/bits/atomic.h
16653         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16654         statement expression, so as to suppress "set but not used" warning.
16655         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16656
16657         * string/strncat.c (STRNCAT): Use prototype definition.
16658
16659         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16660         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16661         -Iprograms here.
16662         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16663         (localedef-modules): Add localedef.
16664         (locale-modules): Add locale.
16665
16666         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16667         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16668         to avoid a warning.
16669
16670 2011-08-14  David S. Miller  <davem@davemloft.net>
16671
16672         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16673         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16674
16675 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16676
16677         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16678         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16679         * elf/rtld.c (dl_main): Set l_name of vDSO.
16680         Call _dl_show_scope when DL_DEBUG_SCOPES.
16681         (process_dl_debug): Recognize scopes flag and also set it for all.
16682         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16683         Declare _dl_show_scope.
16684
16685         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16686         (do_dlopen): Pass caller_dlopen to dl_open.
16687         (__libc_dlopen_mode): Initialize caller_dlopen.
16688
16689         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16690         of libc.  Make tolower call locale-independent.  Optimize a bit by
16691         using isdigit instead of isalnum.
16692         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16693
16694 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16695
16696         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16697         was a dependency or dynamically loaded.
16698
16699 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16700
16701         * intl/l10nflist.c: Allow architecture-specific pop function.
16702         * sysdeps/x86_64/l10nflist.c: New file.
16703
16704         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16705         classification.
16706
16707 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16708
16709         * include/dirent.h: Add libc_hidden_proto for scandirat and
16710         scandirat64.  Don't declare __scandirat64.
16711         * dirent/scandirat.c: Add libc_hidden_def.
16712         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16713         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16714
16715 2011-08-10  David S. Miller  <davem@davemloft.net>
16716
16717         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16718         enum.
16719         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16720         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16721         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16722
16723 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16724
16725         * Versions.def [libc]: Add GLIBC_2.15.
16726         * dirent/Makefile (routines): Add scandirat and scandirat64.
16727         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16728         GLIBC_2.15.
16729         * dirent/dirent.h: Declare scandirat and scandirat64.
16730         * dirent/scandirat.c: New file.
16731         * dirent/scandirat64.c: New file.
16732         * sysdeps/wordsize-64/scandirat.c: New file.
16733         * sysdeps/wordsize-64/scandirat64.c: New file.
16734         * dirent/opendir.c: Define opendirat.
16735         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16736         using scandirat.
16737         * dirent/scandir64.c: Adjust for scandir.c change.
16738         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16739         __scandirat64, and __scandir_cancel_handler.
16740         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16741         additional parameter and use openat instead of open (outside of ld.so).
16742         Add new __opendir as wrapper around __opendirat.
16743         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16744         here without requiring old scandirat implementation.
16745
16746 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16747
16748         * dirent/scandir.c (cancel_handler): Renamed to
16749         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16750         defined.  Adjust users.
16751         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16752         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16753
16754 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16755
16756         * string/test-string.h (IMPL): Use __STRING to expand name and then
16757         stringify it.
16758
16759         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16760         of cleanups.
16761
16762 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16763
16764         * string/Makefile: Update.
16765         (strop-tests): Append strncat.
16766         * string/test-wcscmp.c: New file.
16767         New comprehensive test for wcscmp.
16768         * string/test-strcmp.c: Update.
16769         (WIDE): New define.
16770
16771 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16772
16773         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16774         line.
16775
16776 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16777
16778         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16779         encoding to ACE if AI_IDN.
16780
16781 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16782
16783         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16784         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16785
16786 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16787
16788         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16789         Fix overflow bug in strncat.
16790         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16791
16792         * string/test-strncat.c: Update.
16793         Add new tests for checking overflow bugs.
16794
16795 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16796
16797         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16798         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16799         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16800         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16801         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16802         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16803         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16804         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16805         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16806
16807         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16808         (USE_AS_STRCAT): Define.
16809         Add strcat and strncat support.
16810         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16811
16812 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16813
16814         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16815         __n bigger than INT_MAX+1.
16816         (__strncmp_g): Likewise.
16817
16818 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16819
16820         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16821         * libio/stido.h: Likewise.
16822
16823         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16824         (AF_NFC): Define.
16825         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16826         (AF_NFC): Define.
16827
16828         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16829         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16830         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16831         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16832         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16833
16834         [BZ #13021]
16835         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16836         installed.
16837
16838         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16839         typo.
16840         (_dl_x86_64_save_sse): Likewise.
16841
16842 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16843
16844         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16845         OSXSAVE.
16846         (_dl_x86_64_save_sse): Likewise.
16847
16848         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16849
16850         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16851
16852 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16853
16854         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16855         change.
16856         (_dl_x86_64_save_sse): Use correct AVX check.
16857
16858 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16859
16860         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16861         bug in strncpy/strncat.
16862         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16863
16864 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16865
16866         * string/tester.c (test_strcat): Add tests for different alignments
16867         of source and destination.
16868         (test_strncat): Likewise.
16869
16870 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16871
16872         [BZ #12852]
16873         * posix/glob.c (glob): Check passed in values before using them in
16874         expressions to avoid some overflows.
16875         (glob_in_dir): Likewise.
16876
16877         [BZ #13007]
16878         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16879         check for AVX enablement so that we don't crash with old kernels and
16880         new hardware.
16881         * elf/tst-audit4.c: Add same checks here.
16882         * elf/tst-audit6.c: Likewise.
16883
16884         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16885
16886 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16887
16888         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16889
16890 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16891
16892         * po/cs.po: Update from translation team.
16893         * po/bg.po: Likewise.
16894
16895 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16896
16897         * misc/sys/cdefs.h: Add support for const attribute.
16898         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16899         to gnu_dev_{major,minor,makedev} functions.
16900
16901 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16902
16903         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16904
16905 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16906
16907         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16908         strlen results.
16909
16910 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16911
16912         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16913         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16914         register in order to avoid conflicts with the soft frame pointer
16915         being held in r11 when necessary.
16916         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16917         (INTERNAL_VSYSCALL_NCS): Likewise.
16918
16919 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16920
16921         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16922         * elf/dl-fini.c (_dl_fini): Adjust caller.
16923         * elf/dl-close.c (_dl_close_worker): Likewise.
16924         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16925
16926 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16927
16928         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16929         "aux_cache->nlibs < 0".
16930
16931         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16932         in the reload-count case.
16933
16934 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16935
16936         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16937         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16938         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16939         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16940         * sysdeps/x86_64/multiarch/strcat.S: New file.
16941         * sysdeps/x86_64/multiarch/strncat.S: New file.
16942         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16943         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16944         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16945         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16946         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16947         (USE_AS_STRCAT): Define.
16948         Add strcat and strncat support.
16949         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16950         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16951         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16952         * string/strncat.c: Update.
16953         (USE_AS_STRNCAT): Define.
16954         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16955         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16956         and i7.
16957         * sysdeps/x86_64/multiarch/init-arch.h
16958         (bit_Prefer_PMINUB_for_stringop): New.
16959         (index_Prefer_PMINUB_for_stringop): Likewise.
16960         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16961         bit_Prefer_PMINUB_for_stringop.
16962
16963 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16964
16965         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16966         buffer64.
16967         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16968         of casting of buffer.
16969         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16970         buffer32 and buffer64.
16971         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16972         writes instead of casting of buffer.
16973         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16974         buffer32.
16975         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16976         casting of buffer.
16977
16978 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16979
16980         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16981
16982 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16983
16984         * nscd/nscd.c (termination_handler): Don't do anything for a database
16985         if it has not yet been initialized.
16986
16987 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16988
16989         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16990
16991 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16992
16993         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16994
16995 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16996
16997         * po/nl.po: Update from translation team.
16998         * po/sv.po: Likewise.
16999
17000 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17001
17002         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17003         now disallowed by GCC.
17004
17005         * configure.in (use-default-link): Default to yes if a test -shared
17006         link meets our qualifications.
17007         * configure: Regenerated.
17008
17009         * config.make.in (output-format): New variable.
17010         * configure.in: Check for ld --print-output-format support.
17011         * configure: Regenerated.
17012         * Makerules ($(common-objpfx)format.lds)
17013         [$(output-format) != unknown]: Just use $(output-format),
17014         instead of the linker-script munging.
17015
17016 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17017
17018         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17019         of $(common-objpfx)shlib.lds.
17020         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17021
17022         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17023         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17024
17025         * configure.in (-z relro check): Adjust test code to add a large
17026         writable data section after it.
17027         * configure: Regenerated.
17028
17029 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17030
17031         * configure.in (-z relro check): Fix test code to make the variable
17032         truly const.
17033         * configure: Regenerated.
17034
17035 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17036
17037         * nscd/nscd.h (struct traced_file): Define.
17038         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17039         elements.  Add traced_files.
17040         (inotify_fd): Declare.
17041         (register_traced_file): Declare.
17042         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17043         (inotify_fd): Export.
17044         (resolv_conf_descr): Remove.
17045         (nscd_init): Move inotify descriptor creation to main.
17046         Don't register files for notification here.
17047         (register_traced_file): New function.
17048         (invalidate_cache): Don't use reset_res to determine whether to call
17049         res_init, go through the list of registered files.
17050         (main_loop_poll): The inotify descriptors are now stored in the
17051         structures for the traced files.
17052         (main_loop_epoll): Likewise
17053         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17054         to __nss_disable_nscd.
17055         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17056         for a database anymore.  Check the records for all the registered
17057         files instead.
17058         * nss/Makefile (libnss_files-routines): Add files-init.
17059         (libnss_db-routines): Add db-init.
17060         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17061         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17062         * nss/nss_db/db-init.c: New file.
17063         * nss/nss_files/files-init.c: New file.
17064         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17065         __nss_lookup_function.
17066         (__nss_lookup_function): Call nss_load_library.
17067         (nss_load_all_libraries): New function.
17068         (__nss_disable_nscd): Take parameter with callback function for files
17069         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17070         used for the cached services.
17071         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17072         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17073         options for features to all the files in nscd.
17074
17075         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17076
17077 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17078
17079         * csu/elf-init.c (__libc_csu_init): Comment typo.
17080
17081 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17082
17083         * po/pl.po: Update from translation team.
17084         * po/ja.po: Likewise.
17085         * po/ru.po: Likewise.
17086         * po/ko.po: Likewise.
17087         * po/fr.po: Likewise.
17088
17089 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17090
17091         * configure.in (.ctors/.dtors header and trailer check):
17092         Use an empirical test on a built program.
17093         * configure: Regenerated.
17094
17095         * configure.in (-z relro check): Use an empirical test on a built DSO.
17096         Detect, but do not require, on ia64.
17097         * configure: Regenerated.
17098
17099         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17100         Update tests that use readelf to use $READELF instead.
17101         * configure: Regenerated.
17102
17103 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17104
17105         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17106         if the result is not used.
17107
17108 2011-07-05  Andreas Jaeger  <aj@suse.de>
17109
17110         [BZ#9696]
17111         * stdlib/tst-strtod.c: Add testcase.
17112
17113 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17114
17115         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17116         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17117         The latter has a higher limit.  Take additional parameter to pass to
17118         the new function.
17119         (__pathconf): Pass file to __statfs_link_max.
17120         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17121         __statfs_link_max.
17122         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17123         __statfs_link_max.
17124
17125         [BZ #12868]
17126         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17127         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17128         Handle Lustre.
17129         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17130         (__statfs_filesize_max): Likewise.
17131         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17132
17133 2011-07-05  Andreas Jaeger  <aj@suse.de>
17134
17135         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17136
17137 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17138
17139         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17140         `status' variable.
17141         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17142         Likewise.
17143
17144 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17145
17146         * Makefile (strop-tests): Add strncat.
17147         * string/test-strncat.c: New file.
17148
17149 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17150
17151         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17152
17153 2011-06-21  Andreas Jaeger  <aj@suse.de>
17154
17155         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17156         Copy rule from iconvdata/Makefile.
17157
17158 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17159
17160         [BZ #12922]
17161         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17162         but no long options are defined, just return 'W'.
17163
17164 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17165
17166         [BZ #9696]
17167         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17168
17169 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17170
17171         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17172         netgroups to read.
17173         (innetgr): Likewise.
17174
17175 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17176
17177         * config.make.in (install_root): Default to $(DESTDIR).
17178
17179 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17180
17181         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17182
17183 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17184
17185         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17186
17187         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17188         containing directory rather than embedding absolute directory names.
17189
17190         * scripts/check-local-headers.sh: Rewritten using awk.
17191         Match by word, not by line.  Print error messages for matches.
17192         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17193
17194         * Makerules [shlib-lds-flags empty]:
17195         ($(common-objpfx)libc_pic.opts): New target.
17196         ($(common-objpfx)libc_pic.os.clean): New target.
17197         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17198
17199         * config.make.in (OBJCOPY): New variable.
17200         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17201         * configure: Regenerated.
17202
17203         * config.make.in (use-default-link): New variable.
17204         * configure.in (use_default_link): Grok --with-default-link to set it.
17205         * configure: Regenerated.
17206         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17207         (shlib-lds, shlib-lds-flags): Define to empty.
17208
17209         * Makerules (shlib-lds): New variable.
17210         (shlib-lds-flags): New variable.
17211         (build-shlib, build-moduile, build-module-asneeded): Use it.
17212         ($(common-objpfx)libc.so): Use $(shlib-lds).
17213         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17214         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17215
17216         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17217         DT_FLAGS/DT_FLAGS_1 with zero flags.
17218
17219         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17220         linker script munging.
17221
17222 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17223
17224         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17225         as 128-bit value.
17226         * crypt/sha512.c (sha512_process_block): Perform total addition using
17227         128-bit if possible.
17228         (__sha512_finish_ctx): Likewise.
17229         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17230         as 64-bit value.
17231         * crypt/sha256.c (SWAP64): Define.
17232         (sha256_process_block): Perform total addition using 64-bit if
17233         possible.
17234         (__sha256_finish_ctx): Likewise.
17235
17236 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17237
17238         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17239         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17240         * nscd/hstcache.c (cache_addhst): Likewise.
17241         * nscd/grpcache.c (cache_addgr): Likewise.
17242         * nscd/aicache.c (addhstaiX): Likewise
17243         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17244
17245 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17246
17247         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17248         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17249         * nscd/hstcache.c (cache_addhst): Likewise.
17250         * nscd/grpcache.c (cache_addgr): Likewise.
17251         * nscd/aicache.c (addhstaiX): Likewise
17252
17253 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17254
17255         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17256         domain only when needed.
17257
17258 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17259
17260         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17261         is always restored.
17262
17263 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17264
17265         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17266         are re-adding the entry.
17267         * nscd/servicescache.c (cache_addserv): Likewise.
17268
17269 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17270
17271         * sysdeps/generic/dl-irel.h: fix protection against multiple
17272         inclusions.
17273         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17274
17275 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17276
17277         [BZ #12935]
17278         * malloc/memusage.sh: Fix quoting in message.
17279         * debug/xtrace.sh: Likewise.
17280
17281         * configure.in: Remove support for --experimental-malloc option, make
17282         it the default.
17283         * config.make.in: Likewise.
17284         * malloc/Makefile: Likewise.
17285
17286 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17287
17288         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17289         two-byte characters.
17290
17291 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17292
17293         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17294         AC_CACHE_CHECK invocation.
17295         * configure: Regenerated.
17296
17297         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17298
17299 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17300
17301         [BZ #12350]
17302         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17303         bit from old_res_options.
17304
17305         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17306
17307         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17308         value type for setfct.
17309
17310 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17311
17312         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17313         __gettimeofday instead of gettimeofday.
17314
17315 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17316
17317         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17318
17319 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17320
17321         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17322
17323         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17324         info.
17325
17326 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17327
17328         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17329         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17330         strcpy-sse2-unaligned strncpy-sse2-unaligned
17331         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17332         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17333         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17334         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17335         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17336         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17337         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17338         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17339         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17340         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17341         (STRCPY): Support SSE2 and SSSE3 versions.
17342
17343 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17344
17345         [BZ #12874]
17346         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17347         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17348         kernels which artificially limit size of requests.
17349
17350 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17351
17352         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17353         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17354         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17355         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17356         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17357         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17358         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17359         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17360         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17361         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17362         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17363         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17364         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17365         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17366         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17367         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17368         Enable unaligned load optimization for Intel Core i3, i5 and i7
17369         processors.
17370         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17371         Define.
17372         (index_Fast_Unaligned_Load): Define.
17373         (HAS_FAST_UNALIGNED_LOAD): Define.
17374
17375 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17376
17377         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17378
17379 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17380
17381         [BZ #12907]
17382         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17383         until it is clear that the information is realy needed.
17384         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17385
17386 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17387
17388         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17389
17390 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17391
17392         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17393         /sys/devices/system/cpu/online if it is usable.
17394
17395         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17396         reading the information from the /proc filesystem to once a second.
17397
17398 2011-06-21  Andreas Jaeger  <aj@suse.de>
17399
17400         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17401         NULL after inclusion of kernel headers.
17402
17403 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17404
17405         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17406         calls to internal_setent.
17407
17408         [BZ #12885]
17409         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17410         addresses using gethostbyname4_r ignore IPv4 addresses.
17411
17412         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17413         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17414
17415         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17416
17417 2011-06-20  David S. Miller  <davem@davemloft.net>
17418
17419         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17420         inclusions.
17421         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17422
17423         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17424         (elf_irel): Use it.
17425         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17426         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17427         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17428         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17429         * sysdeps/x86_64/dl-irel.h: Likewise.
17430
17431         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17432         * elf/dl-sym.c: Likewise.
17433
17434 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17435
17436         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17437         need to dereference resplen2.
17438
17439 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17440
17441         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17442
17443 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17444
17445         * Makeconfig: Define vardbdir and inst_vardbdir.
17446         * nss/Makefile: Add rules to install db-Makefile.
17447
17448         * nss/nss_db/db-XXX.c: Cleanup.
17449
17450         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17451         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17452         GLIBC_PRIVATE.
17453         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17454         * nss/makedb.c: Implement -g option to specify that value strings
17455         are generated and should not be added to table iterated over for
17456         get*ent calls.
17457         * nss/nss_db/db-initgroups.c: New file.
17458
17459         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17460         interface.
17461
17462         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17463         (internal_getgrouplist): Adjust to name change.
17464         Update use_initgroups_entry if this is not the first call.
17465         * nss/databases.def: Add initgroups entry.
17466
17467         * nss/makedb.c (compute_tables): Check result of multiple hash table
17468         sizes to minimize maximum chain length.
17469
17470 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17471
17472         * Versions.def: Add entry for libnss_db.
17473         * shlib-versions: Likewise.
17474         * nss/Makefile: Add rules to build libnss_db.
17475         * nss/Versions: Add libnss_db information.  Organize libnss_files
17476         entries better.
17477         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17478         makedb progra.  Some minor improvements to generate smaller files.
17479         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17480         here from...
17481         * nss/makedb.c: ...here.
17482         Improve database format to be smaller and require less memory at
17483         runtime.
17484         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17485         db anymore.
17486         * nss/nss_db/db-netgrp.c: Likewise.
17487         * nss/nss_db/db-open.c: Likewise.
17488         * nss/nss_files/flies-XXX.x: Adjust comments.
17489         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17490         * nss/nss_files/files-grp.c: Likewise.
17491         * nss/nss_files/files-hosts.c: Likewise.
17492         * nss/nss_files/files-network.c: Likewise.
17493         * nss/nss_files/files-proto.c: Likewise.
17494         * nss/nss_files/files-pwd.c: Likewise.
17495         * nss/nss_files/files-rpc.c: Likewise.
17496         * nss/nss_files/files-service.c: Likewise.
17497         * nss/nss_files/files-sgrp.c: Likewise.
17498         * nss/nss_files/files-spwd.c: Likewise.
17499         * nss/nss_db/db-alias.c: Removed.
17500         * nss/nss_db/dummy-db.h: Removed.
17501
17502 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17503
17504         * nss/makedb.c: Rewritten to not use database library.
17505         * nss/Makefile: Update to build new makedb program.
17506
17507 2011-06-14  Andreas Jaeger  <aj@suse.de>
17508
17509         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17510         memset declaration.
17511
17512 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17513
17514         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17515         tmpbuf.
17516
17517 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17518
17519         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17520         * elf/Makefile ($(objpfx)ld.so): Likewise.
17521
17522         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17523         Don't list ld.so twice in dependencies.
17524
17525         * posix/bug-regex31.c: Include <stdlib.h>.
17526
17527         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17528
17529         * nis/nss_compat/compat-spwd.c
17530         (getspent_next_nss_netgr): Remove unused variable.
17531         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17532
17533         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17534         nonmembers" output to use the right array.
17535
17536         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17537
17538         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17539
17540         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17541         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17542         * catgets/gencat.c (read_input_file): Likewise.
17543         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17544
17545         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17546         variable definition inside #if's controlling its use.
17547
17548         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17549
17550         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17551
17552         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17553
17554         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17555         unreachable code.
17556
17557         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17558
17559         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17560         * configure: Regenerated.
17561
17562         * Makerules: Revert last change.
17563         * elf/Makefile: Likewise.
17564
17565 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17566
17567         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17568         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17569         (reloc-link): Likewise.
17570
17571 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17572
17573         * elf/Makefile: Add rules to build pldd.
17574         * elf/pldd.c: New file.
17575         * elf/pldd-xx.c: New file.
17576
17577 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17578
17579         * version.h: Update for 2.15 development version.
17580
17581 2011-06-07  David S. Miller  <davem@davemloft.net>
17582
17583         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17584         ifuncs.
17585         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17586         elf_machine_lazy_rel): Likewise.
17587         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17588         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17589         elf_machine_lazy_rel): Likewise.
17590         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17591         dl_hwcap via passed in argument.
17592         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17593         Likewise.
17594
17595 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17596
17597         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17598
17599 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17600
17601         [BZ #12849]
17602         * manual/fdl-1.1.texi: New file, verbatim from:
17603         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17604         * manual/lgpl-2.1.texi: New file, verbatim from:
17605         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17606         * manual/Makefile (licenses): New variable, list those new file names.
17607         (texis): Use it.
17608         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17609
17610         * manual/fdl.texi: File removed.
17611         * manual/lesser.texi: File removed.
17612         * manual/libc.texinfo (Copying, Documentation License):
17613         Use new @include file names, put @appendix directive before @include.
17614
17615 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17616
17617         [BZ #12841]
17618         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17619         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17620         (mq_open): Add __NTH.
17621
17622 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17623
17624         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17625         Assume Intel Core i3/i5/i7 processor if AVX is available.
17626
17627 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17628
17629         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17630         typo.
17631
17632 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17633
17634         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17635         memory.  Use alloca_account.  Fix memory leak when retrying.
17636
17637 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17638
17639         * version.h (RELEASE): Bump for 2.14 release.
17640         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17641
17642         * config.make.in (RANLIB): Remove entry.
17643
17644 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17645
17646         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17647         (libc.pot): Work around missing support for .ksh extension in xgettext.
17648
17649         [BZ #12684]
17650         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17651         if both request failed.
17652         (send_dg): In case of server errors clear resplen or *resplen2.
17653
17654         [BZ #12454]
17655         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17656         when there are multiple maps.
17657         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17658         (_dl_fini): Remove test here.
17659
17660         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17661
17662 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17663
17664         [BZ #12350]
17665         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17666         bit from old_res_options.
17667         (gaih_inet): Likewise.
17668
17669         [BZ #11099]
17670         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17671         as signed.
17672
17673         * resolv/res_init.c (res_setoptions): Make the code more compact.
17674
17675         [BZ #11558]
17676         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17677         set RES_USEVC.
17678
17679         [BZ #11634]
17680         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17681
17682         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17683
17684         [BZ #11781]
17685         * malloc/malloc.h: Declare malloc hook variables as volatile.
17686
17687         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17688         in last patch.
17689
17690         [BZ #11799]
17691         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17692         raise in the comment.
17693         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17694         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17695         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17696
17697 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17698
17699         [BZ #12811]
17700         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17701         grow the buffers more if it already has to be sufficient.
17702         (build_wcs_upper_buffer): Likewise.
17703         * posix/regexec.c (check_matching): Likewise.
17704         (clean_state_log_if_needed): Likewise.
17705         (extend_buffers): Don't enlarge buffers beyond size of the input
17706         buffer.
17707         Patches mostly by Emil Wojak <emil@wojak.eu>.
17708         * posix/bug-regex32.c: New file.
17709         * posix/Makefile (tests): Add bug-regex32.
17710
17711         * locale/findlocale.c (_nl_find_locale): Return right away if
17712         _nl_explode_name failed.
17713         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17714
17715         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17716
17717         * debug/xtrace.sh: Unify messages.
17718         * malloc/memusage.sh: Likewise.
17719
17720         [BZ #12813]
17721         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17722         time symbol from vDSO.  Substitute with vsyscall if not available.
17723         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17724         __vdso_time.
17725
17726         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17727         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17728         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17729         Add sendmmsg and internal_sendmmsg.
17730         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17731         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17732         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17733
17734         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17735         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17736         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17737
17738 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17739
17740         [BZ #12813]
17741         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17742         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17743         available.
17744         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17745         __vdso_getcpu.
17746
17747         [BZ #12814]
17748         * iconvdata/Makefile (tests): Add bug-iconv9.
17749         * iconvdata/bug-iconv9.c: New file.
17750
17751 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17752
17753         [BZ #12814]
17754         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17755
17756 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17757
17758         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17759         (struct user_regs_struct): Change intcs field back to cs.
17760
17761 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17762
17763         * po/ja.po: Update from translation team.
17764
17765 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17766
17767         [BZ #12795]
17768         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17769         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17770
17771 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17772
17773         * stdlib/longlong.h: Update from GCC.
17774
17775 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17776
17777         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17778         parameter name.
17779         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17780         Add parameter name.
17781         (__sysconf): Pass it down.
17782
17783 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17784
17785         [BZ #12671]
17786         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17787         some situations.
17788         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17789         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17790         add in in __libc_use_alloca calls.  Adjust callers.
17791         (glob): Use malloc in some situations.
17792
17793         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17794         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17795         pltexit.
17796
17797 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17798
17799         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17800         and CLOCK_BOOTTIME_ALARM.
17801
17802         [BZ #12782]
17803         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17804         is returned.
17805
17806         * string/_strerror.c (__strerror_r): Print negative errors as signed
17807         numbers.
17808
17809         [BZ #12777]
17810         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17811         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17812         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17813
17814         * configure.in: Fix typo in redirection and correct removal of test
17815         files in two cases.
17816
17817         [BZ #12788]
17818         * locale/setlocale.c (new_composite_name): Fix test to check for
17819         identical name of all categories.
17820
17821         [BZ #12792]
17822         * libio/filedoalloc.c (local_isatty): New function.
17823         (_IO_file_doallocate): Use local_isatty.
17824         * stdio-common/perror.c (perror): In case a new stream is used
17825         forward the stream error.
17826         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17827         error flag.
17828
17829 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17830
17831         [BZ #11869]
17832         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17833         alloca.
17834         * include/alloca.h (extend_alloca_account): Define.
17835
17836         [BZ #11857]
17837         * posix/regex.h: Fix comments with documentation of user-accessible
17838         fields after compilation and describe correct free'ing of pattern
17839         after re_compile_pattern.
17840         Patch by Reuben Thomas <rrt@sc3d.org>.
17841
17842 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17843
17844         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17845         and -mno-altivec to prevent the compiler from using Altivec and/or
17846         VSX instructions when the corresponding registers are not available.
17847
17848 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17849
17850         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17851
17852 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17853
17854         * libio/freopen.c (freopen): Use __dup2, not dup2.
17855         * libio/freopen64.c (freopen64): Likewise.
17856
17857 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17858
17859         [BZ #12775]
17860         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17861         * math/Makefile (tests): Add test-powl.
17862         (CFLAGS-test-powl.c): Define.
17863         * math/test-powl.c: New file.
17864
17865 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17866
17867         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17868
17869 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17870
17871         [BZ #11837]
17872         * iconvdata/gb18030.c: Update to GB18020-2005.
17873
17874 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17875
17876         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17877         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17878         Patch by Aharon Robbins <arnold@skeeve.com>.
17879
17880         [BZ #11892]
17881         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17882         on the stack.
17883
17884         [BZ #11895]
17885         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17886         through underflows.
17887
17888         [BZ #12766]
17889         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17890         point to strings before performing equality test for error_one_per_line
17891         mode.
17892
17893         [BZ #11697]
17894         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17895
17896         [BZ #11820]
17897         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17898         (struct user_fpregs_struct): Avoid __uint*_t types.
17899
17900         [BZ #6420]
17901         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17902         symbol info.  Use it instead of calling _dl_addr locally.
17903         (lock_and_info): New function.
17904         (tr_freehook): Call lock_and_info and pass symbol info as additional
17905         parameter to tr_where.
17906         (tr_mallochook): Likewise.
17907         (tr_reallochook): Likewise.
17908         (tr_memalignhook): Likewise.
17909
17910         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17911         used and couldn't be at all thread-safe.
17912
17913 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17914
17915         * libio/freopen.c (freopen): Don't close old file descriptor
17916         before the new one is opened.  Instead dup the new file descriptor
17917         to the old one after the new stream is created.
17918         * libio/freopen64.c (freopen64): Likewise.
17919         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17920         * libio/fileops.c (_IO_new_file_close_it): Handle new
17921         _IO_FLAGS2_NOCLOSE flag.
17922         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17923         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17924         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17925         _IO_FLAGS2_NOCLOSE flag.
17926         * include/unistd.h: Add hidden_proto for dup3.
17927         Define __have_dup3.
17928         * io/dup3.c: Define hidden symbol.
17929         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17930
17931         [BZ #7101]
17932         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17933         when an incomplete long option is used.
17934         * posix/tst-getopt_long1.c: New file.
17935         * posix/Makefile (tests): Add tst-getopt_long1.
17936
17937         [BZ #10138]
17938         * scripts/config.guess: Update from autoconf-2.68.
17939         * scripts/config.sub: Likewise.
17940
17941         [BZ #10157]
17942         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17943         tests into ...
17944         (has_cpuclock): ...this.  New function.
17945         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17946         macro here based on has_cpuclock code.
17947
17948         [BZ #10149]
17949         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17950         First byte (not low byte) is now always NUL.
17951         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17952
17953         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17954         Use non-cancelable interfaces.
17955
17956         [BZ #9809]
17957         * locale/iso-639.def: Add entry for Sorani.
17958
17959         [BZ #11901]
17960         * include/stdlib.h: Move include protection to the right place.
17961         Define abort_msg_s.  Declare __abort_msg with it.
17962         * stdlib/abort.c (__abort_msg): Adjust type.
17963         * assert/assert.c (__assert_fail_base): New function.  Majority
17964         of code from __assert_fail.  Allocate memory for __abort_msg with
17965         mmap.
17966         (__assert_fail): Now call __assert_fail_base.
17967         * assert/assert-perr.c: Remove bulk of implementation.  Use
17968         __assert_fail_base.
17969         * include/assert.hL Declare __assert_fail_base.
17970         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17971         mmap.
17972         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17973
17974 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17975
17976         [BZ #11952]
17977         [BZ #12453]
17978         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17979         until all modules are registered in the DTV.
17980         * elf/Makefile: Add rules to build and run tst-tls19.
17981         * elf/tst-tls19.c: New file.
17982         * elf/tst-tls19mod1.c: New file.
17983         * elf/tst-tls19mod2.c: New file.
17984         * elf/tst-tls19mod3.c: New file.
17985         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17986
17987         [BZ #12083]
17988         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17989         correctly.
17990
17991         [BZ #12601]
17992         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17993         two-byte sequence errors.
17994         * iconvdata/Makefile (tests): Add bug-iconv8.
17995         * iconvdata/bug-iconv8.c: New file.
17996
17997         [BZ #12626]
17998         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17999         buf2 definition.
18000
18001         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18002
18003         [BZ #12432]
18004         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18005         (dummy_getcfa): New function.
18006         (init): Get _Unwind_GetCFA address, use dummy if not found.
18007         (backtrace_helper): In recursion check, also check whether CFA changes.
18008         (__backtrace): Completely initialize arg.
18009
18010         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18011         storing incomplete byte sequence in state object.  Avoid testing for
18012         guaranteed too small input if we know there is enough data available.
18013
18014 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18015
18016         * Makeconfig (+link-pie): Indent.
18017         * Rules (binaries-pie): Define if $(have-fpie) and
18018         $(build-shared).
18019         (binaries-shared): Also filter out $(binaries-pie).
18020         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18021         * nscd/Makefile (others-pie): Add nscd.
18022         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18023         ($(objpfx)nscd): Remove command override.
18024         * login/Makefile (others-pie): Add pt_chown.
18025         ($(objpfx)pt_chown): Remove command override.
18026         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18027         remove command overrides.
18028
18029 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18030
18031         * libio/tst_putwc.c: Fix error messages.
18032
18033         [BZ #12724]
18034         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18035         currently writing and seek to current position when not.
18036         * libio/Makefile (tests): Add bug-fclose1.
18037         * libio/bug-fclose1.c: New file.
18038
18039 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18040
18041         [BZ #12511]
18042         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18043         don't set DF_1_NODELETE here.
18044         (do_lookup_x): When entering new entry test for copy relocation
18045         and if necessary set DF_1_NODELETE flag.
18046         * elf/tst-unique4.cc: New file.
18047         * elf/tst-unique4.h: New file.
18048         * elf/tst-unique4lib.cc: New file.
18049         * elf/Makefile: Add rules to build and run tst-unique4.
18050         Patch by Piotr Bury <pbury@goahead.com>.
18051
18052 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18053
18054         [BZ #12052]
18055         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18056
18057         [BZ #12625]
18058         * misc/mntent_r.c (addmntent): Flush the stream after the output
18059
18060         [BZ #12393]
18061         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18062         (is_trusted_path_normalize): Skip initial colon.  Append slash
18063         to empty buffer.  Duplicate is_trusted_path code but allow
18064         constructed patch to be prefix.
18065         (is_dst): Allow $ORIGIN followed by /.
18066         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18067         Correct testing of result of is_trusted_path_normalize
18068         (decompose_rpath): Fix warning.
18069
18070 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18071
18072         [BZ #11257]
18073         * grp/initgroups.c (internal_getgrouplist): When we found the service
18074         list through the initgroups entry in nsswitch.conf do not always
18075         continue on a successful lookup.  Don't always use the
18076         __nss_group_database value if it is set.
18077         * nss/nsswitch.conf (initgroups): Change action for successful db
18078         lookup to continue for compatibility.
18079
18080 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18081
18082         [BZ #11532]
18083         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18084         and CP774 modules.
18085         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18086         and CP774 modules.
18087         * iconvdata/tst-tables.sh: Likewise.
18088         * iconvdata/cp770.c: New file.
18089         * iconvdata/cp771.c: New file.
18090         * iconvdata/cp772.c: New file.
18091         * iconvdata/cp773.c: New file.
18092         * iconvdata/cp774.c: New file.
18093         * iconvdata/testdata/CP770: New file.
18094         * iconvdata/testdata/CP770..UTF8: New file.
18095         * iconvdata/testdata/CP771: New file.
18096         * iconvdata/testdata/CP771..UTF8: New file.
18097         * iconvdata/testdata/CP772: New file.
18098         * iconvdata/testdata/CP772..UTF8: New file.
18099         * iconvdata/testdata/CP773: New file.
18100         * iconvdata/testdata/CP773..UTF8: New file.
18101         * iconvdata/testdata/CP774: New file.
18102         * iconvdata/testdata/CP774..UTF8: New file.
18103
18104         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18105         END CHARMAP line.
18106         * iconvdata/gen-8bit-gap.sh: Likewise.
18107         * iconvdata/gen-8bit.sh: Likewise.
18108
18109         * locale/iso-639.def: Add ary entry.
18110
18111         [BZ #11258]
18112         * locale/C-translit.h.in: Add U20A1 transliteration.
18113
18114         [BZ #12178]
18115         * locale/iso-639.def: Add wae entry.
18116         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18117
18118         [BZ #12545]
18119         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18120         for n.
18121
18122         [BZ #12711]
18123         * locale/C-translit.h.in: Add entry for U20B9.
18124         Patch by pravin.d.s@gmail.com.
18125
18126 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18127
18128         [BZ #12713]
18129         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18130         ENAMETOOLONG use generic getcwd.
18131         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18132         in rtld.  Use *stat64.
18133         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18134         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18135         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18136         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18137         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18138         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18139         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18140         __fstatat64 macros.
18141         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18142         * dirent/rewinddir.c: Add libc_hidden_def.
18143         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18144         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18145
18146         * include/dirent.h (__alloc_dir): Add flags parameter.
18147         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18148         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18149         __alloc_dir.
18150         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18151         from fdopendir if O_CLOEXEC is already set.
18152
18153 2011-03-15  Alan Modra  <amodra@gmail.com>
18154
18155         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18156         l_tls_firstbyte_offset non-zero.  Save padding offset in
18157         l_tls_firstbyte_offset for later use.
18158         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18159         freeing static tls block.
18160
18161 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18162
18163         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18164         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18165         being defined by the kernel headers.
18166
18167 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18168
18169         [BZ #12734]
18170         * resolv/resolv.h: Define RES_NOTLDQUERY.
18171         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18172         no-tld-query and set RES_NOTLDQUERY.
18173         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18174         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18175         modern BIND to search name as TLD unless forbidden.
18176
18177 2011-05-07  Petr Baudis  <pasky@suse.cz>
18178             Ulrich Drepper  <drepper@gmail.com>
18179
18180         [BZ #12393]
18181         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18182         (is_trusted_path): ...to here.
18183         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18184         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18185         using is_trusted_path_normalize() in setuid scripts.
18186
18187 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18188
18189         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18190         __BEGIN/__END_DECLS.
18191
18192 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18193
18194         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18195         NSS_STATUS_NOTFOUND if no record was found.
18196
18197 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18198
18199         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18200         (headers-not-in-tirpc): Remove rpc/netdb.h
18201         * resolv/netdb.h: Revert last change.
18202
18203 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18204
18205         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18206         circular dependency between libgcc.a and libc.a.
18207
18208 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18209
18210         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18211         * nis/Makefile: Don't install rpcsvc/*.
18212         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18213         instead of <rpc/types.h>.
18214         (MAXHOSTNAMELEN): Define.
18215
18216 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18217
18218         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18219
18220 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18221
18222         [BZ #12714]
18223         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18224         gethostbyname4_r when IPv6 results are possible.
18225
18226 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18227
18228         [BZ #12723]
18229         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18230         _PC_PIPE_BUF handling.
18231
18232 2011-04-30  Bruno Haible  <bruno@clisp.org>
18233
18234         [BZ #12717]
18235         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18236         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18237         to 'int'.
18238         * inet/getnameinfo.c (getnameinfo): Likewise.
18239
18240 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18241
18242         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18243         to groups setting in database lookup.
18244         * nss/nsswitch.conf: Add initgroups entry.
18245
18246 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18247
18248         [BZ #12685]
18249         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18250         mode string.
18251         Patch by Eric Blake <eblake@redhat.com>.
18252
18253 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18254
18255         * sunrpc/Makefile (need-export-routines): Add svc_run.
18256         (routines): Remove svc_run.
18257         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18258         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18259         * sunrpc/svc_run.c (svc_run): Likewise.
18260         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18261
18262 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18263
18264         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18265         problem in reallocation in last patch.
18266
18267 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18268
18269         * sunrpc/Makefile: Move inclusion of Rules.
18270
18271 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18272
18273         * nss/nss_files/files-initgroups.c: New file.
18274         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18275         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18276         _nss_files_initgroups_dyn.
18277
18278 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18279
18280         * elf/elf.h (R_ARM_IRELATIVE): Define.
18281
18282 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18283
18284         * po/ru.po: Update from translation team.
18285
18286 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18287
18288         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18289         dependencies.
18290
18291 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18292
18293         [BZ #12653]
18294         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18295         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18296         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18297         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18298         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18299
18300 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18301
18302         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18303         differing bytes.
18304         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18305         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18306         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18307
18308 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18309
18310         [BZ #12420]
18311         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18312         storing it.
18313         * stdlib/bug-getcontext.c: New file.
18314         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18315
18316 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18317
18318         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18319         instructions into .machine "z9-109".
18320         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18321         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18322
18323 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18324
18325         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18326         between environment variables and auxiliary vector.
18327
18328 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18329
18330         * Makefile: Add rules to build linkobj/libc.so.
18331         * include/libc-symbols.h: Define libc_hidden_nolink.
18332         * include/rpc/auth.h: Mark functions which are to be hidden.
18333         * include/rpc/auth_des.h: Likewise.
18334         * include/rpc/auth_unix.h: Likewise.
18335         * include/rpc/clnt.h: Likewise.
18336         * include/rpc/des_crypt.h: Likewise.
18337         * include/rpc/key_prot.h: Likewise.
18338         * include/rpc/pmap_clnt.h: Likewise.
18339         * include/rpc/pmap_prot.h: Likewise.
18340         * include/rpc/pmap_rmt.h: Likewise.
18341         * include/rpc/rpc_msg.h: Likewise.
18342         * include/rpc/svc.h: Likewise.
18343         * include/rpc/svc_auth.h: Likewise.
18344         * include/rpc/xdr.h: Likewise.
18345         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18346         * nss/Makefile: Likewise.
18347         * sunrpc/Makefile: Don't install headers.  Build library with normal
18348         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18349         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18350         for the compat linking library.  Remove use of INTDEF/INTUSE.
18351         * sunrpc/auth_none.c: Likewise.
18352         * sunrpc/auth_unix.c: Likewise.
18353         * sunrpc/authdes_prot.c: Likewise.
18354         * sunrpc/authuxprot.c: Likewise.
18355         * sunrpc/clnt_gen.c: Likewise.
18356         * sunrpc/clnt_perr.c: Likewise.
18357         * sunrpc/clnt_raw.c: Likewise.
18358         * sunrpc/clnt_simp.c: Likewise.
18359         * sunrpc/clnt_tcp.c: Likewise.
18360         * sunrpc/clnt_udp.c: Likewise.
18361         * sunrpc/clnt_unix.c: Likewise.
18362         * sunrpc/des_crypt.c: Likewise.
18363         * sunrpc/des_soft.c: Likewise.
18364         * sunrpc/get_myaddr.c: Likewise.
18365         * sunrpc/key_call.c: Likewise.
18366         * sunrpc/key_prot.c: Likewise.
18367         * sunrpc/netname.c: Likewise.
18368         * sunrpc/pm_getmaps.c: Likewise.
18369         * sunrpc/pm_getport.c: Likewise.
18370         * sunrpc/pmap_clnt.c: Likewise.
18371         * sunrpc/pmap_prot.c: Likewise.
18372         * sunrpc/pmap_prot2.c: Likewise.
18373         * sunrpc/pmap_rmt.c: Likewise.
18374         * sunrpc/publickey.c: Likewise.
18375         * sunrpc/rpc_cmsg.c: Likewise.
18376         * sunrpc/rpc_common.c: Likewise.
18377         * sunrpc/rpc_dtable.c: Likewise.
18378         * sunrpc/rpc_prot.c: Likewise.
18379         * sunrpc/rpc_thread.c: Likewise.
18380         * sunrpc/rtime.c: Likewise.
18381         * sunrpc/svc.c: Likewise.
18382         * sunrpc/svc_auth.c: Likewise.
18383         * sunrpc/svc_authux.c: Likewise.
18384         * sunrpc/svc_raw.c: Likewise.
18385         * sunrpc/svc_run.c: Likewise.
18386         * sunrpc/svc_simple.c: Likewise.
18387         * sunrpc/svc_tcp.c: Likewise.
18388         * sunrpc/svc_udp.c: Likewise.
18389         * sunrpc/svc_unix.c: Likewise.
18390         * sunrpc/svcauth_des.c: Likewise.
18391         * sunrpc/xcrypt.c: Likewise.
18392         * sunrpc/xdr.c: Likewise.
18393         * sunrpc/xdr_array.c: Likewise.
18394         * sunrpc/xdr_float.c: Likewise.
18395         * sunrpc/xdr_intXX_t.c: Likewise.
18396         * sunrpc/xdr_mem.c: Likewise.
18397         * sunrpc/xdr_rec.c: Likewise.
18398         * sunrpc/xdr_ref.c: Likewise.
18399         * sunrpc/xdr_sizeof.c: Likewise.
18400         * sunrpc/xdr_stdio.c: Likewise.
18401
18402 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18403
18404         [BZ #12650]
18405         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18406         * sysdeps/ia64/dl-tls.h: Likewise.
18407         * sysdeps/powerpc/dl-tls.h: Likewise.
18408         * sysdeps/s390/dl-tls.h: Likewise.
18409         * sysdeps/sh/dl-tls.h: Likewise.
18410         * sysdeps/sparc/dl-tls.h: Likewise.
18411         * sysdeps/x86_64/dl-tls.h: Likewise.
18412         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18413
18414 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18415
18416         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18417         rpath element also skip the following colon.
18418         (expand_dynamic_string_token): Add is_path parameter and pass
18419         down to DL_DST_REQUIRED and _dl_dst_substitute.
18420         (decompose_rpath): Call expand_dynamic_string_token with
18421         non-zero is_path.  Ignore empty rpaths.
18422         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18423         with zero is_path.
18424
18425 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18426
18427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18428         Make cancelable.
18429
18430 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18431
18432         [BZ #12655]
18433         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18434         Patch by Filipe David Manana <fdmanana@apache.org>.
18435
18436 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18437
18438         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18439         Maintain aligned stack.
18440         (CHECK_RSP): Remove unused macro.
18441
18442 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18443
18444         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18445         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18446
18447 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18448
18449         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18450
18451         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18452
18453 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18454
18455         [BZ #12518]
18456         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18457         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18458         * sysdeps/x86_64/memmove.c: New file.
18459         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18460         (memcpy): Renamed to ...
18461         (__new_memcpy): This.
18462         (memcpy): Provide GLIBC_2_14 memcpy.
18463         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18464         (memcpy): Provide GLIBC_2_2_5 memcpy.
18465
18466 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18467
18468         [BZ #12631]
18469         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18470
18471 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18472
18473         * misc/syncfs.c: New file.
18474         * misc/Makefile (routines): Add syncfs.
18475         * posix/unistd.h: Declare syncfs.
18476         * sysdeps/unix/syscalls.list: Add syncfs.
18477
18478 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18479
18480         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18481         open_by_handle_at.
18482         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18483         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18484         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18485         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18486         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18487         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18488         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18489
18490 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18491
18492         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18493         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18494         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18495         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18496         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18497         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18498         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18499
18500         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18501         sync_file_range.c with -fexceptions.
18502         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18503         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18504         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18505         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18506         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18507         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18508         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18509         sync_file_range as cancellation point
18510         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18511         now a wrapper around __call_sync_file_range with cancellation handling.
18512         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18513         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18514         function name to __call_sync_file_range.
18515         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18516         Add call_sync_file_range.
18517
18518 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18519
18520         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18521         bits/timex.h.
18522
18523 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18524
18525         * iconv/iconv.h: Fix typo in comment.
18526         * io/fcntl.h: Likewise.
18527         * libio/stdio.h: Likewise.
18528         * posix/spawn.h: Likewise.
18529         * posix/unistd.h: Likewise.
18530         * stdlib/stdlib.h: Likewise.
18531         * time/time.h: Likewise.
18532         * wcsmbs/wchar.h: Likewise.
18533
18534         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18535         open_by_handle): Add.
18536         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18537         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18538         Augment a few comments.
18539         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18540         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18541         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18542         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18543         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18544         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18545         open_by_handle.
18546
18547         * io/fcntl.h (AT_EMPTY_PATH): Define.
18548
18549 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18550
18551         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18552         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18553         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18554         to...
18555         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18556         * Versions.def: Add GLIBC_2.14.
18557         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18558         Export.
18559
18560 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18561
18562         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18563         round counter.
18564         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18565
18566 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18567
18568         [BZ #12597]
18569         * string/test-strncmp.c (do_page_test): New function.
18570         (check2): Likewise.
18571         (test_main): Call check2.
18572         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18573
18574 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18575
18576         [BZ #12587]
18577         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18578         Handle cache information in CPU leaf 4.
18579         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18580
18581 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18582
18583         [BZ #12583]
18584         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18585         character representation.
18586         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18587
18588 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18589
18590         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18591         END(__isnan) to END(__isnanf) to match function entry point/label
18592         EALIGN(__isnanf,...).
18593
18594 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18595
18596         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18597
18598 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18599
18600         [BZ #12510]
18601         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18602         copy from the symbol referenced in the relocation to initialize the
18603         used variable.
18604         Patch by Piotr Bury <pbury@goahead.com>.
18605         * elf/Makefile: Add rules to build and tst-unique3.
18606         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18607         * elf/tst-unique3.cc: New file.
18608         * elf/tst-unique3.h: New file.
18609         * elf/tst-unique3lib.cc: New file.
18610         * elf/tst-unique3lib2.cc: New file.
18611
18612         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18613
18614 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18615
18616         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18617         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18618         to _start.
18619
18620 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18621
18622         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18623         to-be-loaded object along a path to loader is ld.so.
18624
18625 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18626             Ulrich Drepper  <drepper@gmail.com>
18627
18628         * sysdeps/x86_64/memset.S: After aligning destination, code
18629         branches to different locations depending on the value of
18630         misalignment, when multiarch is enabled. Fix this.
18631
18632 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18633
18634         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18635         Set _x86_64_preferred_memory_instruction for AMD processsors.
18636         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18637         Set bit_Prefer_SSE_for_memop for AMD processors.
18638
18639 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18640
18641         * libio/fmemopen.c (fmemopen): Optimize a bit.
18642
18643 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18644
18645         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18646
18647 2011-03-03  Roland McGrath  <roland@redhat.com>
18648
18649         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18650
18651 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18652
18653         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18654         __bzero_ultra1 instead of __memset_ultra1.
18655
18656 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18657             Ulrich Drepper  <drepper@gmail.com>
18658
18659         [BZ #12509]
18660         * include/link.h (struct link_map): Add l_orig_initfini.
18661         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18662         returning unsuccessfully.
18663         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18664         close of a file loaded at startup, restore the original l_initfini
18665         list.
18666         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18667         list, store the pointer.
18668         * elf/Makefile ($(objpfx)noload-mem): New rule.
18669         (noload-ENV): Define.
18670         (tests): Add $(objpfx)noload-mem.
18671         * elf/noload.c: Include <memcheck.h>.
18672         (main): Call mtrace.  Close all opened handles.
18673
18674 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18675
18676         [BZ #12454]
18677         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18678         dependencies are missing.
18679
18680 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18681
18682         Fix __if_freereq crash: Unlike the generic version which uses free,
18683         Hurd needs munmap.
18684         * sysdeps/mach/hurd/ifreq.h: New file.
18685
18686 2011-01-27  Petr Baudis  <pasky@suse.cz>
18687             Ulrich Drepper  <drepper@gmail.com>
18688
18689         [BZ 12445]#
18690         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18691         to extend_alloca().
18692         * stdio-common/bug23.c: New file.
18693         * stdio-common/Makefile (tests): Add bug23.
18694
18695 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18696             Ulrich Drepper  <drepper@gmail.com>
18697
18698         [BZ #12489]
18699         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18700         before performing relro protection.  At old place add assertion
18701         to make sure nothing changed.
18702
18703 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18704             Glauber de Oliveira Costa  <glommer@gmail.com>
18705
18706         * elf/elf.h: Add new ARM TLS relocs.
18707
18708 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18709
18710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18711         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18712         cast from r3.
18713         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18714         'tests' variable.
18715         * sysdeps/wordsize-64/tst-writev.c: New file.
18716
18717 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18718
18719         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18720         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18721         insns in _dl_start to prevent a TOC reference before relocs are
18722         resolved.
18723
18724 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18725
18726         [BZ #12469]
18727         * Makeconfig: Remove RANLIB definition.
18728         * Makerules: Don't use RANLIB.
18729         * aclocal.m4: Remove ranlib test.
18730         * configure.in: No need to check for ranlib.
18731         * elf/rtld-Rules: Don't use RANLIB.
18732
18733 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18734
18735         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18736         protection macro.
18737         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18738         inclusion protection macro.
18739
18740         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18741         SIGRTMIN and SIGRTMAX and print information in that case only when
18742         SIGRTMIN is defined.
18743
18744 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18745
18746         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18747         arginfo fn returning -1.
18748
18749         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18750         and thousands string is zero terminated.
18751
18752 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18753
18754         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18755         sysdeps/unix/sysv/linux/bits/socket.h.
18756
18757 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18758
18759         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18760         (__CPU_COUNT): Remove old macros.
18761         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18762         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18763         (__CPU_ALLOC, __CPU_FREE): Add macros.
18764         (__sched_cpualloc, __sched_cpufree): Add declarations.
18765
18766 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18767
18768         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18769         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18770         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18771         (readdhstai): Return value of addhstaiX call.
18772         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18773         (addgrbyX): Return value returned by cache_addgr.
18774         (readdgrbyname): Return value returned by addgrbyX.
18775         (readdgrbygid): Likewise.
18776         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18777         (addpwbyX): Return value returned by cache_addpw.
18778         (readdpwbyname): Return value returned by addhstbyX.
18779         (readdpwbyuid): Likewise.
18780         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18781         (addservbyX): Return value returned by cache_addserv.
18782         (readdservbyname): Return value returned by addservbyX:
18783         (readdservbyport): Likewise.
18784         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18785         (addhstbyX): Return value returned by cache_addhst.
18786         (readdhstbyname): Return value returned by addhstbyX.
18787         (readdhstbyaddr): Likewise.
18788         (readdhstbynamev6): Likewise.
18789         (readdhstbyaddrv6): Likewise.
18790         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18791         (readdinitgroups): Return value returned by addinitgroupsX.
18792         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18793         (prune_cache): Keep track of timeout value of re-added entries.
18794         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18795         * nscd/nscd.h: Adjust prototypes of readd* functions.
18796
18797 2011-02-04  Roland McGrath  <roland@redhat.com>
18798
18799         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18800         (nis_stats): Likewise.
18801         * nis/nis_modify.c (nis_modify): Likewise.
18802         * nis/nis_remove.c (nis_remove): Likewise.
18803         * nis/nis_add.c (nis_add): Likewise.
18804
18805         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18806
18807         * posix/fnmatch_loop.c: Add some consts.
18808
18809         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18810
18811 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18812
18813         [BZ #12460]
18814         * config.make.in (config-cflags-novzeroupper): Define.
18815         * configure.in: Substitute libc_cv_cc_novzeroupper.
18816         * elf/Makefile (AVX-CFLAGS): Define.
18817         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18818         (CFLAGS-tst-auditmod4a.c): Likewise.
18819         (CFLAGS-tst-auditmod4b.c): Likewise.
18820         (CFLAGS-tst-auditmod6b.c): Likewise.
18821         (CFLAGS-tst-auditmod6c.c): Likewise.
18822         (CFLAGS-tst-auditmod7b.c): Likewise.
18823         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18824
18825 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18826
18827         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18828         function to the callback.
18829         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18830
18831 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18832
18833         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18834         of errno.
18835
18836 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18837
18838         [BZ #11724]
18839         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18840         of constructors.
18841         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18842         of destructors.
18843         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18844
18845         [BZ #11724]
18846         * elf/Makefile: Add rules to build and run new test.
18847         * elf/tst-initorder.c: New file.
18848         * elf/tst-initorder.exp: New file.
18849         * elf/tst-initordera1.c: New file.
18850         * elf/tst-initordera2.c: New file.
18851         * elf/tst-initordera3.c: New file.
18852         * elf/tst-initordera4.c: New file.
18853         * elf/tst-initorderb1.c: New file.
18854         * elf/tst-initorderb2.c: New file.
18855         * elf/tst-order-a1.c: New file.
18856         * elf/tst-order-a2.c: New file.
18857         * elf/tst-order-a3.c: New file.
18858         * elf/tst-order-a4.c: New file.
18859         * elf/tst-order-b1.c: New file.
18860         * elf/tst-order-b2.c: New file.
18861         * elf/tst-order-main.c: New file.
18862         New test case by George Gensure <werkt0@gmail.com>.
18863
18864 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18865
18866         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18867         decoding ACE if AI_CANONIDN.
18868
18869 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18870
18871         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18872
18873 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18874
18875         * version.h (RELEASE): Bump for 2.13 release.
18876         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18877
18878         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18879
18880         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18881         MADV_NOHUGEPAGE.
18882         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18883         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18884         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18885         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18886         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18887         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18888
18889         * posix/getconf.c: Update copyright year.
18890         * catgets/gencat.c: Likewise.
18891         * csu/version.c: Likewise.
18892         * debug/catchsegv.sh: Likewise.
18893         * debug/xtrace.sh: Likewise.
18894         * elf/ldconfig.c: Likewise.
18895         * elf/ldd.bash.in: Likewise.
18896         * elf/sprof.c (print_version): Likewise.
18897         * iconv/iconv_prog.c: Likewise.
18898         * iconv/iconvconfig.c: Likewise.
18899         * locale/programs/locale.c: Likewise.
18900         * locale/programs/localedef.c: Likewise.
18901         * malloc/memusage.sh: Likewise.
18902         * malloc/mtrace.pl: Likewise.
18903         * nscd/nscd.c (print_version): Likewise.
18904         * nss/getent.c: Likewise.
18905
18906         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18907         PF_CAIF, and PF_ALG.
18908         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18909
18910 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18911
18912         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18913         (modules-names): Use them.
18914         (ifunc-test-modules, ifunc-pie-tests): Define.
18915         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18916         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18917         (test-extras): Likewise.
18918         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18919         $(compile-command.c).
18920         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18921         (all-built-dso): Define.
18922         (check-textrel.out, check-execstack.out): Depend on it.
18923
18924         * configure.in: Don't override --enable-multi-arch.
18925
18926 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18927
18928         [BZ #6812]
18929         * nscd/hstcache.c (tryagain): Define.
18930         (cache_addhst): Return tryagain not notfound for temporary errors.
18931         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18932         failed.
18933
18934 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18935
18936         [BZ #10563]
18937         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18938         to make the syscall.
18939         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18940
18941         [BZ #12378]
18942         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18943         and fall back to matching as normal character if the string ends before
18944         the matching ']' is found.  This is what POSIX requires.
18945         * posix/testfnm.c: Adjust test result.
18946         * posix/globtest.sh: Adjust test result.  Add new test.
18947         * posix/tst-fnmatch.input: Likewise.
18948         * posix/tst-fnmatch2.c: Add new test.
18949
18950 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18951
18952         * elf/Makefile (check-execstack): Revert last change.  Depend on
18953         check-execstack.h.
18954         (check-execstack.h): New target.
18955         (generated): Add check-execstack.h.
18956         * elf/check-execstack.c: Include "check-execstack.h".
18957         (main): Revert last change.
18958         (handle_file): Return zero if GNU_STACK is absent and
18959         DEFAULT_STACK_PERMS doesn't include PF_X.
18960
18961 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18962
18963         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18964         in child fails because the descriptor is already closed.
18965         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18966         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18967         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18968
18969         [BZ #12397]
18970         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18971         syscall.
18972
18973         [BZ #10484]
18974         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18975         temporary buffer used to handle multi lookups locally.
18976         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18977
18978 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18979
18980         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18981         loader is ld.so.
18982
18983 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18984
18985         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18986         alignment for SSE2.
18987
18988 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18989
18990         [BZ #12394]
18991         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18992         characters.  When rounding increased number of integer digits recompute
18993         number of groups.
18994         * stdio-common/tst-grouping.c: New file.
18995         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18996
18997 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18998
18999         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19000         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19001
19002         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19003         void.
19004         * bits/select.h: Likewise.
19005
19006 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19007
19008         * po/ja.po: Update from translation team.
19009
19010 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19011
19012         [BZ #11155]
19013         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19014         implementation just like for lxstat, fxstatat, et al.
19015
19016 2010-12-27  Jim Meyering  <meyering@redhat.com>
19017
19018         [BZ #12348]
19019         * posix/regexec.c (build_trtable): Return failure indication upon
19020         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19021
19022 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19023
19024         [BZ #12201]
19025         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19026         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19027         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19028         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19029
19030         [BZ #12207]
19031         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19032
19033         [BZ #12204]
19034         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19035         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19036
19037 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19038
19039         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19040         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19041         script has SORT_BY_INIT_PRIORITY.
19042         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19043         NO_CTORS_DTORS_SECTIONS is defined.
19044         * elf/soinit.c: Likewise.
19045         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19046         NO_CTORS_DTORS_SECTIONS is defined.
19047         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19048         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19049         * sysdeps/sh/init-first.c: Likewise.
19050         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19051
19052 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19053
19054         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19055         always use the slow path.
19056
19057 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19058
19059         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19060         similar rule which adds the sysdep directories to the header search in
19061         order to pick up the correct platform stackinfo.h.
19062         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19063         perform test if it is, otherwise return successfully without testing.
19064         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19065         DEFAULT_STACK_PERMS define in stackinfo.h.
19066         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19067         defined in stackinfo.h.
19068         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19069         DEFAULT_STACK_PERMS defined in stackinfo.h.
19070         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19071         * sysdeps/ia64/stackinfo.h: Likewise.
19072         * sysdeps/s390/stackinfo.h: Likewise.
19073         * sysdeps/sh/stackinfo.h: Likewise.
19074         * sysdeps/sparc/stackinfo.h: Likewise.
19075         * sysdeps/x86_64/stackinfo.h: Likewise.
19076         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19077         PF_X for powerpc64.  Retain PF_X for powerpc32.
19078
19079 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19080
19081         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19082         accurately.
19083         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19084         GETDENTS_64BIT_ALIGNED.
19085
19086 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19087
19088         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19089
19090 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19091
19092         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19093         _GNU_SOURCE.
19094
19095         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19096         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19097         Remove __restrict.
19098         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19099         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19100
19101 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19102
19103         [BZ #11655]
19104         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19105         are initialized.
19106
19107 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19108
19109         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19110
19111 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19112
19113         * po/it.po: Update from translation team.
19114
19115 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19116
19117         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19118         unused codes.
19119
19120 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19121
19122         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19123
19124 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19125
19126         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19127         specially.
19128         (gaih_getanswer_slice): Likewise.
19129
19130 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19131
19132         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19133
19134 2010-05-31  Petr Baudis  <pasky@suse.cz>
19135
19136         [BZ #11149]
19137         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19138         silently even in the chroot mode.
19139
19140 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19141
19142         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19143         last patch a bit.  Pretty printing
19144
19145 2010-05-31  Petr Baudis <pasky@suse.cz>
19146
19147         [BZ #10085]
19148         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19149         initialization of skip_initgroups_dyn.
19150
19151 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19152
19153         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19154         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19155
19156 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19157
19158         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19159
19160 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19161
19162         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19163         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19164         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19165         ($(objpfx)tst-fnmatch-mem): New rule.
19166         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19167         * posix/tst-fnmatch.c (main): Call mtrace.
19168
19169 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19170
19171         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19172         Support Intel processor model 6 and model 0x2c.
19173
19174 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19175
19176         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19177           signed comparison.
19178
19179 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19180
19181         [BZ #12205]
19182         * string/test-strncasecmp.c (check_result): New function.
19183         (do_one_test): Use it.
19184         (check1): New function.
19185         (test_main): Use it.
19186         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19187         Support strcasecmp and strncasecmp.
19188
19189 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19190
19191         [BZ #12194]
19192         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19193         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19194
19195 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19196
19197         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19198         IFUNC support.
19199         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19200         memset-x86-64.
19201         * sysdeps/x86_64/multiarch/bzero.S: New file.
19202         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19203         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19204         * sysdeps/x86_64/multiarch/memset.S: New file.
19205         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19206         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19207         Set bit_Prefer_SSE_for_memop for Intel processors.
19208         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19209         Define.
19210         (index_Prefer_SSE_for_memop): Define.
19211         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19212
19213 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19214
19215         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19216         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19217
19218 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19219
19220         [BZ #12191]
19221         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19222         (__x86_64_raw_data_cache_size_half): Likewise.
19223         (__x86_64_raw_shared_cache_size): Likewise.
19224         (__x86_64_raw_shared_cache_size_half): Likewise.
19225
19226         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19227         (__x86_64_raw_data_cache_size_half): Likewise.
19228         (__x86_64_raw_shared_cache_size): Likewise.
19229         (__x86_64_raw_shared_cache_size_half): Likewise.
19230         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19231         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19232         and __x86_64_raw_shared_cache_size_half.  Round
19233         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19234         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19235         to multiple of 256 bytes.
19236
19237 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19238
19239         [BZ #12167]
19240         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19241         of inacessible symlinks.  Verify result of symlink before returning it.
19242         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19243         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19244
19245 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19246
19247         * math/math.h (isinf): Fix typo in comment.
19248
19249 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19250
19251         * po/da.po: Update from translation team.
19252
19253 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19254
19255         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19256         is added to the list.
19257
19258 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19259             Ulrich Drepper  <drepper@gmail.com>
19260
19261         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19262         the global list here.  Move code to...
19263         (_dl_add_to_namespace_list): ...here.  New function.
19264         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19265         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19266         * elf/dl-load.c (lose): Don't remove the element from the list.
19267         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19268         (_dl_map_object): Likewise.
19269
19270 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19271
19272         [BZ #12159]
19273         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19274         into all bytes of SSE register.
19275         Patch by Richard Li <richardpku@gmail.com>.
19276
19277 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19278
19279         [BZ #12140]
19280         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19281         perturbing.
19282
19283 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19284
19285         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19286         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19287         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19288         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19290         submachine.
19291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19292
19293 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19294
19295         * include/dlfcn.h (__RTLD_SECURE): Define.
19296         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19297         mode & __RTLD_SECURE instead.
19298         (open_path): Rename preloaded parameter to secure.
19299         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19300         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19301         * elf/dl-deps.c (openaux): Likewise.
19302         * elf/rtld.c (struct map_args): Remove is_preloaded.
19303         (map_doit): Don't use it.
19304         (dl_main): Likewise.
19305         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19306         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19307
19308 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19309
19310         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19311         (sysd-rules-targets): Remove duplicates.
19312         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19313         rtld-%.$o dependency.
19314
19315 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19316
19317         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19318         _dl_map_object do it.
19319
19320 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19321
19322         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19323         fast fma builtins, define the macros in the C99 standard.
19324         (FP_FAST_FMAF): Likewise.
19325         (FP_FAST_FMAL): Likewise.
19326         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19327
19328         * bits/mathdef.h: Update copyright year.
19329         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19330
19331 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19332
19333         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19334         builtins, define the macros in the C99 standard.
19335         (FP_FAST_FMAF): Likewise.
19336         (FP_FAST_FMAL): Likewise.
19337         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19338         multiply/add.
19339         (FP_FAST_FMAF): Likewise.
19340
19341 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19342
19343         [BZ #3268]
19344         * math/libm-test.inc (fma_test): Some new testcases.
19345         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19346         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19347         y and infinite z.  Do multiplication by C already in long double.
19348         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19349         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19350         y and infinite z.  Do bitwise or of inexact bit into u.d.
19351         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19352         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19353         * sysdeps/i386/fpu/s_fma.S: Removed.
19354         * sysdeps/i386/fpu/s_fmal.S: Removed.
19355
19356 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19357
19358         [BZ #3268]
19359         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19360         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19361         computation is not scheduled after fetestexcept.  Fix value
19362         of minimum denormal long double.
19363
19364 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19365
19366         [BZ #3268]
19367         * math/libm-test.inc (fma_test): Add some more tests.
19368         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19369         correctly.
19370
19371 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19372
19373         * scripts/data/localplt-s390-linux-gnu.data: New file.
19374         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19375
19376 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19377
19378         [BZ #3268]
19379         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19380         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19381         instead of dbl-64.
19382         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19383         inlines.
19384         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19385         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19386         if one of x and y is very large and the other is subnormal.
19387         * sysdeps/s390/fpu/s_fmaf.c: New file.
19388         * sysdeps/s390/fpu/s_fma.c: New file.
19389         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19390         * sysdeps/powerpc/fpu/s_fma.S: New file.
19391         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19392         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19393         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19394
19395 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19396
19397         [BZ #3268]
19398         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19399         fma tests.
19400         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19401         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19402         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19403         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19404         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19405         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19406         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19407
19408 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19409
19410         [BZ #12078]
19411         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19412         * posix/bug-regex31.input: Add test case.
19413
19414 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19415
19416         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19417         * posix/bug-regex31.input: New file.
19418
19419         [BZ #12078]
19420         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19421         (parse_sub_exp): Fix last change, use postorder.
19422
19423         * posix/bug-regex31.c: New file.
19424         * posix/Makefile: Add rules to build and run bug-regex31.
19425
19426         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19427
19428         [BZ #12078]
19429         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19430
19431         [BZ #12108]
19432         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19433         to have entries in sys_siglist.
19434
19435         [BZ #12093]
19436         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19437         be NULL.
19438
19439 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19440
19441         [BZ #3268]
19442         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19443         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19444         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19445         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19446         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19447         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19448         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19449         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19450         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19451         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19452         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19453         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19454         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19455         * math/ftestexcept.c (fetestexcept): Likewise.
19456         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19457         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19458         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19459         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19460         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19461         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19462         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19463
19464 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19465
19466         [BZ #12107]
19467         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19468         newline.
19469
19470 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19471
19472         * string/bug-strstr1.c: New file.
19473         * string/Makefile: Add rules to build and run bug-strstr1.
19474
19475 2010-10-05  Eric Blake  <eblake@redhat.com>
19476
19477         [BZ #12092]
19478         * string/str-two-way.h (two_way_long_needle): Always clear memory
19479         when skipping input due to the shift table.
19480
19481 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19482
19483         [BZ #12005]
19484         * malloc/mcheck.c: Handle large requests.
19485
19486         [BZ #12077]
19487         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19488         for strncmp and strncasecmp.
19489         * string/stratcliff.c: Add tests for strcmp and strncmp.
19490         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19491
19492 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19493
19494         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19495         __set_fpscr.
19496
19497 2010-09-30  Andreas Jaeger  <aj@suse.de>
19498
19499         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19500         (CGROUP_SUPER_MAGIC): Define.
19501         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19502         Handle btrfs and cgroup file systems.
19503         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19504         Likewise.
19505
19506 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19507
19508         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19509         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19510
19511 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19512
19513         [BZ #12067]
19514         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19515         trying to locate the ELF header.
19516
19517 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19518
19519         [BZ #11611]
19520         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19521         Mask out sign-bit copies when constructing f_fsid.
19522
19523 2010-09-24  Petr Baudis <pasky@suse.cz>
19524
19525         * debug/stack_chk_fail_local.c: Add missing licence exception.
19526         * debug/warning-nop.c: Likewise.
19527
19528 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19529
19530         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19531         implementing getdents64 using getdents syscall, set d_type if
19532         __ASSUME_GETDENTS32_D_TYPE.
19533
19534 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19535
19536         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19537         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19538
19539 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19540
19541         [BZ #12037]
19542         * posix/unistd.h: Undo change of feature selection for ftruncate from
19543         2010-01-11.
19544
19545 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19546
19547         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19548         detection.
19549
19550 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19551
19552         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19553         fanotify_mark.
19554         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19555
19556 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19557
19558         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19559         variables after CHECK_SP call.
19560         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19561
19562 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19563             Ulrich Drepper  <drepper@redhat.com>
19564
19565         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19566         re-relocationg ld.so.
19567         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19568         _dl_init_paths call.
19569         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19570         here anymore.
19571
19572 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19573
19574         * resolv/res_init.c (__res_vinit): Count the default server we added.
19575
19576 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19577             Ulrich Drepper  <drepper@redhat.com>
19578
19579         [BZ #11968]
19580         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19581         (____longjmp_chk): Use %ebx for saving value across system call.
19582         Add unwind info.
19583
19584 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19585
19586         * manual/Makefile: Don't mix pattern rules with normal rules.
19587
19588 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19589
19590         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19591         operation.
19592         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19593         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19594         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19595         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19596         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19597         Likewise.
19598
19599 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19600
19601         [BZ #11979]
19602         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19603         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19604
19605 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19606
19607         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19608         * sysdeps/x86_64/addmul_1.S: Likewise.
19609         * sysdeps/x86_64/lshift.S: Likewise.
19610         * sysdeps/x86_64/mul_1.S: Likewise.
19611         * sysdeps/x86_64/rshift.S: Likewise.
19612         * sysdeps/x86_64/sub_n.S: Likewise.
19613         * sysdeps/x86_64/submul_1.S: Likewise.
19614
19615 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19616
19617         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19618         Define __sched_param instead of SCHED_* and sched_param when
19619         <bits/sched.h> is included with __need_schedparam defined.
19620         * bits/sched.h [__need_schedparam]
19621         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19622         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19623         (__defined_schedparam): Define to 1.
19624         (__sched_param): New structure, identical to sched_param.
19625         (__need_schedparam): Undefine.
19626
19627 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19628
19629         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19630         (epoll_create1): Declare.
19631
19632         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19633
19634 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19635
19636         [BZ #7066]
19637         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19638         shifting retval into place.
19639
19640 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19641
19642         * nis/rpcsvc/nis.h: Update copyright notice.
19643         * nis/rpcsvc/nis.x: Likewise.
19644         * nis/rpcsvc/nis_callback.h: Likewise.
19645         * nis/rpcsvc/nis_callback.x: Likewise.
19646         * nis/rpcsvc/nis_object.x: Likewise.
19647         * nis/rpcsvc/nis_tags.h: Likewise.
19648         * nis/rpcsvc/yp.h: Likewise.
19649         * nis/rpcsvc/yp.x: Likewise.
19650         * nis/rpcsvc/ypupd.h: Likewise.
19651         * nis/yp_xdr.c: Likewise.
19652         * nis/ypupdate_xdr.c: Likewise.
19653
19654         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19655         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19656         (pmap_getport): Use __libc_rpc_getport.
19657         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19658         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19659         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19660
19661 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19662
19663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19664         fanotify_mark.
19665
19666 2010-08-27  Roland McGrath  <roland@redhat.com>
19667
19668         * sysdeps/i386/i686/multiarch/Makefile
19669         (CFLAGS-varshift.c): New variable.
19670
19671 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19672
19673         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19674         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19675
19676         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19677
19678         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19679
19680 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19681
19682         * sysdeps/x86_64/strlen.S: Unroll the loop.
19683         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19684         strlen-sse2 strlen-sse2-bsf.
19685         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19686         __strlen_no_bsf if bit_Slow_BSF is set.
19687         (__strlen_sse42): Removed.
19688         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19689         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19690
19691 2010-08-25  Roland McGrath  <roland@redhat.com>
19692
19693         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19694         * sysdeps/x86_64/multiarch/varshift.c: New file.
19695         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19696         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19697         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19698         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19699
19700 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19701
19702         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19703         strlen-sse2 strlen-sse2-bsf.
19704         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19705         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19706         (__strlen_sse2): Removed.
19707         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19708         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19709         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19710         bit_Slow_BSF for Atom.
19711         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19712         (index_Slow_BSF): Define.
19713         (HAS_SLOW_BSF): Define.
19714
19715 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19716
19717         [BZ #10851]
19718         * resolv/res_init.c (__res_vinit): When no server address at all
19719         is given default to loopback.
19720
19721 2010-08-24  Roland McGrath  <roland@redhat.com>
19722
19723         * configure.in: Remove config-name.h generation.
19724         * configure: Regenerated.
19725         * config-name.in: File removed.
19726         * scripts/config-uname.sh: New file.
19727         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19728         ($(objdir)config-name.h): New target.
19729
19730         * sunrpc/rpc_parse.h: Avoid nested comment.
19731
19732 2010-08-24  Richard Henderson  <rth@redhat.com>
19733             Ulrich Drepper  <drepper@redhat.com>
19734             H.J. Lu  <hongjiu.lu@intel.com>
19735
19736         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19737         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19738         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19739         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19740         _mm_alignr_epi8 with _mm_loadu_si128.
19741         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19742         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19743         (__m128i_shift_right): Removed.
19744         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19745         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19746         * sysdeps/x86_64/multiarch/varshift.h: New file.
19747         * sysdeps/x86_64/multiarch/varshift.S: New file.
19748
19749 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19750
19751         * configure.in: Move assembler checks to before sysdep dir checking.
19752
19753 2010-08-20  Petr Baudis  <pasky@suse.cz>
19754
19755         * LICENSES: Sync the sunrpc license.
19756
19757 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19758
19759         * sunrpc/auth_des.c: Update copyright notice once again.
19760         * sunrpc/auth_none.c: Likewise.
19761         * sunrpc/auth_unix.c: Likewise.
19762         * sunrpc/authdes_prot.c: Likewise.
19763         * sunrpc/authuxprot.c: Likewise.
19764         * sunrpc/bindrsvprt.c: Likewise.
19765         * sunrpc/clnt_gen.c: Likewise.
19766         * sunrpc/clnt_perr.c: Likewise.
19767         * sunrpc/clnt_raw.c: Likewise.
19768         * sunrpc/clnt_simp.c: Likewise.
19769         * sunrpc/clnt_tcp.c: Likewise.
19770         * sunrpc/clnt_udp.c: Likewise.
19771         * sunrpc/clnt_unix.c: Likewise.
19772         * sunrpc/des_crypt.c: Likewise.
19773         * sunrpc/des_soft.c: Likewise.
19774         * sunrpc/get_myaddr.c: Likewise.
19775         * sunrpc/getrpcport.c: Likewise.
19776         * sunrpc/key_call.c: Likewise.
19777         * sunrpc/key_prot.c: Likewise.
19778         * sunrpc/openchild.c: Likewise.
19779         * sunrpc/pm_getmaps.c: Likewise.
19780         * sunrpc/pm_getport.c: Likewise.
19781         * sunrpc/pmap_clnt.c: Likewise.
19782         * sunrpc/pmap_prot.c: Likewise.
19783         * sunrpc/pmap_prot2.c: Likewise.
19784         * sunrpc/pmap_rmt.c: Likewise.
19785         * sunrpc/rpc/auth.h: Likewise.
19786         * sunrpc/rpc/auth_unix.h: Likewise.
19787         * sunrpc/rpc/clnt.h: Likewise.
19788         * sunrpc/rpc/des_crypt.h: Likewise.
19789         * sunrpc/rpc/key_prot.h: Likewise.
19790         * sunrpc/rpc/netdb.h: Likewise.
19791         * sunrpc/rpc/pmap_clnt.h: Likewise.
19792         * sunrpc/rpc/pmap_prot.h: Likewise.
19793         * sunrpc/rpc/pmap_rmt.h: Likewise.
19794         * sunrpc/rpc/rpc.h: Likewise.
19795         * sunrpc/rpc/rpc_des.h: Likewise.
19796         * sunrpc/rpc/rpc_msg.h: Likewise.
19797         * sunrpc/rpc/svc.h: Likewise.
19798         * sunrpc/rpc/svc_auth.h: Likewise.
19799         * sunrpc/rpc/types.h: Likewise.
19800         * sunrpc/rpc/xdr.h: Likewise.
19801         * sunrpc/rpc_clntout.c: Likewise.
19802         * sunrpc/rpc_cmsg.c: Likewise.
19803         * sunrpc/rpc_common.c: Likewise.
19804         * sunrpc/rpc_cout.c: Likewise.
19805         * sunrpc/rpc_dtable.c: Likewise.
19806         * sunrpc/rpc_hout.c: Likewise.
19807         * sunrpc/rpc_main.c: Likewise.
19808         * sunrpc/rpc_parse.c: Likewise.
19809         * sunrpc/rpc_parse.h: Likewise.
19810         * sunrpc/rpc_prot.c: Likewise.
19811         * sunrpc/rpc_sample.c: Likewise.
19812         * sunrpc/rpc_scan.c: Likewise.
19813         * sunrpc/rpc_scan.h: Likewise.
19814         * sunrpc/rpc_svcout.c: Likewise.
19815         * sunrpc/rpc_tblout.c: Likewise.
19816         * sunrpc/rpc_util.c: Likewise.
19817         * sunrpc/rpc_util.h: Likewise.
19818         * sunrpc/rpcinfo.c: Likewise.
19819         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19820         * sunrpc/rpcsvc/key_prot.x: Likewise.
19821         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19822         * sunrpc/rpcsvc/mount.x: Likewise.
19823         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19824         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19825         * sunrpc/rpcsvc/rex.x: Likewise.
19826         * sunrpc/rpcsvc/rstat.x: Likewise.
19827         * sunrpc/rpcsvc/rusers.x: Likewise.
19828         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19829         * sunrpc/rpcsvc/spray.x: Likewise.
19830         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19831         * sunrpc/rtime.c: Likewise.
19832         * sunrpc/svc.c: Likewise.
19833         * sunrpc/svc_auth.c: Likewise.
19834         * sunrpc/svc_authux.c: Likewise.
19835         * sunrpc/svc_raw.c: Likewise.
19836         * sunrpc/svc_run.c: Likewise.
19837         * sunrpc/svc_simple.c: Likewise.
19838         * sunrpc/svc_tcp.c: Likewise.
19839         * sunrpc/svc_udp.c: Likewise.
19840         * sunrpc/svc_unix.c: Likewise.
19841         * sunrpc/svcauth_des.c: Likewise.
19842         * sunrpc/xcrypt.c: Likewise.
19843         * sunrpc/xdr.c: Likewise.
19844         * sunrpc/xdr_array.c: Likewise.
19845         * sunrpc/xdr_float.c: Likewise.
19846         * sunrpc/xdr_mem.c: Likewise.
19847         * sunrpc/xdr_rec.c: Likewise.
19848         * sunrpc/xdr_ref.c: Likewise.
19849         * sunrpc/xdr_sizeof.c: Likewise.
19850         * sunrpc/xdr_stdio.c: Likewise.
19851
19852         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19853         handling.
19854
19855 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19856
19857         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19858
19859 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19860
19861         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19862         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19863         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19864         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19865         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19866         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19867         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19868         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19869         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19870         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19871         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19872         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19873         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19874         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19875
19876 2010-07-26  Anton Blanchard  <anton@samba.org>
19877
19878         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19879         * malloc/arena.c (heap_trim): Likewise.
19880
19881 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19882
19883         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19884         here.  Not...
19885         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19886         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19887
19888 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19889
19890         * sysdeps/i386/elf/Makefile: New file.
19891
19892 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19893
19894         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19895         from fanotify_init.
19896         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19897         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19898
19899 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19900
19901         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19902         of strncasecmp_l.
19903         * sysdeps/multiarch/strcmp.S: Likewise.
19904
19905 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19906
19907         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19908         strncase_l-nonascii.
19909         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19910         Add strncase_l-ssse3.
19911         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19912         * sysdeps/x86_64/strcmp.S: Likewise.
19913         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19914         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19915         * sysdeps/x86_64/strncase.S: New file.
19916         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19917         * sysdeps/x86_64/strncase_l.S: New file.
19918         * string/Makefile (strop-tests): Add strncasecmp.
19919         * string/test-strncasecmp.c: New file.
19920
19921         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19922         warning.
19923
19924         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19925         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19926
19927 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19928
19929         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19930
19931 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19932
19933         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19934         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19935         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19936
19937 2010-05-01  Alan Modra  <amodra@gmail.com>
19938
19939         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19940         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19941         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19942         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19943         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19944         tidying.  Don't tail-call __sigjmp_save for static lib.
19945         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19946         save location.
19947         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19948         (CALL_MCOUNT): Add eh info, and nop after bl.
19949         (TAIL_CALL_SYSCALL_ERROR): New macro.
19950         (PSEUDO_RET): Use it.
19951         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19952         Correct save location of integer regs and cr.
19953         (_dl_profile_resolve): Correct cr save location.  Delete nops
19954         after bl when SHARED.  Reduce cfi size a little by better
19955         placement of cfi directives.
19956         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19957         make a stack frame.  Instead use parm save area as a temp.
19958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19959         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19961         Don't make a stack frame for parent, use parm save area.
19962         Increase child stack frame to 112 bytes.  Don't save unused reg,
19963         and adjust reg usage.  Set up cfi on error recovery and
19964         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19966         (__makecontext): Add dummy nop after jump to exit.
19967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19968         Use correct parm save area and cr save, reduce stack frame.
19969         Correct cfi for possible PSEUDO_RET frame setup.
19970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19971         Branch to local label emitted by PSEUDO_RET rather than
19972         __syscall_error.
19973
19974 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19975
19976         [BZ #11904]
19977         * locale/programs/locale.c (print_assignment): New function.
19978         (show_locale_vars): Use it.
19979
19980 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19981
19982         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19983         field.
19984         (struct statfs64): Likewise.
19985         (_STATFS_F_FLAGS): Define.
19986         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19987         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19988         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19989         (ST_VALID): Define locally.
19990         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19991         __statvfs_getflags, use the provided value.
19992         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19993         __ASSUME_STATFS_F_FLAGS.
19994
19995         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19996
19997         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19998         Add sys/fanotify.h.
19999         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20000         fanotify_mask for GLIBC_2.13.
20001         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20002         fanotify_init and fanotify_mark.
20003         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20004         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20005
20006         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20007         Add prlimit.
20008         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20009         prlimit64 for GLIBC_2.13.
20010         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20011         prlimit64.
20012         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20013         syscall.
20014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20015         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20016         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20017         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20018         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20019         add prlimit alias.
20020         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20021
20022         [BZ #11903]
20023         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20024         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20025
20026         * nss/Makefile: Add rules to build and run tst-nss-test1.
20027         * shlib-versions: Add entry for libnss_test1.
20028         * nss/nss_test1.c: New file.
20029         * nss/tst-nss-test1.c: New file.
20030
20031         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20032         (__nss_configure_lookup): Set appropriate entry in
20033         __nss_configure_lookup to true.
20034         * nss/nsswitch.h: Define enum with indeces of databases in
20035         databases and __nss_database_custom arrays.  Declare
20036         __nss_database_custom.
20037         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20038         to avoid using nscd when custom rules are installed.
20039         * nss/getXXbyYY_r.c: Likewise.
20040         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20041
20042         * nss/nss_files/files-parse.c: Whitespace fixes.
20043
20044 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20045
20046         [BZ #11883]
20047         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20048         * posix/fnmatch_loop.c: Likewise.
20049
20050 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20051
20052         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20053         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20054         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20055         * Versions.def [GLIBC_2.13]: Add.
20056
20057 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20058
20059         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20060         Also fail if tpwd after pwuid call is NULL.
20061
20062 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20063
20064         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20065         when converting to ms.
20066
20067 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20068
20069         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20070         EOPNOTSUPP errors with ENOTTY.
20071         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20072         EOPNOTSUPP errors with ENOTTY.
20073
20074 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20075
20076         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20077         Add strcasecmp_l-ssse3.
20078         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20079         strcasecmp.
20080         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20081         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20082         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20083
20084 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20085
20086         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20087
20088         * string/Makefile (strop-tests): Add strcasecmp.
20089         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20090         strcasecmp_l-nonascii.
20091         (gen-as-const-headers): Add locale-defines.sym.
20092         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20093         * sysdeps/x86_64/strcasecmp.S: New file.
20094         * sysdeps/x86_64/strcasecmp_l.S: New file.
20095         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20096         * sysdeps/x86_64/locale-defines.sym: New file.
20097         * string/test-strcasecmp.c: New file.
20098
20099         * string/test-strcasestr.c: Test both ends of the range of characters.
20100         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20101
20102 2010-07-29  Roland McGrath  <roland@redhat.com>
20103
20104         [BZ #11856]
20105         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20106
20107 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20108
20109         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20110         for ld.so.
20111
20112 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20113
20114         * manual/memory.texi (Malloc Tunable Parameters): Document
20115         M_PERTURB.
20116
20117 2010-07-26  Roland McGrath  <roland@redhat.com>
20118
20119         [BZ #11840]
20120         * configure.in (-fgnu89-inline check): Set and substitute
20121         gnu89_inline, not libc_cv_gnu89_inline.
20122         * configure: Regenerated.
20123         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20124
20125 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20126
20127         * string/test-strnlen.c: New file.
20128         * string/Makefile (strop-tests): Add strnlen.
20129         * string/tester.c (test_strnlen): Add a few more test cases.
20130         * string/tst-strlen.c: Better error reporting.
20131
20132         * sysdeps/x86_64/strnlen.S: New file.
20133
20134 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20135
20136         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20137         lower-latency instructions.
20138
20139 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20140
20141         * string/test-strcasestr.c: New file.
20142         * string/test-strstr.c: New file.
20143         * string/Makefile (strop-tests): Add strstr and strcasestr.
20144         * string/str-two-way.h: Don't undefine MAX.
20145         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20146
20147 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20148
20149         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20150         strcasestr-nonascii.
20151         (CFLAGS-strcasestr-nonascii.c): Define.
20152         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20153         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20154         Remove unused attribute.
20155
20156 2010-07-20  Roland McGrath  <roland@redhat.com>
20157
20158         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20159         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20160         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20161         like LD_HWCAP_MASK can disable hwcaps.
20162
20163 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20164
20165         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20166
20167 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20168
20169         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20170         call in strcasestr.
20171         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20172         __strcasestr_sse42_nonascii.
20173         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20174         strcasestr-nonascii.c.
20175         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20176
20177 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20178
20179         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20180         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20181         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20182         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20183
20184 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20185
20186         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20187         fcntl.
20188
20189 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20190
20191         [BZ #11577]
20192         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20193         dl_signal_cerror.
20194
20195 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20196
20197         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20198         _PC_PIPE_BUF using F_GETPIPE_SZ.
20199
20200 2010-07-05  Roland McGrath  <roland@redhat.com>
20201
20202         * manual/arith.texi (Rounding Functions): Fix rint description
20203         implicit in round description.
20204
20205 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20206
20207         * elf/Makefile: Fix linking for a few tests to make recent linker
20208         happy.
20209
20210 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20211
20212         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20213         $(common-objpfx)libc_nonshared.a.
20214
20215 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20216
20217         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20218         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20219         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20220         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20221         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20222         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20223         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20224         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20239         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20240         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20241         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20242         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20243         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20244         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20245         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20246         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20247         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20248         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20249         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20250         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20265
20266 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20267
20268         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20269         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20270         * string/memmove.c (memmove): Renamed to ...
20271         (MEMMOVE): ...this.  Default to memmove.
20272         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20273         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20274         (END_CHK): Define.
20275         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20276         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20277         mempcpy-ssse3-back memmove-ssse3-back.
20278         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20279         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20280         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20281         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20282         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20283         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20284         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20285         * sysdeps/x86_64/multiarch/memmove.c: New file.
20286         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20287         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20288         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20289         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20290         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20291         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20292         Define.
20293         (index_Fast_Copy_Backward): Define.
20294         (HAS_ARCH_FEATURE): Define.
20295         (HAS_FAST_REP_STRING): Define.
20296         (HAS_FAST_COPY_BACKWARD): Define.
20297
20298 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20299
20300         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20301         Restore proper fallback handling.
20302
20303 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20304
20305         [BZ #11701]
20306         * posix/group_member.c (__group_member): Correct checking loop.
20307
20308         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20309         OOM in getpwuid_r correctly.  Return error number when the caller
20310         should return, otherwise -1.
20311         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20312         call returning > 0 value.
20313         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20314
20315 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20316
20317         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20318         libc_nonshared.a from targets in modules-names.
20319
20320 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20321
20322         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20323         requires it.
20324
20325 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20326
20327         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20328         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20329         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20330         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20331
20332 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20333
20334         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20335
20336 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20337
20338         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20339         and F_GETPIPE_SZ.
20340         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20341         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20342         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20343         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20344         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20345         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20346
20347 2010-06-14  Roland McGrath  <roland@redhat.com>
20348
20349         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20350
20351 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20352
20353         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20354         __REDIRECT followed by __THROW.
20355         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20356         * posix/getopt.h (getopt): Likewise.
20357
20358 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20359
20360         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20361         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20362         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20363         in AT_FLAGS.
20364         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20365         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20366
20367 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20368
20369         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20370
20371 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20372
20373         [BZ #11640]
20374         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20375         Properly check family and model.
20376
20377 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20378
20379         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20380
20381 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20382
20383         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20384
20385 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20386
20387         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20388         symbol reference.
20389
20390 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20391
20392         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20393         symbol reference.
20394
20395 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20396
20397         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20398         and internal_recvmmsg.
20399         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20400         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20401         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20402         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20403
20404         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20405         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20406         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20407
20408 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20409
20410         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20411
20412 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20413
20414         POWER7 optimizations.
20415         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20416         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20417
20418 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20419
20420         * version.h: Update for 2.13 development version.
20421
20422 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20423
20424         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20425         exceptions.  Return 0.
20426
20427 2010-05-07  Roland McGrath  <roland@redhat.com>
20428
20429         * elf/ldconfig.c (main): Add a const.
20430
20431 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20432
20433         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20434         (args_options): Add no-idn option.
20435         (ahosts_keys_int): Add idn_flags to ai_flags.
20436         (parse_option): Handle 'i' option to clear idn_flags.
20437
20438         * malloc/malloc.c (_int_free): Possible race in the most recently
20439         added check.  Only act on the data if no current modification
20440         happened.
20441
20442 See ChangeLog.17 for earlier changes.