Remove _G_OPEN64, _G_LSEEK64, _G_MMAP64, _G_FSTAT64 from _G_config.h.
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
4         (_G_LSEEK64): Likewise.
5         (_G_MMAP64): Likewise.
6         (_G_FSTAT64): Likewise.
7         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
8         (_G_LSEEK64): Likewise.
9         (_G_MMAP64): Likewise.
10         (_G_FSTAT64): Likewise.
11         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
12         unconditional.  Call __mmap64 directly.
13         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
14         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
15         __lseek64 directly.
16         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
17         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
18         __mmap64 directly.
19         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
20         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
21         __lseek64 directly.
22         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
23         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
24         __lseek64 directly.
25         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
26         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
27         __lseek64 directly.
28         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
29         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
30         __fxstat64 directly.
31         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
32         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
33         unconditional.
34         (freopen64) [!_G_OPEN64]: Remove conditional code.
35         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
36         unconditional.
37         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
38         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
39         unconditional.
40         (ftello64) [!_G_LSEEK64]: Remove conditional code.
41         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
42         unconditional.
43         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
44         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
45         unconditional.
46         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
47         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
48         unconditional.
49         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
50         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
51         unconditional.
52         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
53         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
54         unconditional.
55         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56
57 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
58
59         [BZ #12140]
60         * manual/memory.texi (Malloc Tunable Parameters): Add note
61         about free list pointers overwriting some perturb bytes.
62         Wording suggested by Roland McGrath.
63
64 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
65
66         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
67         (lgamma_test): Likewise.
68         (tgamma_test): Likewise.
69
70 2012-10-16  Florian Weimer  <fweimer@redhat.com>
71
72         [BZ #14700]
73         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
74         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
75
76 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
77
78         * NEWS: Mention BZ #14716.
79         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
80         when removing AVAILABLE1_USES_J macro.
81
82 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
83
84         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
85         (__bswap_64): __uint64_t for unsigned 64-bit int.
86
87 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
88
89         * include/string.h (memmem): Declare libc hidden alias.
90         * string/memmem.c (memmem): Define libc hidden alias.
91         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
92         __read, __close instead of open, read, close.
93
94 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
95
96         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
97         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
98         global and hidden.
99         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
100         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
101         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
102         Likewise.
103         (__rawmemchr_sse2): Likewise.
104         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
105         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
106         (__strchr_sse2): Likewise.
107         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
108         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
109         (__strcasecmp_sse2): Likewise.
110         (__strncasecmp_sse2): Likewise.
111         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
112         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
113         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
114         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
115         (__strrchr_sse2): Likewise.
116         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
117         ifunc-impl-list.c.
118         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
119         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
120         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
121         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
122         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
123         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
124         * sysdeps/x86_64/multiarch/memset.S: Likewise.
125         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
126         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
127         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
128         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
129         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
130         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
131         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
132         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
133         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
134         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
135         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
136         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
137         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
138         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
139         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
140         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
141         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
142         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
143         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
144         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
145         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
146         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
147         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
148
149         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
150         global and hidden.
151         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
152         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
153         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
154         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
155         Likewise.
156         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
157         Likewise.
158         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
159         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
160         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
161         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
162         ifunc-impl-list.c.
163         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
164         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
165         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
166         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
167         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
168         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
169         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
170         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
171         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
172         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
173         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
174         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
175         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
176         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
177         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
178         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
179         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
180         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
181         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
182         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
183         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
184         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
185         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
186         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
187         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
188         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
189         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
190         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
191         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
192         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
193         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
194         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
195         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
196         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
197         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
198         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
199         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
200         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
201         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
202         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
203         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
204
205         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
206         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
207         * include/ifunc-impl-list.h: New file.
208         * misc/ifunc-impl-list.c: Likewise.
209         * misc/Makefile (routines): Add ifunc-impl-list.
210         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
211         * string/test-string.h: Include <ifunc-impl-list.h>.
212         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
213         impl_array): New variables.
214         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
215         are defined.
216         (test_init): Call __libc_ifunc_impl_list to initialize
217         func_list if TEST_IFUNC and TEST_NAME are defined.
218
219         * string/Makefile (strop-tests): Add bcopy and bzero.
220         * string/test-bcopy.c: New file.
221         * string/test-bzero.c: Likewise.
222         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
223         defined.
224         * string/test-memset.c: Support bzero test if TEST_BZERO is
225         defined.
226         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
227         __libc_memmove.
228         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
229         __libc_memset.
230         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
231         of memset.
232
233 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
234
235         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
236         * configure: Regenerated.
237
238         * Makeconfig (+link-static-before-libc): Don't include
239         $(link-static-libc).
240
241         * libio/libio.h (_IO_pos_t): Remove.
242
243 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
244
245         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
246         McGrath.
247
248 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
249
250         * crypt/crypt-entry.c: Include fips-private.h.
251         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
252         * crypt/md5c-test.c (main): Tolerate disabled MD5.
253         * sysdeps/unix/sysv/linux/fips-private.h: New file.
254         * sysdeps/generic/fips-private.h: New file, dummy fallback.
255
256 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
257
258         * crypt/crypt-private.h: Include stdbool.h.
259         (_ufc_setup_salt_r): Return bool.
260         * crypt/crypt-entry.c: Include errno.h.
261         (__crypt_r): Return NULL with EINVAL for bad salt.
262         * crypt/crypt_util.c (bad_for_salt): New.
263         (_ufc_setup_salt_r): Check that salt is long enough and within
264         the specified alphabet.
265         * crypt/badsalttest.c: New file.
266         * crypt/Makefile (tests): Add it.
267         ($(objpfx)badsalttest): New.
268
269 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
270
271         * NEWS: Add entry for BZ #14602.
272
273 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
274
275         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
276         type-generic.
277         * math/libm-test.inc: Update comment listing what functions and
278         macros are tested.
279         (isgreater_test): New function.
280         (isgreaterequal_test): Likewise.
281         (isless_test): Likewise.
282         (islessequal_test): Likewise.
283         (islessgreater_test): Likewise.
284         (isunordered_test): Likewise.
285         (main): Call the new functions.
286
287 2012-10-09  Roland McGrath  <roland@hack.frob.com>
288
289         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
290         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
291         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
292         * sysdeps/i386/configure: Regenerated.
293         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
294         * sysdeps/mach/configure: Regenerated.
295         * sysdeps/mach/hurd/configure: Regenerated.
296         * sysdeps/powerpc/configure: Regenerated.
297         * sysdeps/powerpc/powerpc32/configure: Regenerated.
298         * sysdeps/powerpc/powerpc64/configure: Regenerated.
299         * sysdeps/s390/s390-32/configure: Regenerated.
300         * sysdeps/s390/s390-64/configure: Regenerated.
301         * sysdeps/sh/configure: Regenerated.
302         * sysdeps/sparc/configure: Regenerated.
303         * sysdeps/unix/sysv/linux/configure: Regenerated.
304         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
305         * sysdeps/x86_64/configure: Regenerated.
306
307         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
308         defined.  Don't check if MAP is NULL.
309
310 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
311
312         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
313         (_G_stat64): Likewise.
314         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
315         (_G_stat64): Likewise.
316         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
317         instead of struct _G_stat64.
318         * libio/fileops.c (mmap_remap_check): Likewise.
319         (decide_maybe_mmap): Likewise.
320         (_IO_new_file_seekoff): Likewise.
321         (_IO_file_stat): Likewise.
322         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
323         _G_off64_t.
324         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
325         instead of struct _G_stat64.
326         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
327
328 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
329
330         [BZ #14602]
331         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
332         Replace with ...
333         (CHECK_EOL): New macro.
334         (two_way_short_needle): Check beginning of haystack for EOL.  Use
335         CHECK_EOL.
336         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
337         Replace with CHECK_EOL.
338         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
339         Replace with CHECK_EOL.
340
341 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
342
343         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
344         type-generic.
345         * math/libm-test.inc: Update comment listing what functions and
346         macros are tested.
347         (finite_test): New function.
348         (isinf_test): Likewise.
349         (isnan_test): Likewise.
350         (fpclassify_test): Test subnormal input.
351         (isfinite_test): Likewise.
352         (isnormal_test): Likewise.
353         (main): Call the new functions.
354
355 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
356
357         [BZ #14660]
358         * Makerules (%.dynsym): Force C locale when running
359         $(OBJDUMP) --dynamic-syms.
360
361 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
362
363         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
364         <stdint.h>.
365
366 2012-10-06  David S. Miller  <davem@davemloft.net>
367
368         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
369         upper 32-bits of the length value in %o2 since we use branch-on-register
370         tests which consider the entire 64-bit register.
371
372 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
373
374         * string/test-strstr.c (check2): Add a test for page boundary.
375
376 2012-10-05  David S. Miller  <davem@davemloft.net>
377
378         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
379         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
380         file.
381         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
382         sysdep_routines.
383         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
384         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
385         and bzero when HWCAP_SPARC_CRYPTO is present.
386
387 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
388
389         [BZ #14602]
390         * string/test-strstr.c (check2): New function.
391         (test_main): Call check2.
392
393         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
394         and bug-strchr1.
395         * string/bug-strcasestr1.c (do_test): Moved to ...
396         * string/test-strcasestr.c (check1): Here.  New function.
397         (do_one_test): Break out result checking code into ...
398         (check_result): This.  New function.
399         (do_one_test): Call check_result.
400         (test_main): Call check1.
401         * string/bug-strchr1.c (do_test): Moved to ...
402         * string/test-strchr.c (check1): Here.  New function.
403         (do_one_test): Break out result checking code into ...
404         (check_result): This.  New function.
405         (do_one_test): Call check_result.
406         (test_main): Call check1.
407         * string/bug-strstr1.c (main): Moved to ...
408         * string/test-strchr.c (check1): Here.  New function.
409         (do_one_test): Break out result checking code into ...
410         (check_result): This.  New function.
411         (do_one_test): Call check_result.
412         (test_main): Call check1.
413         * string/bug-strcasestr1.c: Removed.
414         * string/bug-strchr1.c: Likewise.
415         * string/bug-strstr1.c: Likewise.
416
417         * elf/Makefile (dl-routines): Add hwcaps.
418         * elf/dl-support.c (_dl_important_hwcaps): Removed.
419         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
420         (_dl_important_hwcaps): Moved to ...
421         * elf/dl-hwcaps.c: Here.  New file.
422         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
423
424         [BZ #14557]
425         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
426         if IS_IN_rtld isn't defined.
427
428         * elf/dl-support.c (_dl_sysinfo_map): New.
429         Include "get-dynamic-info.h" and "setup-vdso.h".
430         (_dl_non_dynamic_init): Call setup_vdso.
431         * elf/dynamic-link.h: Don't include <assert.h>.
432         (elf_get_dynamic_info): Moved to ...
433         * elf/get-dynamic-info.h: Here.  New file.
434         * elf/dynamic-link.h: Include "get-dynamic-info.h".
435         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
436         * elf/setup-vdso.h: Here.  New file.
437         * elf/rtld.c: Include "setup-vdso.h".
438         (dl_main): Call setup_vdso.
439
440 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
441
442         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
443         creal in comment listing functions tested.  List finite, isinf,
444         isnan, isless, islessequal, isgreater, isgreaterequal,
445         islessgreater, isunordered, lgamma_r and pow10 as functions and
446         macros not tested.  Mention which functions not tested are aliases
447         for other functions.  Fix typo.  Note that signs of NaNs are not
448         tested.
449
450         * scripts/config.guess: Update from config.git.
451         * scripts/config.sub: Likewise.
452
453 2012-10-04  Roland McGrath  <roland@hack.frob.com>
454
455         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
456         * misc/madvise.c (madvise): Renamed to __madvise.
457         Make madvise a weak alias.
458         * include/sys/mman.h: Declare __madvise.
459         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
460         * sysdeps/unix/syscalls.list
461         (madvise): Make __madvise the strong name, and madvise a weak alias.
462         * sysdeps/unix/sysv/linux/syscalls.list
463         (madvise, mmap): Remove redundant entries.
464         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
465         * malloc/malloc.c (mtrim): Likewise.
466         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
467
468 2012-10-03  Roland McGrath  <roland@hack.frob.com>
469
470         * sysdeps/mach/hurd/dl-cache.c: File removed.
471         * config.h.in (USE_LDCONFIG): New #undef.
472         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
473         * configure: Regenerated.
474         * elf/Makefile (dl-routines): Add dl-cache only under
475         [$(use-ldconfig) = yes].
476         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
477         cache on [USE_LDCONFIG].
478         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
479         [USE_LDCONFIG].
480         * elf/rtld.c (dl_main): Likewise.
481
482 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
483
484         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
485         _SC_LEVEL4_CACHE_LINESIZE.
486
487 2012-10-03  Roland McGrath  <roland@hack.frob.com>
488
489         * sysdeps/unix/bsd/confstr.h: File removed.
490
491 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
492
493         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
494         sys/sdt-config.h.
495
496 2012-10-02  Roland McGrath  <roland@hack.frob.com>
497
498         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
499         Make 'mapoff' field ElfW(Off) rather than off_t.
500
501 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
502
503         * nscd/Makefile: Remove nscd-cflags and all its users.
504         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
505         (CFLAGS-nonlib): Add compiler flags for nscd modules.
506
507         [BZ #10631]
508         * malloc.c (malloc_printerr): Clarify error message.
509
510 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
511
512         [BZ #14648]
513         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
514         Set bit_FMA_Usable if FMA is supported.
515         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
516         macro.
517         (bit_FMA4_Usable): Updated.
518         (index_FMA_Usable): New macro.
519         (CPUID_FMA): Likewise
520         (HAS_FMA): Defined with bit_FMA_Usable.
521
522 2012-10-01  Roland McGrath  <roland@hack.frob.com>
523
524         * bits/types.h (__swblk_t): Type removed.
525         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
526         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
527         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
528         (__SWBLK_T_TYPE): Likewise.
529         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
530         (__SWBLK_T_TYPE): Likewise.
531         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
532         (__SWBLK_T_TYPE): Likewise.
533         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
534         (__SWBLK_T_TYPE): Likewise.
535
536 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
537             Honza Horak <hhorak@redhat.com>
538
539         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
540         (xdr_mapname): Use YPMAXMAP as maxsize.
541         (xdr_peername): Use YPMAXPEER as maxsize.
542         (xdr_keydat): Use YPAXRECORD as maxsize.
543         (xdr_valdat): Use YPMAXRECORD as maxsize.
544
545 2012-10-01  Roland McGrath  <roland@hack.frob.com>
546
547         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
548
549         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
550         * csu/init-first.c: ... here.
551         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
552         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
553         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
554         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
555         * sysdeps/i386/init-first.c: File removed.
556         * sysdeps/sh/init-first.c: File removed.
557
558 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
559
560         [BZ #14645]
561         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
562         if x * y might underflow to zero and z is zero.
563         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
564         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
565         * math/libm-test.inc (min_subnorm_value): New variable.
566         (fma_test): Add more tests.
567         (fma_test_towardzero): Likewise.
568         (fma_test_downward): Likewise
569         (fma_test_upward): Likewise.
570         (initialize): Set min_subnorm_value.
571
572 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
573
574         [BZ #14638]
575         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
576         0 + 0.
577         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
578         mode for addition resulting in exact zero.
579         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
580         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
581         exact 0 + 0.
582         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
583         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
584         * math/libm-test.inc (fma_test): Add more tests.
585         (fma_test_towardzero): New function.
586         (fma_test_downward): Likewise.
587         (fma_test_upward): Likewise.
588         (main): Call the new functions.
589
590 2012-09-28  David S. Miller  <davem@davemloft.net>
591
592         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
593
594 2012-09-28  Roland McGrath  <roland@hack.frob.com>
595
596         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
597         instead of SIGALRM.
598
599         * sysdeps/gnu/_G_config.h: Moved to ...
600         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
601         * sysdeps/mach/hurd/_G_config.h: Moved to ...
602         * sysdeps/generic/_G_config.h: ... here.
603
604         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
605
606         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
607
608         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
609         Conditionalize target on [libnss_test1.so-version].
610
611         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
612
613         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
614         (elfobjdir): Move out of conditionals.
615
616         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
617         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
618         (__nss_lookup_function): Conditionalize label remove_from_tree on
619         [!DO_STATIC_NSS || SHARED], matching its only use.
620
621 2012-09-28  David S. Miller  <davem@davemloft.net>
622
623         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
624         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
625         file.
626         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
627         sysdep_routines.
628         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
629         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
630         when HWCAP_SPARC_CRYPTO is present.
631
632 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
633
634         * io/tst-mknodat.c: Create a FIFO instead of a socket.
635
636 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
637
638         [BZ #6530]
639         * stdio-common/vfprintf.c (process_string_arg): Revert
640         2000-07-22 change.
641
642 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
643
644         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
645         for testcase.
646         * stdio-common/tst-sprintf.c: Include <locale.h>
647         (main): Test sprintf's handling of incomplete multibyte
648         characters.
649
650 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
651
652         * elf/dl-runtime.c (VERSYMIDX): Removed.
653         * elf/dl-version.c (VERSYMIDX): Likewise.
654         * elf/do-rel.h (VERSYMIDX): Likewise.
655         (VALIDX): Likewise.
656         * elf/dynamic-link.h (VERSYMIDX): Likewise.
657         * elf/rtld.c (VALIDX): Likewise.
658         (ADDRIDX): Likewise.
659         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
660         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
661         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
662         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
663         (VALIDX): Likewise.
664         (ADDRIDX): Likewise.
665
666 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
667
668         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
669
670 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
671
672         [BZ #11438]
673         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
674         to global scope.
675         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
676         addresses are in the same scope as 192.0.2/24.
677         * posix/gai.conf: Document new scope table defaults.
678
679 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
680
681         [BZ #5298]
682         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
683         for ftell.  Compute offsets from write pointers instead.
684         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
685
686 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
687
688         [BZ #14543]
689         * libio/Makefile (tests): New test case tst-fseek.
690         * libio/tst-fseek.c: New test case to verify that fseek/ftell
691         combination works in wide mode.
692         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
693         state when the external buffer state changes.
694
695 2012-09-27  David S. Miller  <davem@davemloft.net>
696
697         [BZ #14376]
698         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
699         pass reloc->r_addend in as the 'high' argument to
700         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
701
702         * sysdeps/sparc/fpu/libm-test-ulps: Update.
703
704 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
705
706         * rt/tst-aio2.c: Include <pthread.h>.
707         * rt/tst-aio3.c: Likewise.
708
709 2012-09-27  Steve Ellcey  <sellcey@mips.com>
710
711         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
712
713 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
714
715         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
716         contents on [SHARED].
717
718 2012-09-26  Marek Polacek  <polacek@redhat.com>
719
720         [BZ #14530]
721         [BZ #13741]
722         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
723         for C++ and GCC <4.3 as well as for non GCC compilers.
724
725 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
726
727         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
728
729 2012-09-25  Roland McGrath  <roland@hack.frob.com>
730
731         * Makefile.in (all, install): Declare with .PHONY.
732         Reported by Michael Hope <michael.hope@linaro.org>.
733
734 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
735
736         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
737         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
738         system header.
739         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
740         Likewise.
741         (sydep_routines): Add the new and the internal functions.
742         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
743         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
745         (GLIBC_2.17): Add the new function.
746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
747         (GLIBC_2.17): Likewise.
748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
749         (GLIBC_2.17): Likewise.
750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
751         (GLIBC_2.17): Likewise.
752         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
753
754 2012-09-25  Alan Modra  <amodra@gmail.com>
755
756         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
757         Add release barrier before setting once_control to say
758         initialisation is done.  Add hints on lwarx.  Use macro in
759         place of isync.
760         (clear_once_control): Add release barrier.
761
762 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
763
764         [BZ #13629]
765         * math/s_clog.c (__clog): Handle more values close to |z| = 1
766         specially.
767         * math/s_clog10.c (__clog10): Likewise.
768         * math/s_clog10f.c (__clog10f): Likewise.
769         * math/s_clog10l.c (__clog10l): Likewise.
770         * math/s_clogf.c (__clogf): Likewise.
771         * math/s_clogl.c (__clogl): Likewise.
772         * math/Makefile (libm-calls): Add x2y2m1.
773         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
774         (__x2y2m1): Likewise.
775         (__x2y2m1l): Likewise.
776         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
777         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
778         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
779         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
780         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
781         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
782         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
783         * sysdeps/i386/fpu/libm-test-ulps: Update.
784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
785
786         [BZ #14621]
787         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
788         int as type of variable DEPTH.
789         (glob): Use size_t instead of int as type of variables NEWCOUNT
790         and OLD_PATHC.
791
792 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
793
794         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
795         Add s_sincosf-sse2.
796         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
797         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
798         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
799         macros for using routine as __sincosf_ia32.
800         Use macro for function declaration and weak_alias.
801         * sysdeps/i386/fpu/libm-test-ulps: Update.
802
803         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
804         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
805
806         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
807         subnormal argument.
808         * math/s_cexpf.c (__cexpf): Likewise.
809         * math/s_csinf.c (__csinf): Likewise.
810         * math/s_csinhf.c (__csinhf): Likewise.
811         * math/s_ctanf.c (__ctanf): Likewise.
812         * math/s_ctanhf.c (__ctanhf): Likewise.
813         * math/s_ccosh.c (__ccoshf): Likewise.
814         * math/s_cexp.c (__cexpl): Likewise.
815         * math/s_csin.c (__csin): Likewise.
816         * math/s_csinh.c (__csinh): Likewise.
817         * math/s_ctan.c (__ctan): Likewise.
818         * math/s_ctanh.c (ctanh): Likewise.
819         * math/s_ccoshl.c (__ccoshl): Likewise.
820         * math/s_cexpl.c (__cexpl): Likewise.
821         * math/s_csinl.c (__csinl): Likewise.
822         * math/s_csinhl.c (__csinhl): Likewise.
823         * math/s_ctanl.c (__ctanl): Likewise.
824         * math/s_ctanhl.c (__ctanhl): Likewise.
825
826 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
827
828         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
829         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
830         (_IO_off_t): Define to __off_t, not _G_off_t.
831         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
832         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
833         (_IO_wint_t): Define to wint_t, not _G_wint_t.
834         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
835         type of __dummy and __dummy2 fields.
836         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
837         (_G_ssize_t): Likewise.
838         (_G_off_t): Likewise.
839         (_G_pid_t): Likewise.
840         (_G_uid_t): Likewise.
841         (_G_wchar_t): Likewise.
842         (_G_wint_t): Likewise.
843         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
844         (_G_ssize_t): Likewise.
845         (_G_off_t): Likewise.
846         (_G_pid_t): Likewise.
847         (_G_uid_t): Likewise.
848         (_G_wchar_t): Likewise.
849         (_G_wint_t): Likewise.
850         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
851         (_G_ssize_t): Likewise.
852         (_G_off_t): Likewise.
853         (_G_pid_t): Likewise.
854         (_G_uid_t): Likewise.
855         (_G_wchar_t): Likewise.
856         (_G_wint_t): Likewise.
857
858 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
859
860         * malloc/arena.c: Include malloc-sysdep.h.
861         (shrink_heap): Use check_may_shrink_heap to decide if madvise
862         is sufficient to shrink the heap or an unmap is needed.
863         * sysdeps/generic/malloc-sysdep.h: New file.  Define
864         new function check_may_shrink_heap.
865         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
866         new function check_may_shrink_heap.
867
868 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
869
870         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
871         comments.
872
873 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
874
875         * catgets/test-gencat.sh: Add "set -e".
876         * elf/tst-pathopt.sh: Likewise.
877         * grp/tst_fgetgrent.sh: Likewise.
878         * iconvdata/run-iconv-test.sh: Likewise.
879         * intl/tst-gettext.sh: Likewise.
880         * intl/tst-gettext2.sh: Likewise.
881         * intl/tst-gettext4.sh: Likewise.
882         * intl/tst-gettext6.sh: Likewise.
883         * intl/tst-translit.sh: Likewise.
884         * io/ftwtest-sh: Likewise.
885         * libio/test-freopen.sh: Likewise.
886         * malloc/tst-mtrace.sh: Likewise.
887         * posix/globtest.sh: Likewise.
888         * posix/tst-getconf.sh: Likewise.
889         * posix/wordexp-tst.sh: Likewise.
890         * stdio-common/tst-printf.sh: Likewise.
891         * stdio-common/tst-unbputc.sh: Likewise.
892         * stdlib/tst-fmtmsg.sh: Likewise.
893         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
894         * catgets/Makefile: Do not specify -e option when running
895         testsuite shell scripts.
896         * elf/Makefile: Likewise.
897         * grp/Makefile: Likewise.
898         * iconvdata/Makefile: Likewise.
899         * intl/Makefile: Likewise.
900         * io/Makefile: Likewise.
901         * libio/Makefile: Likewise.
902         * malloc/Makefile: Likewise.
903         * posix/Makefile: Likewise.
904         * stdio-common/Makefile: Likewise.
905         * stdlib/Makefile: Likewise.
906         * sysdeps/x86_64/Makefile: Likewise.
907
908         * io/ftwtest-sh: Add copyright header.
909         * posix/globtest.sh: Likewise.
910         * posix/tst-getconf.sh: Likewise.
911         * posix/wordexp-tst.sh: Likewise.
912         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
913
914 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
915
916         [BZ #13679]
917         * Makeconfig (+link): Defined as $(+link-static) if
918         $(build-shared) isn't yes.
919         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
920         isn't yes.
921         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
922
923         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
924
925         [BZ #14562]
926         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
927         new chunk size with MALLOC_ALIGN_MASK.
928
929 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
930
931         [BZ #5044]
932         * stdio-common/printf_fphex.c: Include <stdbool.h> and
933         <rounding-mode.h>.
934         (__printf_fphex): Determine rounding using get_rounding_mode and
935         round_away.
936         * stdio-common/tst-printf-round.c (struct hex_test): New
937         structure.
938         (hex_tests): New variable.
939         (test_hex_in_one_mode): New function.
940         (do_test): Also run tests for hex float output.
941
942 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
943
944         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
945         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
946         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
947         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
948         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
949         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
950         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
951         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
952
953 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
954
955         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
956         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
957         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
958         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
959
960 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
961
962         [BZ #14579]
963         * elf/rtld.c (dl_main): Limit the check for self loading to normal
964         mode only.
965         * elf/tst-rtld-load-self.sh: New test.
966         * elf/Makefile: Run it.
967
968 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
969
970         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
971         (tst-writev-ENV): Remove.
972         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
973
974 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
975
976         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
977
978 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
979
980         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
981         unconditional.
982         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
983         Likewise.
984         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
985         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
986         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
987         Likewise.
988
989 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
990
991         [BZ #14587]
992         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
993         * config.make.in (have-cpp-asm-debuginfo): Removed.
994         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
995         * configure: Regenerated.
996
997 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
998
999         [BZ #5044]
1000         * stdio-common/printf_fp.c: Include <stdbool.h> and
1001         <rounding-mode.h>.
1002         (___printf_fp): Determine rounding using get_rounding_mode and
1003         round_away.
1004         * stdio-common/tst-printf-round.c: New file.
1005         * stdio-common/Makefile (tests): Add tst-printf-round.
1006         (link-libm): New variable.
1007         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1008
1009 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1010
1011         [BZ #14576]
1012         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1013         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1014         Likewise.
1015         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1016         Likewise.
1017
1018 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1019
1020         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1021         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1022         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1023         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1024
1025 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1026
1027         [BZ #14518]
1028         * include/rounding-mode.h: New file.
1029         * sysdeps/generic/get-rounding-mode.h: Likewise.
1030         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1031         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1032         (MAX_VALUE): New macro.
1033         (MIN_VALUE): Likewise.
1034         (overflow_value): New function.
1035         (underflow_value): Likewise.
1036         (round_and_return): Use overflow_value and underflow_value to
1037         determine return values in overflow and underflow cases.  Use
1038         round_away to determine rounding depending on rounding mode.
1039         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1040         determine return values in overflow and underflow cases.
1041         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1042         (struct test_results): New structure.
1043         (struct test): Use struct test_results to store expected results
1044         for all rounding modes.
1045         (TEST): Include expected results for all rounding modes.
1046         (test_in_one_mode): New function.
1047         (do_test): Use test_in_one_mode to compute and check results.
1048         Check results for all rounding modes.
1049         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1050         $(link-libm).
1051
1052 2012-12-09  Allan McRae  <allan@archlinux.org>
1053
1054         * sysdeps/i386/fpu/libm-test-ulps: Update
1055
1056 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1057
1058         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1059         (_G_int32_t): Likewise.
1060         (_G_uint16_t): Likewise.
1061         (_G_uint32_t): Likewise.
1062         (_G_HAVE_BOOL): Likewise.
1063         (_G_HAVE_ATEXIT): Likewise.
1064         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1065         (_G_HAVE_IO_FILE_OPEN): Likewise.
1066         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1067         (_G_int32_t): Likewise.
1068         (_G_uint16_t): Likewise.
1069         (_G_uint32_t): Likewise.
1070         (_G_HAVE_BOOL): Likewise.
1071         (_G_HAVE_ATEXIT): Likewise.
1072         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1073         (_G_HAVE_IO_FILE_OPEN): Likewise.
1074         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1075         (_G_int32_t): Likewise.
1076         (_G_uint16_t): Likewise.
1077         (_G_uint32_t): Likewise.
1078         (_G_HAVE_BOOL): Likewise.
1079         (_G_HAVE_ATEXIT): Likewise.
1080         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1081         (_G_HAVE_IO_FILE_OPEN): Likewise.
1082
1083 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1084
1085         * csu/libc-tls.c: Update copyright years.
1086
1087 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1088
1089         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1090         [!_G_USING_THUNKS]: Remove conditional code.
1091         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1092         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1093
1094         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1095         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1096         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1097         (_G_VTABLE_LABEL_PREFIX): Likewise.
1098         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1099         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1100         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1101         (_G_VTABLE_LABEL_PREFIX): Likewise.
1102         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1103         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1104         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1105         (_G_VTABLE_LABEL_PREFIX): Likewise.
1106         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1107
1108 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1109
1110         * libio/Makefile: Include ../Makeconfig before tests.
1111         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1112         only if $(build-shared) is yes.
1113
1114         * iconv/gconv_db.c: Update copyright years.
1115
1116 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1117
1118         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1119         unwind info if defined PIC. Fix special cases description.
1120         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1121
1122         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1123         DP_HI_MASK entry.
1124         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1125
1126 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1127
1128         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1129
1130         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1131         is NULL.
1132
1133         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1134         (LDLIBS-tst-chk4): This.
1135         (LDFLAGS-tst-chk5): Renamed to ...
1136         (LDLIBS-tst-chk5): This.
1137         (LDFLAGS-tst-chk6): Renamed to ...
1138         (LDLIBS-tst-chk6): This.
1139         (LDFLAGS-tst-lfschk4): Renamed to ...
1140         (LDLIBS-tst-lfschk4): This.
1141         (LDFLAGS-tst-lfschk5): Renamed to ...
1142         (LDLIBS-tst-lfschk5): This.
1143         (LDFLAGS-tst-lfschk6): Renamed to ...
1144         (LDLIBS-tst-lfschk6): This.
1145
1146         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1147         on $(common-objpfx)soversions.mk.
1148
1149 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1150
1151         [BZ #10014]
1152         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1153         example host name.
1154
1155 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1156
1157         * malloc/arena.c (arena_get_retry): New function that gets
1158         another arena for the caller to try its request on.
1159         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1160         current arena cannot fulfill the request.
1161         (__libc_memalign): Likewise.
1162         (__libc_memalign): Likewise.
1163         (__libc_pvalloc): Likewise.
1164         (__libc_calloc): Likewise.
1165
1166 2012-09-05  John Tobey  <john.tobey@gmail.com>
1167
1168         [BZ #13542]
1169         * manual/arith.texi (Operations on Complex): Fix description
1170         of carg branch cut.
1171
1172 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1173
1174         [BZ #10014]
1175         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1176         host name.
1177
1178         [BZ #10038]
1179         * manual/memory.texi (Memory): Make order of menu items match
1180         order of sections.
1181
1182 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1183
1184         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1185         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1186         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1187
1188 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1189
1190         * csu/libc-tls.c (static_dtv): Renamed to ...
1191         (_dl_static_dtv): This.  Make it global.
1192         (_dl_initial_dtv): Removed.
1193         (__libc_setup_tls): Updated.
1194         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1195         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1196         DL_INITIAL_DTV.
1197
1198 2012-09-06  Petr Machata  <pmachata@redhat.com>
1199
1200         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1201         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1202         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1203         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1204
1205 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1206
1207         [BZ #14545]
1208         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1209         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1210         freeing dtv[-1].
1211
1212 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1213
1214         [BZ #14544]
1215         * Makeconfig (link-static-before-libc): Replace $(+prector)
1216         with $(+prectorT).
1217         (link-static-after-libc): Replace $(+postctor) with
1218         $(+postctorT).
1219         (link-bounded): Replace $(+prector)/$(+postctor) with
1220         $(+prectorT)/$(+postctorT).
1221         (+prectorT): New macro.
1222         (+postctorT): Likewise.
1223
1224 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1225
1226         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1227         (round_str): Handle values above the maximum for IBM long double
1228         as inexact.
1229         * stdlib/tst-strtod-round.c (tests): Regenerated.
1230
1231 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1232
1233         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1234         assembler flag.
1235         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1236         zarch_nohighgprs around the zarch optimized routines.
1237         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1238         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1239         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1240         for zarch.
1241
1242 2012-09-05  David S. Miller  <davem@davemloft.net>
1243
1244         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1245
1246         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1247         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1248         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1249         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1250         entries.
1251
1252 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1253
1254         * malloc/arena.c: Fold copyright years.
1255         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1256
1257 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1258
1259         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1260
1261 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1262
1263         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1264
1265 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1266
1267         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1268         change internal state upon failure.
1269
1270 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1271
1272         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1273         * malloc/memusage.c (mmap): Likewise.
1274         (mmap64, mremap): Likewise.  Adjust name in comment.
1275
1276 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1277
1278         * libio/fileops.c: Fix typos in comments.
1279         * libio/oldfileops.c: Likewise.
1280         * libio/wfileops.c: Likewise.
1281
1282 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1283
1284         [BZ #1349]
1285         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1286         (tst-malloc-usable-ENV): Set environment for test case.
1287         * malloc/hooks.c (malloc_check_get_size): New function to get
1288         requested size.
1289         * malloc/malloc.c (musable): Use malloc_check_get_size.
1290         * malloc/tst-malloc-usable.c: New test case.
1291
1292 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1293
1294         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1295
1296 2012-09-05  Allan McRae  <allan@archlinux.org>
1297
1298         [BZ #13966]
1299         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1300         determine header location.
1301         * configure: Regenerated.
1302
1303 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1304
1305         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1306         float format.
1307         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1308         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1309         format.
1310         (test): Regenerate.
1311
1312 2012-09-04  David S. Miller  <davem@davemloft.net>
1313
1314         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1315         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1316         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1317
1318 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1319
1320         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1321         failures.
1322
1323         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1324
1325 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1326
1327         [BZ #9914]
1328         * libio/iogetdelim.c: Include <limits.h>.
1329         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1330         + len + 1 would overflow.
1331
1332 2012-09-03  Andreas Jaeger  <aj@suse.de>
1333
1334         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1335         * sysdeps/i386/fpu/libm-test-ulps: Update.
1336
1337 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1338
1339         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1340         Add s_sinf-sse2, s_conf-sse2.
1341
1342         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1343         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1344         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1345         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1346
1347         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1348         for using routine as __sinf_ia32.
1349         Use macro for function declaration and weak_alias.
1350         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1351         for using routine as __cosf_ia32.
1352         Use macro for function declaration and weak_alias.
1353
1354         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1355         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1356
1357         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1358         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1359         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1360
1361         * math/libm-test.inc (cos_test): Add more test cases.
1362         (sin_test): Likewise.
1363         (sincos_test): Likewise.
1364
1365 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1366
1367         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1368         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1369         hidden.
1370         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1371
1372 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1373
1374         [BZ #14538]
1375         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1376         first element of the GOT.
1377         (elf_machine_load_address): Return the difference between
1378         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1379
1380 2012-09-01  Allan McRae  <allan@archlinux.org>
1381
1382         [BZ #13412]
1383         * configure.in (AWK): Require gawk version 3.0 or later.
1384         * configure: Regenerated.
1385
1386 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1387
1388         * sysdeps/unix/sysv/linux/kernel-features.h
1389         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1390         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1391         [__NR_clock_getres]: Make code unconditional.
1392         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1393         (clock_getcpuclockid): Remove code left unreachable by removal of
1394         conditionals.
1395         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1396         code unconditional.
1397         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1398         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1399         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1400         Make code unconditional.
1401         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1402         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1403         * sysdeps/unix/sysv/linux/clock_settime.c
1404         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1405         conditional code.
1406         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1407         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1408
1409 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1410
1411         [BZ #14476]
1412         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1413         scripts/test-installation.pl.
1414
1415         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1416         and $ld_so_version if it is set.
1417
1418 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1419
1420         [BZ #14516]
1421         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1422         failure if reading from procfs failed.
1423         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1424
1425 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1426
1427         * sysdeps/unix/sysv/linux/kernel-features.h
1428         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1429         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1430         Remove conditional code.
1431         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1432         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1433         Remove conditional code.
1434         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1435         * sysdeps/unix/sysv/linux/i386/fxstat.c
1436         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1437         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1438         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1439         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1440         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1441         * sysdeps/unix/sysv/linux/i386/lxstat.c
1442         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1443         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1444         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1445         Remove conditional code.
1446         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1447         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1448         Remove conditional code.
1449         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1450         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1451         <kernel-features.h>.
1452         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1453         Remove.
1454         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1455         Remove conditional code.
1456         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1457         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1458         Remove conditional.
1459
1460 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1461
1462         [BZ #5400]
1463         * NEWS: Add fixed bug number.
1464
1465 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1466
1467         [BZ #14519]
1468         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1469         underflowing exponent in case of negative sign.
1470         * stdlib/tst-strtod-round-data: Add more tests.
1471         * stdlib/tst-strtod-round.c (tests): Regenerated.
1472
1473         [BZ #3479]
1474         * stdlib/strtod_l.c (NDIG): Remove.
1475         (HEXNDIG): Likewise.
1476         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1477         smallest representable value.
1478         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1479         lie within an exact representation of 1/2 ulp of the result.
1480         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1481         unconditionally.
1482         (TENS_P9_IDX): Define unconditionally.
1483         (TENS_P9_SIZE): Likewise.
1484         (TENS_P10_IDX): Likewise.
1485         (TENS_P10_SIZE): Likewise.
1486         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1487         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1488         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1489         entries for 10^2^13 and 10^2^14.
1490         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1491         (TENS_P13_IDX): Define.
1492         (TENS_P13_SIZE): Likewise.
1493         (TENS_P14_IDX): Likewise.
1494         (TENS_P14_SIZE): Likewise.
1495         (_fpioconst_pow10): Change array size to
1496         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1497         unconditional.
1498         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1499         1024]: Add entries for 10^2^13 and 10^2^14.
1500         [LAST_POW10 > _LAST_POW10]: Remove #error.
1501         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1502         (_fpioconst_pow10): Change array size to
1503         FPIOCONST_POW10_ARRAY_SIZE.
1504         * stdlib/gen-fpioconst.c: New file.
1505         * stdlib/gen-tst-strtod-round.c: Likewise.
1506         * stdlib/tst-strtod-round-data: Likewise.
1507         * stdlib/tst-strtod-round.c: Likewise.
1508         * stdlib/Makefile (tests): Add tst-strtod-round.
1509
1510         [BZ #14459]
1511         * stdlib/strtod_l.c: Include <stdint.h>.
1512         (NDEBUG): Do not define.
1513         (round_and_return): Change EXPONENT parameter to type intmax_t.
1514         Rearrange calculations to avoid internal overflow possibilities.
1515         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1516         Rearrange calculations to avoid internal overflow possibilities.
1517         Assert that number fits inside MPNSIZE limbs.
1518         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1519         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1520         calculations and add assertions to avoid internal overflow
1521         possibilities.  Add casts to avoid signed/unsigned operations.
1522         * stdlib/tst-strtod-overflow.c: New file.
1523         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1524
1525 2012-08-25  Marek Polacek  <polacek@redhat.com>
1526
1527         * time/time.h: Fix some typos in comments.
1528
1529 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1530
1531         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1532         * posix/tst-rfc3484-2.c: Likewise.
1533         * posix/tst-rfc3484-3.c: Likewise.
1534
1535 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1536
1537         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1538         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1539
1540 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1541
1542         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1543         #include of fxstatat64.c.
1544
1545 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1546
1547         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1548         * shadow/getspent_r.c: Likewise.
1549         * shadow/getspnam.c: Likewise.
1550         * shadow/getspnam_r.c: Likewise.
1551         * gshadow/getsgent.c: Likewise.
1552         * gshadow/getsgent_r.c: Likewise.
1553         * gshadow/getsgnam.c: Likewise.
1554         * gshadow/getsgnam_r.c: Likewise.
1555         * inet/getnetbyad.c: Likewise.
1556         * inet/getnetbyad_r.c: Likewise.
1557         * inet/getnetbynm.c: Likewise.
1558         * inet/getnetbynm_r.c: Likewise.
1559         * inet/getnetent.c: Likewise.
1560         * inet/getnetent_r.c: Likewise.
1561         * inet/getproto.c: Likewise.
1562         * inet/getproto_r.c: Likewise.
1563         * inet/getprtent.c: Likewise.
1564         * inet/getprtent_r.c: Likewise.
1565         * inet/getprtname.c: Likewise.
1566         * inet/getprtname_r.c: Likewise.
1567         * inet/getrpcbyname.c: Likewise.
1568         * inet/getrpcbyname_r.c: Likewise.
1569         * inet/getrpcbynumber.c: Likewise.
1570         * inet/getrpcbynumber_r.c: Likewise.
1571         * inet/getrpcent.c: Likewise.
1572         * inet/getrpcent_r.c: Likewise.
1573         * inet/getaliasent.c: Likewise.
1574         * inet/getaliasent_r.c: Likewise.
1575         * inet/getaliasname.c: Likewise.
1576         * inet/getaliasname_r.c: Likewise.
1577         * nscd/getgrgid_r.c: Likewise.
1578         * nscd/getgrnam_r.c: Likewise.
1579         * nscd/gethstbyad_r.c: Likewise.
1580         * nscd/gethstbynm3_r.c: Likewise.
1581         * nscd/getpwnam_r.c: Likewise.
1582         * nscd/getpwuid_r.c: Likewise.
1583         * nscd/getsrvbynm_r.c: Likewise.
1584         * nscd/getsrvbypt_r.c: Likewise.
1585         * nscd/gai.c: Likewise.
1586
1587         * configure.in (build_nscd): New substituted variable, set
1588         by --disable-build-nscd and defaults to $use_nscd.
1589         * configure: Regenerated.
1590         * config.make.in (build-nscd): New substituted variable.
1591         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1592         Change conditional to require [$(build-nscd) = yes] as well.
1593         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1594
1595         [BZ# 13696]
1596         * configure.in (use_nscd): New substituted variable, set by
1597         --disable-nscd.  If enabled, define USE_NSCD.
1598         * configure: Regenerated.
1599         * config.h.in: Add USE_NSCD.
1600         * config.make.in (use-nscd): New substituted variable.
1601         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1602         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1603         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1604         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1605         (CFLAGS-getgrnam_r.c): Likewise.
1606         (CFLAGS-initgroups.c): Likewise.
1607         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1608         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1609         Variables removed.
1610         * inet/getnetgrent_r.c
1611         (nscd_setnetgrent): New function, broken out of ...
1612         (setnetgrent): ... here.  Call it.
1613         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1614         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1615         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1616         * nscd/Makefile (routines, aux): Move definitions after include of
1617         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1618         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1619         Conditionalize on [USE_NSCD].
1620         (is_nscd, nscd_init_cb): Likewise.
1621         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1622         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1623         * nss/nss_db/db-init.c: Likewise.
1624         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1625         [USE_NSCD].
1626         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1627         (make_request): Use it.
1628         (cache_valid_p): New function.
1629         (__check_pf): Use it.
1630         * NEWS: Add item for --disable-nscd.
1631
1632 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1633
1634         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1635         to support sed >= 4.2.1-20-ga9bf076.
1636         * configure: Regenerated.
1637
1638 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1639
1640         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1641         Conditionalize whole body on [IREL].
1642
1643 2012-08-22  Jeff Law <law@redhat.com>
1644
1645         [BZ #14505]
1646         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1647         if the family is PF_UNSPEC.
1648
1649 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1650
1651         * Makerules (lib-version): Rename from V.
1652         (install-lib-nosubdir): Change V to lib-version.
1653
1654 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1655
1656         [BZ #14252]
1657         * powerpc32/power6/wcschr.c: New file.
1658         * powerpc32/power6/wcscpy.c: New file.
1659         * powerpc32/power6/wcsrchr.c: New file.
1660         * powerpc64/power6/wcschr.c: New file.
1661         * powerpc64/power6/wcscpy.c: New file.
1662         * powerpc64/power6/wcsrchr.c: New file.
1663
1664 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1665
1666         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1667         (two_way_short_needle): Use it.
1668         * string/strstr.c (AVAILABLE1_USES_J): Define.
1669         * string/strcasestr.c: Likewise.
1670
1671         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1672         array references.
1673         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1674
1675         [BZ #11607]
1676         * NEWS: Add an entry.
1677         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1678         define their defaults.
1679         (two_way_short_needle): Detect end-of-string on-the-fly.
1680         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1681         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1682         * string/bug-strcasestr1.c: New test.
1683         * string/Makefile: Run it.
1684
1685 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1686
1687         [BZ #11607]
1688         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1689         the first character.
1690
1691 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1692
1693         * csu/elf-init.c (__libc_csu_irel): Function removed.
1694         * csu/libc-start.c (apply_irel): New function.
1695         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1696
1697 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1698
1699         * sysdeps/unix/sysv/linux/kernel-features.h
1700         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1701         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1702         <kernel-features.h>.
1703         [__NR_fadvise64_64]: Make code unconditional.
1704         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1705         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1706         !__NR_fadvise64_64)]: Likewise.
1707         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1708         !__NR_fadvise64_64))]: Likewise.
1709         [__NR_fadvise64]: Make code unconditional.
1710         [!__NR_fadvise64]: Remove conditional code.
1711         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1712         <kernel-features.h>.
1713         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1714         unconditional.
1715         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1716         conditional code.
1717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1718         not include <kernel-features.h>.
1719         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1720         unconditional.
1721         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1722         conditional code.
1723         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1724         include <kernel-features.h>.
1725         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1726         unconditional.
1727         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1728         conditional code.
1729
1730 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1731
1732         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1733         slight instruction rearrangements per scrollpipe analysis.
1734         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1735
1736 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1737
1738         * manual/syslog.texi (syslog; vsyslog, closelog):
1739         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1740         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1741
1742         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1743         DSOCAPS to match condition on defining it.
1744
1745 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1746
1747         * sysdeps/unix/sysv/linux/kernel-features.h
1748         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1750         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1751         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1753         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1754         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1756         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1757         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1758
1759         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1760         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1761
1762         * sysdeps/unix/sysv/linux/kernel-features.h
1763         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1764         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1765         unconditional.
1766         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1767         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1768         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1769         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1770         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1771         Make code unconditional.
1772         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1773         (__mmap64) [!__NR_mmap2]: Likewise.
1774         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1775         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1776         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1777         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1778         [__NR_mmap2]: Make code unconditional.
1779         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1780         (__mmap64) [!__NR_mmap2]: Likewise.
1781
1782 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1783
1784         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1785
1786 2012-08-18  Andreas Jaeger  <aj@suse.de>
1787
1788         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1789
1790 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1791
1792         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1793         * include/unistd.h (__have_sock_cloexec): Likewise.
1794         (__have_pipe2): Likewise.
1795         (__have_dup3): Likewise.
1796
1797 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1798
1799         [BZ #9685]
1800         * include/unistd.h (__have_pipe2): Change define into an extern int.
1801         (__have_dup3): Likewise.
1802         * socket/have_sock_cloexec.c: Include fcntl.h.
1803         (__have_pipe2): New variable.
1804         (__have_dup3): Likewise.
1805
1806 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1807
1808         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1809
1810 2012-08-17  Marek Polacek  <polacek@redhat.com>
1811
1812         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1813         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1814
1815 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1816
1817         * configure.in: Add AC_SUBST for sysheaders.
1818         * configure: Regenerated.
1819         * config.make.in (sysheaders): New substituted variable.
1820
1821         * sysdeps/unix/mkfifo.c: Moved ...
1822         * sysdeps/posix/mkfifo.c: ... here.
1823         * sysdeps/unix/mkfifoat.c: Moved ...
1824         * sysdeps/posix/mkfifoat.c: ... here.
1825
1826         * sysdeps/unix/utime.c: Moved ...
1827         * sysdeps/posix/utime.c: ... here.
1828
1829         * sysdeps/unix/time.c: Moved ...
1830         * sysdeps/posix/time.c: ... here.
1831         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1832         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1833
1834         * sysdeps/unix/nice.c: Moved ...
1835         * sysdeps/posix/nice.c: ... here.
1836
1837         * sysdeps/unix/alarm.c: Moved ...
1838         * sysdeps/posix/alarm.c: ... here.
1839
1840         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1841
1842 2012-08-17  Jeff Law <law@redhat.com>
1843
1844         * intl/Makefile (codeset_mo): New variable.
1845         ($(codeset_mo)): New target.
1846         (tst-codeset.out): Depend on that.  Remove explicit rule.
1847         (tst-gettext3.out, tst-gettext5.out): Likewise.
1848         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1849         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1850         * intl/tst-codeset.sh: Remove.
1851         * intl/tst-gettext3.sh: Likewise.
1852         * intl/tst-gettext5.sh: Likewise.
1853
1854 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1855
1856         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1857         * sysdeps/unix/syscalls.list: ... here.
1858
1859         * sysdeps/posix/getaddrinfo.c
1860         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1861         (gaiconf_init, gaiconf_reload): Use them.
1862         [!_STATBUF_ST_NSEC]
1863         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1864         Define using time_t rather than struct timespec.
1865
1866         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1867         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1868         Macros removed.
1869         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1870         [!NO_THREADS].
1871         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1872         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1873         Likewise.
1874
1875         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1876         __libc_cleanup_push argument.
1877
1878         * bits/param.h: New file.
1879         * misc/sys/param.h: New file.
1880         * include/sys/param.h: New file.
1881         * misc/Makefile (headers): Add bits/param.h.
1882         * sysdeps/generic/sys/param.h: File removed.
1883         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1884         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1885         * sysdeps/mach/hurd/bits/param.h: New file.
1886         * sysdeps/mach/hurd/sys/param.h: New file.
1887
1888         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1889         last change.
1890
1891         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1892         [_IO_MTSAFE_IO].
1893         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1894         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1895         New macros.
1896
1897         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1898         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1899         rather than -D_IO_MTSAFE_IO conditionally.
1900         * stdio-common/Makefile (CPPFLAGS): Likewise.
1901         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1902         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1903         Use $(libio-mtsafe).
1904         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1905         of -D_IO_MTSAFE_IO.
1906         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1907         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1908         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1909         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1910         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1911         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1912         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1913         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1914         (CFLAGS-fread_u_chk.c): Likewise.
1915         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1916         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1917         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1918         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1919         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1920         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1921         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1922         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1923         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1924
1925         * libio/Makefile: Test [$(libc-reentrant) = yes]
1926         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1927
1928         * Makeconfig
1929         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1930         * sysdeps/pthread/configure: File removed.
1931         * sysdeps/pthread/Makeconfig: New file.
1932         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1933         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1934
1935 2012-08-16  Gary Benson  <gbenson@redhat.com>
1936
1937         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1938         unmapping the first object in a namespace.
1939
1940 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1941
1942         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1943         (__internal_setnetgrent): ... this.  Add internal_function to
1944         definition.  Add libc_hidden_def.
1945         (setnetgrent): Update caller.
1946         (internal_endnetgrent): Renamed to ...
1947         (__internal_endnetgrent): ... this.  Add internal_function to
1948         definition.  Add libc_hidden_def.
1949         (endnetgrent): Update caller.
1950         (internal_getnetgrent_r): Renamed to ...
1951         (__internal_getnetgrent_r): ... this.  Add internal_function to
1952         definition.  Add libc_hidden_def.
1953         (__getnetgrent_r): Update caller.
1954         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1955
1956 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1957
1958         * stdlib/longlong.h: Update from GCC.
1959
1960 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1961
1962         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1963         on _QL, which is set by umul_ppmm but never used.
1964         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1965         variables, which are set by GMP macros but never used.
1966         * stdio-common/_itowa.c (_itowa): Likewise.
1967         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1968         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1969
1970 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1971
1972         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1973         struct La_sh_regs is not constant.
1974         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1975         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1976         and struct La_sparc64_regs are not constant.
1977
1978 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1979
1980         * sysdeps/unix/sysv/linux/kernel-features.h
1981         (__ASSUME_POSIX_TIMERS): Remove.
1982         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1983         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1984         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1985         Make code unconditional.
1986         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1987         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1988         Make code unconditional.
1989         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1990         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1991         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1992         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1993         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1994         Make code unconditional.
1995         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1996         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1997         (__libc_missing_posix_timers): Remove.
1998
1999 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2000
2001         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2002         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2003
2004         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2005
2006         * elf/dl-sym.c: Include <stdlib.h>.
2007
2008         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2009         constants, which avoids warnings in 32-bit builds.
2010
2011         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2012         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2013
2014         * misc/lseek.c: File moved to ...
2015         * io/lseek.c: ... here.
2016
2017         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2018
2019         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2020         shifting LEN more than 31 bits at once.
2021
2022 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2023
2024         [BZ #14195]
2025         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2026         segmentation fault for a case of two empty input strings.
2027         * string/test-strncasecmp.c (check1): Renamed to...
2028         (bz12205): ...this.
2029         (bz14195): Add new testcase for two empty input strings and N > 0.
2030         (test_main): Call new testcase, adapt for renamed function.
2031
2032 2012-08-15  Andreas Jaeger  <aj@suse.de>
2033
2034         [BZ #14090]
2035         * crypt/md5test2.c: New test, based on test supplied by Serge
2036         Belyshev <belyshev@depni.sinp.msu.ru>.
2037         * crypt/Makefile (xtests): Add md5test-giant..
2038         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2039
2040 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2041
2042         [BZ #14090]
2043         * crypt/md5.c (md5_process_block): Don't assume the buffer
2044         length is less than 2**32.
2045         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2046         length is less than 2**64.
2047
2048 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2049
2050         * string/str-two-way.h: Include <sys/param.h>.
2051         (MAX): Macro removed.
2052
2053         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2054         Move #define and #undef of memmove to just before and after
2055         including <string.h>.
2056
2057         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2058         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2059         and after including <string.h>.  Move declarations of
2060         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2061         to before #include "string/memmove.c".
2062
2063         * include/dirent.h: Declare __getdirentries.
2064
2065         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2066         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2067
2068 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2069
2070         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2071         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2072         * sysdeps/i386/configure: Regenerated.
2073         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2074         STABS_CURRENT_FILE, and STABS_FUN.
2075         (END): Remove call to STABS_FUN_END.
2076         (STABS_CURRENT_FILE1): Delete.
2077         (STABS_CURRENT_FILE): Likewise.
2078         (STABS_FUN): Likewise.
2079         (STABS_FUN_END): Likewise.
2080         (STABS_FUN2): Likewise.
2081         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2082         * sysdeps/x86_64/configure: Regenerated.
2083
2084 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2085
2086         * elf/dl-open.c: Include <atomic.h>.
2087         * elf/dl-lookup.c: Likewise.
2088
2089 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2090
2091         * sysdeps/unix/sysv/linux/kernel-features.h
2092         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2093         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2094         unconditionally.
2095         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2096         unconditionally.
2097         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2098         condition on __ASSUME_CLONE_THREAD_FLAGS.
2099
2100 2012-08-14  Andreas Jaeger  <aj@suse.de>
2101
2102         * sysdeps/i386/fpu/libm-test-ulps: Update.
2103
2104 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2105
2106         * include/atomic.h (atomic_exchange_and_add): Split into ...
2107         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2108         New atomic macros.
2109
2110 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2111
2112         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2113
2114 2012-08-13  Jeff Law <law@redhat.com>
2115
2116         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2117         null byte in the output string.
2118
2119 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2120
2121         * sysdeps/unix/sysv/linux/kernel-features.h
2122         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2123         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2124         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2125         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2126         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2127         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2128         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2129
2130 2012-08-09  Jeff Law <law@redhat.com>
2131
2132         [BZ #13939]
2133         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2134         When avoid_arena is set, don't retry in the that arena.  Pick the
2135         next one, whatever it might be.
2136         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2137         (arena_lock): Pass in new parameter to arena_get2.
2138         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2139         arena_get2.
2140         (__libc_malloc): Unify retrying after main arena failure with
2141         __libc_memalign version.
2142         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2143
2144 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2145
2146         [BZ #14166]
2147         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2148         to __redirect_strstr.
2149         (__strstr_sse42): Use typeof __redirect_strstr.
2150         (__strstr_ia32): Likewise.
2151         (__libc_strstr): New prototype.
2152         (strstr): Renamed to ...
2153         (__libc_strstr): This.
2154         (strstr): New strong alias of __libc_strstr.
2155         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2156         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2157         __redirect_time.
2158         Include <time.h>.
2159         (__libc_time): New prototype.
2160         (time_ifunc): Replace time with __libc_time.
2161         (time): New strong alias and hidden definition of __libc_time.
2162         (__GI_time): Remove strong alias.
2163         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2164         Include <stddef.h>.
2165         (memmove): Redefined to __redirect_memmove.
2166         (__memmove_sse2): Use typeof __redirect_memmove.
2167         (__memmove_ssse3): Likewise.
2168         (__memmove_ssse3_back): Likewise.
2169         (__libc_memmove): New prototype.
2170         (memmove): Renamed to ...
2171         (__libc_memmove): This.
2172         (memmove): New strong alias of __libc_memmove.
2173
2174 2012-08-08  Mark Salter  <msalter@redhat.com>
2175
2176         * elf/elf.h
2177         (R_MN10300_TLS_GD): Define.
2178         (R_MN10300_TLS_LD): Likewise.
2179         (R_MN10300_TLS_LDO): Likewise.
2180         (R_MN10300_TLS_GOTIE): Likewise.
2181         (R_MN10300_TLS_IE): Likewise.
2182         (R_MN10300_TLS_LE): Likewise.
2183         (R_MN10300_TLS_DTPMOD): Likewise.
2184         (R_MN10300_TLS_DTPOFF): Likewise.
2185         (R_MN10300_TLS_TPOFF): Likewise.
2186         (R_MN10300_SYM_DIFF): Likewise.
2187         (R_MN10300_ALIGN): Likewise.
2188         (R_MN10300_NUM): Update.
2189
2190 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2191
2192         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2193         Remove.
2194
2195 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2196
2197         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2198
2199         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2200         sysdeps/unix -> sysdeps/posix move.
2201         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2202
2203 2012-08-07      Allan McRae     <allan@archlinux.org>
2204
2205         [BZ #14303]
2206         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2207         (SUNOS_CPP): Likewise.
2208         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2209         not found.
2210         (open_input): Call CPP using execvp.
2211
2212 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2213
2214         * sysdeps/unix/sysv/linux/kernel-features.h
2215         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2216         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2217         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2218         (__ASSUME_WAITID_SYSCALL): Likewise.
2219         * sysdeps/unix/sysv/linux/dl-execstack.c
2220         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2221         code unconditional.
2222         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2223         conditional code.
2224         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2225         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2226         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2227         code.
2228         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2229         unconditional.
2230         [__ASSUME_WAITID_SYSCALL]: Likewise.
2231         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2232
2233 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2234
2235         * sysdeps/unix/closedir.c: Renamed to ...
2236         * sysdeps/posix/closedir.c: ... here.
2237         * sysdeps/unix/dirfd.c: Renamed to ...
2238         * sysdeps/posix/dirfd.c: ... here.
2239         * sysdeps/unix/dirstream.h: Renamed to ...
2240         * sysdeps/posix/dirstream.h: ... here.
2241         * sysdeps/unix/fdopendir.c: Renamed to ...
2242         * sysdeps/posix/fdopendir.c: ... here.
2243         * sysdeps/unix/opendir.c: Renamed to ...
2244         * sysdeps/posix/opendir.c: ... here.
2245         * sysdeps/unix/readdir.c: Renamed to ...
2246         * sysdeps/posix/readdir.c: ... here.
2247         * sysdeps/unix/readdir_r.c: Renamed to ...
2248         * sysdeps/posix/readdir_r.c: ... here.
2249         * sysdeps/unix/rewinddir.c: Renamed to ...
2250         * sysdeps/posix/rewinddir.c: ... here.
2251         * sysdeps/unix/seekdir.c: Renamed to ...
2252         * sysdeps/posix/seekdir.c: ... here.
2253         * sysdeps/unix/telldir.c: Renamed to ...
2254         * sysdeps/posix/telldir.c: ... here.
2255         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2256         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2257         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2258         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2259
2260         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2261         * bits/fcntl.h: ... here.
2262
2263         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2264         not 0.
2265         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2266         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2267         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2268         (struct flock): Move l_start, l_len to the beginning.
2269         Use __pid_t for l_pid.
2270         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2271         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2272         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2273         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2274         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2275         [__USE_LARGEFILE64] (struct flock64): New type.
2276         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2277
2278         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2279         * bits/dirent.h: ... here.
2280
2281         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2282         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2283
2284 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2285
2286         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2287         Change from 2.6.0 to 2.6.16.
2288         * sysdeps/unix/sysv/linux/configure: Regenerated.
2289         * sysdeps/unix/sysv/linux/kernel-features.h
2290         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2291         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2292         version.
2293         (__ASSUME_UTIMES): Likewise.
2294         (__ASSUME_CLONE_STOPPED): Remove.
2295         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2296         architectures, not kernel version.
2297         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2298         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2299         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2300         (__ASSUME_WAITID_SYSCALL): Likewise.
2301         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2302         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2303         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2304         refer to older versions.
2305
2306 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2307
2308         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2309         Define alphasort64 as an alias.
2310         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2311         Define versionsort64 as an alias.
2312         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2313         Define scandir64 as an alias.
2314         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2315         Define scandirat64 as an alias.
2316         * dirent/alphasort64.c (alphasort64):
2317         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2318         * dirent/versionsort64.c: Likewise.
2319         * dirent/scandir64.c: Likewise.
2320         * dirent/scandirat64.c: Likewise.
2321         * sysdeps/wordsize-64/alphasort.c: File removed.
2322         * sysdeps/wordsize-64/alphasort64.c: File removed.
2323         * sysdeps/wordsize-64/scandir.c: File removed.
2324         * sysdeps/wordsize-64/scandir64.c: File removed.
2325         * sysdeps/wordsize-64/scandirat.c: File removed.
2326         * sysdeps/wordsize-64/scandirat64.c: File removed.
2327         * sysdeps/wordsize-64/versionsort.c: File removed.
2328         * sysdeps/wordsize-64/versionsort64.c: File removed.
2329         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2330         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2331         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2332         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2333         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2334         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2335         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2336         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2337
2338         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2339         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2340         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2341         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2342         [defined __arch64__ || defined __sparcv9]
2343         (__INO_T_MATCHES_INO64_T): New macro.
2344         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2345         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2346         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2347         * sysdeps/unix/sysv/linux/bits/dirent.h
2348         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2349         (_DIRENT_MATCHES_DIRENT64): New macro.
2350
2351         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2352         Define lockf64 as an alias.
2353         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2354         Define fseeko64 as an alias.
2355         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2356         Define ftello64 as an alias.
2357         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2358         Define _IO_fgetpos64 and fgetpos64 as aliases.
2359         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2360         Define _IO_fsetpos64 and fsetpos64 as aliases.
2361         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2362         Conditionalize body on this.
2363         * libio/fseeko64.c: Likewise.
2364         * libio/ftello64.c: Likewise.
2365         * libio/iofgetpos64.c: Likewise.
2366         * libio/iofsetpos64.c: Likewise.
2367         * sysdeps/wordsize-64/lockf.c: File removed.
2368         * sysdeps/wordsize-64/lockf64.c: File removed.
2369         * sysdeps/wordsize-64/fseeko.c: File removed.
2370         * sysdeps/wordsize-64/fseeko64.c: File removed.
2371         * sysdeps/wordsize-64/ftello.c: File removed.
2372         * sysdeps/wordsize-64/ftello64.c: File removed.
2373         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2374         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2375         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2376         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2377         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2378         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2379         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2380         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2381         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2382         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2383         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2384         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2385         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2386         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2387
2388         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2389         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2390         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2391         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2392         [defined __arch64__ || defined __sparcv9]
2393         (__OFF_T_MATCHES_OFF64_T): New macro.
2394         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2395         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2396         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2397         (__OFF_T_MATCHES_OFF64_T): New macro.
2398
2399 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2400
2401         * stdlib/secure-getenv.c (__secure_getenv): Replace
2402         GLIBC_2_16 with GLIBC_2_17.
2403
2404 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2405
2406         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2407         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2408
2409 2012-08-03  David S. Miller  <davem@davemloft.net>
2410
2411         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2412
2413 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2414
2415         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2416         Remove.
2417         (__ASSUME_CORRECT_SI_PID): Likewise.
2418         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2419         (__ASSUME_TMPFS_NAME): Likewise.
2420         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2421         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2422         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2423         (HAVE_AUX_SECURE): Make definition unconditional.
2424         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2425         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2426
2427 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2428
2429         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2430         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2431         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2432         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2433         __eloop_threshold instead of SYMLOOP_MAX.
2434
2435         * sysdeps/generic/eloop-threshold.h: New file.
2436         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2437         of MAXSYMLINKS.
2438         * elf/chroot_canon.c (chroot_canon): Likewise.
2439
2440 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2441
2442         [BZ #13717]
2443         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2444         Change to 2.6.0 everywhere.
2445         * sysdeps/unix/sysv/linux/configure: Regenerated.
2446         * sysdeps/unix/sysv/linux/kernel-features.h
2447         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2448         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2449         kernel versions.
2450         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2451         (__ASSUME_FUTEX_REQUEUE): Remove.
2452         (__ASSUME_STATFS64): Define unconditionally.
2453         (__ASSUME_AT_SECURE): Likewise.
2454         (__ASSUME_CORRECT_SI_PID): Likewise.
2455         (__ASSUME_TGKILL): Define without depending on kernel version for
2456         i386.
2457         (__ASSUME_UTIMES): Likewise.
2458         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2459         kernel version.
2460         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2461         (__ASSUME_TMPFS_NAME): Likewise.
2462         * README: Update reference to Linux kernel versions.
2463
2464 2012-08-02  Marek Polacek  <polacek@redhat.com>
2465
2466         [BZ# 14150]
2467         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2468         libc_cv_asm_type_prefix with %.
2469         * configure: Regenerated.
2470         * include/libc-symbols.h: Remove comment about
2471         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2472         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2473         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2474         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2475         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2476         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2477         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2478         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2479         * elf/tst-unique2mod1.c: Likewise.
2480         * elf/tst-unique1mod2.c: Likewise.
2481         * elf/tst-unique1mod1.c: Likewise.
2482         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2483         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2484         Replace ASM_TYPE_DIRECTIVE with .type.
2485         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2486         * sysdeps/i386/sysdep.h: Likewise.
2487         * sysdeps/x86_64/sysdep.h: Likewise.
2488         * sysdeps/sh/sysdep.h: Likewise.
2489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2490         Do not define ASM_TYPE_DIRECTIVE.
2491         * sysdeps/powerpc/sysdep.h: Likewise.
2492         * sysdeps/powerpc/powerpc32/sysdep.h:
2493         Replace ASM_TYPE_DIRECTIVE with .type.
2494         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2495         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2496         * sysdeps/i386/fpu/e_powf.S: Likewise.
2497         * sysdeps/i386/fpu/e_expl.S: Likewise.
2498         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2499         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2500         * sysdeps/i386/fpu/e_pow.S: Likewise.
2501         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2502         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2503         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2504         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2505         * sysdeps/i386/fpu/e_log2.S: Likewise.
2506         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2507         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2508         * sysdeps/i386/fpu/e_powl.S: Likewise.
2509         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2510         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2511         * sysdeps/i386/fpu/e_logl.S: Likewise.
2512         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2513         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2514         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2515         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2516         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2517         * sysdeps/i386/fpu/e_log.S: Likewise.
2518         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2519         * sysdeps/i386/fpu/e_logf.S: Likewise.
2520         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2521         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2522         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2523         * sysdeps/i386/fpu/e_log10.S: Likewise.
2524         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2525         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2526         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2527         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2528         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2529         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2530         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2531         * sysdeps/i386/i686/strtok.S: Likewise.
2532         * sysdeps/i386/i386-mcount.S: Likewise.
2533         * sysdeps/i386/strtok.S: Likewise.
2534         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2535         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2536         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2537         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2538         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2539         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2540         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2541         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2542         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2543         * sysdeps/x86_64/_mcount.S: Likewise.
2544         * sysdeps/x86_64/strtok.S: Likewise.
2545         * sysdeps/sh/_mcount.S: Likewise.
2546
2547 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2548
2549         * libio/iofopen.c: Include <fcntl.h>.
2550         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2551         (_IO_fopen64, fopen64): Define as aliases.
2552         * libio/iofopen64.c: Include <fcntl.h>.
2553         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2554         Conditionalize body on this.
2555         * sysdeps/wordsize-64/iofopen.c: File removed.
2556         * sysdeps/wordsize-64/iofopen64.c: File removed.
2557
2558 2012-08-01  Marek Polacek  <polacek@redhat.com>
2559
2560         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2561         Use dlfcn directly instead of a variable.
2562         (binfmt-subdir): Do not define.
2563         (dlfcn): Likewise.
2564
2565 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2566
2567         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2568         Remove all definitions.
2569         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2570         <kernel-features.h>.
2571         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2572         (miss_F_GETOWN_EX): Remove all definitions.
2573         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2574         macro definition.
2575         [!__ASSUME_FCNTL64]: Remove conditional code.
2576         [__ASSUME_FCNTL64]: Make code unconditional.
2577         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2578         <kernel-features.h>.
2579         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2580         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2581         (lockf64) [__NR_fcntl64]: Make code unconditional.
2582         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2583
2584         * sysdeps/unix/sysv/linux/kernel-features.h
2585         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2586         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2587         Make code unconditional.
2588         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2589         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2591         [__NR_vfork]: Make code unconditional.
2592         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2593         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2595         [__NR_vfork]: Make code unconditional.
2596         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2597         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2598
2599 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2600
2601         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2602         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2603
2604         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2605         Define mkstemp64 as an alias.
2606         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2607         Define mkstemps64 as an alias.
2608         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2609         Define mkostemp64 as an alias.
2610         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2611         Define mkostemps64 as an alias.
2612         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2613         Conditionalize body on this.
2614         * misc/mkostemp64.c: Likewise.
2615         * misc/mkostemps64.c: Likewise.
2616         * misc/mkstemps64.c: Likewise.
2617         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2618         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2619         * sysdeps/wordsize-64/mkostemp.c: File removed.
2620         * sysdeps/wordsize-64/mkstemp.c: File removed.
2621         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2622         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2623         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2624         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2625
2626         [BZ #14138]
2627         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2628         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2629         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2630         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2631
2632         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2633         compat_symbol macros from <shlib-compat.h> rather than the underlying
2634         default_symbol_version and symbol_version macros, so that DEFAULT
2635         lines in shlib-versions are respected.
2636         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2637
2638 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2639
2640         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2641         Declare with warn_unused_result.
2642         (setgid, setregid, setegid, setresgid): Likewise.
2643         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2644         Likewise.
2645         * WUR-REPORT: Remove set*id functions.
2646
2647 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2648
2649         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2650
2651 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2652
2653         * include/sys/socket.h (__libc_accept, __libc_accept4):
2654         Add attribute_hidden.
2655         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2656
2657         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2658         use of PTR_MANGLE.
2659         * inet/getnetgrent_r.c (setup): Likewise.
2660
2661         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2662
2663 2012-07-31  David S. Miller  <davem@davemloft.net>
2664
2665         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2666
2667 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2668
2669         [BZ #13629]
2670         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2671         value between 1.0 and 2.0 and smaller part has absolute value less
2672         than 1.0.
2673         * math/s_clog10.c (__clog10): Likewise.
2674         * math/s_clog10f.c (__clog10f): Likewise.
2675         * math/s_clog10l.c (__clog10l): Likewise.
2676         * math/s_clogf.c (__clogf): Likewise.
2677         * math/s_clogl.c (__clogl): Likewise.
2678         * math/libm-test.inc (clog_test): Add more tests.
2679         (clog10_test): Likewise.
2680         * sysdeps/i386/fpu/libm-test-ulps: Update.
2681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2682
2683 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2684
2685         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2686         Exit with zero in case no suitable GID is found, and write a
2687         message to standard error.
2688
2689 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2690
2691         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2692         rather than to 1.
2693         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2694         (MAXPATHLEN): Removed.
2695         (NOGROUP, NODEV): New macros.
2696         (setbit, clrbit, isset, isclr): New macros.
2697         (howmany, roundup, powerof2): New macros.
2698         (DEV_BSIZE): New macro.
2699
2700         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2701         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2702
2703         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2704         definition on [!__NO_LONG_DOUBLE_MATH].
2705
2706         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2707         PTR_MANGLE and PTR_DEMANGLE.
2708
2709         * socket/accept4.c (accept4): Rename to __libc_accept4.
2710         Define accept4 as a weak alias.
2711
2712         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2713         on [_DIRENT_HAVE_D_TYPE].
2714         * io/ftw.c (ftw_dir): Likewise.
2715
2716         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2717
2718         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2719
2720         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2721         Use the BSD numbers rather than the arbitrary ones we had.
2722         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2723         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2724         (SIGXCPU, SIGXFSZ): New macros.
2725         (_NSIG): Now 32.
2726
2727         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2728         initializer on [_LIBC_REENTRANT].
2729
2730         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2731         definitions inside [_POSIX_MAPPED_FILES].
2732
2733         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2734
2735         * dirent/opendir.c: Include <fcntl.h>.
2736
2737         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2738         (__libc_getspecific): Likewise.
2739         (__libc_key_create): Likewise.
2740
2741         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2742         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2743         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2744         (tmpfile64): Define as alias.
2745         * sysdeps/wordsize-64/tmpfile.c: File removed.
2746         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2747         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2748         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2749
2750         * stdio-common/vfscanf.c: Include <stdbool.h>.
2751         * nss/makedb.c: Likewise.
2752         * stdio-common/_i18n_number.h: Likewise.
2753         * argp/argp-help.c: Likewise.
2754         * posix/wordexp.c: Likewise.
2755         * sysdeps/posix/spawni.c: Likewise.
2756         * nss/nss_files/files-initgroups.c: Likewise.
2757         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2758         * nss/nss_files/files-initgroups.c: Likewise.
2759         * nss/nss_db/db-netgrp.c: Likewise.
2760         * nss/nss_db/db-initgroups.c: Likewise.
2761         * io/fchmodat.c: Include <sys/stat.h>.
2762
2763         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2764         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2765
2766         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2767         [HAVE_MMAP].
2768
2769         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2770         Add multiple inclusion protection.
2771
2772 2012-07-27  David S. Miller  <davem@davemloft.net>
2773
2774         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2775
2776 2012-07-27  Gary Benson  <gbenson@redhat.com>
2777
2778         [BZ #14298]
2779         * elf/rtld.c: Include <stap-probe.h>.
2780         (dl_main): Added static probes "init_start" and "init_complete".
2781         * elf/dl-load.c: Include <stap-probe.h>.
2782         (lose): Take new parameter "nsid".
2783         Added static probe "map_failed".
2784         (_dl_map_object_from_fd): Pass namespace id to lose.
2785         Added static probe "map_start".
2786         (open_verify): Pass namespace id to lose.
2787         * elf/dl-open.c: Include <stap-probe.h>.
2788         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2789         and "reloc_complete".
2790         * elf/dl-close.c: Include <stap-probe.h>.
2791         (_dl_close_worker): Added static probes "unmap_start" and
2792         "unmap_complete".
2793         * elf/rtld-debugger-interface.txt: New file documenting the above.
2794
2795 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2796
2797         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2798         rather than a string variable.
2799         * sunrpc/rpc_main.c (h_output): Likewise.
2800         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2801
2802 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2803
2804         * inet/check_native.c: New file.
2805
2806 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2807
2808         [BZ #13629]
2809         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2810         if larger part has absolute value 1.0.
2811         * math/s_clog10.c (__clog10): Likewise.
2812         * math/s_clog10f.c (__clog10f): Likewise.
2813         * math/s_clog10l.c (__clog10l): Likewise.
2814         * math/s_clogf.c (__clogf): Likewise.
2815         * math/s_clogl.c (__clogl): Likewise.
2816         * math/libm-test.inc (clog_test): Add more tests.
2817         (clog10_test): Likewise.
2818         * sysdeps/i386/fpu/libm-test-ulps: Update.
2819         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2820
2821         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2822         (pltexit): Likewise.
2823         (La_regs): Likewise.
2824         (La_retval): Likewise.
2825         (int_retval): Likewise.
2826         Update #error for removed macros to refer only to definitions in
2827         tst-audit.h.
2828         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2829         macro.
2830         (pltexit): Likewise.
2831         (La_regs): Likewise.
2832         (La_retval): Likewise.
2833         (int_retval): Likewise.
2834         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2835         macro.
2836         (pltexit): Likewise.
2837         (La_regs): Likewise.
2838         (La_retval): Likewise.
2839         (int_retval): Likewise.
2840         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2841         macro.
2842         (pltexit): Likewise.
2843         (La_regs): Likewise.
2844         (La_retval): Likewise.
2845         (int_retval): Likewise.
2846         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2847         macro.
2848         (pltexit): Likewise.
2849         (La_regs): Likewise.
2850         (La_retval): Likewise.
2851         (int_retval): Likewise.
2852         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2853         macro.
2854         (pltexit): Likewise.
2855         (La_regs): Likewise.
2856         (La_retval): Likewise.
2857         (int_retval): Likewise.
2858         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2859         macro.
2860         (pltexit): Likewise.
2861         (La_regs): Likewise.
2862         (La_retval): Likewise.
2863         (int_retval): Likewise.
2864         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2865         macro definitions in tst-audit.h.
2866         * sysdeps/i386/tst-audit.h: New file.
2867         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2868         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2869         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2870         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2871         * sysdeps/sh/tst-audit.h: Likewise.
2872         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2873         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2874         * sysdeps/x86_64/tst-audit.h: Likewise.
2875
2876 2012-07-26  Andreas Jaeger  <aj@suse.de>
2877
2878         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2879         ptrace.
2880
2881         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2882         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2883         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2884         PTRACE_O_MASK.
2885         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2886         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2887         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2888
2889         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2890         value.
2891
2892         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2893         _sigsys.
2894         (si_call_addr, si_syscall, si_arch): Define new macro.
2895         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2896         _sigsys.
2897         (si_call_addr, si_syscall, si_arch): Define new marcro.
2898         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2899         _sigsys.
2900         (si_call_addr, si_syscall, si_arch): Define new macro.
2901         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2902         _sigsys.
2903         (si_call_addr, si_syscall, si_arch): Define new macro.
2904
2905 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2906
2907         [BZ #13717]
2908         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2909         Change to 2.4.21 where previously 2.4.1.
2910         * sysdeps/unix/sysv/linux/configure: Regenerated.
2911         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2912         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2913         Linux kernel version.
2914         (__ASSUME_STD_AUXV): Remove.
2915         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2916         kernel version.
2917         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2918         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2919         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2920         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2921         (__ASSUME_NETLINK_SUPPORT): Likewise.
2922         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2923         (__no_netlink_support): Remove conditional definition.
2924         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2925         Remove.
2926         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2927         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2928         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2929         (if_nameindex_ioctl): Remove.
2930         (if_nameindex_netlink): Do not handle __no_netlink_support.
2931         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2932         code.
2933         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2934         Remove conditional code.
2935         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2936         code.
2937         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2938         unconditional.
2939         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2940         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2941         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2942         Remove.
2943         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2944         [!__ASSUME_STD_AUXV]: Remove conditional code.
2945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2946         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2947         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2949         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2950         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2951         code.
2952         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2954         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2955         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2956         conditional code.
2957         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2959         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2960         code.
2961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2962         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2963         conditional code.
2964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2965         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2966         code unconditional.
2967         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2968         conditional code.
2969         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2970         unconditional.
2971         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2972         conditional code.
2973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2974         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2975         unconditional.
2976         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2977         conditional code.
2978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2979         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2980         code unconditional.
2981         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2982         conditional code.
2983         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2984         unconditional.
2985         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2986         conditional code.
2987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2988         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2989         code unconditional.
2990         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2991         conditional code.
2992         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2993         unconditional.
2994         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2995         conditional code.
2996
2997 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2998
2999         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3000         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3001         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3002         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3003         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3004         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3005         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3006         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3007         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3008         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3009         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3010         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3011         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3012         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3013         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3014         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3015         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3016         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3017         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3018         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3019         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3020         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3021         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3022
3023 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3024
3025         * Versions.def: Add GLIBC_2.17.
3026         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3027         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3028         Introduce __libc_secure_getenv.
3029         * stdlib/Versions (2.17): Add secure_getenv
3030         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3031         * stdlib/secure-getenv.c: Rename __secure_getenv to
3032         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3033         symbol __secure_getenv for GLIBC_2.0.
3034         * stdlib/tst-secure-getenv.c: New.
3035         * stdlib/Makefile (tests): Add testcase.
3036         * manual/startup.texi (Environment Access): Document
3037         secure_getenv.
3038         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3039         __libc_secure_getenv.
3040         * inet/ruserpass.c (ruserpass): Likewise.
3041         * malloc/mtrace.c (mtrace): Likewise.
3042         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3043         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3044         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3045         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3046         HAVE_SECURE_GETENV.
3047         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3048         __secure_getenv to __libc_secure_getenv.
3049         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3051         Likewise.
3052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3053         Likewise.
3054         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3055         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3056         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3057         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3058         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3059         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3060         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3061
3062 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3063
3064         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3065         (struct La_i86_retval): Likewise.
3066         (struct La_x86_64_regs): Likewise.
3067         (struct La_x86_64_retval): Likewise.
3068         (struct La_x32_regs): Likewise.
3069         (struct La_x32_retval): Likewise.
3070         (struct La_ppc32_regs): Likewise.
3071         (struct La_ppc32_retval): Likewise.
3072         (struct La_ppc64_regs): Likewise.
3073         (struct La_ppc64_retval): Likewise.
3074         (struct La_sh_regs): Likewise.
3075         (struct La_sh_retval): Likewise.
3076         (struct La_s390_32_regs): Likewise.
3077         (struct La_s390_32_retval): Likewise.
3078         (struct La_s390_64_regs): Likewise.
3079         (struct La_s390_64_retval): Likewise.
3080         (struct La_sparc32_regs): Likewise.
3081         (struct La_sparc32_retval): Likewise.
3082         (struct La_sparc64_regs): Likewise.
3083         (struct La_sparc64_retval): Likewise.
3084         (struct audit_ifaces): Remove architecture-specific pltenter and
3085         pltexit members.
3086         * sysdeps/i386/ldsodefs.h: New file.
3087         * sysdeps/powerpc/ldsodefs.h: Likewise.
3088         * sysdeps/s390/ldsodefs.h: Likewise.
3089         * sysdeps/sh/ldsodefs.h: Likewise.
3090         * sysdeps/sparc/ldsodefs.h: Likewise.
3091         * sysdeps/x86_64/ldsodefs.h: Likewise.
3092
3093 2012-07-25  Marek Polacek  <polacek@redhat.com>
3094
3095         [BZ #6808]
3096         * math/libm-test.inc (yn_test): Add another test.
3097         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3098         to ERANGE when the result is +-Inf.
3099         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3100         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3101         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3102         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3103
3104 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3105
3106         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3107         equal to 0.
3108         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3109         clock_t.
3110         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3111
3112 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3113
3114         * configure.in <sysdeps resolving>: Correct printing
3115         Implies_before.
3116         * configure: Regenerate.
3117
3118 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3119
3120         * math/w_ilogb.c: Include <limits.h>.
3121         * math/w_ilogbl.c: Likewise.
3122
3123 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3124
3125         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3126         va_copy.  Document allowing for unavailable va_copy only as
3127         pre-C99 compatibility.
3128         * manual/string.texi (Copying and Concatenation): Use va_copy
3129         instead of __va_copy in concat example.
3130
3131 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3132
3133         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3134         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3135         it if not null.
3136
3137         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3138         with O_NOLINK passed to __file_name_lookup.
3139
3140         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3141         with O_NOLINK passed to __file_name_lookup.
3142
3143         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3144         negative N or less than NGIDS.
3145
3146         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3147         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3148         enough.  Use memcpy instead of strncpy.
3149
3150 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3151
3152         * elf/Makefile (check-data): Remove.
3153         (localplt.data): New vpath directive.
3154         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3155         instead of $(check-data).
3156         * scripts/data/localplt-generic.data: Move to ...
3157         * sysdeps/generic/localplt.data: ... here.
3158         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3159         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3160         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3162         ... here.
3163         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3165         ... here.
3166         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3167         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3168         ... here.
3169         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3170         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3171         ... here.
3172         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3173         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3174         ... here.
3175         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3176         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3177         ... here.
3178
3179 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3180
3181         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3182         PPC32 and PPC64 files.
3183         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3184         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3185
3186 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3187
3188         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3189         __makecontext_ret to ...
3190         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3191         ... here and call exit if uc_link is NULL.  New file.
3192         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3193         __makecontext_ret.S.
3194         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3195         __makecontext_ret to ...
3196         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3197         ... here and call exit if uc_link is NULL.  New file.
3198         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3199         __makecontext_ret.S.
3200
3201 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3202
3203         * elf/elf.h (R_390_IRELATIVE): New definition.
3204         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3205         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3206         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3207         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3208         (elf_machine_lazy_rel): Likewise.
3209         * sysdeps/s390/dl-irel.h: New file.
3210         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3211         * sysdeps/s390/s390-64/memset.S: New asm code.
3212         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3213         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3214         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3215         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3216         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3217         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3218         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3219         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3220         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3221         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3222         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3223         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3224         * sysdeps/s390/s390-32/memset.S: New asm code.
3225         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3226
3227 2012-07-17  Marek Polacek  <polacek@redhat.com>
3228
3229         [BZ #14349]
3230         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3231         * sysdeps/s390/s390-64/configure.in: Likewise.
3232         * sysdeps/sparc/configure.in: Likewise.
3233         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3234         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3235         * sysdeps/i386/configure.in: Likewise.
3236         * sysdeps/x86_64/configure.in: Likewise.
3237         * sysdeps/sh/configure.in: Likewise.
3238         * sysdeps/s390/s390-32/configure: Regenerated.
3239         * sysdeps/s390/s390-64/configure: Likewise.
3240         * sysdeps/x86_64/configure: Likewise.
3241         * sysdeps/sh/configure: Likewise.
3242         * sysdeps/powerpc/powerpc64/configure: Likewise.
3243         * sysdeps/powerpc/powerpc32/configure: Likewise.
3244         * sysdeps/sparc/configure: Likwise.
3245         * sysdeps/i386/configure: Likewise.
3246
3247         * elf/dl-open.c: Comment fixes.
3248
3249 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3250
3251         * Makefile [CXX] (check-data): Remove.
3252         [CXX] (c++-types.data): New vpath directive.
3253         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3254         vpath.  Do not allow for C++ type data being missing.
3255         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3256         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3257         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3258         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3259         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3260         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3261         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3263         ... here.
3264         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3266         ... here.
3267         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3268         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3269         ... here.
3270         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3271         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3272         ... here.
3273         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3274         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3275         ... here.
3276         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3277         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3278         ... here.
3279         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3280         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3281         ... here.
3282         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3283         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3284
3285         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3286         definitions to architecture-specific files.
3287         (TLS_IE): Likewise.
3288         (TLS_LD): Likewise.
3289         (TLS_GD): Likewise.
3290         * sysdeps/i386/tls-macros.h: New file.
3291         * sysdeps/powerpc/tls-macros.h: Likewise.
3292         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3293         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3294         * sysdeps/sh/tls-macros.h: Likewise.
3295         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3296         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3297         * sysdeps/x86_64/tls-macros.h: Likewise.
3298
3299 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3300
3301         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3302         zero value for regular exit case.
3303
3304         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3305         (__start_context): Preserve zero value for regular exit case.
3306
3307 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3308             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3309
3310         * manual/setjmp.texi (setcontext): Clarify normal process
3311         termination when uc_link is the null pointer.
3312         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3313         exit call.
3314
3315 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3316
3317         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3318         preprocessor.  Test for each exception mask separately.
3319
3320 2012-07-16  Andreas Jaeger  <aj@suse.de>
3321
3322         * po/ru.po: Update from translation team.
3323
3324 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3325
3326         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3327         equal to 0.
3328         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3329         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3330         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3331         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3332         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3333
3334 2012-07-13  Andreas Jaeger  <aj@suse.de>
3335
3336         * po/fr.po: Update from translation team.
3337
3338 2012-07-12  Marek Polacek  <polacek@redhat.com>
3339
3340         [BZ #14173]
3341         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3342         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3343         loop condition.
3344
3345 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3346
3347         [BZ #13717]
3348         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3349         Change to 2.4.1 where previously 2.4.0.
3350         * sysdeps/unix/sysv/linux/configure: Regenerated.
3351         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3352         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3353         version.
3354         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3355         (__ASSUME_AT_CLKTCK): Remove.
3356         (__ASSUME_AT_PAGESIZE): Likewise.
3357         (__ASSUME_AT_XID): Likewise.
3358         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3359         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3360         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3361         unconditionally.
3362         (HAVE_AUX_PAGESIZE): Likewise.
3363         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3364         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3365         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3366
3367 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3368
3369         [BZ #14307]
3370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3371         the temporary buffer used to invoke __gethostbyname2_r,
3372         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3373         host_data / struct gaih_addrtuple.
3374         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3375         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3376         header file nss/nsswitch.h.
3377         * nss/nsswitch.h (global scope): Add definition of implementation
3378         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3379         resolv/nss_dns/dns-host.c).
3380
3381 2012-07-11  Andreas Jaeger  <aj@suse.de>
3382
3383         * po/fr.po: Update from translation team.
3384
3385         * po/sv.po: Update from translation team
3386         * po/fr.po: Another update from translation team.
3387
3388 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3389
3390         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3391         for subnormals or multiply small sinh result by itself.
3392         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3393         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3394
3395 2012-07-11  David S. Miller  <davem@davemloft.net>
3396
3397         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3398
3399 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3400
3401         [BZ #14347]
3402         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3403         (INTERNAL_MARK): Shift it here.
3404
3405 2012-07-10  Marek Polacek  <polacek@redhat.com>
3406
3407         [BZ #14151]
3408         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3409         libc_cv_asm_global_directive with .globl.
3410         * configure: Regenerated.
3411         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3412         with .globl.
3413         * sysdeps/i386/configure: Regenerated.
3414         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3415         with .globl.
3416         * sysdeps/x86_64/configure: Regenerated.
3417         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3418         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3419         * elf/tst-unique2mod2.c: Likewise.
3420         * elf/tst-unique2mod1.c: Likewise.
3421         * elf/tst-unique1mod2.c: Likewise.
3422         * elf/tst-unique1mod1.c: Likewise.
3423         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3424         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3425         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3426         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3427         * sysdeps/mach/sysdep.h: Likewise.
3428         * sysdeps/i386/sysdep.h: Likewise.
3429         * sysdeps/i386/i386-mcount.S: Likewise.
3430         * sysdeps/x86_64/_mcount.S: Likewise.
3431         * sysdeps/x86_64/sysdep.h: Likewise.
3432         * sysdeps/sh/_mcount.S: Likewise.
3433         * sysdeps/sh/sysdep.h: Likewise.
3434         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3435         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3436         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3437         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3438         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3439         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3440         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3441         * locale/localeinfo.h: Likewise.
3442         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3443         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3444
3445 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3446
3447         [BZ #14336]
3448         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3449         system".
3450         * manual/message.texi (The Uniforum approach): Likewise.
3451         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3452         (glibc iconv Implementation): Likewise.
3453
3454 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3455
3456         [BZ #14337]
3457         * math/s_clog.c (__clog): Avoid scaling a value down where that
3458         could result in underflow.
3459         * math/s_clog10.c (__clog10): Likewise.
3460         * math/s_clog10f.c (__clog10f): Likewise.
3461         * math/s_clog10l.c (__clog10l): Likewise.
3462         * math/s_clogf.c (__clogf): Likewise.
3463         * math/s_clogl.c (__clogl): Likewise.
3464         * math/libm-test.inc (clog_test): Add more tests.
3465         (clog10_test): Likewise.
3466         * sysdeps/i386/fpu/libm-test-ulps: Update.
3467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3468
3469 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3470
3471         [BZ #14283]
3472         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3473         by 7 not 8 to examine high bit of fractional part.
3474
3475         [BZ #14042]
3476         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3477         for call to __mcount_internal.
3478         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3479         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3480         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3481
3482 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3483
3484         [BZ #14154]
3485         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3486         approximation for values within 0x1p-13f of an odd multiple of
3487         pi/4.
3488         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3489         exception.  Add more tests.
3490         * sysdeps/i386/fpu/libm-test-ulps: Update.
3491
3492         [BZ #6778]
3493         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3494         inputs and return -1 for them.  Do not check for +Inf in case not
3495         reachable for +Inf.
3496         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3497         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3498         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3499         and return -1 for them.  Do not check for +Inf in case not
3500         reachable for +Inf.
3501         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3502         define.
3503         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3504         and return -1 for them.  Do not check for +Inf in case not
3505         reachable for +Inf.
3506         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3507         spurious underflow.
3508         * sysdeps/i386/fpu/libm-test-ulps: Update.
3509         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3510
3511 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3512
3513         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3514
3515 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3516
3517         [BZ #14157]
3518         [BZ #14331]
3519         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3520         could result in spurious underflow.  Scale down values above
3521         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3522         * math/s_csqrtf.c (__csqrtf): Likewise.
3523         * math/s_csqrtl.c (__csqrtl): Likewise.
3524         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3525         spurious underflow.
3526         * sysdeps/i386/fpu/libm-test-ulps: Update.
3527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3528
3529 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3530
3531         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3532         xopen-msg.sed.
3533         * catgets/xopen-msg.awk: New file.
3534         * catgets/xopen-msg.sed: Removed.
3535
3536         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3537         po2text.sed.
3538         * intl/po2test.awk: New file.
3539         * intl/po2test.sed: Removed.
3540
3541 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3542
3543         [BZ #14328]
3544         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3545         or multiply small sinh result by itself.
3546         * math/s_ctanf.c (__ctanf): Likewise.
3547         * math/s_ctanh.c (__ctanh): Likewise.
3548         * math/s_ctanhf.c (__ctanhf): Likewise.
3549         * math/s_ctanhl.c (__ctanhl): Likewise.
3550         * math/s_ctanl.c (__ctanl): Likewise.
3551         * math/libm-test.inc (ctan_test_tonearest): New function.
3552         (ctan_test_towardzero): Likewise.
3553         (ctan_test_downward): Likewise.
3554         (ctan_test_upward): Likewise.
3555         (ctanh_test_tonearest): Likewise.
3556         (ctanh_test_towardzero): Likewise.
3557         (ctanh_test_downward): Likewise.
3558         (ctanh_test_upward): Likewise.
3559         (main): Call these new functions.
3560         * sysdeps/i386/fpu/libm-test-ulps: Update.
3561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3562
3563 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3564
3565         * .gitignore: Delete /ports entry.
3566
3567 2012-07-03  Andreas Jaeger  <aj@suse.de>
3568
3569         * po/bg.po: Update from translation team.
3570         * po/cs.po: Likewise.
3571         * po/de.po: Likewise.
3572         * po/hr.po: Likewise.
3573         * po/nl.pl: Likewise.
3574         * po/pl.po: Likewise.
3575         * po/vi.po: Likewise.
3576
3577 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3578
3579         * Makeconfig [!+link] (+link-before-libc): New variable.
3580         [!+link] (+link-after-libc): Likewise.
3581         [!+link] (+link-tests): Likewise.
3582         [!+link] (+link): Define in terms of $(+link-before-libc) and
3583         $(+link-after-libc).
3584         [!+link-static] (+link-static-before-libc): New variable.
3585         [!+link-static] (+link-static-after-libc): Likewise.
3586         [!+link-static] (+link-static-tests): Likewise.
3587         [!+link-static] (+link-static): Define in terms of
3588         $(+link-static-before-libc) and $(+link-static-after-libc).
3589         [build-shared] (link-libc-before-gnulib): New variable.
3590         [build-shared] (link-libc-tests): Likewise.
3591         [build-shared] (link-libc): Define in terms of
3592         $(link-libc-before-gnulib).
3593         [!build-shared] (link-libc-tests): New variable.
3594         (link-libc-static-tests): New variable.
3595         [!gnulib] (gnulib-arch): New variable.
3596         [!gnulib] (gnulib-tests): Likewise.
3597         [!gnulib] (static-gnulib-arch): Likewise.
3598         [!gnulib] (static-gnulib-tests): Likewise.
3599         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3600         Define with "=" instead of ":=".
3601         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3602         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3603         * Rules (binaries-all-notests): New variable.
3604         (binaries-all-tests): Likewise.
3605         (binaries-static-notests): Likewise.
3606         (binaries-static-tests): Likewise.
3607         (binaries-all): Define using $(binaries-all-notests) and
3608         $(binaries-all-tests).
3609         (binaries-static): Define using $(binaries-static-notests) and
3610         $(binaries-static-tests).
3611         (binaries-shared-tests): New variable.
3612         (binaries-shared-notests): Likewise.
3613         (binaries-shared): Remove variable.
3614         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3615         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3616         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3617         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3618         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3619         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3620         * elf/Makefile (sln-modules): New variable.
3621         (extra-objs): Add $(sln-modules:=.o).
3622         (ldconfig-modules): Add static-stubs.
3623         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3624         * elf/static-stubs.c: New file.
3625
3626         [BZ #14283]
3627         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3628         by 7 not 8 to examine high bit of fractional part.  Use volatile
3629         variables when splitting into final array of floats if
3630         __FLT_EVAL_METHOD__ != 0.
3631         * math/libm-test.inc (cos_test): Add another test.
3632         (sin_test): Likewise.
3633         * sysdeps/i386/fpu/libm-test-ulps: Update.
3634
3635         [BZ #14273]
3636         * math/libm-test.inc (cosh_test): Add more tests.
3637
3638         * version.h (RELEASE): Set to "development".
3639         (VERSION): Set to "2.16.90".
3640
3641 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3642
3643         * NEWS: Update copyright. Remove last-updated date.
3644         Mention math library bug fixes and timezone data changes.
3645         * README: Mention GNU/Hurd, x32, and HPPA support status.
3646
3647 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3648
3649         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3650
3651 2012-06-27  Andreas Jaeger  <aj@suse.de>
3652
3653         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3654
3655 2012-06-25  Andreas Jaeger  <aj@suse.de>
3656
3657         * sysdeps/s390/fpu/libm-test-ulps: Update.
3658
3659 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3660             Thomas Schwinge  <thomas@codesourcery.com>
3661
3662         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3663         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3664         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3665         fanotify_mark.
3666
3667 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3668
3669         * sysdeps/mach/start.c: Remove file.
3670         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3671         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3672         * sysdeps/sh/init-first.c: Likewise.
3673
3674         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3675         registers for frame unwinding purposes, add CFI directives.
3676         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3677         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3678         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3679         Likewise.
3680
3681         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3682         __fortify_fail returning.
3683         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3684
3685         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3686         sysdeps/sh/____longjmp_chk.S.
3687         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3688         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3689         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3690         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3691
3692         * sysdeps/sh/abort-instr.h: New file.
3693         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3694         process in case exit returns.
3695
3696         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3697         initialize the GOT register before use.
3698
3699         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3700         calculation of ARGC > 4.
3701
3702         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3703         meaningful names to some local labels.
3704
3705 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3706             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3707
3708         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3709         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3710         (__arch_compare_and_exchange_val_16_acq): Likewise.
3711         (__arch_compare_and_exchange_val_32_acq): Likewise.
3712         (atomic_exchange_and_add): Fix gUSA sequence.
3713         (atomic_add): Likewise.
3714         (atomic_add_negative): Likewise.
3715         (atomic_add_zero): Likewise.
3716         (atomic_bit_test_set): Likewise.
3717
3718 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3719
3720         [BZ #13579]
3721         * include/link.h (struct link_map): Add l_free_initfini.
3722         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3723         l_initfini.
3724         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3725         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3726         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3727         set.
3728
3729 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3730
3731         * configure.in: Use AC_LANG_SOURCE.
3732         * configure: Regenerate.
3733
3734 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3735
3736         * configure.in (libc_cv_localstatedir): New substituted variable.
3737         * configure: Regenerated.
3738         * config.make.in (localstatedir): New variable, substituted from
3739         libc_cv_localstatedir.
3740         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3741         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3742         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3743         * sysdeps/gnu/configure: Regenerated.
3744
3745 2012-06-21  Jeff Law  <law@redhat.com>
3746
3747         [BZ #14277]
3748         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3749         free.  Simplify list management for _LIBC case.
3750
3751 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3752
3753         [BZ #14273]
3754         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3755         Clear sign bit of 64-bit integer value before comparing against
3756         overflow value.
3757
3758         * sysdeps/mach/configure: Regenerated.
3759
3760 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3761
3762         [BZ #14278]
3763         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3764
3765 2012-06-21  Jeff Law  <law@redhat.com>
3766
3767         [BZ #13882]
3768         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3769         uint16_t for elements in the "seen" array to avoid char overflows.
3770         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3771         * elf/dl-open.c (dl_open_worker): Likewise.
3772
3773 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3774
3775         * scripts/list-sources.sh: Scan PORTS for translations.
3776         * po/libc.pot: Regenerated.
3777
3778 2012-06-21  Andreas Jaeger  <aj@suse.de>
3779
3780         [BZ #12194]
3781         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3782         warning.
3783         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3784         * bits/byteswap-16.h (__bswap_16): Likewise.
3785         * bits/byteswap.h (__bswap_constant_16): Likewise.
3786
3787 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3788
3789         [BZ #14117]
3790         * sysdeps/i386/fpu_control.h: Removed.
3791         * sysdeps/x86_64/fpu_control.h: Moved to ...
3792         * sysdeps/x86/fpu_control.h: Here.
3793
3794         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3795         (_FPU_SETCW): Likewise.
3796
3797 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3798
3799         [BZ #14117]
3800         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3801         * sysdeps/x86/fpu/bits/mathinline.h: This.
3802         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3803
3804         [BZ #14050]
3805         [BZ #14117]
3806         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3807         functions if __x86_64__ is defined.
3808
3809 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3810
3811         * string/endian.h: Add !__ASSEMBLER__ condition for including
3812         conversion interfaces.
3813
3814 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3815
3816         [BZ #14241]
3817         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3818         of ABS(x) in calculating zero to negative powers other than odd
3819         integers.
3820         * math/libm-test.inc (pow_test): Add more tests.
3821
3822 2012-06-15  Andreas Jaeger  <aj@suse.de>
3823
3824         * manual/contrib.texi (Contributors): Update entry of Liubov
3825         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3826         Machado Filho.
3827
3828 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3829
3830         * string/string.h: Add __wur to GNU version of strerror_r.
3831
3832 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3833
3834         [BZ #14229]
3835         * string/Makefile (tests): Add tst-strtok_r.
3836         * string/tst-strtok_r.c: New file.
3837         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3838         RAX_LP/RDX_LP on SAVE_PTR.
3839
3840 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3841
3842         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3843
3844 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3845
3846         * libm_test.inc (csqrt_test): Allow more spurious underflow
3847         exceptions.
3848         (j0_test): Likewise.
3849         (j1_test): Likewise.
3850         (y0_test): Likewise.
3851         (y1_test): Likewise.
3852
3853 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3854
3855         * po/Makefile (libc.pot): Use UTF-8 charset.
3856
3857 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3858
3859         [BZ #14210]
3860         Suppress sign-conversion warning from FD_SET.
3861         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3862         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3863         not unsigned long int.
3864         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3865
3866 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3867
3868         [BZ #14050]
3869         [BZ #14117]
3870         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3871         __extern_always_inline instead of __extern_inline.
3872         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3873         (__signbit): Likewise.
3874         (__signbitl): Support C++ namespace.
3875         (lrintf): New inline function.
3876         (lrint): Likewise.
3877         (llrintf): Likewise.
3878         (llrint): Likewise.
3879         (fmaxf): Likewise.
3880         (fmax): Likewise.
3881         (fminf): Likewise.
3882         (fmin): Likewise.
3883         (rint): Likewise.
3884         (rintf): Likewise.
3885         (ceil): Likewise.
3886         (ceilf): Likewise.
3887         (floor): Likewise.
3888         (floorf): Likewise.
3889         (nearbyint): Likewise.
3890         (nearbyintf): Likewise.
3891
3892 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3893
3894         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3895         non-default versions.
3896
3897 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3898
3899         [BZ #14218]
3900         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3901
3902 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3903
3904         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3905         (FE_UPWARD, FE_DOWNWARD): Don't define.
3906         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3907         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3908
3909         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3910         reading it.
3911         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3912         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3913
3914 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3915
3916         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3917         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3918         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3919         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3920
3921 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3922
3923         [BZ #14117]
3924         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3925         * sysdeps/i386/fpu/Implies: New file.
3926         * sysdeps/x86_64/fpu/Implies: Likewise.
3927         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3928         * sysdeps/x86/fpu/bits/fenv.h: This.
3929
3930         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3931         __SSE_MATH__.
3932
3933 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3934
3935         [BZ #14134]
3936         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3937         character 0xffff that matches the last element of the
3938         conversion table.
3939
3940 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3941
3942         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3943         fmodl commit.
3944
3945 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3946
3947         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3948         values higher than 25.6283.
3949
3950 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3951
3952         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3953         subnormal exponent extraction and add some __builtin_expect.
3954         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3955         Fix for subnormal mantissa calculation.
3956
3957 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3958
3959         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3960         cpu2 is -1 and errno is not ENOSYS.
3961
3962 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3963
3964         [BZ #14117]
3965         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3966         * sysdeps/x86/bits/string.h: This.
3967         * sysdeps/x86_64/bits/string.h: Removed.
3968
3969         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3970         if not compiling for x86-64, but compiling for >= i486.
3971
3972         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3973         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3974
3975         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3976         New macro from Linux kernel 3.4.0.
3977         (FP_XSTATE_MAGIC2): Likewise.
3978         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3979         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3980         (struct _fpx_sw_bytes): New struct.
3981         (struct _xsave_hdr): Likewise.
3982         (struct _ymmh_state): Likewise.
3983         (struct _xstate): Likewise.
3984
3985         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3986         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3987         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3988         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3989         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3990         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3991
3992         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3993         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3994         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3995         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3996         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3997         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3998
3999 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4000
4001         [BZ #13743]
4002         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4003         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4004         (sysdep_headers): Include sys/platform/ppc.h.
4005         * sysdeps/powerpc/test-gettimebase.c: Test for
4006         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4007         * manual/Makefile (appendices): Include platform.texi.
4008         * manual/contrib.texi (Contributors): Update @node pointers.
4009         * manual/maint.texi (Maintenance): Likewise.
4010         (Platform): New node.
4011         * manual/platform.texi: New file.  Document the new features.
4012
4013 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4014             Jakub Jelinek  <jakub@redhat.com>
4015
4016         [BZ #14188]
4017         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4018         where __builtin_expect is unavailable.
4019
4020 2012-06-03  David S. Miller  <davem@davemloft.net>
4021
4022         * stdlib/longlong.h: Updated from GCC.
4023
4024 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4025
4026         [BZ #14042]
4027         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4028         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4029         __mcount_internal.
4030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4031         (GLIBC_2.16): Likewise.
4032
4033 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4034
4035         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4036
4037 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4038
4039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4040         (default-abi): New variable.
4041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4042         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4043         variable.
4044         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4045         Likewise.
4046         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4047         Likewise.
4048         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4049         Likewise.
4050
4051         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4052         definition.  Document in comment.
4053
4054 2012-06-01  David S. Miller  <davem@davemloft.net>
4055
4056         * stdlib/longlong.h: Updated from GCC.
4057
4058 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4059
4060         [BZ #14117]
4061         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4062         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4063         sys/debugreg.h sys/io.h here.
4064         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4065         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4066         sys/io.h.
4067         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4068         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4069         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4070         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4071         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4072         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4073
4074         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4075         Define only if __x86_64__ is defined.
4076
4077 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4078
4079         [BZ #14048]
4080         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4081         Use int64_t for variable i.
4082         * math/libm-test.inc (fmod_test): Add more tests.
4083
4084         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4085         z computation is not scheduled after fetestexcept.
4086         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4087         Use math_force_eval instead of asm to ensure calculation scheduled
4088         before exception test.
4089         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4090         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4091
4092 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4093
4094         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4095         computation is not scheduled after fetestexcept.
4096
4097 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4098
4099         [BZ #14117]
4100         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4101         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4102
4103 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4104
4105         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4106         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4107
4108 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4109
4110         [BZ #14117]
4111         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4112         <bits/wordsize.h>.
4113         (__WCHAR_MIN): Support __WORDSIZE == 64.
4114         (__WCHAR_MAX): Likewise.
4115
4116         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4117         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4118
4119         [BZ #14183]
4120         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4121         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4122
4123         [BZ #14117]
4124         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4125         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4126
4127         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4128         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4129
4130         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4131         Defined to 1 if __x86_64__ isn't defined.
4132         (_STAT_VER_LINUX_OLD): New.
4133         (st_atime): Remove duplicate.
4134         (st_mtime): Likewise.
4135         (st_ctime): Likewise.
4136
4137 2012-05-31  David S. Miller  <davem@davemloft.net>
4138
4139         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4140         entries.
4141
4142 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4143
4144         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4145         gen-libm-test.pl.
4146
4147         [BZ #14132]
4148         * elf/dl-reloc.c: Include <_itoa.h>.
4149         (_dl_reloc_bad_type): Remove use of INTUSE.
4150         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4151         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4152         * stdio-common/psiginfo.c (psiginfo): Likewise.
4153         * stdio-common/psignal.c (psignal): Likewise.
4154         * string/strsignal.c (strsignal): Likewise.
4155         * include/signal.h (_sys_siglist): Declare hidden proto.
4156         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4157         INTVARDEF with libc_hidden_data_def.
4158         * stdio-common/itoa-udigits.c: Likewise.
4159         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4160         (_itoa_lower_digits_internal): Remove declaration.
4161         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4162         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4163         (_sys_sigabbrev_internal): Remove aliases.
4164         (_sys_siglist): Define hidden alias.
4165
4166 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4167
4168         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4169         bits/sysctl.h.
4170
4171 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4172
4173         [BZ #14117]
4174         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4175         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4176
4177         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4178         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4179         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4180         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4181         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4182         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4183
4184         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4185         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4186         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4187
4188         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4189         with __addr.
4190         (insw): Likewise.
4191         (insl): Likewise.
4192         (outsb): Likewise.
4193         (outsw): Likewise.
4194         (outsl): Likewise.
4195
4196         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4197         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4198         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4199
4200         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4201         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4202         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4203         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4204         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4205         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4206
4207         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4208         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4209
4210         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4211         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4212
4213         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4214         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4215         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4216
4217         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4218         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4219         to ...
4220         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4221
4222         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4223         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4224         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4225
4226         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4227         for x86-64.
4228         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4229
4230 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4231
4232         * math/math.h (M_El): Use two more decimal places.
4233         (M_LOG2El): Likewise.
4234         (M_LOG10El): Likewise.
4235         (M_LN2l): Likewise.
4236         (M_LN10l): Likewise.
4237         (M_PIl): Likewise.
4238         (M_PI_2l): Likewise.
4239         (M_PI_4l): Likewise.
4240         (M_1_PIl): Likewise.
4241         (M_2_PIl): Likewise.
4242         (M_2_SQRTPIl): Likewise.
4243         (M_SQRT2l): Likewise.
4244         (M_SQRT1_2l): Likewise.
4245
4246 2012-05-31  David S. Miller  <davem@davemloft.net>
4247
4248         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4249         values between float registers.
4250         * sysdeps/sparc/sparc64/memset.S: Likewise.
4251         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4252
4253 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4254
4255         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4256         -D_FORTIFY_SOURCE=1.
4257         (CPPFLAGS-tst-longjmp_chk.c): Define.
4258         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4259         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4260         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4261         CFLAGS-tst-wchar-h.c.
4262
4263 2012-05-31  Marek Polacek  <polacek@redhat.com>
4264
4265         [BZ #14132]
4266         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4267         __endmntent_internal): Remove declaration.
4268         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4269         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4270         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4271
4272 2012-05-30  David S. Miller  <davem@davemloft.net>
4273
4274         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4275         (___Q_simulate_exceptions): Use real FP ops rather than writing
4276         into the %fsr.
4277         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4278         Likewise.
4279
4280 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4281
4282         [BZ #14117]
4283         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4284         * sysdeps/x86/bits/xtitypes.h: This.
4285
4286         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4287         * sysdeps/x86/bits/wordsize.h: This.
4288
4289         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4290         * sysdeps/x86/bits/huge_vall.h: This.
4291
4292         * sysdeps/i386/bits/select.h: Removed.
4293         * sysdeps/x86_64/bits/select.h: Renamed to ...
4294         * sysdeps/x86/bits/select.h: This.
4295
4296         * sysdeps/i386/bits/setjmp.h: Removed.
4297         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4298         * sysdeps/x86/bits/setjmp.h: This.
4299
4300         * sysdeps/i386/bits/mathdef.h: Removed.
4301         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4302         * sysdeps/x86/bits/mathdef.h: This.
4303
4304 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4305
4306         [BZ #14132]
4307         * include/sys/socket.h (__connect_internal)
4308         (__libc_sa_len_internal): Remove declaration.
4309         (__connect, __libc_sa_len): Declare hidden_proto.
4310         (SA_LEN): Remove use of INTUSE.
4311         * socket/connect.c: Add libc_hidden_def.
4312         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4313         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4314         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4315         alias.
4316         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4317         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4318         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4319         of adding _internal alias.
4320
4321 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4322
4323         [BZ #14117]
4324         * sysdeps/i386/bits/link.h: Removed.
4325         * sysdeps/i386/bits/linkmap.h: Likewise.
4326         * sysdeps/x86_64/bits/link.h: Renamed to ...
4327         * sysdeps/x86/bits/link.h: This.
4328         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4329         * sysdeps/x86/bits/linkmap.h: This.
4330
4331         * sysdeps/i386/bits/endian.h: Removed.
4332         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4333         * sysdeps/x86/bits/endian.h: This.
4334
4335         * sysdeps/i386/bits/byteswap.h: Removed.
4336         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4337         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4338         * sysdeps/x86/bits/byteswap.h: This.
4339         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4340         * sysdeps/x86/bits/byteswap-16.h: This.
4341         * sysdeps/i386/Implies: Add x86.
4342         * sysdeps/x86_64/Implies: Likewise.
4343
4344 2012-05-30  David S. Miller  <davem@davemloft.net>
4345
4346         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4347         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4348         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4349         (FP_TRAPPING_EXCEPTIONS): Define.
4350         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4351         (FP_TRAPPING_EXCEPTIONS): Define.
4352         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4353         subnormals only when inexact has been signalled or underflow
4354         exceptions are enabled.
4355         (_FP_PACK_CANONICAL): Likewise.
4356
4357 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4358
4359         [BZ #14183]
4360         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4361         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4362
4363 2012-05-30  Richard Henderson  <rth@twiddle.net>
4364
4365         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4366         with #ifndef NOT_IN_libc.
4367
4368         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4369         marked to avoid plt entry.
4370
4371 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4372
4373         [BZ #14112]
4374         * Makeconfig (default-abi): New macro.
4375         (abi-includes): Likewise.
4376         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4377         $(abi-$(default-abi)-lib-soname) for soname if defined.
4378         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4379         abi-variants.
4380         * Makefile (installed-stubs): Likewise.
4381         * include/stubs-biarch.h: Removed.
4382         * scripts/lib-names.awk: Only handle one library at a time.
4383         * scripts/soversions.awk: Remove WORDSIZE support.
4384         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4385         entries.
4386         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4387         Removed.
4388         (syscall-list-default-condition): Likewise.
4389         (syscall-list-default-condition): Likewise.
4390         (syscall-list-includes): Likewise.
4391         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4392         syscall-list-* with abi-*.  Handle undefined abi-variants.
4393         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4394         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4395         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4396         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4397         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4398         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4399         Removed.
4400         (syscall-list-32-options): Likewise.
4401         (syscall-list-32-condition): Likewise.
4402         (syscall-list-64-options): Likewise.
4403         (syscall-list-64-condition): Likewise.
4404         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4405         macro.
4406         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4407         Renamed to ...
4408         (abi-*): This.
4409         (abi-64-ld-soname): New macro.
4410         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4411         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4412         Renamed to ...
4413         (abi-*): This.
4414         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4415         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4416
4417 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4418
4419         * sysdeps/unix/sysv/linux/kernel-features.h
4420         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4421         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4422         include <kernel-features.h>.
4423         [!__NR_ftruncate64]: Remove conditional code.
4424         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4425         [__NR_ftruncate64]: Make code unconditional.
4426         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4427         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4428         include <kernel-features.h>.
4429         [!__NR_ftruncate64]: Remove conditional code.
4430         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4431         [__NR_ftruncate64]: Make code unconditional.
4432         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4434         include <kernel-features.h>.
4435         [!__NR_ftruncate64]: Remove conditional code.
4436         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4437         [__NR_ftruncate64]: Make code unconditional.
4438         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4440         include <kernel-features.h>.
4441         [!__NR_ftruncate64]: Remove conditional code.
4442         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4443         [__NR_ftruncate64]: Make code unconditional.
4444         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4445
4446         * configure.in (libc_cv_fpie): Weaken to a compile test using
4447         LIBC_TRY_CC_OPTION.
4448         * configure: Regenerated.
4449
4450 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4451
4452         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4453         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4454         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4455         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4456         Refreshed.
4457         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4458         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4459         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4460         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4461         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4462         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4463         Refreshed.
4464
4465 2012-05-27  David S. Miller  <davem@davemloft.net>
4466
4467         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4468         (___Q_zero): New.
4469         (__Q_simulate_exceptions): Return void.  Change to simulate
4470         exceptions by writing into the %fsr.
4471         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4472         (__Qp_handle_exceptions): Likewise.
4473         (numbers): Delete.
4474         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4475         __Qp_handle_exceptions.
4476         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4477         __Qp_handle_exceptions.
4478         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4479         as unused and give dummy FP_RND_NEAREST initializer.
4480         (FP_INHIBIT_RESULTS): Define.
4481         (___Q_simulate_exceptions): Update declaration.
4482         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4483         formatting.
4484         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4485         as unused and give dummy FP_RND_NEAREST initializer.
4486         (__Qp_handle_exceptions): Update declaration.
4487         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4488         formatting.
4489
4490 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4491
4492         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4493         the temporary FPU control word.
4494         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4495         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4496         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4497         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4498         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4499         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4500         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4501         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4502         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4503         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4504         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4505
4506 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4507
4508         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4509         fields.
4510
4511 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4512
4513         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4514         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4515         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4516         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4517         Likewise.
4518         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4519         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4520         Likewise.
4521
4522 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4523
4524         * po/h.po: Update from translation team.
4525
4526 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4527
4528         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4529
4530         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4531         handling of denormals.
4532         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4533         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4534         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4535         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4536         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4537         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4538         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4539         Likewise.
4540
4541 2012-05-26  Marek Polacek  <polacek@redhat.com>
4542
4543         [BZ #14152]
4544         * math/libm-test.inc (fma_test): Don't always expect underflow
4545         exception.
4546
4547 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4548
4549         [BZ #12416]
4550         * elf/tst-execstack.c: Include stackinfo.h.
4551         (do_test): Adjust test case to ensure that pthread_getattr_np
4552         behaviour remains the same after marking stack executable.
4553
4554 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4555
4556         * sysdeps/unix/sysv/linux/kernel-features.h
4557         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4558         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4559         kernel-features.h.
4560         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4561         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4562         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4563         kernel-features.h.
4564         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4565         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4566
4567 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4568
4569         * configure.in: Define the default includes to being none.
4570         * configure: Regenerated.
4571
4572 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4573
4574         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4575         * sysdeps/x86_64/setjmp.S: Likewise.
4576         * sysdeps/i386/bsd-setjmp.S: Likewise.
4577         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4578         * sysdeps/i386/setjmp.S: Likewise.
4579         * sysdeps/i386/__longjmp.S: Likewise.
4580         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4581         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4582
4583         * include/stap-probe.h: New file.
4584         * configure.in: Handle --enable-systemtap.
4585         * configure: Regenerated.
4586         * config.h.in (USE_STAP_PROBE): New #undef.
4587         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4588         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4589         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4590
4591 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4592
4593         [BZ #13717]
4594         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4595         to 2.4.0 where earlier.
4596         * sysdeps/unix/sysv/linux/configure: Regenerated.
4597         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4598         <kernel-features.h>.
4599         [__ASSUME_32BITUIDS]: Make code unconditional.
4600         [!__ASSUME_32BITUIDS]: Remove conditional code.
4601         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4602         <kernel-features.h>.
4603         [__ASSUME_32BITUIDS]: Make code unconditional.
4604         [!__ASSUME_32BITUIDS]: Remove conditional code.
4605         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4606         [__ASSUME_32BITUIDS]: Make code unconditional.
4607         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4608         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4609         <kernel-features.h>.
4610         [__ASSUME_32BITUIDS]: Make code unconditional.
4611         [!__ASSUME_32BITUIDS]: Remove conditional code.
4612         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4613         <kernel-features.h>.
4614         [__ASSUME_32BITUIDS]: Make code unconditional.
4615         [!__ASSUME_32BITUIDS]: Remove conditional code.
4616         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4617         <kernel-features.h>.
4618         [__ASSUME_32BITUIDS]: Make code unconditional.
4619         [!__ASSUME_32BITUIDS]: Remove conditional code.
4620         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4621         <kernel-features.h>.
4622         [__ASSUME_32BITUIDS]: Make code unconditional.
4623         [!__ASSUME_32BITUIDS]: Remove conditional code.
4624         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4625         <kernel-features.h>.
4626         [__ASSUME_32BITUIDS]: Make code unconditional.
4627         [!__ASSUME_32BITUIDS]: Remove conditional code.
4628         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4629         <kernel-features.h>.
4630         [__ASSUME_32BITUIDS]: Make code unconditional.
4631         [!__ASSUME_32BITUIDS]: Remove conditional code.
4632         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4633         <kernel-features.h>.
4634         [__ASSUME_32BITUIDS]: Make code unconditional.
4635         [!__ASSUME_32BITUIDS]: Remove conditional code.
4636         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4637         <kernel-features.h>.
4638         [__ASSUME_32BITUIDS]: Make code unconditional.
4639         [!__ASSUME_32BITUIDS]: Remove conditional code.
4640         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4641         <kernel-features.h>.
4642         [__ASSUME_32BITUIDS]: Make code unconditional.
4643         [!__ASSUME_32BITUIDS]: Remove conditional code.
4644         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4645         <kernel-features.h>.
4646         [__ASSUME_32BITUIDS]: Make code unconditional.
4647         [!__ASSUME_32BITUIDS]: Remove conditional code.
4648         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4649         <kernel-features.h>.
4650         [__NR_setresgid] (__setresgid): Do not declare.
4651         [__ASSUME_32BITUIDS]: Make code unconditional.
4652         [!__ASSUME_32BITUIDS]: Remove conditional code.
4653         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4654         <kernel-features.h>.
4655         [__NR_setresuid] (__setresuid): Do not declare.
4656         [__ASSUME_32BITUIDS]: Make code unconditional.
4657         [!__ASSUME_32BITUIDS]: Remove conditional code.
4658         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4659         <kernel-features.h>.
4660         [__ASSUME_32BITUIDS]: Make code unconditional.
4661         [!__ASSUME_32BITUIDS]: Remove conditional code.
4662         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4663         <kernel-features.h>.
4664         [__ASSUME_32BITUIDS]: Make code unconditional.
4665         [!__ASSUME_32BITUIDS]: Remove conditional code.
4666         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4667         <kernel-features.h>.
4668         [__ASSUME_32BITUIDS]: Make code unconditional.
4669         [!__ASSUME_32BITUIDS]: Remove conditional code.
4670         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4671         <kernel-features.h>.
4672         [__ASSUME_32BITUIDS]: Make code unconditional.
4673         [!__ASSUME_32BITUIDS]: Remove conditional code.
4674         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4675         <kernel-features.h>.
4676         [__ASSUME_32BITUIDS]: Make code unconditional.
4677         [!__ASSUME_32BITUIDS]: Remove conditional code.
4678         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4679         <kernel-features.h>.
4680         [__ASSUME_32BITUIDS]: Make code unconditional.
4681         [!__ASSUME_32BITUIDS]: Remove conditional code.
4682         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4683         <kernel-features.h>.
4684         [__ASSUME_32BITUIDS]: Make code unconditional.
4685         [!__ASSUME_32BITUIDS]: Remove conditional code.
4686         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4687         <kernel-features.h>.
4688         [__ASSUME_32BITUIDS]: Make code unconditional.
4689         [!__ASSUME_32BITUIDS]: Remove conditional code.
4690         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4691         <kernel-features.h>.
4692         [__ASSUME_32BITUIDS]: Make code unconditional.
4693         [!__ASSUME_32BITUIDS]: Remove conditional code.
4694         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4695         <kernel-features.h>.
4696         [__ASSUME_32BITUIDS]: Make code unconditional.
4697         [!__ASSUME_32BITUIDS]: Remove conditional code.
4698         * sysdeps/unix/sysv/linux/kernel-features.h
4699         (__ASSUME_SETRESUID_SYSCALL): Remove.
4700         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4701         (__ASSUME_32BITUIDS): Likewise.
4702         (__ASSUME_LDT_WORKS): Likewise.
4703         (__ASSUME_O_DIRECTORY): Likewise.
4704         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4705         architecture but not kernel version.
4706         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4707         (__ASSUME_MMAP2_SYSCALL): Likewise.
4708         (__ASSUME_STAT64_SYSCALL): Likewise.
4709         (__ASSUME_IPC64): Likewise.
4710         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4711         <kernel-features.h>.
4712         [__ASSUME_32BITUIDS]: Make code unconditional.
4713         [!__ASSUME_32BITUIDS]: Remove conditional code.
4714         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4715         <kernel-features.h>.
4716         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4717         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4718         132096]: Remove conditional code.
4719         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4720         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4721         <kernel-features.h>.
4722         [__ASSUME_32BITUIDS]: Make code unconditional.
4723         [!__ASSUME_32BITUIDS]: Remove conditional code.
4724         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4725         <kernel-features.h>.
4726         [__ASSUME_32BITUIDS]: Make code unconditional.
4727         [!__ASSUME_32BITUIDS]: Remove conditional code.
4728         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4729         <kernel-features.h>.
4730         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4731         unconditional.
4732         (__setresgid): Do not declare.
4733         [__ASSUME_32BITUIDS]: Make code unconditional.
4734         [!__ASSUME_32BITUIDS]: Remove conditional code.
4735         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4736         <kernel-features.h>.
4737         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4738         unconditional.
4739         (__setresuid): Do not declare.
4740         [__ASSUME_32BITUIDS]: Make code unconditional.
4741         [!__ASSUME_32BITUIDS]: Remove conditional code.
4742         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4743         <kernel-features.h>.
4744         [__ASSUME_32BITUIDS]: Make code unconditional.
4745         [!__ASSUME_32BITUIDS]: Remove conditional code.
4746         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4747         <kernel-features.h>.
4748         [__ASSUME_32BITUIDS]: Make code unconditional.
4749         [!__ASSUME_32BITUIDS]: Remove conditional code.
4750
4751 2012-05-25  Richard Henderson  <rth@twiddle.net>
4752
4753         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4754         dl_hwcap to ifunc resolver.
4755         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4756         elf_ifunc_invoke.
4757         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4758         dl_hwcap to ifunc resolver.
4759         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4760
4761 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4762
4763         [BZ #14153]
4764         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4765         for |x| <= 2**-26, not 2**-57.
4766         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4767         exception.
4768
4769 2012-05-24  Jeff Law  <law@redhat.com>
4770
4771         * stdio-common/Makefile (tests): Add bug25.
4772         * stdio-common/bug25.c: New test.
4773
4774 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4775
4776         [BZ #13576]
4777         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4778         multiple of MALLOC_ALIGNMENT in size.
4779         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4780
4781 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4782
4783         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4784         Require >= 256.
4785         (FILENAME_MAX): Use macro-int-constant.
4786         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4787         (_IOFBF): Use macro-int-constant.
4788         (_IOLBF): Likewise.
4789         (_IONBF): Likewise.
4790         (SEEK_CUR): Likewise.
4791         (SEEK_END): Likewise.
4792         (SEEK_SET): Likewise.
4793         (TMP_MAX): Likewise.
4794         (EOF): Use macro-int-constant.  Require < 0.
4795         (NULL): Use macro-constant.  Require == 0.
4796         (stdin): Require type to be FILE *.
4797         (stdout): Likewise.
4798         (stderr): Likewise.
4799         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4800         macro-int-constant.
4801         (EXIT_SUCCESS): Likewise.
4802         (NULL): Use macro-constant.  Require == 0.
4803         (RAND_MAX): Use macro-int-constant.
4804         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4805         [C99-based standards] (strtof): Require function.
4806         [C99-based standards] (strtold): Likewise.
4807         [C99-based standards] (strtoll): Likewise.
4808         [C99-based standards] (strtoull): Likewise.
4809         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4810         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4811         [ISO || ISO99 || ISO11] (math.h): Likewise.
4812         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4813         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4814         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4815
4816 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4817
4818         [BZ #14132]
4819         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4820         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4821         * intl/dgettext.c (DCGETTEXT): Likewise.
4822         * intl/gettext.c (DCGETTEXT): Likewise.
4823         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4824         * posix/regex_internal.h (gettext): Likewise.
4825         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4826         Remove declaration.
4827         * include/argz.h (__argz_count_internal)
4828         (__argz_stringify_internal): Remove declaration.
4829         (__argz_count, __argz_stringify): Declare hidden proto.
4830         * intl/dcgettext.c: Remove use of INTDEF.
4831         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4832         * string/argz-stringify.c: Likewise.
4833         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4834         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4835         Declare hidden proto.
4836         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4837         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4838         Declare hidden proto.
4839         * include/stdio.h (__asprintf_internal): Don't declare.
4840         (__asprintf): Don't define as macro.  Declare hidden proto.
4841         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4842         (__fsetlocking): Declare hidden proto.
4843         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4844         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4845         hidden proto.
4846         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4847         (_IO_setlinebuf): Remove use of INTUSE.
4848         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4849         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4850         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4851         Remove declaration.
4852         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4853         (_IO_do_flush): Remove use of INTUSE.
4854         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4855         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4856         (_IO_adjust_column, _IO_least_wmarker)
4857         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4858         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4859         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4860         (_IO_default_doallocate, _IO_wdefault_doallocate)
4861         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4862         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4863         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4864         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4865         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4866         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4867         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4868         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4869         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4870         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4871         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4872         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4873         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4874         proto.
4875         (_IO_flush_all_internal, _IO_adjust_column_internal)
4876         (_IO_default_uflow_internal, _IO_default_finish_internal)
4877         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4878         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4879         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4880         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4881         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4882         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4883         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4884         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4885         (_IO_file_close_internal, _IO_file_close_it_internal)
4886         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4887         (_IO_file_init_internal, _IO_file_attach_internal)
4888         (_IO_file_fopen_internal, _IO_file_read_internal)
4889         (_IO_file_sync_internal, _IO_file_seek_internal)
4890         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4891         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4892         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4893         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4894         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4895         (_IO_list_all_internal, _IO_link_in_internal)
4896         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4897         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4898         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4899         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4900         (_IO_do_write_internal, _IO_padn_internal)
4901         (_IO_getline_info_internal, _IO_getline_internal)
4902         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4903         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4904         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4905         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4906         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4907         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4908         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4909         with libc_hidden_ver, remove use of INTUSE.
4910         * libio/genops.c: Likewise.
4911         * libio/freopen.c: Likewise.
4912         * libio/freopen64.c: Likewise.
4913         * libio/iofclose.c: Likewise.
4914         * libio/iofdopen.c: Likewise.
4915         * libio/iofflush.c: Likewise.
4916         * libio/iofflush_u.c: Likewise.
4917         * libio/iofgets.c: Likewise.
4918         * libio/iofgets_u.c: Likewise.
4919         * libio/iofopen.c: Likewise.
4920         * libio/iofopncook.c: Likewise.
4921         * libio/iofread.c: Likewise.
4922         * libio/iofread_u.c: Likewise.
4923         * libio/ioftell.c: Likewise.
4924         * libio/iofwrite.c: Likewise.
4925         * libio/iogetline.c: Likewise.
4926         * libio/iogets.c: Likewise.
4927         * libio/iogetwline.c: Likewise.
4928         * libio/iopadn.c: Likewise.
4929         * libio/iopopen.c: Likewise.
4930         * libio/ioseekoff.c: Likewise.
4931         * libio/ioseekpos.c: Likewise.
4932         * libio/iosetbuffer.c: Likewise.
4933         * libio/iosetvbuf.c: Likewise.
4934         * libio/ioungetc.c: Likewise.
4935         * libio/ioungetwc.c: Likewise.
4936         * libio/iovdprintf.c: Likewise.
4937         * libio/iovsprintf.c: Likewise.
4938         * libio/iovsscanf.c: Likewise.
4939         * libio/memstream.c: Likewise.
4940         * libio/obprintf.c: Likewise.
4941         * libio/oldfileops.c: Likewise.
4942         * libio/oldiofclose.c: Likewise.
4943         * libio/oldiofdopen.c: Likewise.
4944         * libio/oldiofopen.c: Likewise.
4945         * libio/oldiopopen.c: Likewise.
4946         * libio/oldstdfiles.c: Likewise.
4947         * libio/putc.c: Likewise.
4948         * libio/setbuf.c: Likewise.
4949         * libio/setlinebuf.c: Likewise.
4950         * libio/stdfiles.c: Likewise.
4951         * libio/strops.c: Likewise.
4952         * libio/vasprintf.c: Likewise.
4953         * libio/vscanf.c: Likewise.
4954         * libio/vsnprintf.c: Likewise.
4955         * libio/vswprintf.c: Likewise.
4956         * libio/wfiledoalloc.c: Likewise.
4957         * libio/wfileops.c: Likewise.
4958         * libio/wgenops.c: Likewise.
4959         * libio/wmemstream.c: Likewise.
4960         * libio/wstrops.c: Likewise.
4961         * libio/__fpurge.c: Likewise.
4962         * libio/__fsetlocking.c: Likewise.
4963         * assert/assert.c: Likewise.
4964         * debug/fgets_chk.c: Likewise.
4965         * debug/fgets_u_chk.c: Likewise.
4966         * debug/fread_chk.c: Likewise.
4967         * debug/fread_u_chk.c: Likewise.
4968         * debug/gets_chk.c: Likewise.
4969         * debug/obprintf_chk.c: Likewise.
4970         * debug/vasprintf_chk.c: Likewise.
4971         * debug/vdprintf_chk.c: Likewise.
4972         * debug/vsnprintf_chk.c: Likewise.
4973         * debug/vsprintf_chk.c: Likewise.
4974         * malloc/mtrace.c: Likewise.
4975         * misc/error.c: Likewise.
4976         * misc/syslog.c: Likewise.
4977         * stdio-common/asprintf.c: Likewise.
4978         * stdio-common/fxprintf.c: Likewise.
4979         * stdio-common/getw.c: Likewise.
4980         * stdio-common/isoc99_fscanf.c: Likewise.
4981         * stdio-common/isoc99_scanf.c: Likewise.
4982         * stdio-common/isoc99_vfscanf.c: Likewise.
4983         * stdio-common/isoc99_vscanf.c: Likewise.
4984         * stdio-common/isoc99_vsscanf.c: Likewise.
4985         * stdio-common/printf-prs.c: Likewise.
4986         * stdio-common/printf_fp.c: Likewise.
4987         * stdio-common/printf_fphex.c: Likewise.
4988         * stdio-common/printf_size.c: Likewise.
4989         * stdio-common/putw.c: Likewise.
4990         * stdio-common/scanf.c: Likewise.
4991         * stdio-common/sprintf.c: Likewise.
4992         * stdio-common/tmpfile.c: Likewise.
4993         * stdio-common/vfprintf.c: Likewise.
4994         * stdio-common/vfscanf.c: Likewise.
4995         * stdlib/strfmon_l.c: Likewise.
4996         * sunrpc/openchild.c: Likewise.
4997         * sunrpc/xdr_stdio.c: Likewise.
4998         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4999         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5000
5001 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5002
5003         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5004
5005         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5006         in the third column, to generate for the shared library an IFUNC
5007         that uses _dl_vdso_vsym.
5008         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5009         * Makeconfig (object-suffixes-noshared): New variable.
5010
5011         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5012         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5013         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5014         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5015
5016         [BZ #14132]
5017         * include/sys/time.h (__gettimeofday): Remove macro.
5018         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5019         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5020         Remove INTDEF.
5021         (__gettimeofday): Add libc_hidden_def.
5022         (gettimeofday): Add libc_hidden_weak.
5023         * sysdeps/mach/gettimeofday.c: Likewise.
5024         * sysdeps/posix/gettimeofday.c: Likewise.
5025         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5026         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5027         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5028         (__gettimeofday_internal): Remove strong_alias.
5029         (__gettimeofday): Add libc_hidden_def.
5030         (gettimeofday): Add libc_hidden_weak.
5031         * sysdeps/unix/syscalls.list (gettimeofday):
5032         Remove __gettimeofday_internal alias.
5033
5034 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5035             H.J. Lu  <hongjiu.lu@intel.com>
5036
5037         [BZ #12495]
5038         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5039         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5040         (largebin_index_32_big): New.
5041         (largebin_index): Use it for 16-byte alignment.
5042         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5043         correction with front_misalign.
5044
5045 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5046
5047         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5048         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5049         Likewise.
5050         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5051         Likewise.
5052         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5053         Likewise.
5054         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5055         Likewise.
5056         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5057         Likewise.
5058         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5059         Likewise.
5060         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5061         Likewise.
5062         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5063         Likewise.
5064         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5065         Likewise.
5066         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5067         Likewise.
5068         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5069         Likewise.
5070         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5071         Likewise.
5072
5073         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5074         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5075
5076 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5077
5078         [BZ #10846]
5079         [BZ #14036]
5080         * math/libm-test.inc (exp_test): Add test from bug 14036.
5081         (pow_test): Add test from bug 10846.
5082
5083         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5084         and other flags.
5085         (special_function): Do not include flags in test name.
5086         (parse_args): Likewise.
5087         * sysdeps/i386/fpu/libm-test-ulps: Update.
5088         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5089         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5090         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5091         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5092
5093         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5094         exceptions.
5095         * math/libm-test.inc ("Philosophy"): Update comment about
5096         exception testing.
5097         (UNDERFLOW_EXCEPTION): New macro.
5098         (UNDERFLOW_EXCEPTION_OK): Likewise.
5099         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5100         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5101         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5102         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5103         (INVALID_EXCEPTION_OK): Update value.
5104         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5105         (OVERFLOW_EXCEPTION_OK): Likewise.
5106         (IGNORE_ZERO_INF_SIGN): Likewise.
5107         (test_exceptions): Handle underflow exceptions.
5108         (acos_test): Update for underflow exception expectations.
5109         (cexp_test): Likewise.
5110         (clog_test): Likewise.
5111         (clog10_test): Likewise.
5112         (csqrt_test): Likewise.
5113         (ctan_test): Likewise.
5114         (ctanh_test): Likewise.
5115         (exp_test): Likewise.
5116         (exp10_test): Likewise.
5117         (exp2_test): Likewise.
5118         (expm1_test): Likewise.
5119         (fma_test): Likewise.
5120         (j0_test): Likewise.
5121         (jn_test): Likewise.
5122         (nexttoward_test): Likewise.
5123         (pow_test): Likewise.
5124         (scalbn_test): Likewise.
5125         (scalbln_test): Likewise.
5126         (tan_test): Likewise.
5127         (y1_test): Likewise.
5128         * sysdeps/i386/fpu/libm-test-ulps: Update.
5129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5130
5131 2012-05-23  David S. Miller  <davem@davemloft.net>
5132
5133         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5134         (__libc_sigaction): Remove unused local variables.
5135
5136 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5137
5138         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5139
5140 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5141
5142         mktime: avoid signed integer overflow
5143         * time/mktime.c (__mktime_internal): Do not mishandle the case
5144         where diff == INT_MIN.
5145
5146         mktime: simplify computation of average
5147         * time/mktime.c (ranged_convert): Use new time_t_avg function
5148         instead of rolling our own (probably-slower) code.
5149
5150         mktime: do not assume signed right shift propagates sign bit
5151         * time/mktime.c (isdst_differ): New static function.
5152         (__mktime_internal): No need to normalize tm_isdst now.
5153         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5154         tm_isdst values.
5155
5156         mktime: merge another wrapv change from gnulib
5157         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5158         from some compilers.
5159
5160         mktime: remove incorrect attempt at unusual arithmetics
5161         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5162         The code didn't really work on such machines anyway.
5163         (TYPE_MINIMUM): Assume two's complement.
5164         (twos_complement_arithmetic): Verify that long_int and time_t
5165         are two's complement (or unsigned, in the latter case).
5166
5167         mktime: check signed shifts on long_int and time_t, too
5168         * time/mktime.c (SHR): Check that shifts work as desired
5169         on the types long_int and time_t too, as SHR is used on
5170         such types.
5171
5172         mktime: do not assume 'long' is wide enough
5173         * time/mktime.c (verify): Move decl up.
5174         (long_int): New type.
5175         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5176         to remove assumption in the code that 'long' is wide enough to
5177         store year values.  This assumption is not true on x32 and on
5178         some non-glibc platforms.
5179
5180         mktime: merge wrapv change from gnulib
5181         * time/mktime.c (WRAPV): New macro.
5182         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5183         (guess_time_tm, __mktime_internal): Do not assume that signed
5184         integer overflow wraps around; modern compilers generate code
5185         where this assumption is no longer valid.
5186
5187 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5188
5189         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5190         Replace "jmp L(pseudo_end)" with "ret".
5191         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5192         Likewise.
5193
5194 2012-05-23  Andreas Jaeger  <aj@suse.de>
5195
5196         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5197         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5198
5199 2012-05-23  Andreas Jaeger  <aj@suse.de>
5200             Maximilian Attems  <max@stro.at>
5201
5202         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5203         New macros.
5204
5205 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5206
5207         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5208         code so that pseudo_end is just ret and the stack pointer is
5209         correct also for static library in error case.
5210
5211 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5212
5213         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5214         move to syscalls.list.
5215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5219
5220         * manual/install.texi (Running make install): Do not mention Linux
5221         kernel version for which pt_chown is not needed.
5222         (Linux): Do not mention problems with nscd with 2.0 kernels.
5223         * INSTALL: Regenerated.
5224
5225 2012-05-23  Andreas Jaeger  <aj@suse.de>
5226
5227         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5228         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5229         macro.
5230         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5231         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5232         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5233         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5234         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5235         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5236         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5237         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5238         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5239         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5240         * sysdeps/unix/sysv/linux/bits/in.h
5241         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5242
5243 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5244
5245         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5246         (PREPARE_VERSION): Just use assert instead, it will be elided
5247         under [NDEBUG] anyway.
5248
5249 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5250
5251         * sysdeps/unix/sysv/linux/Makefile: Include
5252         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5253         (sysdep_routines): Remove sysctl.
5254         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5255         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5256         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5257         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5258         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5259
5260 2012-05-22  Andreas Jaeger  <aj@suse.de>
5261
5262         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5263         that pseudo_end is just ret and the stack pointer is correct also
5264         for static library in error case.
5265
5266 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5267
5268         [BZ #14122]
5269         * nss/nsswitch.c (defconfig_entries): New variable.
5270         (__nss_database_lookup): Don't leak defconfig entries.
5271         (nss_parse_service_list): Don't leak on error paths.
5272         (free_database_entries): New function.
5273         (free_defconfig): New function.
5274         (free_mem): Move common code to free_database_entries.
5275
5276 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5277
5278         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5279         Add arch_prctl.
5280         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5281
5282         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5283         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5284         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5285         New macro.
5286         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5287         (INTERNAL_SYSCALL_TYPES): Likewise.
5288         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5289         (LOAD_REGS_TYPES_[1-6]): Likewise.
5290         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5291         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5292
5293 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5294
5295         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5296         copysignl for GLIBC_2_0.
5297         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5298         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5299         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5300         logbl for GLIBC_2_0.
5301         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5302         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5303
5304 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5305
5306         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5307         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5308
5309         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5310         Use "neg %eax".
5311
5312         * time/mktime.c: Update copyright years.
5313
5314 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5315
5316         mktime: merge comment-quoting-style change from gnulib
5317         * time/mktime.c: Quote 'like this' in comments.
5318         The GNU coding standards suggest that we no longer quote `like this',
5319         as "`" and "'" are typically rendered asymmetrically nowadays.
5320         The typical gnulib style is to quote 'like this' when quoting
5321         code, and "like this" when quoting English.
5322
5323         * time/mktime.c (compile-command): Add "-I.".
5324
5325         mktime: merge mktime-internal.h change from gnulib
5326         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5327
5328         mktime: merge time_r change from gnulib
5329         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5330
5331         mktime: merge DEBUG change from gnulib
5332         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5333         case system <time.h> has a #define.
5334
5335         mktime: merge <sys/types.h> change from gnulib
5336         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5337         since <time.t> is now guaranteed to define time_t.
5338
5339         mktime: merge HAVE_CONFIG_H change from gnulib
5340         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5341
5342 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5343
5344         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5345         Use "neg %eax".
5346
5347         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5348         __rlim_t cast.
5349         (struct rusage): Use anonymous union to pad each field to
5350         __syscall_slong_t.
5351
5352 2012-05-21  David S. Miller  <davem@davemloft.net>
5353
5354         * Makefules (o-iterator): Remove .s cases.
5355         (compile-command.s): Delete.
5356         (COMPILE.s): Delete.
5357         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5358
5359 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5360
5361         * configure.in (libc_cv_predef_stack_protector): Only consider
5362         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5363         * configure: Regenerated.
5364
5365 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5366
5367         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5368         New macro.  Use R*LP on int and pointer.
5369         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5370         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5371         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5372         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5373
5374         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5375         [__WORDSIZE_TIME64_COMPAT32] instead of
5376         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5377         (struct utmp): Likewise.
5378         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5379         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5380         Renamed to ...
5381         (__WORDSIZE_TIME64_COMPAT32): This.
5382         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5383         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5384         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5385         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5386         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5387         (__WORDSIZE_TIME64_COMPAT32): New macro.
5388
5389 2012-05-21  Andreas Jaeger  <aj@suse.de>
5390
5391         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5392         only if [SHARED]. Add prototype for __wcschr_ia32.
5393
5394 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5395
5396         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5397         of %rbp unmolested in the jmp_buf while mangling the low bits.
5398         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5399         unmolested high bits of %rbp while demangling the low bits.
5400         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5401
5402 2012-05-21  Andreas Jaeger  <aj@suse.de>
5403
5404         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5405         * sunrpc/svc_simple.c: Use it for registerrpc.
5406         * sunrpc/xcrypt.c: Use it for passwd2des.
5407
5408         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5409
5410 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5411
5412         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5413         Don't define if [__SYSCALL_WORDSIZE != 32].
5414         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5415         New macro.
5416
5417 2012-05-21  Bruno Haible  <bruno@clisp.org>
5418             Andreas Jaeger  <aj@suse.de>
5419
5420         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5421         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5422         inptr and inend for must_buffer_ch.
5423         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5424         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5425         * stdio-common/Makefile (tests): Remove bug15.
5426         (bug15-ENV): Remove macro.
5427         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5428         anymore.
5429
5430 2012-05-19  Andreas Jaeger  <aj@suse.de>
5431             Roland McGrath  <roland@hack.frob.com>
5432
5433         * manual/contrib.texi: Completely rewritten. It contains now an
5434         alphabetical list of contributors and their contributions.
5435
5436 2012-05-21  Richard Henderson  <rth@twiddle.net>
5437
5438         * misc/getauxval.c (__getauxval): Use unsigned long int.
5439         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5440         (getauxval): Use unsigned long int.
5441
5442 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5443
5444         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5445
5446 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5447
5448         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5449         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5450         __alignof__ (long double).
5451
5452 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5453
5454         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5455
5456 2012-05-20  Richard Henderson  <rth@twiddle.net>
5457
5458         * misc/getauxval.c: New file.
5459         * misc/sys/auxv.h: New file.
5460         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5461         (routines): Add getauxval.
5462         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5463         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5464         * elf/dl-sysdep.c (_dl_auxv): Remove.
5465         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5466         * elf/dl-support.c (_dl_auxv): New variable.
5467         (_dl_aux_init): Initialize it.
5468         * manual/startup.texi (Auxiliary Vector): New node.
5469         * sysdeps/generic/bits/hwcap.h: New file.
5470         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5471         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5472         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5473         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5474         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5475         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5477         Update.
5478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5479         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5480         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5481         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5482         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5483         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5484         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5485         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5486
5487 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5488
5489         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5490
5491 2012-05-19  David S. Miller  <davem@davemloft.net>
5492
5493         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5494
5495 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5496
5497         [BZ #14123]
5498         * math/s_ccosh.c: Include <float.h>
5499         (__ccosh): Avoid internal overflow calculating sinh and cosh
5500         values before multiplying by sin and cos values.
5501         * math/s_ccoshf.c: Likewise.
5502         * math/s_ccoshl.c: Likewise.
5503         * math/s_csin.c: Likewise.
5504         * math/s_csinf.c: Likewise.
5505         * math/s_csinl.c: Likewise.
5506         * math/s_csinh.c: Likewise.
5507         * math/s_csinhf.c: Likewise.
5508         * math/s_csinhl.c: Likewise.
5509         * math/libm-test.inc (ccos_test): Add more tests.
5510         (ccosh_test): Likewise.
5511         (csin_test): Likewise.
5512         (csinh_test): Likewise.
5513         * sysdeps/i386/fpu/libm-test-ulps: Update.
5514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5515
5516 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5517
5518         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5519         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5520
5521         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5522
5523 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5524
5525         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5526         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5527         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5528         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5529         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5530         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5531         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5532         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5533         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5534         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5535         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5536         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5537         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5538         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5539         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5540         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5541         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5542         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5543         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5544         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5545         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5546         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5547         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5548         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5549         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5550         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5551         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5552         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5553         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5554         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5555         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5556
5557 2012-05-18  Andreas Jaeger  <aj@suse.de>
5558
5559         * csu/.gitignore: Delete.
5560
5561 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5562
5563         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5564         (timex): Use __syscall_slong_t.
5565
5566 2012-05-18  Andreas Jaeger  <aj@suse.de>
5567             Carlos O'Donell  <carlos_odonell@mentor.com>
5568
5569         * manual/install.texi (Configuring and compiling): Update
5570         description about files modified in the source directory.
5571         * INSTALL: Regenerated.
5572
5573 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5574
5575         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5576         value.  Use "or" to set return value to -1.
5577         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5578         negate return value.
5579
5580 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5581
5582         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5583         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5584         failure if the compiler has Graphite support disabled.
5585         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5586         Likewise.
5587         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5588         CFLAGS-memmove.c): Likewise.
5589         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5590         Likewise.
5591
5592 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5593
5594         * sysdeps/x86_64/x32/_itoa.h: New file.
5595
5596         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5597         getdents system call only if kernel and user dirents have the
5598         same d_ino and d_off.
5599
5600         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5601         LLONG_MAX != LONG_MAX.
5602         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5603         (_fitoa_word): Likewise.
5604
5605         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5606         years.
5607         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5608         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5609         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5610
5611         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5612         include <bits/wordsize.h>.  Check __x86_64__ instead of
5613         __WORDSIZE.
5614         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5615         if __x86_64__ is defined.  Use anonymous union on fpstate.
5616
5617         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5618         anonymous union.
5619
5620 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5621
5622         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5623         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5624         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5625         Refer to _rtld_local_ro instead of _rtld_global_ro.
5626         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5627         Likewise.
5628         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5629         Likewise.
5630         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5631         Likewise.
5632         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5633         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5634         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5635
5636         * sysdeps/powerpc/powerpc32/dl-machine.c
5637         (__elf_machine_runtime_setup) [PROF]: Don't reference
5638         _dl_prof_resolve.
5639
5640 2012-05-18  Andreas Jaeger  <aj@suse.de>
5641
5642         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5643         function only available for GCCs before 3.4 since GCC 3.4
5644         introduced a builtin.
5645         (lrint): Likewise.
5646         (llrintf): Likewise.
5647         (llrint): Likewise.
5648         (fmaxf): Likewise.
5649         (fmax): Likewise.
5650         (fminf): Likewise.
5651         (fmin): Likewise.
5652         (rint): Likewise.
5653         (rintf): Likewise.
5654         (nearbyint): Likewise.
5655         (nearbyintf): Likewise.
5656         (ceil): Likewise.
5657         (ceilf): Likewise.
5658         (floor): Likewise.
5659         (floorf): Likewise.
5660
5661 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5662
5663         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5664         on both fields and cast pointer to __syscall_ulong_t.
5665
5666         * bits/types.h (__fsword_t): New type.
5667         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5668         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5669         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5670         (__FSWORD_T_TYPE): Likewise.
5671         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5672         (__FSWORD_T_TYPE): Likewise.
5673         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5674         (__FSWORD_T_TYPE): Likewise.
5675         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5676         (__FSWORD_T_TYPE): Likewise.
5677         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5678         __SWORD_TYPE with __fsword_t.
5679         (statfs64): Likewise.
5680
5681 2012-05-17  David S. Miller  <davem@davemloft.net>
5682
5683         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5684
5685 2012-05-17  Andreas Jaeger  <aj@suse.de>
5686
5687         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5688         warning.
5689
5690 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5691
5692         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5693
5694 2012-05-17  Andreas Jaeger  <aj@suse.de>
5695
5696         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5697         when it is used.
5698
5699 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5700
5701         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5702
5703 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5704
5705         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5706         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5707
5708 2012-05-17  Andreas Jaeger  <aj@suse.de>
5709             Carlos O'Donell  <carlos_odonell@mentor.com>
5710
5711         [BZ #14059]
5712         * sysdeps/x86_64/multiarch/init-arch.h
5713         (bit_YMM_Usable): Rename to...
5714         (bit_AVX_Usable): ... this.
5715         (bit_FMA4_Usable): New macro.
5716         (bit_XMM_state): New macro.
5717         (bit_YMM_state): New macro.
5718         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5719         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5720         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5721         (CPUID_OSXSAVE): New macro.
5722         (CPUID_AVX): New macro.
5723         (CPUID_FMA4): New macro.
5724         (index_YMM_Usable): Rename to...
5725         (index_AVX_Usable): ... this.
5726         (HAS_AVX): Use HAS_ARCH_FEATURE.
5727         (HAS_FMA4): Likewise.
5728         (HAS_YMM_USABLE): Remove.
5729         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5730         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5731         are present.
5732         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5733         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5734         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5735         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5736         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5737
5738 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5739
5740         * math/libm-test.c: Support platforms without multiple rounding modes.
5741         * math/bug-nextafter.c: Support platforms without FP exceptions.
5742         * math/bug-nexttoward.c: Likewise.
5743         * math/test-fenv.c: Likewise.
5744         * math/test-misc.c: Likewise.
5745         * stdlib/bug-getcontext.c: Likewise.
5746
5747 2012-05-17  Andreas Jaeger  <aj@suse.de>
5748
5749         * manual/examples/search.c (critter_cmp): Change signature to
5750         avoid warnings.
5751         * manual/string.texi (Collation Functions): Likewise.
5752
5753 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5754
5755         * bits/types.h: Fold copyright years.
5756         * bits/typesizes.h: Likewise.
5757         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5758         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5759         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5760         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5761         * time/time.h: Likewise.
5762
5763 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5764
5765         [BZ #208]
5766         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5767         in instead of returning them.  Return void.
5768         (__libc_mallinfo): Accumulate over all arenas.
5769         (__malloc_stats): Adjust for change in int_mallinfo interface.
5770
5771 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5772
5773         [BZ #10375]
5774         * configure.in (NM): Add AC_CHECK_TOOL for it.
5775         (libc_extra_cflags): New substituted variable.
5776         Check for -fstack-protector being used implicitly.
5777         * configure: Regenerated.
5778         * config.make.in (config-extra-cflags): New variable,
5779         gets @libc_extra_cflags@.
5780         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5781
5782         [BZ #10375]
5783         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5784         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5785         * configure: Regenerated.
5786         * config.make.in (CPPUNDEFS): New substituted variable.
5787         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5788         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5789         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5790
5791 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5792
5793         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5794         (mq_attr): Use __syscall_slong_t.
5795
5796 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5797
5798         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5799         Check __x86_64__ instead of __WORDSIZE.
5800         (_STAT_VER_LINUX): Likewise.
5801         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5802         __syscall_ulong_t and __syscall_slong_t.
5803         (stat64): Likewise.
5804
5805 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5806
5807         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5808
5809 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5810
5811         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5812
5813 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5814
5815         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5816         __syscall_ulong_t.
5817
5818         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5819         include <bits/wordsize.h>.  Check __x86_64__ instead of
5820         __WORDSIZE.
5821         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5822         defined.
5823         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5824
5825         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5826         include <bits/wordsize.h>.  Check __x86_64__ instead of
5827         __WORDSIZE.
5828         (user_regs_struct): Use "__extension__ unsigned long long"
5829         instead of "unsigned long" if __x86_64__ is defined.
5830         (user): Likewise.  Pad after pointer field if __ILP32__ is
5831         defined.
5832
5833 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5834
5835         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5836         versions 5 to 9.
5837         * configure: Regenerated.
5838         * manual/install.texi (texinfo): Increase version requirement to
5839         4.5 or later.
5840         * INSTALL: Regenerated.
5841
5842         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5843
5844 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5845
5846         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5847
5848         * sysdeps/x86_64/x32/ffs.c: New file.
5849
5850         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5851         __syscall_ulong_t.
5852         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5853         defined.  Use __syscall_ulong_t.
5854         (shminfo): Use __syscall_ulong_t.
5855         (shm_info): Likewise.
5856
5857         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5858         __syscall_ulong_t.
5859
5860         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5861         <bits/wordsize.h>.
5862         (msgqnum_t): Use __syscall_ulong_t.
5863         (msglen_t): Likewise.
5864         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5865         __syscall_ulong_t.
5866
5867         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5868         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5869
5870         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5871
5872         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5873         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5874
5875         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5876         __syscall_slong_t.
5877
5878         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5879         include <bits/wordsize.h>.  Check __x86_64__ instead of
5880         __WORDSIZE.
5881
5882         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5883         "unsigned long long int" if __x86_64__ is defined.
5884         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5885
5886         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5887         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5888         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5889
5890         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5891         <stdint.h>.
5892         (GET_PC): Cast to uintptr_t first.
5893         (GET_FRAME): Likewise.
5894         (GET_STACK): Likewise.
5895
5896         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5897         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5898         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5899         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5900         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5901         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5902         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5903         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5904         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5905         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5906         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5907         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5908         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5909         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5910         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5911         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5912         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5913         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5914         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5915         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5916         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5917         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5918         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5919         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5920         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5921         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5922         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5923         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5924         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5925
5926 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5927
5928         * Makerules (+depfiles): Also collect depfiles from .oS in
5929         $(extra-objs).
5930         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5931         .oS, $(libnldbl-routines)).
5932
5933         * Makerules (native-compile-mkdep-flags): Define.
5934         * sunrpc/Makefile (extra-objs): Add $(addprefix
5935         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5936         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5937         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5938         calling $(make-target-directory).
5939
5940 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5941
5942         * bits/types.h (__snseconds_t): Removed.
5943         * time/time.h (struct timespec): Replace __snseconds_t with
5944         __syscall_slong_t.
5945         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5946         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5947         Likewise.
5948         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5949         (__SNSECONDS_T_TYPE): Likewise.
5950         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5951         (__SNSECONDS_T_TYPE): Likewise.
5952         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5953         (__SNSECONDS_T_TYPE): Likewise.
5954
5955 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5956
5957         * sysdeps/mach/hurd/bits/typesizes.h
5958         (__SYSCALL_SLONG_TYPE): New macro.
5959         (__SYSCALL_ULONG_TYPE): Likewise.
5960
5961 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5962
5963         * bits/types.h (__syscall_slong_t): New type.
5964         (__syscall_ulong_t): Likewise.
5965
5966         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5967         (__SYSCALL_ULONG_TYPE): Likewise.
5968         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5969         (__SYSCALL_SLONG_TYPE): Likewise.
5970         (__SYSCALL_ULONG_TYPE): Likewise.
5971         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5972         (__SYSCALL_SLONG_TYPE): Likewise.
5973         (__SYSCALL_ULONG_TYPE): Likewise.
5974         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5975         (__SYSCALL_SLONG_TYPE): Likewise.
5976         (__SYSCALL_ULONG_TYPE): Likewise.
5977
5978 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5979
5980         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5981         Add sigaltstack-offsets.sym.
5982         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5983         <sigaltstack-offsets.h>.
5984         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5985         longjmp_msg pointer.
5986         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5987         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5988         signal stack.
5989         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5990
5991 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5992
5993         * elf/stackguard-macros.h: Remove file.
5994         * sysdeps/generic/stackguard-macros.h: New file.
5995         * sysdeps/i386/stackguard-macros.h: Likewise.
5996         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5997         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5998         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5999         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6000         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6001         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6002         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6003         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6004         <elf/stackguard-macros.h>.
6005
6006         [BZ #14109]
6007         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6008         __aligned__ in attribute.
6009         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6010         (gregset_t): Likewise.
6011
6012 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6013
6014         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6015         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6016         * sysdeps/x86_64/x32/Implies-after: New file.
6017
6018 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6019
6020         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6021         and access return value for _dl_profile_fixup.  Use R10_LP to
6022         load frame size.
6023
6024 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6025
6026         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6027
6028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6029
6030         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6031         * sysdeps/x86_64/x32/sysdep.h: New file.
6032
6033 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6034
6035         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6036         * sysdeps/x86_64/setjmp.S: Likewise.
6037
6038 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6039
6040         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6041         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6042         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6043         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6044         remove unused global constant.
6045
6046 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6047
6048         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6049         include of <not-cancel.h>.
6050
6051 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6052
6053         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6054
6055 2012-05-15  Jeff Law  <law@redhat.com>
6056             Andreas Jaeger  <aj@suse.de>
6057
6058         [BZ #13594]
6059         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6060         out from...
6061         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6062         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6063         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6064         code changing __hst_map_handle.map.
6065
6066 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6067
6068         * configure.in (sysnames): Look for Implies-before and Implies-after
6069         files.
6070         * configure: Regenerated.
6071
6072 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6073
6074         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6075         8-byte data alignment with LP_SIZE alignment.
6076
6077 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6078
6079         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6080         into R10_LP.
6081
6082 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6083
6084         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6085
6086 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6087
6088         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6089         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6090         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6091         Likewise.
6092         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6093
6094 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6095
6096         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6097         (stackinfo_sub_sp): Likewise.
6098
6099 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6100
6101         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6102         RAX_LP.
6103
6104 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6105
6106         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6107         into R*_LP.
6108
6109 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6110
6111         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6112         sizes into R*_LP.
6113
6114 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6115
6116         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6117
6118 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6119
6120         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6121         into R11_LP and load __x86_64_shared_cache_size_half into
6122         R8_LP.
6123
6124 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6125
6126         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6127         R8_LP.
6128
6129 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6130
6131         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6132         logb for POWER7.
6133         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6134         logbf for POWER7.
6135         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6136         logbl for POWER7.
6137         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6138         powerpc32/power7/fpu/s_logb.c via #include.
6139         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6140         powerpc32/power7/fpu/s_logbf.c via #include.
6141         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6142         powerpc32/power7/fpu/s_logbl.c via #include.
6143
6144 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6145
6146         * README.libm: Remove file.
6147
6148 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6149
6150         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6151         count for x32.  Use R*_LP and omit operand-size suffix.
6152
6153 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6154
6155         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6156         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6157         * sysdeps/x86_64/x32/shlib-versions: New file.
6158
6159 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6160
6161         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6162         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6163         Use _dl_fatal_printf instead.
6164
6165 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6166
6167         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6168         set if not set by the user.  Do not allow for being unset.
6169         * sysdeps/unix/sysv/linux/configure: Regenerated.
6170
6171 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6172
6173         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6174         the `q' suffix from lea and replace .quad with ASM_ADDR.
6175
6176 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6177
6178         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6179         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6180         instead of $17.
6181         (PTR_DEMANGLE): Likewise.
6182
6183 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6184
6185         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6186         (LP_OP): Likewise.
6187         (ASM_ADDR): Likewise.
6188         (RAX_LP): Likewise.
6189         (RBP_LP): Likewise.
6190         (RBX_LP): Likewise.
6191         (RCX_LP): Likewise.
6192         (RDI_LP): Likewise.
6193         (RSI_LP): Likewise.
6194         (RSP_LP): Likewise.
6195         (R8_LP): Likewise.
6196         (R9_LP): Likewise.
6197         (R10_LP): Likewise.
6198         (R10_LP): Likewise.
6199         (R11_LP): Likewise.
6200         (R12_LP): Likewise.
6201         (R13_LP): Likewise.
6202         (R14_LP): Likewise.
6203         (R15_LP): Likewise.
6204
6205 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6206
6207         * sysdeps/x86_64/x32/dl-machine.h: New file.
6208
6209 2012-05-14  Andreas Jaeger  <aj@suse.de>
6210
6211         * manual/Makefile (subdir): Remove export of subdir.
6212         (all): Remove target.
6213         (.PHONY): Remove all from list.
6214         (mkinstalldirs): Remove.
6215         (.PHONY): Remove installdirs from list.
6216         ($(inst_infodir)/libc.info): Use make-target-directory.
6217         (installdirs): Remove.
6218         (subdir_%): Remove.
6219         (glibc-targets): Remove.
6220         (lib): Remove.
6221         (stubs): Remove.
6222         ($(objpfx)stubs ../po/manual.pot): Remove.
6223         ($(objpfx)stamp%): Remove.
6224         (make-target-directory): Remove.
6225         (subdir_install): Remove.
6226         (routines): Remove.
6227         (aux): Remove.
6228         (sources): Remove.
6229         (objects): Remove.
6230         (headers): Remove.
6231
6232         [BZ #13750]
6233         * manual/.gitignore: Remove, it's not needed anymore.
6234         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6235         all files in it.
6236         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6237         directory.
6238         (texis): Renamed to $(objpfx)texis.
6239         (texis-path): New, contains path to generated files.
6240         (chapters.%): Use texis-path for complete path, add extra argument
6241         libc-texinfo.sh.
6242         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6243         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6244         (summary,texi, stamp-summary): Use complete path of
6245         files. Generate files in build dir.
6246         (dir-add.texi): Build in build dir.
6247         (libm-err.texi,stamp-libm-err): Likewise.
6248         (version.texi, stamp-version): Likewise.
6249         (.%c.texi): Likewise.
6250         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6251         (mostlyclean): Remove target.
6252         (realclean): Remove target.
6253         (generated): Add new variable with contents from mostlyclean and
6254         realclean, remove entries duplicated in common-mostlyclean, add
6255         stamp-libm-err and stamp-version.
6256         (generated-dirs): Add libc directory.
6257         ($(inst_infodir)/libc.info): Install files from build dir.
6258
6259         * manual/install.texi (Configuring and compiling): Adjust since
6260         the info files are not part of the tar ball anymore.
6261
6262 2012-05-14  Andreas Jaeger  <aj@suse.de>
6263
6264         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6265         variable.
6266
6267 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6268
6269         [BZ #13717]
6270         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6271         to 2.2.0 where earlier.
6272         * sysdeps/unix/sysv/linux/configure: Regenerated.
6273         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6274         Remove conditional code.
6275         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6276         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6277         Remove conditional code.
6278         [!__NR_lchown]: Likewise.
6279         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6280         [__NR_lchown]: Likewise.
6281         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6282         comment referencing __ASSUME_LCHOWN_SYSCALL.
6283         * sysdeps/unix/sysv/linux/i386/sigaction.c
6284         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6285         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6286         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6287         Remove conditional code.
6288         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6289         (__protocol_available): Remove #if 0 code.
6290         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6291         conditional code.
6292         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6293         * sysdeps/unix/sysv/linux/kernel-features.h
6294         (__ASSUME_GETCWD_SYSCALL): Don't define.
6295         (__ASSUME_REALTIME_SIGNALS): Likewise.
6296         (__ASSUME_PREAD_SYSCALL): Likewise.
6297         (__ASSUME_PWRITE_SYSCALL): Likewise.
6298         (__ASSUME_POLL_SYSCALL): Likewise.
6299         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6300         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6301         non-SPARC.
6302         (__ASSUME_SIOCGIFNAME): Don't define.
6303         (__ASSUME_MSG_NOSIGNAL): Likewise.
6304         (__ASSUME_SENDFILE): Define unconditionally.
6305         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6306         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6307         conditional code.
6308         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6309         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6310         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6311         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6312         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6313         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6314         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6316         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6317         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6319         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6320         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6322         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6323         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6325         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6326         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6328         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6329         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6331         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6332         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6334         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6335         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6337         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6338         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6339         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6340         Remove conditional code.
6341         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6342         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6343         Remove conditional code.
6344         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6345         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6346         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6347         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6348         Remove conditional code.
6349         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6350         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6351         Remove conditional code.
6352         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6353         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6354         Remove conditional code.
6355         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6356         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6357         Remove conditional code.
6358         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6359         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6360         Remove conditional code.
6361         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6362         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6363         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6364         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6365         * sysdeps/unix/sysv/linux/sigaction.c
6366         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6367         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6368         * sysdeps/unix/sysv/linux/sigpending.c
6369         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6370         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6371         * sysdeps/unix/sysv/linux/sigprocmask.c
6372         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6373         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6374         * sysdeps/unix/sysv/linux/sigsuspend.c
6375         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6376         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6377         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6378         (__libc_missing_rt_sigs): Remove.
6379         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6380         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6381         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6382         Remove conditional code.
6383         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6384         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6385         return 1.
6386         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6387         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6388         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6389         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6390
6391 2012-05-14  Andreas Jaeger  <aj@suse.de>
6392
6393         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6394         it's not used in glibc.
6395         (__coshm1): Likewise.
6396         (__acosh1p): Likewise.
6397         (__sgn): Likewise.
6398
6399         * manual/string.texi (Copying and Concatenation): Add missing
6400         variable in concat example.
6401         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6402
6403 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6404
6405         [BZ #14103]
6406         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6407         __builtin_clzl with __builtin_clzll.
6408
6409 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6410
6411         [BZ #14104]
6412         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6413         libc_freeres_ptr.
6414
6415 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6416
6417         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6418         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6419         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6420         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6421
6422 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6423
6424         * NEWS: Update ia64 info.
6425
6426 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6427
6428         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6429         used as bcopy.
6430
6431 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6432
6433         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6434         * sysdeps/unix/syscalls.list (dup3): Likewise.
6435         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6436         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6437
6438 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6439
6440         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6441         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6442
6443 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6444
6445         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6446         thread pointer.
6447         (TLS_IE): Use mov/add instead of movq/addq to load thread
6448         pointer.
6449         (TLS_GD_PREFIX): New.
6450         (TLS_GD): Use it.
6451
6452 2012-05-11  David S. Miller  <davem@davemloft.net>
6453
6454         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6455         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6456         (_FPU_SETCW): Likewise.
6457
6458 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6459
6460         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6461         is 32-byte aligned.
6462
6463 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6464
6465         [BZ #11837]
6466         * iconvdata/gb18030.c: Update tables.
6467         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6468         characters specially.
6469         (BODY for TO_LOOP): Add encoding of missing ranges.
6470
6471 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6472
6473         [BZ #13673]
6474         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6475         * sysdeps/mach/hurd/dup3.c: Likewise.
6476         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6477         * sysdeps/powerpc/memmove.c:: Likewise.
6478
6479 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6480
6481         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6482         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6483
6484 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6485
6486         * elf/elf.h (R_X86_64_RELATIVE64): New.
6487         (R_X86_64_NUM): Updated.
6488         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6489         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6490         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6491         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6492         tst-quad1pie tst-quad2pie
6493         (modules-names): Add tst-quadmod1 tst-quadmod2.
6494         ($(objpfx)tst-quad1): New dependency.
6495         ($(objpfx)tst-quad2): Likewise.
6496         ($(objpfx)tst-quad1pie): Likewise.
6497         ($(objpfx)tst-quad2pie): Likewise.
6498         * sysdeps/x86_64/tst-quad1.c: New file.
6499         * sysdeps/x86_64/tst-quad1pie.c: New file.
6500         * sysdeps/x86_64/tst-quad2.c: Likewise.
6501         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6502         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6503         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6504         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6505         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6506
6507 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6508
6509         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6510         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6511         * streams/stropts.h (t_scalar_t): Define type.
6512
6513         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6514         (_PATH_PRESERVE): Set to "/var/lib".
6515         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6516
6517         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6518         instead of int.
6519
6520         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6521         if __dir_mkfile succeeded.
6522
6523         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6524         checking for _hurd_dtablesize.  Unlock it right after having
6525         finished _hurd_dtable allocation.
6526
6527 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6528
6529         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6530         * sysdeps/mach/hurd/configure: Regenerated.
6531         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6532         special-casing to...
6533         * sysdeps/gnu/configure.in: ... this new file.
6534         * sysdeps/unix/sysv/linux/configure: Regenerated.
6535         * sysdeps/gnu/configure: New generated file.
6536
6537         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6538         for Linux: use nsec instead of usec, as well as:
6539         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6540         members of type struct timespec.
6541         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6542         New macros.
6543         (struct stat64): Likewise.
6544         (_STATBUF_ST_NSEC): New macro.
6545         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6546
6547         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6548         __strtoul_internal rather than strtoul.
6549
6550 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6551
6552         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6553         and reject them.
6554
6555 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6556
6557         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6558         which preserves existing values.
6559         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6560
6561 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6562
6563         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6564         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6565         greater than FD_SETSIZE.
6566
6567 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6568
6569         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6570         allocated, call __vm_protect to finish enabling the existing space, and
6571         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6572         allocate the remainder.
6573
6574 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6575
6576         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6577         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6578
6579 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6580
6581         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6582         sysdeps/mach/hurd/readlink.c.
6583
6584         * posix/tst-sysconf.c (posix_options): Only use
6585         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6586         _POSIX_SYNCHRONIZED_IO when they are defined
6587         * sysdeps/mach/hurd/bits/posix_opt.h:
6588         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6589         (_XOPEN_REALTIME): Undefine macro.
6590         (_XOPEN_REALTIME_THREADS): Undefine macro.
6591         (_XOPEN_SHM): Undefine macro.
6592         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6593         macro to -1.
6594         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6595         macro to -1.
6596         (_POSIX_ASYNC_IO): Undefine macro.
6597         (_POSIX_PRIORITIZED_IO): Undefine macro.
6598         (_POSIX_SPIN_LOCKS): Define macro to -1.
6599
6600         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6601         SA_NODEFER, SA_RESETHAND.
6602         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6603         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6604         F_DUPFD_CLOEXEC.
6605
6606 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6607
6608         * elf/Makefile (pldd-modules): Define unconditionally.
6609
6610 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6611
6612         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6613
6614 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6615
6616         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6617         Return ENOENT when name is empty.
6618         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6619
6620 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6621
6622         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6623
6624         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6625
6626 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6627
6628         Fix mlock in all cases except non-readable pages.
6629         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6630         instead of VM_PROT_ALL as parameter to __vm_wire function.
6631
6632         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6633         (__mkdir): When path is `/', just fail with EEXIST.
6634         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6635
6636 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6637
6638         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6639         <sys/uio.h> (for writev).
6640         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6641         and <sys/param.h> (for MIN).
6642
6643 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6644
6645         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6646         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6647         if interrupted.
6648
6649 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6650
6651         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6652         Depend on against $(link-rpcuserlibs).
6653
6654 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6655
6656         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6657         (__libc_stack_end): Do not use attribute_relro.
6658         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6659         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6660         to libthread-provided value.
6661         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6662         attribute_relro.
6663
6664 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6665
6666         [BZ #3748]
6667         * bits/libc-lock.h (__libc_once_get): New macro.
6668         * sysdeps/mach/bits/libc-lock.h: Likewise.
6669         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6670         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6671         instead of using implementation details.
6672
6673         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6674         * libio/freopen.c: Likewise.
6675         * libio/freopen64.c: Likewise.
6676         * misc/syslog.c: Likewise.
6677         * nscd/connections.c: Likewise.
6678         * nscd/netgroupcache.c: Likewise.
6679         * sysdeps/posix/getcwd.c: Likewise.
6680
6681 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6682
6683         * math/w_ilogbf.c: Add #include <limits.h>.
6684
6685 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6686
6687         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6688         path instead of returning without unlocking.
6689
6690         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6691         immediate-write ioctls.
6692         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6693
6694 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6695
6696         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6697         __builtin_frame_address instead of making assumptions about the
6698         location of the return address relative to DATA.  Force early load of
6699         the return address.
6700         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6701         __builtin_frame_address.
6702
6703         dup3 for GNU Hurd.
6704         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6705         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6706         implement dup3 and do some further code clean-ups.
6707         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6708         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6709
6710 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6711
6712         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6713
6714         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6715         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6716         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6717         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6718         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6719         d->port.lock.
6720
6721         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6722         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6723         when handler == SIG_ERR, not when handler != SIG_ERR.
6724
6725 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6726
6727         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6728         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6729         definitions.
6730
6731         accept4 for GNU Hurd.
6732         * include/sys/socket.h (__libc_accept4): New prototype.
6733         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6734         to implement __libc_accept4.
6735         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6736         __libc_accept4.
6737         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6738
6739         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6740         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6741         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6742         signal-defines.sym.
6743
6744 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6745
6746         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6747
6748 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6749
6750         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6751         assertion on O_CLOEXEC flag.
6752         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6753         * hurd/intern-fd.c: Likewise.
6754         * hurd/port2fd.c: Likewise.
6755
6756 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6757
6758         [BZ #3906]
6759         * bits/in.h (IPV6_PKTINFO): Define new macro.
6760         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6761
6762 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6763
6764         [BZ #13954]
6765         [BZ #13955]
6766         [BZ #13956]
6767         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6768         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6769         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6770         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6771         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6772         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6773         * math/libm-test.inc (logb_test) : Additional logb tests.
6774
6775 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6776             Andreas Jaeger  <aj@suse.de>
6777
6778         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6779         * configure: Regenerated.
6780         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6781         * config.make.in (link-obsolete-rpc): New substituted variable.
6782         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6783         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6784         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6785         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6786         so that libc.a contains the symbols.
6787         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6788         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6789         * sunrpc/auth_none.c: Likewise.
6790         * sunrpc/auth_unix.c: Likewise.
6791         * sunrpc/authdes_prot.c: Likewise.
6792         * sunrpc/authuxprot.c: Likewise.
6793         * sunrpc/clnt_gen.c: Likewise.
6794         * sunrpc/clnt_perr.c: Likewise.
6795         * sunrpc/clnt_raw.c: Likewise.
6796         * sunrpc/clnt_simp.c: Likewise.
6797         * sunrpc/clnt_tcp.c: Likewise.
6798         * sunrpc/clnt_udp.c: Likewise.
6799         * sunrpc/clnt_unix.c: Likewise.
6800         * sunrpc/des_crypt.c: Likewise.
6801         * sunrpc/des_soft.c: Likewise.
6802         * sunrpc/get_myaddr.c: Likewise.
6803         * sunrpc/key_call.c: Likewise.
6804         * sunrpc/key_prot.c: Likewise.
6805         * sunrpc/netname.c: Likewise.
6806         * sunrpc/pm_getmaps.c: Likewise.
6807         * sunrpc/pm_getport.c: Likewise.
6808         * sunrpc/pmap_clnt.c: Likewise.
6809         * sunrpc/pmap_prot.c: Likewise.
6810         * sunrpc/pmap_prot2.c: Likewise.
6811         * sunrpc/pmap_rmt.c: Likewise.
6812         * sunrpc/publickey.c: Likewise.
6813         * sunrpc/rpc_cmsg.c: Likewise.
6814         * sunrpc/rpc_common.c: Likewise.
6815         * sunrpc/rpc_dtable.c: Likewise.
6816         * sunrpc/rpc_prot.c: Likewise.
6817         * sunrpc/rpc_thread.c: Likewise.
6818         * sunrpc/rtime.c: Likewise.
6819         * sunrpc/svc.c: Likewise.
6820         * sunrpc/svc_auth.c: Likewise.
6821         * sunrpc/svc_raw.c: Likewise.
6822         * sunrpc/svc_run.c: Likewise.
6823         * sunrpc/svc_tcp.c: Likewise.
6824         * sunrpc/svc_udp.c: Likewise.
6825         * sunrpc/svc_unix.c: Likewise.
6826         * sunrpc/svcauth_des.c: Likewise.
6827         * sunrpc/xcrypt.c: Likewise.
6828         * sunrpc/xdr.c: Likewise.
6829         * sunrpc/xdr_array.c: Likewise.
6830         * sunrpc/xdr_float.c: Likewise.
6831         * sunrpc/xdr_intXX_t.c: Likewise.
6832         * sunrpc/xdr_mem.c: Likewise.
6833         * sunrpc/xdr_rec.c: Likewise.
6834         * sunrpc/xdr_ref.c: Likewise.
6835         * sunrpc/xdr_sizeof.c: Likewise.
6836         * sunrpc/xdr_stdio.c: Likewise.
6837
6838 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6839
6840         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6841         change.  Update copyright years.
6842
6843 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6844
6845         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6846
6847 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6848             Joseph Myers  <joseph@codesourcery.com>
6849             Paul Pluzhnikov  <ppluzhnikov@google.com>
6850
6851         [BZ #14012]
6852         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6853         requiring rpcgen.
6854         [cross-compiling] (extra-libs): Likewise.
6855         [cross-compiling] (extra-libs-others): Likewise.
6856         [cross-compiling] (librpcsvc-routines): Likewise.
6857         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6858         [cross-compiling] (omit-deps): Likewise.
6859         (sunrpc-CPPFLAGS): New variable.
6860         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6861         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6862         (cross-rpcgen-objs): New variable.
6863         (extra-objs): Append $(cross-rpcgen-objs).
6864         ($(cross-rpcgen-objs)): New rule.
6865         ($(objpfx)cross-rpcgen): Likewise.
6866         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6867         comment.
6868         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6869         ($(objpfx)x%.stmp): Likewise.
6870         * sunrpc/proto.h [IS_IN_build] (_): Define.
6871         [IS_IN_build] (_libc_intl_domainname): Likewise.
6872
6873 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6874
6875         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6876         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6877         and R_X86_64_TPOFF64.
6878
6879 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6880
6881         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6882         sysdeps/unix/sysv/syscalls.list.
6883         (stime): Likewise.
6884         (utime): Likewise.
6885         * sysdeps/unix/sysv/syscalls.list: Remove file.
6886
6887 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6888
6889         [BZ #3440]
6890         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6891         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6892         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6893         (__LC_IDENTIFICATION): Make these macros useful in #if
6894         expressions, as required by C99.
6895
6896 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6897
6898         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6899         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6900         after this.
6901
6902 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6903
6904         * stdlib/longlong.h: Updated from GCC.
6905
6906 2012-05-09  Andreas Jaeger  <aj@suse.de>
6907
6908         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6909         default is first entry.
6910         (run_mode): Set type.
6911         (main): Remove informal message about syslog.
6912         (options): Fix typo.
6913
6914         [BZ #14053]
6915         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6916         to asm.
6917         (lrint): Likewise.
6918         (llrintf): Likewise.
6919         (llrint): Likewise.
6920         (rint): Likewise.
6921         (rintf): Likewise.
6922         (nearbyint): Likewise.
6923         (nearbyintf): Likewise.
6924
6925 2012-05-09  Andreas Jaeger  <aj@suse.de>
6926             Pedro Alves  <palves@redhat.com>
6927
6928         * nscd/nscd.c (run_mode): Use enum.
6929         (main): Cleanup coding style issue.
6930
6931 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6932             Andreas Jaeger  <aj@suse.de>
6933
6934         * nscd/nscd.c (go_background): Replaced with...
6935         (run_mode): ... this.
6936         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6937         (options): Add -F --foreground.
6938         (main): Implement it.
6939         (parse_opt): Parse it.
6940
6941 2012-05-09  Andreas Jaeger  <aj@suse.de>
6942
6943         [BZ #14083]
6944         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6945         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6946         -Wconversion warning.
6947         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6948         Likewise.
6949
6950 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6951
6952         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6953         == 0.
6954         (LC_ALL): Use macro-int-constant.
6955         (LC_COLLATE): Likewise.
6956         (LC_CTYPE): Likewise.
6957         (LC_MESSAGES): Likewise.
6958         (LC_MONETARY): Likewise.
6959         (LC_NUMERIC): Likewise.
6960         (LC_TIME): Likewise.
6961         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6962         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6963         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6964         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6965         Specify type.
6966         [C99-based standards] (float_t): Expect type.
6967         [C99-based standards] (double_t): Expect type.
6968         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6969         type.
6970         [C99-based standards] (HUGE_VALL): Likewise.
6971         [C99-based standards] (INFINITY): Likewise.
6972         [C99-based standards] (NAN): Likewise.
6973         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6974         [C99-based standards] (FP_NAN): Likewise.
6975         [C99-based standards] (FP_NORMAL): Likewise.
6976         [C99-based standards] (FP_SUBNORMAL): Likewise.
6977         [C99-based standards] (FP_ZERO): Likewise.
6978         [C99-based standards] (FP_FAST_FMA): Use
6979         optional-macro-int-constant.  Specify type.  Require == 1.
6980         [C99-based standards] (FP_FAST_FMAF): Likewise.
6981         [C99-based standards] (FP_FAST_FMAL): Likewise.
6982         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6983         [C99-based standards] (FP_ILOGBNAN): Likewise.
6984         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6985         Specify type.
6986         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6987         [C99-based standards] (math_errhandling): Specify type.
6988         [ISO99 || ISO11] (signgam): Do not allow.
6989         [non-C99-based standards] (copysignf): Do not allow.
6990         [non-C99-based standards] (exp2f): Likewise.
6991         [non-C99-based standards] (log2f): Likewise.
6992         [non-C99-based standards] (modff): Allow.
6993         [non-C99-based standards] (erff): Do not allow.
6994         [non-C99-based standards] (erfcf): Likewise.
6995         [non-C99-based standards] (gammaf): Likewise.
6996         [non-C99-based standards] (hypotf): Likewise.
6997         [non-C99-based standards] (j0f): Likewise.
6998         [non-C99-based standards] (j1f): Likewise.
6999         [non-C99-based standards] (jnf): Likewise.
7000         [non-C99-based standards] (lgammaf): Likewise.
7001         [non-C99-based standards] (tgammaf): Likewise.
7002         [non-C99-based standards] (y0f): Likewise.
7003         [non-C99-based standards] (y1f): Likewise.
7004         [non-C99-based standards] (ynf): Likewise.
7005         [non-C99-based standards] (isnanf): Likewise.
7006         [non-C99-based standards] (acoshf): Likewise.
7007         [non-C99-based standards] (asinhf): Likewise.
7008         [non-C99-based standards] (atanhf): Likewise.
7009         [non-C99-based standards] (cbrtf): Likewise.
7010         [non-C99-based standards] (expm1f): Likewise.
7011         [non-C99-based standards] (ilogbf): Likewise.
7012         [non-C99-based standards] (log1pf): Likewise.
7013         [non-C99-based standards] (logbf): Likewise.
7014         [non-C99-based standards] (nextafterf): Likewise.
7015         [non-C99-based standards] (remainderf): Likewise.
7016         [non-C99-based standards] (rintf): Likewise.
7017         [non-C99-based standards] (scalbf): Likewise.
7018         [non-C99-based standards] (copysignl): Likewise.
7019         [non-C99-based standards] (exp2l): Likewise.
7020         [non-C99-based standards] (log2l): Likewise.
7021         [non-C99-based standards] (modfl): Allow.
7022         [non-C99-based standards] (erfl): Do not allow.
7023         [non-C99-based standards] (erfcl): Likewise.
7024         [non-C99-based standards] (gammal): Likewise.
7025         [non-C99-based standards] (hypotl): Likewise.
7026         [non-C99-based standards] (j0l): Likewise.
7027         [non-C99-based standards] (j1l): Likewise.
7028         [non-C99-based standards] (jnl): Likewise.
7029         [non-C99-based standards] (lgammal): Likewise.
7030         [non-C99-based standards] (tgammal): Likewise.
7031         [non-C99-based standards] (y0l): Likewise.
7032         [non-C99-based standards] (y1l): Likewise.
7033         [non-C99-based standards] (ynl): Likewise.
7034         [non-C99-based standards] (isnanl): Likewise.
7035         [non-C99-based standards] (acoshl): Likewise.
7036         [non-C99-based standards] (asinhl): Likewise.
7037         [non-C99-based standards] (atanhl): Likewise.
7038         [non-C99-based standards] (cbrtl): Likewise.
7039         [non-C99-based standards] (expm1l): Likewise.
7040         [non-C99-based standards] (ilogbl): Likewise.
7041         [non-C99-based standards] (log1pl): Likewise.
7042         [non-C99-based standards] (logbl): Likewise.
7043         [non-C99-based standards] (nextafterl): Likewise.
7044         [non-C99-based standards] (remainderl): Likewise.
7045         [non-C99-based standards] (rintl): Likewise.
7046         [non-C99-based standards] (scalbl): Likewise.
7047         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7048         [non-C99-based standards] (FP_*): Do not allow.
7049         [C99-based standards] (FP_*): Change to
7050         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7051         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7052         allow.
7053         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7054         (SIG_ERR): Likewise.
7055         [X/Open-based standards] (SIG_HOLD): Likewise.
7056         (SIG_IGN): Likewise.
7057         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7058         positive value.
7059         (SIGFPE): Likewise.
7060         (SIGILL): Likewise.
7061         (SIGINT): Likewise.
7062         (SIGSEGV): Likewise.
7063         (SIGTER): Likewise.
7064         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7065         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7066         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7067         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7068         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7069         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7070         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7071         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7072         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7073         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7074         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7075         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7076         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7077         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7078         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7079         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7080         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7081         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7082         [X/Open-based standards] (SIGTRAP): Likewise.
7083         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7084         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7085         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7086         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7087         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7088         allow.
7089
7090 2012-05-08  Ian Wienand  <ianw@vmware.com>
7091
7092         [BZ #14080]
7093         * time/tzset.c (__tzset_parse_tz): Update default rules for
7094         daylight time changes in the Energy Policy Act of 2005.
7095
7096 2012-05-09  Andreas Jaeger  <aj@suse.de>
7097
7098         [BZ #13983]
7099         * elf/ldconfig.c (parse_conf): Change string to make clear that
7100         ldconfig only issued a warning if ld.so.conf does not exist.
7101
7102 2012-05-08  David S. Miller  <davem@davemloft.net>
7103
7104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7105         movxtod instead of popping the value on the stack.
7106
7107         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7108
7109 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7110
7111         * config.h.in: Add HAVE_ARM_PCS_VFP.
7112
7113 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7114
7115         [BZ #13979]
7116         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7117         checking but the checks are disabled for any reason.
7118
7119 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7120
7121         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7122         and ELF64_R_TYPE with ELFW(R_TYPE).
7123
7124 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7125
7126         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7127         (ulimit): Likewise.
7128
7129         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7130         (settimeofday): Likewise.
7131
7132 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7133
7134         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7135         a struct th_u2 inside the union, and move tu_block/tu_code into
7136         a new th_u3 union of tu_block/tu_code inside of that.  Move
7137         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7138         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7139         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7140         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7141         (th_stuff): Change to th_u1.tu_stuff.
7142         (th_data): Define.
7143         (th_msg): Change to th_u1.th_u2.tu_data.
7144
7145 2012-05-07  David S. Miller  <davem@davemloft.net>
7146
7147         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7148
7149         [BZ #14074]
7150         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7151         (SETUP_PIC_REG): Use it.
7152         (SETUP_PIC_REG_LEAF): Use it.
7153
7154 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7155
7156         [BZ #13885]
7157         [BZ #13923]
7158         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7159         USE_AS_EXPM1L.
7160         (EXPL_FINITE): Likewise.
7161         (FLDLOG): Likewise.
7162         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7163         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7164         e_expl.S.
7165         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7166         USE_AS_EXPM1L.
7167         (EXPL_FINITE): Likewise.
7168         (FLDLOG): Likewise.
7169         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7170         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7171         e_expl.S.
7172         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7173         test of -max_value argument for long double.
7174         * sysdeps/i386/fpu/libm-test-ulps: Update.
7175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7176
7177 2012-05-06  David S. Miller  <davem@davemloft.net>
7178
7179         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7180         quad soft-float symbols whose references which are compiler
7181         generated.
7182         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7183
7184 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7185
7186         [BZ #13884]
7187         [BZ #13914]
7188         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7189         USE_AS_EXP10L.
7190         (EXPL_FINITE): Likewise.
7191         (FLDLOG): Likewise.
7192         (c0): Likewise.
7193         (c1): Likewise.
7194         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7195         Adjust comments for base varying.
7196         (__expl_finite): Change alias to EXPL_FINITE.
7197         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7198         e_expl.S.
7199         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7200         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7201         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7202         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7203         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7204         USE_AS_EXP10L.
7205         (EXPL_FINITE): Likewise.
7206         (FLDLOG): Likewise.
7207         (c0): Likewise.
7208         (c1): Likewise.
7209         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7210         Adjust comments for base varying.
7211         (__expl_finite): Change alias to EXPL_FINITE.
7212         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7213         tests for bugs.
7214         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7215
7216         [BZ #14064]
7217         * math/libm-test.inc (check_float_internal): Correct ulp
7218         calculation for subnormal expected results.
7219
7220 2012-05-06  Andreas Jaeger  <aj@suse.de>
7221
7222         * Makeconfig (+math-flags): New, set to -frounding-math.
7223         (+cflags): Add +math-flags so that all of glibc gets compiled with
7224         it.
7225
7226         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7227
7228 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7229
7230         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7231         Disable one test.
7232
7233         [BZ #13787]
7234         [BZ #13922]
7235         [BZ #14036]
7236         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7237         (__ieee754_expl): Allow for and saturate large arguments.
7238         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7239         (u_threshold): Likewise.
7240         (__exp): Call __ieee754_exp before checking for overflow and
7241         underflow.
7242         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7243         (u_threshold): Likewise.
7244         (__expf): Call __ieee754_expf before checking for overflow and
7245         underflow.
7246         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7247         (u_threshold): Likewise.
7248         (__expl): Call __ieee754_expl before checking for overflow and
7249         underflow.
7250         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7251         (__ieee754_expl): Allow for and saturate large arguments.
7252         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7253         missing overflow exception on overflow.
7254         (expm1_test): Do not allow missing overflow exception on overflow.
7255
7256         * sysdeps/i386/fpu/e_expl.c: Move to ...
7257         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7258         rather than using inline asm.
7259         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7260         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7261         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7262
7263         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7264         (nice): Likewise.
7265         (poll): Likewise.
7266         (signal): Likewise.
7267         (time): Likewise.
7268         (times): Likewise.
7269
7270 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7271
7272         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7273         sysdeps/unix/common/syscalls.list.
7274         (fchmod): Likewise.
7275         (fchown): Likewise.
7276         (ftruncate): Likewise.
7277         (getrusage): Likewise.
7278         (gettimeofday): Likewise.
7279         (setpgid): Likewise.
7280         (setregid): Likewise.
7281         (setreuid): Likewise.
7282         (sigaction): Likewise.
7283         (truncate): Likewise.
7284         (vhangup): Likewise.
7285         * sysdeps/unix/common/syscalls.list: Remove file.
7286         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7287         * sysdeps/unix/sysv/linux/Implies: Likewise.
7288
7289 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7290
7291         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7292         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7293         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7294         Moved to ...
7295         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7296         Here.
7297         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7298         to ...
7299         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7300         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7301         to ...
7302         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7303         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7304         to ...
7305         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7306         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7307         to ...
7308         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7309         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7310         to ...
7311         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7312         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7313         to ...
7314         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7315         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7316         to ...
7317         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7318         Here.
7319         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7320         to ...
7321         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7322         Here.
7323         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7324         to ...
7325         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7326         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7327         Moved to ...
7328         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7329         Here.
7330         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7331         to ...
7332         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7333
7334 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7335
7336         * sysdeps/unix/common/bits/dirent.h: Remove file.
7337         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7338
7339         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7340         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7341         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7342         * sysdeps/unix/bsd/isatty.c: Likewise.
7343         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7344         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7345         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7346
7347 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7348
7349         [BZ #13563]
7350         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7351         long double comparison inaccuracies.
7352         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7353         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7354
7355 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7356
7357         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7358         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7359
7360 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7361
7362         [BZ #14049]
7363         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7364         nonzero digits before rounding a hex value.
7365         * stdlib/tst-strtod.c (tests): Add another test.
7366
7367 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7368
7369         * sysdeps/s390/fpu/libm-test-ulps: Update.
7370
7371 2012-05-03  Andreas Jaeger  <aj@suse.de>
7372
7373         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7374         does not get optimized out.
7375         (malloc_opt_barrier): New.
7376
7377 2012-05-03  Andreas Jaeger  <aj@suse.de>
7378             Roland McGrath  <roland@hack.frob.com>
7379
7380         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7381         intermediate file deletion.
7382         (generated): Add .symlist files.
7383
7384 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7385
7386         [BZ #13775]
7387         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7388         Redirect under this condition.
7389         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7390         [__USE_GNU] (__dprintf_chk): Not under this condition.
7391         [__USE_GNU] (__vdprintf_chk): Likewise.
7392         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7393         under this condition.
7394         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7395         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7396         [__USE_XOPEN2K8] (vdprintf): Likewise.
7397         [__USE_GNU] (__dprintf_chk): Not under this condition.
7398         [__USE_GNU] (__vdprintf_chk): Likewise.
7399         [__USE_GNU] (dprintf): Likewise.
7400         [__USE_GNU] (vdprintf): Likewise.
7401
7402 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7403
7404         * elf/Makefile (common-generated): Set this instead of generated for
7405         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7406         $(all-built-dso)-derived lists.
7407
7408 2012-05-03  Andreas Jaeger  <aj@suse.de>
7409
7410         * sysdeps/i386/fpu/libm-test-ulps: Update.
7411
7412         * FAQ: Removed.
7413         * FAQ.in: Likewise.
7414         * scripts/gen-FAQ.pl: Likewise.
7415         * manual/install.texi (Installation): Point to online location of
7416         FAQ.
7417         * Makefile (files-for-dist): Remove FAQ.
7418         (FAQ): Remove.
7419
7420 2012-05-02  Allan McRae  <allan@archlinux.org>
7421
7422         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7423         (LDFLAGS-reldepmod5.so): Likewise.
7424         (LDFLAGS-reldep6mod1.so): Likewise.
7425         (LDFLAGS-reldep6mod4.so): Likewise.
7426         (LDFLAGS-reldep8mod3.so): Likewise.
7427         (LDFLAGS-unload4mod1.so): Likewise.
7428         (LDFLAGS-unload4mod2.so): Likewise.
7429         (LDFLAGS-tst-initorder): Likewise.
7430         (LDFLAGS-tst-initordera2.so): Likewise.
7431         (LDFLAGS-tst-initordera3.so): Likewise.
7432         (LDFLAGS-tst-initordera4.so): Likewise.
7433         (LDFLAGS-tst-initorderb2.so): Likewise.
7434         (LDFLAGS-noload): Likewise.
7435         (LDFLAGS-next): Likewise.
7436         (LDFLAGS-order2mod1.so): Likewise.
7437         (LDFLAGS-order2mod2.so): Likewise.
7438         (LDFLAGS-tst-initorder2): Likewise.
7439         (LDFLAGS-tst-initorder2a.so): Likewise.
7440         (LDFLAGS-tst-initorder2b.so): Likewise.
7441         (LDFLAGS-tst-initorder2c.so): Likewise.
7442         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7443
7444 2012-05-02  David S. Miller  <davem@davemloft.net>
7445
7446         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7447
7448 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7449
7450         [BZ #14055]
7451         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7452
7453 2012-05-02  Andreas Jaeger  <aj@suse.de>
7454
7455         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7456         since we manipulate rounding mode.
7457         (CPPFLAGS-test-idouble.c): Likewise.
7458         (CPPFLAGS-test-ifloat.c): Likewise.
7459         (CFLAGS-test-ldouble.c): Likewise.
7460         (CFLAGS-test-double.c): Likewise.
7461         (CFLAGS-test-float.c): Likewise.
7462         (CFLAGS-test-misc.c): Likewise.
7463         (CFLAGS-test-test-fenv.c): Likewise.
7464
7465 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7466
7467         [BZ #2550]
7468         [BZ #2570]
7469         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7470         comparisons to determine direction to adjust input.
7471
7472 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7473
7474         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7475         output to the target.
7476
7477         * scripts/localplt.awk: New file.
7478         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7479         (check-localplt-CFLAGS): Variable removed.
7480         ($(all-built-dso:=.jmprel)): New static pattern rule.
7481         (generated): Add those targets.
7482         (localplt-built-dso): New variable.
7483         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7484
7485         * elf/check-localplt.c: File removed.
7486
7487         * scripts/check-execstack.awk: New file.
7488         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7489         (check-execstack-CFLAGS): Variable removed.
7490         ($(objpfx)check-execstack.h): Target removed.
7491         ($(objpfx)execstack-default): New target.
7492         (generated): Add that instead of check-execstack.h.
7493         ($(all-built-dso:=.phdr)): New static pattern rule.
7494         (generated): Add those targets.
7495         * elf/check-execstack.c: File removed.
7496
7497         * scripts/check-textrel.awk: New file.
7498         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7499         (check-textrel-CFLAGS): Variable removed.
7500         (all-built-dso): Use := to define.o
7501         ($(all-built-dso:=.dyn)): New static pattern rule.
7502         (generated): Add those targets.
7503         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7504         * config.make.in (READELF): New substituted variable.
7505         * elf/check-textrel.c: File removed.
7506
7507 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7508
7509         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7510         allow.
7511         * conform/data/ctype.h-data [C99-based standards] (isblank):
7512         Expect function.
7513         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7514         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7515         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7516         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7517         Specify type.  Require positive value.
7518         (EILSEQ): Likewise.
7519         (ERANGE): Likewise.
7520         [ISO || POSIX] (EILSEQ): Do not expect.
7521         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7522         Specify type.  Require positive value.
7523         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7524         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7525         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7526         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7527         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7528         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7529         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7530         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7531         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7532         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7533         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7534         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7535         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7536         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7537         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7538         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7539         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7540         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7541         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7542         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7543         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7544         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7545         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7546         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7547         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7548         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7549         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7550         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7551         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7552         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7553         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7554         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7555         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7556         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7557         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7558         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7559         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7560         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7561         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7562         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7563         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7564         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7565         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7566         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7567         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7568         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7569         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7570         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7571         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7572         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7573         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7574         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7575         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7576         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7577         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7578         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7579         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7580         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7581         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7582         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7583         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7584         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7585         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7586         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7587         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7588         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7589         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7590         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7591         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7592         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7593         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7594         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7595         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7596         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7597         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7598         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7599         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7600         Require >= 2.
7601         (FLT_ROUNDS): Expect as macro, not constant.
7602         (FLT_MANT_DIG): Use macro-int-constant.
7603         (DBL_MANT_DIG): Likewise.
7604         (LDBL_MANT_DIG): Likewise.
7605         (FLT_DIG): Likewise.
7606         (DBL_DIG): Likewise.
7607         (LDBL_DIG): Likewise.
7608         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7609         (DBL_MIN_EXP): Likewise.
7610         (LDBL_MIN_EXP): Likewise.
7611         (FLT_MAX_EXP): Use macro-int-constant.
7612         (DBL_MAX_EXP): Likewise.
7613         (LDBL_MAX_EXP): Likewise.
7614         (FLT_MAX_10_EXP): Likewise.
7615         (DBL_MAX_10_EXP): Likewise.
7616         (LDBL_MAX_10_EXP): Likewise.
7617         (FLT_MAX): Use macro-constant.
7618         (DBL_MAX): Likewise.
7619         (LDBL_MAX): Likewise.
7620         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7621         (DBL_EPSILON): Likewise.
7622         (LDBL_EPSILON): Likewise.
7623         (FLT_MIN): Likewise.
7624         (DBL_MIN): Likewise.
7625         (LDBL_MIN): Likewise.
7626         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7627         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7628         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7629         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7630         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7631         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7632         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7633         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7634         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7635         [ISO11] (FLT_TRUE_MIN): Likewise.
7636         [ISO11] (LDBL_TRUE_MIN): Likewise.
7637         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7638         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7639         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7640         (SCHAR_MAX): Likewise.
7641         (UCHAR_MAX): Likewise.
7642         (CHAR_MIN): Likewise.
7643         (CHAR_MAX): Likewise.
7644         (MB_LEN_MAX): Use macro-int-constant.
7645         (SHRT_MIN): Use macro-int-constant.  Specify type.
7646         (SHRT_MAX): Likewise.
7647         (USHRT_MAX): Likewise.
7648         (INT_MAX): Likewise.
7649         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7650         bound negative.
7651         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7652         bound with "U".
7653         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7654         bound with "L".
7655         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7656         bound negative.  Suffix upper bound with "L".
7657         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7658         bound with "UL".
7659         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7660         Specify type.
7661         [C99-based standards] (LLONG_MAX): Likewise.
7662         [C99-based standards] (ULLONG_MAX): Likewise.
7663         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7664         == 0.
7665         [ISO11] (max_align_t): Require type.
7666         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7667
7668         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7669         from $CFLAGS, without defining away __attribute__ calls.
7670         (checknamespace): Use $CFLAGS_namespace.
7671
7672         * conform/conformtest.pl (@keywords): Only include C99 keywords
7673         for standards based on C99 or C11.
7674
7675         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7676         Disable tests.
7677         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7678         UNIX98]: Likewise.
7679
7680         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7681         usability of symbols in #if.
7682
7683         * conform/conformtest.pl: If macro or constant types start
7684         "promoted:", expect the symbol to be of the following type
7685         promoted by the integer promotions.
7686
7687         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7688         in one place.  Also handle "macro-constant".
7689
7690         * conform/conformtest.pl: Only accept expected macro values with
7691         "==".  Parse all "macro" lines in one place.
7692         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7693
7694         * conform/conformtest.pl: Handle braced types on "constant" lines
7695         instead of handling "typed-constant".
7696         * conform/data/signal.h-data: Use "constant" instead of
7697         "typed-constant".
7698
7699         * conform/conformtest.pl: Handle "optional-" at start of lines in
7700         one place rather than duplicating several cases.  Handle each
7701         format of "macro" line with initial "optional-".
7702
7703         * conform/conformtest.pl: Only accept expected constant or
7704         optional-constant values with "==".  Parse all "constant" lines in
7705         one place.  Parse all "optional-constant" lines in one place.
7706         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7707         * conform/data/fmtmsg.h-data: Likewise.
7708         * conform/data/netinet/in.h-data: Likewise.
7709         * conform/data/tar.h-data: Likewise.
7710         * conform/data/limits.h-data: Use "==" form on "constant" and
7711         "optional-constant" lines.
7712
7713         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7714         Use -std=c99 for XOPEN2K.
7715         (@knownproblems): Remove.
7716         (newtoken): Don't check %isknown.
7717
7718         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7719         Do not expect macro.
7720         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7721         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7722         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7723         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7724         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7725         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7726         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7727         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7728         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7729         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7730         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7731         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7732         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7733         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7734         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7735         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7736         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7737         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7738         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7739         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7740         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7741         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7742         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7743         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7744         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7745         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7746         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7747         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7748         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7749         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7750         [XPG3] (acosh): Likewise.
7751         [XPG3] (asinh): Likewise.
7752         [XPG3] (atanh): Likewise.
7753         [XPG3] (cbrt): Likewise.
7754         [XPG3] (expm1): Likewise.
7755         [XPG3] (ilogb): Likewise.
7756         [XPG3] (log1p): Likewise.
7757         [XPG3] (logb): Likewise.
7758         [XPG3] (nextafter): Likewise.
7759         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7760         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7761         [XPG3] (remainder): Likewise.
7762         [XPG3] (rint): Likewise.
7763         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7764         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7765         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7766         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7767         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7768         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7769         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7770         [UNIX98 || XOPEN2K] (scalb): Expect.
7771         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7772         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7773         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7774         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7775         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7776         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7777         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7778         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7779         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7780         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7781         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7782         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7783         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7784         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7785         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7786         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7787         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7788         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7789         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7790         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7791         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7792         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7793         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7794         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7795         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7796         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7797         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7798         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7799         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7800         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7801         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7802         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7803         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7804         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7805         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7806         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7807         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7808         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7809         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7810         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7811         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7812         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7813         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7814         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7815         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7816         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7817         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7818         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7819         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7820         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7821         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7822         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7823         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7824         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7825         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7826         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7827         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7828         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7829         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7830         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7831         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7832         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7833         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7834         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7835         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7836         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7837         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7838         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7839         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7840         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7841         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7842         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7843         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7844         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7845         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7846         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7847         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7848         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7849         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7850         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7851         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7852         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7853         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7854         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7855         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7856         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7857         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7858         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7859         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7860         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7861         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7862         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7863         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7864         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7865         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7866         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7867         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7868         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7869         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7870         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7871         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7872         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7873         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7874         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7875         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7876         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7877         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7878         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7879         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7880         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7881         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7882         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7883         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7884         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7885         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7886         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7887         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7888         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7889         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7890         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7891         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7892         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7893         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7894         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7895         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7896         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7897         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7898         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7899         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7900         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7901         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7902         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7903         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7904         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7905         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7906         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7907         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7908
7909         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7910         _XOPEN_SOURCE_EXTENDED for XPG4.
7911
7912         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7913
7914         * Makeconfig (localtime): Remove variable.
7915         (inst_localtime-file): Likewise.
7916
7917 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7918
7919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7920         Update.
7921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7922         Update.
7923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7924         Update.
7925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7926         Update.
7927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7928         Update.
7929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7930         Update.
7931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7932         Update.
7933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7934         Update.
7935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7936         Update.
7937
7938 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7939
7940         [BZ #2550]
7941         [BZ #2570]
7942         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7943         comparisons to determine direction to adjust input.
7944         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7945         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7946         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7947         Likewise.
7948         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7949         Likewise.
7950         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7951         Likewise.
7952         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7953         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7954         Likewise.
7955         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7956         Likewise.
7957         * math/libm-test.inc (nexttoward_test): Add more tests.
7958
7959 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7960
7961         [BZ #14040]
7962         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7963         in version GLIBC_2.1, not GLIBC_2.0.
7964         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7965         Likewise.
7966
7967 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7968
7969         [BZ #13942]
7970         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7971         (1 - x) * (1 + x).
7972         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7973         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7974         * math/libm-test.inc (acos_test): Add more tests.
7975         (asin_test): Likewise.
7976         * sysdeps/i386/fpu/libm-test-ulps: Update.
7977         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7978
7979         [BZ #14034]
7980         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7981         of square root.
7982         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7983         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7984         * math/libm-test.inc (acos_test_tonearest): New function.
7985         (acos_test_towardzero): Likewise.
7986         (acos_test_downward): Likewise.
7987         (acos_test_upward): Likewise.
7988         (asin_test_tonearest): Likewise.
7989         (asin_test_towardzero): Likewise.
7990         (asin_test_downward): Likewise.
7991         (asin_test_upward): Likewise.
7992         (main): Call the new functions.
7993         * sysdeps/i386/fpu/libm-test-ulps: Update.
7994         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7995
7996         [BZ #13884]
7997         [BZ #13924]
7998         * math/e_exp10.c: Include <float.h>.
7999         (__ieee754_exp10): Handle underflow here rather than multiplying
8000         large negative argument by M_LN10.
8001         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8002         of __ieee754_expf.
8003         * math/e_exp10l.c: Include <float.h>.
8004         (__ieee754_exp10l): Handle underflow here rather than multiplying
8005         large negative argument by M_LN10l.
8006         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8007         spurious overflow exception on underflow.
8008
8009 2012-04-29  Marek Polacek  <polacek@redhat.com>
8010
8011         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8012         (__fortify_function): New macro.
8013         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8014         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8015         __extern_always_inline.
8016         * libio/bits/stdio2.h: Likewise.
8017         * libio/bits/stdio.h: Likewise.
8018         * string/string.h: Likewise.
8019         * string/bits/string3.h: Likewise.
8020         * include/stdio.h: Likewise.
8021         * stdlib/bits/stdlib.h: Likewise.
8022         * stdlib/stdlib.h: Likewise.
8023         * rt/bits/mqueue2.h: Likewise.
8024         * rt/mqueue.h: Likewise.
8025         * posix/bits/unistd.h: Likewise.
8026         * posix/unistd.h: Likewise.
8027         * io/bits/poll2.h: Likewise.
8028         * io/bits/fcntl2.h: Likewise.
8029         * io/fcntl.h: Likewise.
8030         * io/sys/poll.h: Likewise.
8031         * misc/bits/syslog.h: Likewise.
8032         * misc/bits/syslog-ldbl.h: Likewise.
8033         * misc/sys/syslog.h: Likewise.
8034         * socket/bits/socket2.h: Likewise.
8035         * socket/sys/socket.h: Likewise.
8036         * debug/tst-chk1.c: Likewise.
8037         * wcsmbs/bits/wchar2.h: Likewise.
8038         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8039         * wcsmbs/wchar.h: Likewise.
8040
8041 2012-04-29  Andreas Jaeger  <aj@suse.de>
8042
8043         * Makerules (tests): Remove enable-check-abi protection.
8044         (check-abi-warn): Remove.
8045         (check-abi-%): Remove check-abi-warn usage.
8046
8047         * configure.in: Remove check-abi configure option.
8048         * configure: Regenerated.
8049         * config.make.in (enable-check-abi): Remove.
8050
8051 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8052
8053         [BZ #14033]
8054         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8055         double functions to double *_finite functions.
8056
8057         [BZ #13941]
8058         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8059         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8060         LDBL_MIN_EXP.
8061         * stdio-common/Makefile (tests): Add tst-sprintf3.
8062         * stdio-common/tst-sprintf3.c: New file.
8063
8064         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8065         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8066
8067 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8068
8069         * conform/conformtest.pl: Remove duplicate typed-constant
8070         handling.
8071
8072 2012-04-28  David S. Miller  <davem@davemloft.net>
8073
8074         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8075         (check-abi-%): Remove AWK script prerequisite and explicit
8076         abilist directory.
8077         (check-abi): Rewrite to just diff the symlist with the abilist.
8078         (config-tls, config-abi-config): Delete, no longer used.
8079         (update-abi-%): Remove AWK script and explicit abilist directory.
8080         (update-abi): Rewrite to simply compare and conditionally copy the
8081         symlist and the sysdep abilist file.  Remove update-abi-config
8082         checks.
8083         * abilist/ld.abilist: Remove.
8084         * abilist/libBrokenLocale.abilist: Remove.
8085         * abilist/libanl.abilist: Remove.
8086         * abilist/libcrypt.abilist: Remove.
8087         * abilist/libdl.abilist: Remove.
8088         * abilist/librt.abilist: Remove.
8089         * abilist/libthread_db.abilist: Remove.
8090         * abilist/libutil.abilist: Remove.
8091         * scripts/extract-abilist.awk: Remove.
8092         * scripts/merge-abilist.awk: Remove.
8093         * sysdeps/generic/libcidn.abilist: New file.
8094         * sysdeps/generic/libnss_compat.abilist: New file.
8095         * sysdeps/generic/libnss_db.abilist: New file.
8096         * sysdeps/generic/libnss_dns.abilist: New file.
8097         * sysdeps/generic/libnss_files.abilist: New file.
8098         * sysdeps/generic/libnss_hesiod.abilist: New file.
8099         * sysdeps/generic/libnss_nis.abilist: New file.
8100         * sysdeps/generic/libnss_nisplus.abilist: New file.
8101         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8102         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8103         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8104         file.
8105         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8106         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8107         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8108         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8109         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8110         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8111         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8112         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8113         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8114         file.
8115         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8116         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8117         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8118         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8119         file.
8120         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8121         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8122         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8123         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8124         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8125         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8126         file.
8127         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8128         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8129         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8130         file.
8131         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8132         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8133         New file.
8134         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8135         New file.
8136         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8137         New file.
8138         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8139         New file.
8140         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8141         New file.
8142         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8143         New file.
8144         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8145         New file.
8146         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8147         New file.
8148         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8149         New file.
8150         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8151         New file.
8152         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8153         New file.
8154         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8155         New file.
8156         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8157         New file.
8158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8159         file.
8160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8161         New file.
8162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8163         New file.
8164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8165         file.
8166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8167         New file.
8168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8169         New file.
8170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8171         file.
8172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8173         New file.
8174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8175         New file.
8176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8177         New file.
8178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8179         New file.
8180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8181         New file.
8182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8183         New file.
8184         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8185         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8186         file.
8187         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8188         New file.
8189         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8190         file.
8191         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8192         file.
8193         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8194         file.
8195         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8196         file.
8197         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8198         file.
8199         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8200         New file.
8201         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8202         file.
8203         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8204         file.
8205         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8206         New file.
8207         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8208         file.
8209         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8210         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8211         file.
8212         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8213         New file.
8214         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8215         file.
8216         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8217         file.
8218         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8219         file.
8220         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8221         file.
8222         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8223         file.
8224         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8225         New file.
8226         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8227         file.
8228         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8229         file.
8230         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8231         New file.
8232         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8233         file.
8234         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8235         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8236         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8237         file.
8238         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8239         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8240         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8241         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8242         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8243         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8244         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8245         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8246         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8247         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8248         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8249         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8250         file.
8251         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8252         New file.
8253         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8254         file.
8255         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8256         file.
8257         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8258         file.
8259         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8260         file.
8261         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8262         file.
8263         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8264         New file.
8265         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8266         New file.
8267         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8268         file.
8269         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8270         New file.
8271         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8272         file.
8273         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8274         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8275         file.
8276         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8277         New file.
8278         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8279         file.
8280         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8281         file.
8282         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8283         file.
8284         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8285         file.
8286         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8287         file.
8288         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8289         New file.
8290         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8291         New file.
8292         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8293         file.
8294         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8295         New file.
8296         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8297         file.
8298
8299 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8300
8301         * conform/conformtest.pl: Fix typo in handling typed-constant from
8302         allow-header.
8303
8304 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8305
8306         * README: Cut down references to pre-2.6 Linux kernels and
8307         Linuxthreads.  Update lists of configurations in libc and ports
8308         and sort alphabetically.  Say "or newer" with Linux kernel version
8309         requirements.
8310
8311         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8312
8313 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8314
8315         [BZ #887]
8316         * math/libm-test.inc (logb_test_downward): New test to expose
8317         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8318         rounding mode.
8319
8320 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8321
8322         [BZ #14027]
8323         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8324         to be done.
8325         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8326         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8327
8328 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8329
8330         * sysdeps/unix/i386/brk.S: Remove file.
8331         * sysdeps/unix/i386/dl-brk.S: Likewise.
8332         * sysdeps/unix/i386/pipe.S: Likewise.
8333         * sysdeps/unix/i386/sigreturn.S: Likewise.
8334         * sysdeps/unix/i386/syscall.S: Likewise.
8335         * sysdeps/unix/i386/vfork.S: Likewise.
8336         * sysdeps/unix/i386/wait.S: Likewise.
8337
8338         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8339         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8340
8341         * configure.in (arm*-none*): Do not allow without
8342         --enable-hacker-mode.
8343         (netbsd*): Remove case setting base_os.
8344         (386bsd*): Likewise.
8345         (freebsd*): Likewise.
8346         (bsdi*): Likewise.
8347         (osf*): Likewise.
8348         (sunos*): Likewise.
8349         (ultrix*): Likewise.
8350         (newsos*): Likewise.
8351         (dynix*): Likewise.
8352         (*bsd*): Likewise.
8353         (sysv*): Likewise.
8354         (isc*): Likewise.
8355         (esix*): Likewise.
8356         (sco*): Likewise.
8357         (minix*): Likewise.
8358         (irix4*): Likewise.
8359         (irix6*): Likewise.
8360         (solaris[2-9]*): Likewise.
8361         (none): Likewise.
8362         * configure: Regenerated.
8363
8364 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8365
8366         [BZ #11521]
8367         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8368         overflow or cancellation in calculating denominator.
8369         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8370         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8371         down expression to avoid unexpected rounding in newer GCCs.
8372         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8373
8374 2012-04-26  David S. Miller  <davem@davemloft.net>
8375
8376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8377         long-double compat symbols.
8378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8383         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8384         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8385         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8386         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8387         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8390         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8391
8392 2012-04-25  David S. Miller  <davem@davemloft.net>
8393
8394         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8395         HWCAP_* values only after the memory barriers have been defined.
8396         (atomic_full_barrier): Define.
8397         (atomic_read_barrier): Define.
8398         (atomic_write_barrier): Define.
8399
8400 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8401
8402         * shlib-versions: Add libgcc_s version information.
8403         * sysdeps/generic/libgcc_s.h: Remove.
8404         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8405         libgcc_s.h.
8406         * sysdeps/gnu/unwind-resume.c: Likewise.
8407         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8408
8409 2012-04-25  David S. Miller  <davem@davemloft.net>
8410
8411         * sysdeps/unix/sparc/brk.S: Delete.
8412         * sysdeps/unix/sparc/dl-brk.S: Delete.
8413         * sysdeps/unix/sparc/pipe.S: Delete.
8414         * sysdeps/unix/sparc/sysdep.S: Delete.
8415         * sysdeps/unix/sparc/sysdep.h: Delete.
8416         * sysdeps/unix/sparc/vfork.S: Delete.
8417         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8418         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8419         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8420         ret_ERRVAL, r0, r1, MOVE): Define.
8421         (JUMPTARGET): Remove.
8422         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8423         sysdeps/unix/sparc/sysdep.h
8424         (ENTRY, END): Remove.
8425         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8426
8427 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8428
8429         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8430         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8431         -DIS_IN_build.
8432
8433         * timezone/README: Update upstream location and email address for
8434         tzcode and tzdata.
8435         * timezone/zdump.c: Update from tzcode 2012b.
8436         * timezone/zic.c: Likewise.
8437
8438         * configure.in (libc_cv_as_needed): Remove test.
8439         * configure: Regenerated.
8440         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8441         conditional definition.
8442         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8443         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8444         * config.make.in (have-as-needed): Remove variable.
8445
8446 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8447             Paul Pluzhnikov  <ppluzhnikov@google.com>
8448
8449         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8450         strings correctly.
8451
8452 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8453
8454         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8455         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8456         * sysdeps/sh/strlen.S: Likewise.
8457
8458 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8459
8460         * sysdeps/unix/fork.S: Remove file.
8461         * sysdeps/unix/i386/fork.S: Likewise.
8462         * sysdeps/unix/sparc/fork.S: Likewise.
8463
8464         * sysdeps/unix/system.c: Remove file.
8465         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8466
8467         * sysdeps/unix/getegid.S: Remove file.
8468         * sysdeps/unix/geteuid.S: Likewise.
8469
8470 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8471
8472         * scripts/check-localplt.awk: New file.
8473         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8474         of diff.
8475         * scripts/data/localplt-generic.data: Add a comment.
8476
8477         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8478         NODE when __dir_mkfile failed.
8479         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8480         Reported by Ludovic Courtès <ludo@gnu.org>.
8481
8482 2012-04-24  Andreas Jaeger  <aj@suse.de>
8483
8484         * Makerules (common-clean): Also remove gen-as-const-headers
8485         files.
8486
8487 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8488
8489         * Makerules (native-compile): Do not change working directory for
8490         build.  Use $(OUTPUT_OPTION) in command.
8491         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8492
8493 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8494
8495         [BZ #13886]
8496         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8497         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8498         * math/libm-test.inc (floor_test): Add more tests.
8499         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8500
8501 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8502
8503         * sysdeps/unix/getdents.c: Remove file.
8504         * sysdeps/unix/sysv/getdents.c: Likewise.
8505         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8506
8507         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8508         sysdeps/unix/mman/syscalls.list.
8509         (mmap): Likewise.
8510         (mprotect): Likewise.
8511         (msync): Likewise.
8512         (munmap): Likewise.
8513         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8514         * sysdeps/unix/mman/syscalls.list: Remove.
8515         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8516
8517         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8518         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8519         * configure: Regenerated.
8520         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8521         $(libgcc_s_suffix).
8522         * config.make.in (libgcc_s_suffix): Remove variable.
8523
8524 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8525
8526         * sysdeps/unix/sysv/gethostname.c: Move to ...
8527         * sysdeps/posix/gethostname.c: ... here.
8528
8529         * sysdeps/unix/execve.S: Remove file.
8530
8531         * sysdeps/unix/_exit.S: Remove file.
8532
8533 2012-04-23  Andreas Jaeger  <aj@suse.de>
8534
8535         [BZ #13739]
8536         * manual/Makefile: Remove make dist support, there's no
8537         need for a stand-alone documentation tar ball.
8538         (TEXI2DVI): Define always, it's not in Makeconfig.
8539         (dist): Removed.
8540         (tar-it): Removed.
8541         (edition): Removed.
8542         (glibc-doc-$(edition).tar): Removed
8543         (%.Z): Removed.
8544         (%.gz): Removed.
8545         (%.uu): Removed.
8546         (ETAGS): Remove, it's in Makeconfig.
8547         (move-if-change): Remove, it's in Makeconfig.
8548
8549 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8550
8551         [BZ #13970]
8552         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8553         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8554         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8555         (strtod_l, strtof_l, strtold_l): Remove __wur.
8556         It is not necessarily an error to ignore strtol's return value.
8557         One can reliably look at the stored endptr to decide whether
8558         the number had valid syntax.
8559
8560 2012-04-21  Andreas Jaeger  <aj@suse.de>
8561
8562         [BZ #13739]
8563         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8564
8565 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8566
8567         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8568         * sysdeps/unix/sysv/Versions: Remove file.
8569
8570 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8571
8572         [BZ #13927]
8573         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8574
8575 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8576
8577         [BZ #7064]
8578         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8579         version from __vm86.
8580
8581 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8582
8583         * sysdeps/unix/common/lxstat.c: Remove file.
8584         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8585
8586         * sysdeps/unix/sysv/Makefile: Remove file.
8587
8588         * sysdeps/unix/sysv/direct.h: Remove file.
8589
8590         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8591         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8592         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8593         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8594         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8595         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8596         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8597
8598         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8599
8600         * sysdeps/unix/xmknod.c: Remove file.
8601         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8602
8603         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8604
8605         * sysdeps/unix/sysv/i386/time.S: Remove file.
8606
8607         * sysdeps/unix/fxstat.c: Remove file.
8608         * sysdeps/unix/xstat.c: Likewise.
8609         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8610
8611         * sysdeps/unix/sysv/sigaction.c: Remove file.
8612
8613         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8614         (sysdep_headers): Remove variable.
8615         [termio.h not in sysdep_headers] (generated): Likewise.
8616         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8617         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8618         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8619         * sysdeps/unix/sysv/tcflow.c: Likewise.
8620         * sysdeps/unix/sysv/tcflush.c: Likewise.
8621         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8622         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8623         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8624         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8625         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8626
8627         * sysdeps/unix/siglist.c: Remove file.
8628
8629         * sysdeps/unix/getppid.S: Remove file.
8630
8631         * sysdeps/unix/mkdir.c: Remove file.
8632         * sysdeps/unix/rmdir.c: Likewise.
8633
8634 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8635
8636         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8637         ERR_MAX value.
8638         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8639         errlist-compat value.
8640
8641 2012-04-18  David S. Miller  <davem@davemloft.net>
8642
8643         * sysdeps/generic/memcopy.h (reg_char): Delete.
8644         * debug/strcat_chk.c: Use char, not reg_char.
8645         * debug/strcpy_chk.c: Likewise.
8646         * debug/strncat_chk.c: Likewise.
8647         * debug/strncpy_chk.c: Likewise.
8648         * string/memchr.c: Likewise.
8649         * string/memrchr.c: Likewise.
8650         * string/rawmemchr.c: Likewise.
8651         * string/strcat.c: Likewise.
8652         * string/strchr.c: Likewise.
8653         * string/strchrnul.c: Likewise.
8654         * string/strcmp.c: Likewise.
8655         * string/strcpy.c: Likewise.
8656         * string/strncat.c: Likewise.
8657         * string/strncmp.c: Likewise.
8658         * string/strncpy.c: Likewise.
8659
8660 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8661
8662         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8663         __builtin_memcopy is called when src and dest ranges are known to not
8664         overlap.
8665
8666 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8667
8668         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8669         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8670         fwd_align_merge macro call.
8671         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8672         bwd_align_merge macro call.
8673         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8674
8675 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8676
8677         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8678         bwd_align_merge macros.
8679         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8680         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8681         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8682
8683 2012-04-18  David S. Miller  <davem@davemloft.net>
8684
8685         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8686
8687 2012-04-18  Andreas Jaeger  <aj@suse.de>
8688
8689         [BZ# 6794]
8690         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8691         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8692         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8693
8694         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8695         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8696         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8697
8698         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8699         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8700         Adjust for changed ldbl-128 files.
8701
8702         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8703         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8704         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8705
8706 2012-04-17  David S. Miller  <davem@davemloft.net>
8707
8708         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8709
8710 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8711
8712         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8713         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8714         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8715         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8716         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8717         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8718
8719 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8720
8721         [BZ #6794]
8722         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8723         * math/libm-test.inc: Add ilogb errno and exception tests.
8724         * math/w_ilogb.c: New file: ilogb wrapper.
8725         * math/w_ilogbf.c: New file: ilogbf wrapper.
8726         * math/w_ilogbl.c: New file: ilogbl wrapper.
8727         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8728         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8729         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8730         exception being thrown with 0.0 as argument.
8731         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8732         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8733         exception being thrown with 0.0 as argument.
8734         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8735         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8736         exception being thrown with 0.0 as argument.
8737         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8738         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8739         exception being thrown with 0.0 as argument.
8740         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8741         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8742         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8743         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8744         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8745         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8746         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8747         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8748         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8749
8750 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8751
8752         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8753         with altivec.
8754
8755 2012-04-16  Marek Polacek  <polacek@redhat.com>
8756
8757         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8758
8759 2012-04-16  Marek Polacek  <polacek@redhat.com>
8760
8761         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8762         operands of fdivp instruction.
8763
8764 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8765
8766         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8767         * elf/tst-auditmod3b.c: Likewise.
8768         * elf/tst-auditmod4b.c: Likewise.
8769         * elf/tst-auditmod5b.c: Likewise.
8770         * elf/tst-auditmod6b.c: Likewise.
8771         * elf/tst-auditmod6c.c: Likewise.
8772         * elf/tst-auditmod7b.c: Likewise.
8773         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8774         * sysdeps/x86_64/preconfigure.in: Likewise.
8775         * sysdeps/x86_64/preconfigure: Regenerated.
8776
8777 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8778
8779         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8780         __ILP32__.
8781
8782 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8783
8784         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8785         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8786
8787 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8788
8789         [BZ #13973]
8790         * locale/iso-639.def: Fix gl language name. Spotted by
8791         Yaron Shahrabani.
8792
8793 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8794
8795         [BZ #2074]
8796         * libio/libio.h (__io_write_fn): Update comment.
8797
8798 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8799
8800         [BZ #2074]
8801         * stdio.texi (Hook Functions): The user provided writer function
8802         is not allowed to return -1.
8803
8804 2012-04-11  David S. Miller  <davem@davemloft.net>
8805
8806         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8807
8808 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8809
8810         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8811         Add a leading slash to rtkaio.
8812
8813 2012-04-11  Jim Meyering  <meyering@redhat.com>
8814
8815         [BZ #11959]
8816         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8817         It is not necessarily an error to ignore fwrite's return
8818         value.  One can reliably use ferror to test for errors after
8819         the fact.
8820
8821 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8822
8823         * bits/types.h (__snseconds_t): New type.
8824         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8825
8826         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8827         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8828         (__SNSECONDS_T_TYPE): Likewise.
8829         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8830         (__SNSECONDS_T_TYPE): Likewise.
8831         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8832         (__SNSECONDS_T_TYPE): Likewise.
8833
8834 2012-04-10  Andreas Jaeger  <aj@suse.de>
8835
8836         [BZ #2636]
8837         * manual/time.texi (Processor Time): Return type of times is
8838         elapsed real time since an arbitrary point in the past.
8839         (CPU Time): Move CLK_TCK from here...
8840         (Processor Time): ...to here.  Correct description.
8841         * manual/conf.texi (Constants for Sysconf): Correct description of
8842         _SC_CLK_TCK.
8843
8844 2012-04-10  David S. Miller  <davem@davemloft.net>
8845
8846         [BZ #13967]
8847         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8848         where the is a gap between DT_REL(A) and DT_JMPREL.
8849
8850 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8851
8852         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8853         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8854         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8855
8856 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8857
8858         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8859         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8860         (dl_main): Handle --inhibit-cache.
8861         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8862         _dl_inhibit_cache.
8863         * elf/dl-load.c (_dl_map_object): Use it.
8864         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8865
8866 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8867
8868         [BZ #13872]
8869         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8870         (__ieee754_powl): Saturate large exponents rather than testing for
8871         overflow of y*log2(x).
8872         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8873         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8874         exceptions.
8875
8876         [BZ #11521]
8877         * math/s_ctan.c: Include <float.h>.
8878         (__ctan): Avoid internal overflow or cancellation in calculating
8879         denominator.
8880         * math/s_ctanf.c: Likewise.
8881         * math/s_ctanl.c: Likewise.
8882         * math/s_ctanh.c: Likewise.
8883         * math/s_ctanhf.c: Likewise.
8884         * math/s_ctanhl.c: Likewise.
8885         * math/libm-test.inc (ctan_test): Add more tests.
8886         (ctanh_test): Likewise.
8887         * sysdeps/i386/fpu/libm-test-ulps: Update.
8888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8889
8890 2012-04-09  Andreas Jaeger  <aj@suse.de>
8891
8892         [BZ #6894]
8893         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8894         is an optional BSD extension.
8895
8896         [BZ #10254]
8897         * manual/stdio.texi (Opening Streams): Document additional fopen
8898         parameters.
8899
8900 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8901
8902         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8903         %eax without telling the compiler.
8904
8905 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8906
8907         [BZ # 13963]
8908         * manual/install.texi: Use sourceware.org.
8909
8910 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8911
8912         [BZ #13873]
8913         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8914         (__ieee754_pow): Generate overflow and underflow using huge*huge
8915         and tiny*tiny rather than just returning constant infinity or zero
8916         for large exponents.
8917         * math/libm-test.inc (pow_test): Require overflow exceptions for
8918         applicable cases of large exponents.
8919
8920         [BZ #706]
8921         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8922         (__ieee754_pow): Use iterative multiplication algorithm only for
8923         integer exponents with absolute value below 1024.  Check for odd
8924         integer exponents when using algorithm for real exponents.
8925         * math/libm-test.inc (pow_test): Add more tests.
8926         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8927
8928 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8929
8930         [BZ #13705]
8931         * math/libm-test.inc (exp_test): Do not allow overflow exception
8932         on underflow test.
8933
8934 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8935
8936         [BZ #13705]
8937         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8938         instead of __kernel_standard_f.
8939
8940 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8941
8942         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8943         * sysdeps/x86_64/memset_chk.S: Likewise.
8944
8945 2012-04-08  Andreas Jaeger  <aj@suse.de>
8946
8947         [BZ #10153]
8948         * manual/startup.texi (Environment Access): Describe return value
8949         for putenv and setenv.
8950
8951         [BZ #6895]
8952         * manual/filesys.texi (Directory Entries): Add description for
8953         DT_LNK.
8954
8955         [BZ #6890]
8956         * manual/filesys.texi (Directory Entries): Clarify that it's file
8957         system not operating system in the description of DT_UNKNOWN.
8958
8959         [BZ #6578]
8960         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8961
8962 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8963
8964         [BZ #6649]
8965         * manual/llio.texi (Opening and Closing Files): Add cross
8966         reference to explain mode argument.
8967
8968 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8969
8970         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8971         * sysdeps/x86_64/memset_chk.S: Likewise.
8972
8973 2012-04-07  David S. Miller  <davem@davemloft.net>
8974
8975         * elf/elf.h (R_SPARC_WDISP10): Define.
8976         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8977         R_SPARC_SIZE32.
8978         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8979         R_SPARC_SIZE64 and R_SPARC_H34.
8980
8981 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8982
8983         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8984         conditions and remove no longer applicable assertion.
8985
8986 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8987
8988         * bits/byteswap.h: Include <features.h>.
8989         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8990         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8991
8992 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8993
8994         * bits/byteswap.h (__bswap_16): Removed.
8995         Include <bits/byteswap-16.h> to get __bswap_16.
8996         * sysdeps/i386/bits/byteswap.h: Likewise.
8997         * sysdeps/s390/bits/byteswap.h: Likewise.
8998         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8999         * bits/byteswap-16.h: New file.
9000         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9001         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9002         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9003         * string/Makefile (headers): Add bits/byteswap-16.h.
9004
9005 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9006
9007         [BZ #13895]
9008         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9009         extra indirection.
9010         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9011         * nss/tst-nss-static.c: New.
9012
9013 2012-04-06  Robert Millan  <rmh@gnu.org>
9014
9015         [BZ #6486]
9016         * manual/llio.texi (File Position Primitive): lseek
9017         refers to WHENCE when it really means OFFSET.
9018
9019 2012-04-06  Andreas Jaeger  <aj@suse.de>
9020
9021         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9022         strncmp declarations.
9023
9024         * abilist/libc.abilist: Add __poll and __ppoll.
9025
9026 2012-04-05  David S. Miller  <davem@davemloft.net>
9027
9028         * scripts/check-local-headers.sh: Accept a host triplet in the
9029         path matched by the exclude regexp.
9030
9031         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9032         definition.
9033         * sysdeps/powerpc/powerpc32/dl-machine.h
9034         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9035         * sysdeps/s390/s390-32/dl-machine.h
9036         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9037         * sysdeps/sparc/sparc32/dl-machine.h
9038         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9039         * sysdeps/sparc/sparc64/dl-machine.h
9040         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9041
9042         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9043         lazy binding.
9044         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9045         undefined symbol errors.
9046
9047         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9048         DT_NEEDED entries.
9049
9050 2012-04-05  Michael Matz  <matz@suse.de>
9051
9052         [BZ #13592]
9053         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9054
9055 2012-04-05  Andreas Jaeger  <aj@suse.de>
9056
9057         [BZ #13908]
9058         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9059         comment.
9060
9061 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9062
9063         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9064         which ROUND is no valid rounding mode.
9065
9066 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9067
9068         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9069         read again.
9070         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9071
9072 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9073
9074         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9075         an exception using FPU order intentionally.
9076
9077 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9078
9079         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9080         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9081         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9082         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9083
9084 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9085
9086         [BZ #12340]
9087         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9088         EINVAL when BUFLEN is too smal.
9089
9090 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9091
9092         [BZ #13553]
9093         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9094         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9095
9096 2012-04-03  Andreas Jaeger  <aj@suse.de>
9097
9098         [BZ #13938]
9099         * manual/setjmp.texi (System V contexts): Fix sentence.
9100
9101         [BZ #13926]
9102         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9103         New macro for this case.
9104         [!__GNUC__] (__bswap_64): New inline function for this case.
9105         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9106         * bits/byteswap.h: Likewise.
9107         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9108         ull, guard with __GLIBC_HAVE_LONG_LONG.
9109
9110         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9111         __GLIBC_HAVE_LONG_LONG.
9112
9113         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9114         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9115
9116 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9117
9118         [BZ #13691]
9119         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9120         inptr and inend, rather than using last_ch.
9121
9122 2012-04-02  David S. Miller  <davem@davemloft.net>
9123
9124         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9125         * stdio-common/printf-parse.h (read_int): Change return type to
9126         'int', return -1 on INT_MAX overflow.
9127         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9128         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9129         overflows INT_MAX.  Check for overflow of in-format-string precision
9130         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9131         SIZE_MAX not INT_MAX for integer overflow test.
9132         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9133         skip the construct in the format string but do not record anything.
9134         * stdio-common/bug22.c: Adjust to test both width/prevision
9135         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9136         explicitly for proper errno values.
9137
9138 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9139
9140         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9141         CHAR_MAX.
9142         * string/test-strcmp.c [! WIDE]: Likewise.
9143         * time/tst-mktime2.c: Likewise for INT_MAX.
9144         * string/test-string.h: #include <sys/param.h> for MIN.
9145
9146         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9147         * sysdeps/i386/init-first.c (init): Likewise.
9148         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9149         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9150         * sysdeps/sh/init-first.c (init): Likewise.
9151
9152 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9153
9154         * po/ru.po: Update from translation team.
9155         * po/vi.po: Likewise.
9156
9157 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9158
9159         * resolv/nss_dns/dns-host.c: Merge copyright years.
9160
9161 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9162
9163         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9164         Optimize memcpy with prefetch if
9165         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9166         src, dst pointers have unequal 16 byte alignments.
9167
9168 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9169
9170         [BZ #13928]
9171         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9172         from a CNAME entry and return the minimum ttl for the query.
9173         (gaih_getanswer_slice): Likewise.
9174
9175 2012-03-30  Jeff Law  <law@redhat.com>
9176
9177         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9178         due to long keys.
9179         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9180         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9181
9182         * resolv/nss_dns/dns-host.c: Update copyright year.
9183
9184 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9185
9186         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9187         requests to save a system call.  Fix check that all bytes are sent.
9188
9189         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9190         comments for sendmmsg.
9191
9192 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9193
9194         [BZ #13691]
9195         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9196         with only 1 character between 0x0041 and 0x01b0.
9197         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9198         * wcsmbs/tst-mbsnrtowcs.c: New file.
9199
9200 2012-03-29  David S. Miller  <davem@davemloft.net>
9201
9202         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9203         small copies by hand.
9204
9205 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9206
9207         [BZ #13761]
9208         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9209         _nss_compat_initgroups_dyn): Fall back to malloc/free
9210         for large group memberships.
9211
9212 2012-03-28  David S. Miller  <davem@davemloft.net>
9213
9214         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9215         that branches into memcpy.
9216         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9217         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9218         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9219         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9220         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9221         bits.
9222         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9223         implementation too.
9224         * sysdeps/sparc/mempcpy.S: New file.
9225
9226         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9227         the IFUNC routine in the libc case.
9228         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9229
9230         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9231         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9232         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9233         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9234         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9235         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9236         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9237         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9238
9239         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9240         loop to 256 bytes instead of 64 bytes and fix test signedness.
9241
9242         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9243         * sysdeps/sparc/sparc32/Makefile: rather than here...
9244         * sysdeps/sparc/sparc64/Makefile: and here.
9245
9246 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9247
9248         * malloc/mallocbug.c: Avoid warnings about unused variables.
9249
9250 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9251
9252         [BZ #13760]
9253         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9254         in the right place. Discard and retry query if response is
9255         larger than input buffer size.
9256
9257 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9258
9259         [BZ #369]
9260         [BZ #2678]
9261         [BZ #3866]
9262         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9263         x for large integer exponent.
9264         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9265         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9266         sign of result as needed afterwards.
9267         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9268         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9269         result for underflowing pow the same as for overflow.
9270         (__kernel_standard_l): Handle powl overflow and underflow here
9271         rather than calling __kernel_standard.
9272         * math/libm-test.inc (pow_test): Add more tests.
9273
9274         [BZ #3868]
9275         [BZ #13879]
9276         [BZ #13910]
9277         [BZ #13911]
9278         [BZ #13912]
9279         [BZ #13913]
9280         [BZ #13915]
9281         [BZ #13916]
9282         [BZ #13917]
9283         [BZ #13918]
9284         [BZ #13919]
9285         [BZ #13920]
9286         [BZ #13921]
9287         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9288         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9289         (__kernel_standard_l): New function.
9290         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9291         __kernel_standard.
9292         * math/w_acosl.c (__acosl): Likewise.
9293         * math/w_asinl.c (__asinl): Likewise.
9294         * math/w_atan2l.c (__atan2l): Likewise.
9295         * math/w_atanhl.c (__atanhl): Likewise.
9296         * math/w_coshl.c (__coshl): Likewise.
9297         * math/w_exp10l.c (__exp10l): Likewise.
9298         * math/w_exp2l.c (__exp2l): Likewise.
9299         * math/w_fmodl.c (__fmodl): Likewise.
9300         * math/w_hypotl.c (__hypotl): Likewise.
9301         * math/w_j0l.c (__j0l, __y0l): Likewise.
9302         * math/w_j1l.c (__j1l, __y1l): Likewise.
9303         * math/w_jnl.c (__jnl, __ynl): Likewise.
9304         * math/w_lgammal.c (__lgammal): Likewise.
9305         * math/w_log10l.c (__log10l): Likewise.
9306         * math/w_log2l.c (__log2l): Likewise.
9307         * math/w_logl.c (__logl): Likewise.
9308         * math/w_powl.c (__powl): Likewise.
9309         * math/w_remainderl.c (__remainderl): Likewise.
9310         * math/w_scalbl.c (sysv_scalbl): Likewise.
9311         * math/w_sinhl.c (__sinhl): Likewise.
9312         * math/w_sqrtl.c (__sqrtl): Likewise.
9313         * math/w_tgammal.c (__tgammal): Likewise.
9314         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9315         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9316         * math/libm-test.inc (acos_test): Add more tests.
9317         (acosh_test): Likewise.
9318         (asin_test): Likewise.
9319         (atanh_test): Likewise.
9320         (exp_test): Likewise.
9321         (exp10_test): Likewise.
9322         (exp2_test): Likewise.
9323         (expm1_test): Likewise.
9324         (lgamma_test): Likewise.
9325         (log_test): Likewise.
9326         (log10_test): Likewise.
9327         (log1p_test): Likewise.
9328         (log2_test): Likewise.
9329         (pow_test): Do not allow some spurious overflow exceptions.
9330         (sqrt_test): Add more tests.
9331         (tgamma_test): Likewise.
9332         (y0_test): Likewise.
9333         (y1_test): Likewise.
9334         (yn_test): Likewise.
9335
9336 2012-03-27  Anton Blanchard  <anton@samba.org>
9337
9338         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9339         MAP_HUGETLB.
9340         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9341         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9342         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9343
9344 2012-03-27  David S. Miller  <davem@davemloft.net>
9345
9346         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9347
9348         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9349         have-as-vis3 check.
9350
9351 2012-03-27  Andreas Jaeger  <aj@suse.de>
9352
9353         * sysdeps/x86_64/elf/configure.in: Moved to ...
9354         * sysdeps/x86_64/configure.in: ... here.
9355         * sysdeps/x86_64/elf/start.S: Moved to ...
9356         * sysdeps/x86_64/start.S: ... here.
9357         * sysdeps/x86_64/elf/configure: Delete.
9358
9359         * sysdeps/x86_64/configure.in: Merge contents from
9360         sysdeps/i386/configure.in (without i686 check).
9361
9362         * sysdeps/i386/elf/Versions: Merge into ...
9363         * sysdeps/i386/Versions: ... this.
9364         * sysdeps/i386/elf/Versions: Delete file.
9365         * sysdeps/i386/elf/start.S: Moved to ...
9366         * sysdeps/i386/start.S: ...here.
9367         * sysdeps/i386/elf/configure.in: Merge into...
9368         * sysdeps/i386/configure.in: ...here.
9369         * sysdeps/i386/elf/configure.in: Delete file.
9370         * sysdeps/i386/elf/configure: Delete file.
9371
9372         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9373         * debug/backtracesyms.c: ... here.
9374         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9375         * debug/backtracesymsfd.c: ... here.
9376         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9377         * sysdeps/generic/ifunc-sel.h: ... here.
9378
9379         * sysdeps/unix/i386/start.c: Delete file.
9380         * sysdeps/unix/sparc/start.c: Delete file.
9381         * sysdeps/unix/start.c: Delete file.
9382
9383         * sysdeps/sh/elf/configure.in: Moved to ...
9384         * sysdeps/sh/configure.in: ... here.
9385         * sysdeps/sh/elf/start.S: Moved to ...
9386         * sysdeps/sh/start.S: ... here.
9387         * sysdeps/sh/elf/configure: Delete file.
9388
9389         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9390         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9391         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9392         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9393         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9394         * sysdeps/powerpc/powerpc64/start.S: here.
9395         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9396         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9397         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9398         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9399         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9400
9401         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9402         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9403         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9404         * sysdeps/powerpc/powerpc32/start.S: ... here.
9405         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9406         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9407         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9408
9409         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9410         * sysdeps/powerpc/ifunc-sel.h: ... here.
9411         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9412         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9413
9414         * sysdeps/sparc/elf/configure.in: Moved to ...
9415         * sysdeps/sparc/configure.in: ... here.
9416         * sysdeps/sparc/elf/configure: Delete file.
9417         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9418         * sysdeps/sparc/sparc32/start.S: ... here.
9419         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9420         * sysdeps/sparc/sparc64/start.S: ... here.
9421         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9422         * sysdeps/sparc/sparc32/Makefile: ... this.
9423         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9424         * sysdeps/sparc/sparc64/Makefile: ... this.
9425
9426         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9427         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9428         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9429         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9430         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9431         * sysdeps/s390/s390-32/setjmp.S: ... here.
9432         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9433         * sysdeps/s390/s390-32/configure.in: ... here.
9434         * sysdeps/s390/s390-32/elf/configure: Delete file.
9435         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9436         * sysdeps/s390/s390-32/start.S: ... here.
9437
9438         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9439         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9440         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9441         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9442         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9443         * sysdeps/s390/s390-64/setjmp.S: ... here.
9444         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9445         * sysdeps/s390/s390-64/configure.in: ... here
9446         * sysdeps/s390/s390-64/elf/configure: Delete file.
9447         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9448         * sysdeps/s390/s390-64/start.S: ... here.
9449         * sysdeps/s390/s390-64/elf/configure: Delete.
9450
9451         * configure.in: Remove support for elf directories in sysdeps.
9452
9453         * configure: Regenerated.
9454         * sysdeps/i386/configure: Regenerated.
9455         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9456         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9457         * sysdeps/s390/s390-32/configure: Regenerated.
9458         * sysdeps/s390/s390-64/configure: Regenerated.
9459         * sysdeps/sh/configure: Regenerated.
9460         * sysdeps/sparc/configure: Regenerated.
9461         * sysdeps/x86_64/configure: Regenerated.
9462
9463 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9464
9465         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9466
9467         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9468         denormal result into account.
9469
9470 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9471
9472         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9473         Reported by Allan McRae <allan@archlinux.org>.
9474
9475 2012-03-23  Jeff Law  <law@redhat.com>
9476
9477         * nss/getnssent.c (__nss_getent): Fix typo.
9478
9479 2012-03-23  David S. Miller  <davem@davemloft.net>
9480
9481         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9482
9483 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9484
9485         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9486         to pad to uint64_t for each field.
9487         (dl_tls_index): Replace unsigned long with uint64_t.
9488
9489 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9490         Paul Pluzhnikov  <ppluzhnikov@google.com>
9491
9492         [BZ #6528]
9493         * grp/Makefile (otherlibs): Don't set it.
9494         * inet/Makefile (otherlibs): Likewise.
9495         * login/Makefile (otherlibs): Likewise.
9496         * nscd/Makefile (otherlibs): Likewise.
9497         * posix/Makefile (otherlibs): Likewise.
9498         * pwd/Makefile (otherlibs): Likewise.
9499         * rt/Makefile (otherlibs): Likewise.
9500         * sunrpc/Makefile (otherlibs): Likewise.
9501         * nss/Makefile (otherlibs): Likewise.
9502         Add libnss_files to routines and static-only-routines.
9503         ($(objpfx)getent): Remove rule.
9504         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9505         static-only-routines.
9506
9507 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9508
9509         [BZ #13892]
9510         * math/s_cexp.c: Include <float.h>.
9511         (__cexp): Handle exp result overflowing not necessarily
9512         overflowing both real and imaginary parts of result.
9513         * math/s_cexpf.c: Likewise.
9514         * math/s_cexpl.c: Likewise.
9515         * math/libm-test.inc (cexp_test): Add more tests.
9516         * sysdeps/i386/fpu/libm-test-ulps: Update.
9517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9518
9519 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9520
9521         * include/link.h (ELFW): New macro.
9522         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9523         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9524
9525 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9526
9527         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9528         with uint64_t.
9529
9530 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9531
9532         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9533         declaration.
9534         (struct La_x32_retval): Likewise.
9535
9536 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9537
9538         * sysdeps/x86_64/preconfigure.in: New file.
9539         * sysdeps/x86_64/preconfigure: New generated file.
9540
9541 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9542
9543         [BZ #13824]
9544         * math/e_exp2l.c: Include <float.h>.
9545         (__ieee754_exp2l): Handle overflow and underflow cases
9546         separately.  Only pass fractional part of argument to
9547         __ieee754_expl.
9548         * math/libm-test.inc (exp2_test): Add more tests.
9549
9550         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9551         negating x to take absolute value.
9552         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9553         Likewise.
9554         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9555         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9556         Likewise.
9557         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9558         computing low part if x was negated.
9559         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9560
9561 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9562
9563         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9564         la_x32_gnu_pltexit.
9565         (pltexit): Cast int_retval to ptrdiff_t.
9566         * elf/tst-auditmod3b.c: Likewise.
9567         * elf/tst-auditmod4b.c: Likewise.
9568         * elf/tst-auditmod5b.c: Likewise.
9569         * elf/tst-auditmod6b.c: Likewise.
9570         * elf/tst-auditmod6c.c: Likewise.
9571         * elf/tst-auditmod7b.c: Likewise.
9572
9573         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9574         and x32_gnu_pltexit.
9575
9576         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9577         __ELF_NATIVE_CLASS.
9578         (La_x32_regs): New macro.
9579         (La_x32_retval): Likewise.
9580         (la_x32_gnu_pltenter): New function prototype.
9581         (la_x32_gnu_pltexit): Likewise.
9582
9583 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9584
9585         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9586         exponent.
9587
9588         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9589
9590         * configure.in (libc_cv_cc_nofma): Check for option to disable
9591         generation of FMA instructions.
9592         * configure: Regenerate.
9593         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9594         * sysdeps/ieee754/dbl-64/Makefile: New file.
9595         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9596         Remove brandred-fma4.
9597         (CFLAGS-brandred-fma4.c): Remove.
9598         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9599         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9600         define.
9601         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9602         define.
9603
9604 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9605
9606         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9607         LLONG_MAX != LONG_MAX.
9608         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9609         (_fitoa_word): Likewise.
9610         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9611         LLONG_MAX != LONG_MAX.
9612         * stdio-common/_itowa.h: Include <_itoa.h>.
9613         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9614         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9615         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9616         only if not defined.
9617         (_ITOA_WORD_TYPE): Likewise.
9618         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9619         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9620
9621 2012-03-21  David S. Miller  <davem@davemloft.net>
9622
9623         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9624
9625 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9626
9627         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9628         of x86_64 when setting libc_cv_slibdir, libdir and
9629         libc_cv_localedir.
9630         * sysdeps/unix/sysv/linux/configure: Regenerated.
9631
9632 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9633
9634         * manual/lang.texi (Old Varargs): Remove section.
9635         (How Variadic): Update menu.
9636         (va_start): Do not mention varargs.h.
9637
9638 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9639             Joseph Myers  <joseph@codesourcery.com>
9640
9641         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9642         link test.
9643         * configure: Regenerated.
9644
9645 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9646
9647         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9648         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9649         conformtest.pl
9650
9651 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9652
9653         * NOTES: Remove.
9654         * Makefile (files-for-dist): Remove NOTES.
9655         (NOTES): Remove rule.
9656         * README: Don't refer to NOTES.
9657         * manual/creature.texi: Don't include macros.texi.
9658         * manual/intro.texi (creature.texi): Remove comment referring to
9659         NOTES.
9660
9661         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9662         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9663         * configure: Regenerated.
9664         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9665         LIBC_TRY_CC_OPTION.
9666         (libc_cv_as_i686): Likewise.
9667         (libc_cv_cc_avx): Likewise.
9668         (libc_cv_cc_sse2avx): Likewise.
9669         (libc_cv_cc_fma4): Likewise.
9670         (libc_cv_cc_novzeroupper): Likewise.
9671         * sysdeps/i386/configure: Regenerated.
9672
9673         [BZ #13883]
9674         * sysdeps/i386/fpu/s_cexp.S: Remove.
9675         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9676         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9677         * math/libm-test.inc (cexp_test): Add more tests.
9678         * sysdeps/i386/fpu/libm-test-ulps: Update.
9679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9680
9681 2012-03-21  Allan McRae  <allan@archlinux.org>
9682
9683         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9684
9685 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9686
9687         [BZ #13871]
9688         * math/w_exp2.c: Do not include <float.h>.
9689         (o_threshold, u_threshold): Remove.
9690         (__exp2): Calculate result before checking finiteness and calling
9691         __kernel_standard.
9692         * math/w_exp2f.c: Likewise.
9693         * math/w_exp2l.c: Likewise.
9694         * math/libm-test.inc (exp2_test): Require overflow exception for
9695         1e6 input.
9696
9697         [BZ #3866]
9698         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9699         range of signed 64-bit integers before using fistpll.  Remove
9700         checks for whether integers fit in mantissa bits.
9701         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9702         the range of signed 32-bit integers before using fistpl.  Remove
9703         checks for whether integers fit in mantissa bits.
9704         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9705         (__ieee754_powl): Test for y outside the range of signed 64-bit
9706         integers before using fistpll.  Reduce 64-bit values to 63-bit
9707         ones as needed.
9708         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9709         divide-by-zero is raised for zero to large negative powers.
9710         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9711         (__ieee754_powl): Test for y outside the range of signed 64-bit
9712         integers before using fistpll.  Reduce 64-bit values to 63-bit
9713         ones as needed.
9714         * math/libm-test.inc (pow_test): Add more tests.
9715
9716 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9717
9718         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9719         <stdio-common/_itoa.h>.
9720         * debug/segfault.c: Likewise.
9721         * elf/dl-cache.c: Likewise.
9722         * elf/dl-minimal.c: Likewise.
9723         * elf/dl-misc.c: Likewise.
9724         * elf/dl-sysdep.c: Likewise.
9725         * elf/dl-version.c: Likewise.
9726         * elf/rtld.c: Likewise.
9727         * hurd/hurdsock.c: Likewise.
9728         * hurd/lookup-retry.c: Likewise.
9729         * malloc/malloc.c: Likewise.
9730         * malloc/mtrace.c: Likewise.
9731         * nscd/nscd_getgr_r.c: Likewise.
9732         * nscd/nscd_getpw_r.c: Likewise.
9733         * nscd/nscd_getserv_r.c: Likewise.
9734         * posix/getopt_init.c: Likewise.
9735         * posix/wordexp.c: Likewise.
9736         * stdio-common/_itoa.c: Likewise.
9737         * stdio-common/printf_fphex.c: Likewise.
9738         * stdio-common/vfprintf.c: Likewise.
9739         * string/_strerror.c: Likewise.
9740         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9741         * sysdeps/i386/i686/hp-timing.h: Likewise.
9742         * sysdeps/mach/_strerror.c: Likewise.
9743         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9744         * sysdeps/mach/hurd/sethostid.c: Likewise.
9745         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9746         * sysdeps/mach/xpg-strerror.c: Likewise.
9747         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9748         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9749         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9750         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9751         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9752         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9753         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9754         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9755         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9756         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9757         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9758         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9759         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9760         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9761         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9762         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9763         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9764         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9765         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9766         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9767         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9768
9769         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9770
9771         * stdio-common/_itoa.h: Moved to ...
9772         * sysdeps/generic/_itoa.h: Here.
9773
9774         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9775
9776         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9777         instead of "_itoa.h" and "_itowa.h".
9778         * stdio-common/vfprintf.: Likewise.
9779
9780 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9781
9782         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9783         <bits/wordsize.h>.
9784         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9785         (__signbit): Likwise.
9786         (llrintf): Likwise.
9787         (llrint): Likwise.
9788
9789 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9790
9791         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9792         __WORDSIZE != 64.
9793
9794 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9795
9796         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9797         OVERFLOW_EXCEPTION_OK.
9798         * math/libm-test.inc ("Philosophy"): Update comment about
9799         exception testing.
9800         (OVERFLOW_EXCEPTION): Define.
9801         (OVERFLOW_EXCEPTION_OK): Likewise.
9802         (INVALID_EXCEPTION_OK): Renumber.
9803         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9804         (IGNORE_ZERO_INF_SIGN): Likewise.
9805         (test_exceptions): Handle FE_OVERFLOW.
9806         (exp10_test): Expect overflow exceptions.
9807         (exp2_test): Likewise.
9808         (expm1_test): Likewise.
9809         (nextafter_test): Likewise.
9810         (pow_test): Likewise.
9811         (scalbn_test): Likewise.
9812         (scalbln_test): Likewise.
9813
9814 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9815
9816         * sysdeps/x86_64/bits/atomic.h
9817         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9818         64bit integer.
9819         (atomic_exchange_acq): Likewise.
9820         (__arch_exchange_and_add_body): Likewise.
9821         (__arch_add_body): Likewise.
9822         (atomic_add_negative): Likewise.
9823         (atomic_add_zero): Likewise.
9824
9825 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9826
9827         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9828         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9829
9830 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9831
9832         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9833         Check __x86_64__ instead of __WORDSIZE.
9834
9835 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9836
9837         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9838
9839 2012-03-19  David S. Miller  <davem@davemloft.net>
9840
9841         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9842
9843         * sysdeps/sparc/fpu/fenv_private.h: New file.
9844         * sysdeps/sparc/fpu/math_private.h: Use it.
9845         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9846         Remove.
9847         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9848         (libc_feholdexcept_setroundl): Remove.
9849         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9850         Remove.
9851         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9852         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9853
9854 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9855
9856         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9857         int64_t instead of long int.
9858         (INSERT_WORDS64): Likwise.
9859
9860 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9861
9862         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9863         _Unwind_GetCFA return to _Unwind_Ptr first.
9864
9865 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9866
9867         [BZ #13629]
9868         * math/s_clog.c: Include <float.h>.
9869         (__clog): Scale large or subnormal inputs.
9870         * math/s_clogf.c: Likewise.
9871         * math/s_clogl.c: Likewise.
9872         * math/s_clog10.c: Include <float.h>.
9873         (M_LOG10_2): Define.
9874         (__clog10): Scale large or subnormal inputs.
9875         * math/s_clog10f.c: Likewise.
9876         * math/s_clog10l.c: Likewise.
9877         * math/libm-test.inc (clog_test): Add more tests.
9878         (clog10_test): Likewise.
9879         * sysdeps/i386/fpu/libm-test-ulps: Update.
9880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9881
9882         [BZ #11451]
9883         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9884         x and y.
9885         * math/libm-test.inc (atan2_test): Add another test.
9886
9887         * Makerules (common-objdir-compile): Remove.
9888         * sysdeps/unix/Makefile (config-generated): Do not add
9889         $(unix-generated) to variable.
9890         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9891         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9892         Remove rule.
9893         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9894         Likewise.
9895         [generic bits/local_lim.h] (before-compile): Do not append to
9896         variable.
9897         [generic bits/local_lim.h] (common-generated): Likewise.
9898         [generic sys/param.h] (before-compile): Do not append to variable.
9899         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9900         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9901         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9902         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9903         include.
9904         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9905         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9906         [generic sys/param.h] ($(addprefix
9907         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9908         [generic sys/param.h] (common-generated): Do not append to
9909         variable.
9910         [generic sys/param.h] (sysdep_headers): Likewise.
9911         [generic bits/errno.h] (before-compile): Do not append to
9912         variable.
9913         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9914         rule.
9915         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9916         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9917         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9918         [generic bits/errno.h] (common-generated): Do not append to
9919         variable.
9920         [generic bits/ioctls.h] (before-compile): Do not append to
9921         variable.
9922         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9923         rule.
9924         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9925         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9926         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9927         rule.
9928         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9929         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9930         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9931         [generic bits/ioctls.h] (common-generated): Do not append to
9932         variable.
9933         [generic sys/syscall.h] (syscall.h): Remove variable.
9934         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9935         rule.
9936         [generic sys/syscall.h] (before-compile): Do not append to
9937         variable.
9938         [generic sys/syscall.h] (common-generated): Likewise.
9939         * sysdeps/unix/errnos-tmpl.c: Remove file.
9940         * sysdeps/unix/errnos.awk: Likewise.
9941         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9942         * sysdeps/unix/ioctls.awk: Likewise.
9943         * sysdeps/unix/mk-local_lim.c: Likewise.
9944         * sysdeps/unix/snarf-ioctls: Likewise.
9945
9946 2012-03-19  Richard Henderson  <rth@twiddle.net>
9947
9948         * sysdeps/i386/fpu/fenv_private.h: New file.
9949         * sysdeps/i386/fpu/math_private.h: Use it.
9950         (math_opt_barrier, math_force_eval): Remove.
9951         (libc_feholdexcept_setround_53bit): Remove.
9952         (libc_feupdateenv_53bit): Remove.
9953         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9954         (math_opt_barrier, math_force_eval): Remove.
9955         (libc_feholdexcept): Remove.
9956         (libc_feholdexcept_setround): Remove.
9957         (libc_fetestexcept, libc_fesetenv): Remove.
9958         (libc_feupdateenv_test): Remove.
9959         (libc_feupdateenv, libc_feholdsetround): Remove.
9960         (libc_feresetround): Remove.
9961
9962         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9963         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9964
9965         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9966         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9967         (libc_feupdateenv_testl): New.
9968         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9969         (libc_feupdateenv_testf): New.
9970         (libc_feupdateenv): Use libc_feupdateenv_test.
9971         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9972         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9973
9974         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9975         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9976         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9977         (libc_feresetround_noex): New.
9978         (libc_feresetround_noexf): New.
9979         (libc_feresetround_noexl): New.
9980         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9981         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9982         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9983         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9984         SET_RESTORE_ROUND.
9985         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9986         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9987         (__cos): Likewise.
9988         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9989         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9990         SET_RESTORE_ROUND_NOEX.
9991         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9992         SET_RESTORE_ROUND_NOEXF.
9993         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9994         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9995         (libc_feholdsetroundf): New.
9996         (libc_feresetround, libc_feresetroundf): New.
9997
9998         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9999         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10000         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10001
10002         * sysdeps/generic/math_private.h: Include <fenv.h>.
10003         (default_libc_feholdexcept): New.
10004         (default_libc_feholdexcept_setround): New.
10005         (default_libc_fesetenv, default_libc_feupdateenv): New.
10006         (libc_feholdexcept): Only define if undefined.
10007         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10008         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10009         (libc_feholdexcept_setroundl): Likewise.
10010         (libc_feholdexcept_setround_53bit): Likewise.
10011         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10012         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10013         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10014         (libc_feupdateenv_53bit): Likewise.
10015         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10016         (libc_feholdexcept): Convert from macro to inline function.
10017         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10018         (libc_fesetenv, libc_feupdateenv): Likewise.
10019
10020         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10021         not previously defined.
10022         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10023         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10024         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10025         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10026         * sysdeps/ieee754/flt-32/math_private.h: New file.
10027         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10028         math_private.h below SET_FLOAT_WORD.
10029         (__isnan, __isinf_ns, __finite): Remove.
10030         (__isnanf, __isinf_nsf, __finitef): Remove.
10031
10032 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10033
10034         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10035
10036 2012-03-17  David S. Miller  <davem@davemloft.net>
10037
10038         [BZ #6471]
10039         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10040         for 2.16.
10041
10042 2012-03-16  David S. Miller  <davem@davemloft.net>
10043
10044         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10045         warnings.
10046
10047         [BZ #6471]
10048         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10049         properly.
10050         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10051         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10052         sysdep_routines when subdir is sysvipc.
10053         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10054         __getshmlba helper.
10055
10056         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10057
10058 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10059
10060         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10061         [__LP64__].
10062
10063 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10064
10065         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10066         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10067         (__lround): Renamed to ...
10068         (__llround): This.  Replace long int with long long int.
10069         Define lround functions as aliases of llround functions.
10070         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10071
10072 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10073
10074         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10075         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10076         adresses to uintptr_t.  Replace "long int" and "unsigned long
10077         int" with "greg_t" on va_arg.
10078
10079 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10080
10081         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10082         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10083
10084         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10085         Move e_machine check before EI_CLASS check.  Handle x32
10086         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10087         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10088         SKIP_EM_IA_64 and include
10089         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10090
10091         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10092         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10093         (add_system_dir): New macro.
10094
10095         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10096         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10097
10098 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10099
10100         [BZ #2551]
10101         [BZ #2552]
10102         [BZ #2553]
10103         [BZ #2554]
10104         [BZ #2562]
10105         [BZ #2563]
10106         [BZ #2565]
10107         [BZ #2566]
10108         [BZ #2576]
10109         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10110         (y0): Likewise.
10111         * math/w_j0f.c (j0f): Likewise.
10112         (y0f): Likewise.
10113         * math/w_j0l.c (__j0l): Likewise.
10114         (__y0l): Likewise.
10115         * math/w_j1.c (j1): Likewise.
10116         (y1): Likewise.
10117         * math/w_j1f.c (j1f): Likewise.
10118         (y1f): Likewise.
10119         * math/w_j1l.c (__j1l): Likewise.
10120         (__y1l): Likewise.
10121         * math/w_jn.c (jn): Likewise.
10122         (yn): Likewise.
10123         * math/w_jnf.c (jnf): Likewise.
10124         (ynf): Likewise.
10125         * math/w_jnl.c (__jnl): Likewise.
10126         (__ynl): Likewise.
10127         * math/libm-test.inc (j0_test): Add more tests.
10128         (j1_test): Likewise.
10129         (jn_test): Likewise.  Add trailing semicolon to existing test.
10130         (y0_test): Likewise.
10131         (y1_test): Likewise.
10132         * sysdeps/i386/fpu/libm-test-ulps: Update.
10133         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10134
10135         [BZ #13851]
10136         [BZ #13854]
10137         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10138         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10139         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10140         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10141         (__tanl): Set errno for infinite argument.
10142         * sysdeps/i386/fpu/mptan.c: Remove.
10143         * sysdeps/i386/fpu/s_tan.S: Likewise.
10144         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10145         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10146         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10147         * math/libm-test.inc (tan_test): Add more tests and enable more
10148         tests for double and long double.
10149         * sysdeps/i386/fpu/libm-test-ulps: Update.
10150         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10151
10152 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10153
10154         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10155         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10156
10157 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10158
10159         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10160         * configure.in: Use it for both main tree and add-ons.
10161         * configure: Regenerated.
10162
10163 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10164
10165         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10166
10167 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10168
10169         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10170         in comment.
10171
10172         [BZ #13851]
10173         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10174         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10175         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10176         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10177         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10178         infinite argument.
10179         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10180         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10181         != 0 for prec == 2.
10182         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10183         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10184         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10185         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10186         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10187         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10188         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10189         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10190         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10191         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10192         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10193         * math/libm-test.inc (cos_test): Add more tests and enable more
10194         tests for long double.
10195         (sin_test): Likewise.
10196         (sincos_test): Likewise.
10197         * sysdeps/i386/fpu/libm-test-ulps: Update.
10198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10199
10200 2012-03-16  David S. Miller  <davem@davemloft.net>
10201
10202         * sysdeps/sparc/fpu/math_private.h: New file.
10203
10204 2012-03-15  David S. Miller  <davem@davemloft.net>
10205
10206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10207         file.
10208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10210         file.
10211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10212         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10213         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10214         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10215         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10216         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10217         sysdep routines.
10218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10219
10220         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10221         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10222
10223         * sysdeps/sparc/sparc-ifunc.h: New file.
10224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10225         sparc-ifunc.h
10226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10227         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10228         Likewise.
10229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10230         Likewise.
10231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10235         Likewise.
10236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10241         Likewise.
10242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10243         Likewise.
10244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10248         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10249         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10250         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10251         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10252         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10253         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10254         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10255         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10256         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10257         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10258         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10259         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10260         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10261         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10262         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10263         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10264         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10265         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10266         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10267         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10268
10269 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10270
10271         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10272         scaling.
10273         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10274
10275 2012-03-15  Andreas Jaeger  <aj@suse.de>
10276
10277         [BZ #13852]
10278         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10279         ieee754/flt-32 implementation for sin, cos and sincos.
10280         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10281         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10282         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10283         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10284         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10285         ieee754/flt-32 implementation for tan.
10286
10287         * math/libm-test.inc (cos_test): Enable some large input tests for
10288         float as well
10289         (sin_test): Likewise.
10290         (sincos_test): Likewise.
10291         (tan_test): Add tests for large input.
10292
10293         * sysdeps/i386/fpu/libm-test-ulps: Update.
10294
10295 2012-03-15  Andreas Jaeger  <aj@suse.de>
10296
10297         [BZ #13658]
10298         * math/libm-test.inc (cos_test): Add more test cases.
10299         (sin_test): Likewise.
10300         (sincos_test): Likewise.
10301
10302 2012-03-15  Andreas Jaeger  <aj@suse.de>
10303
10304         [BZ #13837]
10305         * math/libm-test.inc (cos_test): Add a test case for large input
10306         value.
10307         (sin_test): Likewise.
10308         (sincos_test): Likewise.
10309
10310 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10311         Joseph Myers  <joseph@codesourcery.com>
10312
10313         [BZ #13658]
10314         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10315         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10316         * sysdeps/i386/fpu/branred.c: Likewise.
10317         * sysdeps/i386/fpu/dosincos.c: Likewise.
10318         * sysdeps/i386/fpu/mpa.c: Likewise.
10319         * sysdeps/i386/fpu/s_cos.S: Likewise.
10320         * sysdeps/i386/fpu/s_sin.S: Likewise.
10321         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10322         * sysdeps/i386/fpu/sincos32.c: Likewise.
10323
10324         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10325         Define.
10326         (libc_feupdateenv_53bit): Define.
10327         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10328         Define.
10329         (libc_feupdateenv_53bit): Define.
10330
10331         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10332         53 bit (without extend i386 double precision).
10333
10334         * math/libm-test.inc (sincos_test): Add tests for large input.
10335         (sin): Likewise.
10336         (cos): Likewise.
10337
10338         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10339
10340 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10341
10342         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10343
10344 2012-03-15  David S. Miller  <davem@davemloft.net>
10345
10346         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10347         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10348         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10349         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10350         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10351         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10352         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10353         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10354         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10355         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10356         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10357         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10358         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10359         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10360         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10362         file.
10363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10365         file.
10366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10368         file.
10369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10371         file.
10372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10373         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10374         fmin/fmax sysdep routines.
10375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10376
10377 2012-03-14  David S. Miller  <davem@davemloft.net>
10378
10379         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10380         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10381         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10382         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10383         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10384         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10385         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10386         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10387         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10388         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10389         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10390         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10391         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10392         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10393         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10394         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10395         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10396         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10397         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10398         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10399         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10400         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10401         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10402         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10403         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10404         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10405         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10406         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10407         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10408         routines.
10409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10410         file.
10411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10413         file.
10414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10416         file.
10417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10419         file.
10420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10422         file.
10423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10425         file.
10426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10427         file.
10428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10429         file.
10430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10431         file.
10432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10433         New file.
10434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10435         file.
10436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10437         file.
10438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10440         file.
10441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10443         file.
10444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10446         file.
10447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10449         VIS3 routines.
10450
10451         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10452         New file.
10453
10454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10455
10456         * sysdeps/sparc/configure.in: New file.
10457         * sysdeps/sparc/configure: Generate.
10458         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10459         * configure: Regenerate.
10460         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10461         * config.make.in (have-as-vis3): New.
10462         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10463         available use -Av9d instead of -Av9a.
10464         * sysdeps/sparc/sparc64/Makefile: Likewise.
10465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10467         New file.
10468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10469         file.
10470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10471         New file.
10472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10473         file.
10474         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10475         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10476         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10477         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10478         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10479
10480         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10481         fzeros/fnegs to load 0x80000000 into a float register instead of
10482         using the stack.
10483         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10484
10485 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10486
10487         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10488         bits/syscall.h.
10489         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10490         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10491         ($(inst_includedir)/bits/syscall.h): Remove rule.
10492         ($(objpfx)bits/syscall.d): Include instead of
10493         $(objpfx)syscall-list.d.
10494         (generated): Change syscall-list.h and syscall-list.d to
10495         bits/syscall.h and bits/syscall.d.
10496
10497 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10498
10499         [BZ #13846]
10500         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10501
10502 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10503
10504         [BZ #13841]
10505         * math/s_csqrt.c: Include <float.h>.
10506         (__csqrt): Scale large or subnormal inputs.
10507         * math/s_csqrtf.c: Likewise.
10508         * math/s_csqrtl.c: Likewise.
10509         * math/libm-test.inc (csqrt_test): Add more tests.
10510         * sysdeps/i386/fpu/libm-test-ulps: Update.
10511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10512
10513         [BZ #13840]
10514         * math/libm-test.inc (hypot_test): Add more tests.
10515
10516 2012-03-13  David S. Miller  <davem@davemloft.net>
10517
10518         [BZ #13840]
10519         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10520         double-precision for the calculation instead of scaling.
10521
10522 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10523
10524         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10525         manipulate bits before adding and subtracting TWO52[sx].
10526         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10527         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10528         Likewise.
10529         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10530
10531 2012-03-13  David S. Miller  <davem@davemloft.net>
10532
10533         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10534         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10535         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10536         rtld-global-offsets.h
10537         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10538
10539         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10540         large parameters.
10541
10542         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10543
10544         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10545         'err' in the ifdef scope in which it is actually used.
10546
10547         * nss/nss_db/db-init.c: Include string.h
10548
10549 2012-03-12  David S. Miller  <davem@davemloft.net>
10550
10551         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10552         masking out of the most significant byte of random value used.
10553         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10554         Fix coding style in previous change.
10555
10556         * sysdeps/unix/sysv/linux/kernel-features.h
10557         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10558         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10559         expression.
10560         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10561         later.
10562
10563 2012-03-11  David S. Miller  <davem@davemloft.net>
10564
10565         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10566         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10567         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10568         for 'resultvar' otherwise things get truncated on 64-bit.
10569
10570         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10571         Fix masking out of the most significant byte of random value used.
10572
10573         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10574
10575 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10576
10577         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10578
10579 2012-03-09  David S. Miller  <davem@davemloft.net>
10580
10581         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10582         variables with appropriate CPP guards.
10583         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10584         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10585         on resulting framesize and the management of the outregs buffer for pltexit.
10586         Preserve floating point return values across _dl_call_pltexit call.
10587         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10588         framesize and the management of the outregs buffer for pltexit.
10589         Preserve floating point return values across _dl_call_pltexit
10590         call.
10591         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10592         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10593         (print_exit): Fix format string for return register value.
10594
10595 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10596
10597         * sunrpc/Makefile (others): Add rpcgen.
10598         ($(objpfx)rpcgen): Remove special build rule and dependency on
10599         libc.
10600         * sunrpc/rpcgen.c: New file.
10601
10602 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10603
10604         [BZ #13673]
10605         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10606         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10607         * sysdeps/i386/crti.S: Likewise.
10608         * sysdeps/i386/crtn.S: Likewise.
10609         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10610         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10611         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10612         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10613         * sysdeps/sh/crti.S: Likewise.
10614         * sysdeps/sh/crtn.S: Likewise.
10615         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10616
10617         [BZ #13673]
10618         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10619         with URL.
10620         * locale/programs/locfile-kw.gperf: Likewise.
10621         * locale/programs/charmap-kw.h: Regenerated.
10622         * locale/programs/locfile-kw.h: Likewise.
10623
10624         [BZ #13673]
10625         * intl/plural.y: Replace FSF snail mail address with URL.
10626         * intl/plural.c: Regenerated.
10627
10628 2012-03-09  Richard Henderson  <rth@twiddle.net>
10629
10630         * include/math_private.h: Remove file.
10631         * math/math_private.h: Move file ...
10632         * sysdeps/generic/math_private.h: ... here.
10633
10634         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10635         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10636         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10637
10638         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10639         and <math_private.h>.
10640         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10641         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10642         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10643         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10644         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10645         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10646         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10647         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10648         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10649         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10650         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10651         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10652         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10653         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10654         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10655         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10656         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10657         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10658         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10659         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10660         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10661         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10662         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10663         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10664         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10665         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10666         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10667         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10668         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10669         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10670         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10671         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10672         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10673         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10674         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10675         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10676         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10677         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10678         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10679         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10680         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10681         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10682         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10683         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10684         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10685         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10686         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10687         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10688         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10689         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10690         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10691         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10692         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10693         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10694         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10695         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10696         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10697         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10698         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10699         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10700         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10701         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10702         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10703         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10704         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10705         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10706         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10707         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10708         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10709         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10710         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10711         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10712         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10713         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10714         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10715         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10716         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10717         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10718         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10719         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10720         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10721         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10722         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10723         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10724         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10725         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10726         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10727         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10728         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10729         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10730         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10731         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10732         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10733         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10734         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10735         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10736         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10737         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10738         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10739         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10740         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10741         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10742         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10743         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10744         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10745         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10746         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10747         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10748         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10749         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10750         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10751         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10752         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10753         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10754         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10755         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10756         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10757         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10758         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10759         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10760         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10761         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10762         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10763         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10764         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10765         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10766         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10767         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10768         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10769         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10770         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10771         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10772         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10773         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10774         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10775         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10776         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10777         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10778         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10779         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10780         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10781         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10782         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10783         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10784         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10785         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10786         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10787         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10788         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10789         * sysdeps/ieee754/k_standard.c: Likewise.
10790         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10791         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10792         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10793         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10794         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10795         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10796         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10797         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10798         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10799         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10800         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10801         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10802         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10803         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10804         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10805         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10806         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10807         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10808         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10809         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10810         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10811         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10812         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10813         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10814         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10815         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10816         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10817         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10818         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10819         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10820         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10821         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10822         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10823         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10824         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10825         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10826         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10827         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10828         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10829         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10830         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10831         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10832         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10833         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10834         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10835         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10836         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10837         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10838         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10839         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10840         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10841         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10842         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10843         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10844         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10845         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10846         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10847         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10848         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10849         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10850         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10851         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10852         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10853         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10854         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10855         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10856         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10857         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10858         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10859         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10860         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10861         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10862         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10863         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10864         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10865         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10866         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10867         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10868         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10869         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10870         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10871         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10872         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10873         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10874         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10875         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10876         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10877         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10878         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10879         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10880         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10881         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10882         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10883         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10884         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10885         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10886         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10887         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10888         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10889         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10890         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10891         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10892         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10893         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10894         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10895         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10896         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10897         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10898         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10899         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10900         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10901         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10902         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10903         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10904         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10905         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10906         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10907         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10908         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10909         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10910         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10911         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10912         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10913         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10914         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10915         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10916         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10917         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10918         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10919         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10920         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10921         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10922         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10923         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10924         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10925         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10926         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10927         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10928         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10929         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10930         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10931         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10932         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10933         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10934         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10935         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10936         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10937         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10938         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10939         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10940         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10941         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10942         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10943         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10944         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10945         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10946         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10947         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10948         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10949         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10950         * sysdeps/ieee754/s_lib_version.c: Likewise.
10951         * sysdeps/ieee754/s_matherr.c: Likewise.
10952         * sysdeps/ieee754/s_signgam.c: Likewise.
10953         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10954         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10955         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10956         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10957         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10958         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10959         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10960         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10961         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10962         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10963         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10964         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10965         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10966         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10967         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10968         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10969         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10970         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10971         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10972         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10973         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10974
10975 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10976
10977         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10978         * sunrpc/rpc_main.c: Likewise.
10979         * sunrpc/rpc_svcout.c: Likewise.
10980
10981 2012-03-09  David S. Miller  <davem@davemloft.net>
10982
10983         * include/math_private.h: New file.
10984
10985 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10986
10987         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10988         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10989         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10990         from <bits/socket_type.h>.
10991         (enum __socket_type): Don't define here.
10992         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10993         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10994         bits/socket_type.h.
10995
10996         [BZ #13566]
10997         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10998         checking __USE_GNU.
10999
11000         * Makerules ($(inst_includedir)/%.h): New rule.
11001         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11002         (install-others): Remove variable setting.
11003         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11004
11005 2012-03-08  Richard Henderson  <rth@twiddle.net>
11006
11007         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11008         from macro to inline function; merge with the
11009         !__LIBC_INTERNAL_MATH_INLINES version.
11010         (__ieee754_sqrtf): Likewise.
11011
11012         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11013         to inline function.
11014         (__rintf, __floor, __floorf): Likewise.
11015
11016         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11017         macro to inline function.
11018         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11019
11020         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11021         not <math/math_private.h>.
11022
11023 2012-03-08  David S. Miller  <davem@davemloft.net>
11024
11025         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11026         copyright year.
11027         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11028
11029 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11030
11031         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11032         normalization.
11033         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11034         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11035
11036 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11037
11038         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11039         be defined individually, they must be defined as a block.  Define
11040         S for printing a string instead of hidint the different by using a
11041         macro for adding the 'l'.
11042         * stdio-common/tst-fphex-wide.c: Adjust.
11043
11044 2012-03-07  Marek Polacek  <polacek@redhat.com>
11045
11046         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11047
11048 2012-03-08  Marek Polacek  <polacek@redhat.com>
11049
11050         [BZ #13806]
11051         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11052         * stdio-common/tst-fphex.c: Define a few macros to make the
11053         test reusable.  Use them.
11054         * stdio-common/tst-fphex-wide.c: New file.
11055
11056 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11057
11058         [BZ #6911]
11059         * manual/macros.texi (gnusystems): New macro.
11060         (nongnusystems): Likewise.
11061         (gnulinuxhurdsystems): Likewise.
11062         (gnuhurdsystems): Likewise..
11063         (gnulinuxsystems): Likewise.
11064         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11065         variants of the GNU system, not "GNU system".
11066         * manual/conf.texi: Likewise.
11067         * manual/errno.texi: Likewise.  Update example of errno macro
11068         expansion.
11069         * manual/filesys.texi: Likewise.
11070         (getumask): Document as specific to GNU/Hurd.
11071         * manual/install.texi: Likewise.  Reword some references to
11072         GNU/Linux.
11073         * manual/intro.texi: Likewise.
11074         * manual/io.texi: Likewise.
11075         (File Name Portability): Detail which constraints are inapplicable
11076         to all GNU systems and which are only inapplicable to GNU/Hurd.
11077         * manual/job.texi: Likewise.
11078         * manual/llio.texi: Likewise.
11079         (O_NOCTTY): Document as present on GNU/Linux.
11080         * manual/maint.texi: Likewise.
11081         * manual/memory.texi: Likewise.
11082         * manual/pattern.texi: Likewise.
11083         * manual/pipe.texi: Likewise.
11084         * manual/process.texi: Likewise.
11085         * manual/resource.texi: Likewise.
11086         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11087         child on GNU/Hurd.
11088         * manual/setjmp.texi: Likewise.
11089         * manual/signal.texi: Likewise.
11090         * manual/startup.texi: Likewise.
11091         * manual/stdio.texi: Likewise.
11092         * manual/terminal.texi: Likewise.
11093         (ONLCR): Document as POSIX.
11094         (OXTABS): Document availability on GNU/Linux as XTABS.
11095         (ONOEOT): Document availability separately from other bits.
11096         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11097         * manual/time.texi: Likewise.
11098         * manual/users.texi: Likewise.
11099         * INSTALL: Regenerated.
11100         * sysdeps/gnu/errlist.c: Regenerated.
11101
11102         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11103         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11104         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11105         puts.
11106         * configure: Regenerated.
11107
11108 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11109
11110         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11111         default includes instead of AC_HEADER_CHECK.
11112         * sysdeps/i386/configure: Regenerated.
11113
11114         [BZ #10716]
11115         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11116         * math/s_cacoshf.c (__cacoshf): Likewise.
11117         * math/s_cacoshl.c (__cacoshl): Likewise.
11118         * math/s_casinh.c (__casinh): Set signs of result from argument.
11119         * math/s_casinhf.c (__casinhf): Likewise.
11120         * math/s_casinhl.c (__casinhl): Likewise.
11121         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11122         (casinh_test): Add more tests.
11123         * sysdeps/i386/fpu/libm-test-ulps: Update.
11124         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11125
11126 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11127
11128         * po/zh_TW.po: Update from translation team.
11129
11130         * login/Makefile (distribute): Remove variable.
11131         * catgets/Makefile: Likewise.
11132         * mach/Makefile: Likewise.
11133         * malloc/Makefile: Likewise.
11134         * misc/Makefile: Likewise.
11135         * iconv/Makefile: Likewise.
11136         * nscd/Makefile: Likewise.
11137         * hurd/Makefile: Likewise.
11138         * manual/Makefile: Likewise.
11139         * locale/Makefile: Likewise.
11140         * intl/Makefile: Likewise.
11141         * conform/Makefile: Likewise.
11142         * nss/Makefile: Likewise.
11143         * time/Makefile: Likewise.
11144         * soft-fp/Makefile: Likewise.
11145         * dirent/Makefile: Likewise.
11146         * gmon/Makefile: Likewise.
11147         * po/Makefile: Likewise.
11148         * rt/Makefile: Likewise.
11149         * socket/Makefile: Likewise.
11150         * math/Makefile: Likewise.
11151         * signal/Makefile: Likewise.
11152         * debug/Makefile: Likewise.
11153         * elf/Makefile: Likewise.
11154         * timezone/Makefile: Likewise.
11155         * stdlib/Makefile: Likewise.
11156         * iconvdata/Makefile: Likewise.
11157         * sunrpc/Makefile: Likewise.
11158         * io/Makefile: Likewise.
11159         * argp/Makefile: Likewise.
11160         * inet/Makefile: Likewise.
11161         * hesiod/Makefile: Likewise.
11162         * grp/Makefile: Likewise.
11163         * csu/Makefile: Likewise.
11164         * wctype/Makefile: Likewise.
11165         * crypt/Makefile: Likewise.
11166         * libio/Makefile: Likewise.
11167         * string/Makefile: Likewise.
11168         * nis/Makefile: Likewise.
11169         * resolv/Makefile: Likewise.
11170         * stdio-common/Makefile: Likewise.
11171         * wcsmbs/Makefile: Likewise.
11172         * dlfcn/Makefile: Likewise.
11173         * posix/Makefile: Likewise.
11174
11175         [BZ #6959]
11176         * timezone/Makefile: Don't install timezone files, just the programs
11177         and scripts.
11178
11179 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11180
11181         * nss/databases.def: Add missing gshadow entry.
11182
11183         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11184
11185 2012-03-06  Marek Polacek  <polacek@redhat.com>
11186
11187         [BZ #13726]
11188         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11189         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11190         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11191         * stdio-common/tst-long-dbl-fphex.c: New file.
11192
11193 2012-03-06  David S. Miller  <davem@davemloft.net>
11194
11195         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11196         (set_obp_int): New function.
11197         (get_obp_int): New function.
11198         (__get_clockfreq_via_dev_openprom): Likewise.
11199         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11200         Avoid unused variable warnings on 'val' and use builtin_expect.
11201         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11202         __builtin_expect.
11203         (INLINE_CLONE_SYSCALL): Likewise.
11204
11205 2012-03-05  David S. Miller  <davem@davemloft.net>
11206
11207         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11208
11209 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11210
11211         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11212
11213         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11214         only for |x| >= 40.
11215         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11216
11217 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11218
11219         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11220         Replace gettimeofday with __vdso_gettimeofday.
11221
11222         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11223         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11224         __vdso_clock_gettime and __vdso_getcpu.
11225
11226         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11227         time with __vdso_time.
11228
11229 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11230
11231         * manual/lang.texi (size_t): Note types to which size_t may be
11232         equivalent with the GNU C Library, but do not describe when
11233         differences between them are significant.
11234
11235 2012-03-05  Andreas Jaeger  <aj@suse.de>
11236
11237         * sysdeps/i386/fpu/libm-test-ulps: Update.
11238
11239 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11240
11241         [BZ #3976]
11242         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11243         (__ieee754_pow): Save and restore rounding mode and use
11244         round-to-nearest for main computations.
11245         * math/libm-test.inc (pow_test_tonearest): New function.
11246         (pow_test_towardzero): Likewise.
11247         (pow_test_downward): Likewise.
11248         (pow_test_upward): Likewise.
11249         (main): Call the new functions.
11250         * sysdeps/i386/fpu/libm-test-ulps: Update.
11251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11252
11253         [BZ #3976]
11254         * math/libm-test.inc (cosh_test_tonearest): New function.
11255         (cosh_test_towardzero): Likewise.
11256         (cosh_test_downward): Likewise.
11257         (cosh_test_upward): Likewise.
11258         (sinh_test_tonearest): Likewise.
11259         (sinh_test_towardzero): Likewise.
11260         (sinh_test_downward): Likewise.
11261         (sinh_test_upward): Likewise.
11262         (main): Call the new functions.
11263         * sysdeps/i386/fpu/libm-test-ulps: Update.
11264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11265
11266 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11267
11268         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11269         default stack guard is set in last bytes.
11270         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11271
11272 2012-03-05  Kees Cook  <keescook@chromium.org>
11273
11274         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11275
11276         [BZ #13656]
11277         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11278         possibly allocate from heap instead of stack.
11279         * stdio-common/bug-vfprintf-nargs.c: New file.
11280         * stdio-common/Makefile (tests): Add nargs overflow test.
11281
11282 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11283
11284         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11285
11286 2012-03-03  Marek Polacek  <polacek@redhat.com>
11287
11288         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11289         * math/math_private.h: Likewise.
11290         * stdlib/tst-strtod.c: Likewise.
11291         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11292         * sysdeps/x86_64/bits/atomic.h: Likewise.
11293
11294 2012-03-02  David S. Miller  <davem@davemloft.net>
11295
11296         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11297         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11298         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11299         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11300         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11301         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11302         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11303         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11304
11305 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11306
11307         [BZ #13792]
11308         * manual/examples/README: New file, says the example source files
11309         can be used under GPL>=2.
11310         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11311         line containing just "*/".
11312         * manual/examples/add.c: Add copyright header (GPL>=2).
11313         * manual/examples/argp-ex1.c: Likewise.
11314         * manual/examples/argp-ex2.c: Likewise.
11315         * manual/examples/argp-ex3.c: Likewise.
11316         * manual/examples/argp-ex4.c: Likewise.
11317         * manual/examples/atexit.c: Likewise.
11318         * manual/examples/db.c: Likewise.
11319         * manual/examples/dir.c: Likewise.
11320         * manual/examples/dir2.c: Likewise.
11321         * manual/examples/execinfo.c: Likewise.
11322         * manual/examples/filecli.c: Likewise.
11323         * manual/examples/filesrv.c: Likewise.
11324         * manual/examples/fmtmsgexpl.c: Likewise.
11325         * manual/examples/genpass.c: Likewise.
11326         * manual/examples/inetcli.c: Likewise.
11327         * manual/examples/inetsrv.c: Likewise.
11328         * manual/examples/isockad.c: Likewise.
11329         * manual/examples/longopt.c: Likewise.
11330         * manual/examples/memopen.c: Likewise.
11331         * manual/examples/memstrm.c: Likewise.
11332         * manual/examples/mkfsock.c: Likewise.
11333         * manual/examples/mkisock.c: Likewise.
11334         * manual/examples/mygetpass.c: Likewise.
11335         * manual/examples/pipe.c: Likewise.
11336         * manual/examples/popen.c: Likewise.
11337         * manual/examples/rprintf.c: Likewise.
11338         * manual/examples/search.c: Likewise.
11339         * manual/examples/select.c: Likewise.
11340         * manual/examples/setjmp.c: Likewise.
11341         * manual/examples/sigh1.c: Likewise.
11342         * manual/examples/sigusr.c: Likewise.
11343         * manual/examples/stpcpy.c: Likewise.
11344         * manual/examples/strdupa.c: Likewise.
11345         * manual/examples/strftim.c: Likewise.
11346         * manual/examples/strncat.c: Likewise.
11347         * manual/examples/subopt.c: Likewise.
11348         * manual/examples/swapcontext.c: Likewise.
11349         * manual/examples/termios.c: Likewise.
11350         * manual/examples/testopt.c: Likewise.
11351         * manual/examples/testpass.c: Likewise.
11352         * manual/examples/timeval_subtract.c: Likewise.
11353
11354         [BZ #13792]
11355         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11356         function to ...
11357         * manual/timeval_subtract.c.texi: ... here, new file.
11358
11359 2012-03-02  David S. Miller  <davem@davemloft.net>
11360
11361         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11362
11363 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11364
11365         [BZ #3976]
11366         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11367         (__sin): Save and restore rounding mode and use round-to-nearest
11368         for all computations.
11369         (__cos): Save and restore rounding mode and use round-to-nearest
11370         for all computations.
11371         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11372         <fenv.h>.
11373         (tan): Save and restore rounding mode and use round-to-nearest for
11374         all computations.
11375         * math/libm-test.inc (cos_test_tonearest): New function.
11376         (cos_test_towardzero): Likewise.
11377         (cos_test_downward): Likewise.
11378         (cos_test_upward): Likewise.
11379         (sin_test_tonearest): Likewise.
11380         (sin_test_towardzero): Likewise.
11381         (sin_test_downward): Likewise.
11382         (sin_test_upward): Likewise.
11383         (tan_test_tonearest): Likewise.
11384         (tan_test_towardzero): Likewise.
11385         (tan_test_downward): Likewise.
11386         (tan_test_upward): Likewise.
11387         (main): Call the new functions.
11388         * sysdeps/i386/fpu/libm-test-ulps: Update.
11389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11390
11391         [BZ #10135]
11392         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11393         small n, then large n, before computing and testing k+n.
11394         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11395         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11396         Likewise.
11397         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11398         Likewise.
11399         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11400         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11401         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11402         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11403         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11404         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11405         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11406         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11407         * math/libm-test.inc (scalbn_test): Add more tests.
11408         (scalbln_test): Likewise.
11409
11410         * manual/filesys.texi (mode_t): Describe constraints on size and
11411         signedness, not exact equivalence to a particular type.
11412         (ino_t): Likewise.
11413         (ino64_t): Likewise.
11414         (dev_t): Likewise.
11415         (nlink_t): Likewise.
11416         (blkcnt_t): Likewise.
11417         (blkcnt64_t): Likewise.
11418         * manual/llio.texi (off_t): Likewise.
11419
11420         [BZ #3976]
11421         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11422         (__ieee754_exp): Save and restore rounding mode and use
11423         round-to-nearest for all computations.
11424         * math/libm-test.inc (exp_test_tonearest): New function.
11425         (exp_test_towardzero): Likewise.
11426         (exp_test_downward): Likewise.
11427         (exp_test_upward): Likewise.
11428         (main): Call the new functions.
11429         * sysdeps/i386/fpu/libm-test-ulps: Update.
11430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11431
11432 2012-03-01  Chris Demetriou  <cgd@google.com>
11433
11434         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11435         have predictable order.
11436
11437 2012-03-01  David S. Miller  <davem@davemloft.net>
11438
11439         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11440
11441         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11442         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11443         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11444         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11445
11446         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11447         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11448         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11449         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11450         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11451         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11452         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11453         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11454         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11455
11456         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11457
11458         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11459         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11460         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11461
11462         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11463         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11464         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11465         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11466         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11467         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11468         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11469         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11470         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11471         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11472         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11473         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11474         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11475         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11476         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11477         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11478         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11479         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11480         * sysdeps/sparc/elf/configure: Regenerated.
11481
11482 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11483
11484         * configure.in (AS, LD): Require binutils 2.20 or later.
11485         * configure: Regenerated.
11486         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11487         as required minimum version.
11488         * INSTALL: Regenerated.
11489
11490         [BZ #2541]
11491         [BZ #4108]
11492         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11493         before squaring exponent.
11494         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11495         bottom long double and 27 bits of top long double before squaring
11496         exponent.
11497         * math/libm-test.inc (erfc_test): Add more tests.
11498         * sysdeps/i386/fpu/libm-test-ulps: Update.
11499         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11500         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11501
11502 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11503
11504         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11505         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11506         containing bit-fields.
11507         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11508         * soft-fp/single.h (_FP_UNION_S): Likewise.
11509         * soft-fp/double.h (_FP_UNION_D): Likewise.
11510
11511 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11512
11513         [BZ #13786]
11514         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11515         not include ../strcmp.S.
11516         [USE_AS_STRNCASECMP_L]: Likewise.
11517         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11518         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11519         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11520         (__strncasecmp_l_ia32): Define as alias to
11521         __strncasecmp_l_nonascii.
11522
11523         [BZ #5794]
11524         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11525         * sysdeps/i386/fpu/libm-test-ulps: Update.
11526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11527
11528         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11529         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11530
11531 2012-02-29  Jeff Law  <law@redhat.com>
11532
11533         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11534         out of bounds read.
11535
11536 2012-02-29  Marek Polacek  <polacek@redhat.com>
11537
11538         [BZ #13706]
11539         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11540         * elf/Makefile: Add rules to run tst-unused-dep.out.
11541
11542 2012-02-28  David S. Miller  <davem@davemloft.net>
11543
11544         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11545         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11546         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11547         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11548         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11549         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11550
11551 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11552
11553         * math/libm-test.inc (llround_test): Move one test from
11554         lround_test.  Use TEST_f_L in moved test.
11555         (lround_test): Move misplaced test to llround_test.  Add testcase
11556         from bug 2561.
11557
11558 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11559
11560         * sysdeps/x86_64/fpu/e_expf.S: New file.
11561         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11562
11563 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11564
11565         [BZ #13637]
11566         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11567         of remain_len that may cause incomplete multi-byte character and
11568         false match.
11569         * posix/bug-regex33.c: New file.
11570         * posix/Makefile (tests): Add bug-regex33.
11571
11572 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11573
11574         * manual/macros.texi: New file.
11575         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11576         * manual/libc.texinfo: Include macros.texi.
11577         * manual/creatute.texi: Likewise.
11578         * manual/install.texi: Likewise.
11579         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11580         @glibcadj{} in references to the GNU C Library.
11581         * manual/charset.texi: Likewise.
11582         * manual/conf.texi: Likewise.
11583         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11584         when not using those macros.
11585         * manual/creature.texi: Likewise.
11586         * manual/crypt.texi: Likewise.
11587         * manual/errno.texi: Likewise.
11588         * manual/filesys.texi: Likewise.
11589         * manual/header.texi: Likewise.
11590         * manual/install.texi: Likewise.
11591         * manual/intro.texi: Likewise.
11592         * manual/io.texi: Likewise.
11593         * manual/job.texi: Likewise.
11594         * manual/lang.texi: Likewise.
11595         * manual/libc.texiinfo: Likewise.
11596         * manual/llio.texi: Likewise.
11597         * manual/locale.texi: Likewise.
11598         * manual/maint.texi: Likewise.
11599         * manual/math.texi: Likewise.
11600         * manual/memory.texi: Likewise.
11601         * manual/message.texi: Likewise.
11602         * manual/nss.texi: Likewise.
11603         * manual/pattern.texi: Likewise.
11604         * manual/process.texi: Likewise.
11605         * manual/resource.texi: Likewise.
11606         * manual/search.texi: Likewise.
11607         * manual/setjmp.texi: Likewise.
11608         * manual/signal.texi: Likewise.
11609         * manual/socket.texi: Likewise.
11610         * manual/startup.texi: Likewise.
11611         * manual/stdio.texi: Likewise.
11612         * manual/string.texi: Likewise.
11613         * manual/sysinfo.texi: Likewise.
11614         * manual/syslog.texi: Likewise.
11615         * manual/terminal.texi: Likewise.
11616         * manual/time.texi: Likewise.
11617         * manual/users.texi: Likewise.
11618         * INSTALL: Regenerated.
11619         * NOTES: Regenerated.
11620         * sysdeps/gnu/errlist.c: Regenerated.
11621
11622 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11623
11624         * include/dirent.h: Include <dirstream.h> before
11625         <dirent/dirent.h>.
11626
11627 2012-02-28  David S. Miller  <davem@davemloft.net>
11628
11629         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11630         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11631         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11632         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11633
11634 2012-02-27  David S. Miller  <davem@davemloft.net>
11635
11636         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11637         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11638         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11639         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11640
11641         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11642         frame pointer instead of stack pointer relative arg slot.
11643         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11644         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11645         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11646
11647 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11648
11649         [BZ #3992]
11650         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11651
11652 2012-02-27  David S. Miller  <davem@davemloft.net>
11653
11654         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11655         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11656         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11657         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11658         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11659         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11660         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11661         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11662
11663 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11664
11665         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11666         later.  Allow versions 5-9.
11667         * configure: Regenerated.
11668         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11669         required minimum version and 4.6 as recommended version.  Do not
11670         mention bugs in GCC 2.7 and 2.8.
11671         * INSTALL: Regenerated.
11672
11673 2012-02-27  David S. Miller  <davem@davemloft.net>
11674
11675         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11676         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11677         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11678         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11679         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11680         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11681         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11682         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11683
11684         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11685         manipulate bits before adding and subtracting TWO112[sx].
11686         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11687
11688 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11689
11690         [BZ #13775]
11691         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11692         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11693         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11694         being in POSIX, because they are in 1003.1-2008.
11695
11696         * rt/tst-aio.c: Include <fcntl.h>.
11697         * rt/tst-aio7.c: Likewise.
11698         * rt/tst-aio64.c: Likewise.
11699
11700         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11701
11702 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11703
11704         * manual/install.texi (--with-headers): Describe headers as
11705         interface headers, not private headers.
11706         (Specific advice for GNU/Linux systems): Describe use of headers
11707         from "make headers_install", not private headers from older
11708         kernels.
11709         * INSTALL: Regenerated.
11710         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11711         Change to 2.6.19.
11712         * sysdeps/unix/sysv/linux/configure: Regenerated.
11713
11714         * manual/llio.texi (fclean): Remove documentation.
11715
11716         * manual/Makefile (libc-texi-generated): New variable.  Include
11717         version.texi.
11718         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11719         $(libc-texi-generated), not duplicated list of files.
11720         (version.texi, stamp-version): New rules.
11721         (realclean): Remove $(libc-texi-generated), not individual files
11722         from that list.  Do not remove dir-add.texinfo.
11723         * manual/libc.texinfo: Comment out uses of edition numbers and
11724         references to printed manual.  Remove last-updated dates.
11725         (EDITION): Comment out.
11726         (ISBN): Likewise.
11727         (VERSION, UPDATED): Remove.
11728         (version.texi): Include.
11729
11730 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11731
11732         * sysdeps/posix/spawni.c: Include <signal.h>.
11733         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11734         * sysdeps/pthread/aio_fsync.c: Likewise.
11735
11736 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11737
11738         * conform/Makefile (tests): Run only when not cross-compiling and
11739         when fast-check is not defined.
11740
11741         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11742         * conform/data/limits.h-data: Fixes for POSIX2008.
11743         * conform/run-conformtest.sh: Run all tests.
11744         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11745         headers.
11746         * include/bits/dlfcn.h: Likewise.
11747         * include/langinfo.h: Likewise.
11748         * include/monetary.h: Likewise.
11749         * include/sys/poll.h: Likewise.
11750
11751         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11752         for __USE_GNU.
11753         * posix/spawn.h: Define __need_sigset_t.
11754         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11755         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11756         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11757         to get sigevent_t only.
11758         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11759         only for __USE_GNU.
11760         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11761         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11762         process_vm_writev only for __USE_GNU.
11763         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11764
11765         * conform/Makefile: For now ignore errors from run-conformtest.
11766         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11767         POSIX to avoid namespace pollution.  Don't prepend headers.
11768         * conform/data/aio.h-data: Fixes for POSIX testing.
11769         * conform/data/fcntl.h-data: Likewise.
11770         * conform/data/glob.h-data: Likewise.
11771         * conform/data/grp.h-data: Likewise.
11772         * conform/data/pthread.h-data: Likewise.
11773         * conform/data/pwd.h-data: Likewise.
11774         * conform/data/signal.h-data: Likewise.
11775         * conform/data/spawn.h-data: Likewise.
11776         * conform/data/stdio.h-data: Likewise.
11777         * conform/data/stdlib.h-data: Likewise.
11778         * conform/data/stropts.h-data: Likewise.
11779         * conform/data/sys/mman.h-data: Likewise.
11780         * conform/data/sys/stat.h-data: Likewise.
11781         * conform/data/sys/types.h-data: Likewise.
11782         * conform/data/sys/wait.h-data: Likewise.
11783         * conform/data/time.h-data: Likewise.
11784         * conform/data/unistd.h-data: Likewise.
11785         * conform/data/utime.h-data: Likewise.
11786
11787         * io/sys/stat.h: fchmod was always in POSIX.
11788         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11789         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11790         * rt/aio.h: Define __need_timespec before including <time.h>.
11791         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11792         struct.  Add forward declaration of pthread_attr_t and use it in
11793         sigevent.
11794         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11795         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11796         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11797         always remove CLK_TCK definition.
11798
11799 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11800
11801         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11802
11803 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11804
11805         * conform/run-conformtest.sh: New file.
11806         * conform/Makefile: Run run-conformtest for tests.
11807         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11808         support.
11809
11810         * conform/data/uchar.h-data: New file.
11811         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11812         * conform/data/arpa/inet.h-data: Likewise.
11813         * conform/data/assert.h-data: Likewise.
11814         * conform/data/complex.h-data: Likewise.
11815         * conform/data/cpio.h-data: Likewise.
11816         * conform/data/ctype.h-data: Likewise.
11817         * conform/data/dirent.h-data: Likewise.
11818         * conform/data/dlfcn.h-data: Likewise.
11819         * conform/data/errno.h-data: Likewise.
11820         * conform/data/fcntl.h-data: Likewise.
11821         * conform/data/float.h-data: Likewise.
11822         * conform/data/fmtmsg.h-data: Likewise.
11823         * conform/data/fnmatch.h-data: Likewise.
11824         * conform/data/ftw.h-data: Likewise.
11825         * conform/data/glob.h-data: Likewise.
11826         * conform/data/grp.h-data: Likewise.
11827         * conform/data/iconv.h-data: Likewise.
11828         * conform/data/inttypes.h-data: Likewise.
11829         * conform/data/langinfo.h-data: Likewise.
11830         * conform/data/libgen.h-data: Likewise.
11831         * conform/data/limits.h-data: Likewise.
11832         * conform/data/locale.h-data: Likewise.
11833         * conform/data/math.h-data: Likewise.
11834         * conform/data/monetary.h-data: Likewise.
11835         * conform/data/mqueue.h-data: Likewise.
11836         * conform/data/ndbm.h-data: Likewise.
11837         * conform/data/net/if.h-data: Likewise.
11838         * conform/data/netdb.h-data: Likewise.
11839         * conform/data/netinet/in.h-data: Likewise.
11840         * conform/data/nl_types.h-data: Likewise.
11841         * conform/data/poll.h-data: Likewise.
11842         * conform/data/pthread.h-data: Likewise.
11843         * conform/data/pwd.h-data: Likewise.
11844         * conform/data/regex.h-data: Likewise.
11845         * conform/data/sched.h-data: Likewise.
11846         * conform/data/search.h-data: Likewise.
11847         * conform/data/semaphore.h-data: Likewise.
11848         * conform/data/setjmp.h-data: Likewise.
11849         * conform/data/signal.h-data: Likewise.
11850         * conform/data/spawn.h-data: Likewise.
11851         * conform/data/stdarg.h-data: Likewise.
11852         * conform/data/stdio.h-data: Likewise.
11853         * conform/data/stdlib.h-data: Likewise.
11854         * conform/data/string.h-data: Likewise.
11855         * conform/data/strings.h-data: Likewise.
11856         * conform/data/stropts.h-data: Likewise.
11857         * conform/data/sys/ipc.h-data: Likewise.
11858         * conform/data/sys/mman.h-data: Likewise.
11859         * conform/data/sys/msg.h-data: Likewise.
11860         * conform/data/sys/resource.h-data: Likewise.
11861         * conform/data/sys/select.h-data: Likewise.
11862         * conform/data/sys/sem.h-data: Likewise.
11863         * conform/data/sys/shm.h-data: Likewise.
11864         * conform/data/sys/socket.h-data: Likewise.
11865         * conform/data/sys/stat.h-data: Likewise.
11866         * conform/data/sys/statvfs.h-data: Likewise.
11867         * conform/data/sys/time.h-data: Likewise.
11868         * conform/data/sys/timeb.h-data: Likewise.
11869         * conform/data/sys/times.h-data: Likewise.
11870         * conform/data/sys/types.h-data: Likewise.
11871         * conform/data/sys/uio.h-data: Likewise.
11872         * conform/data/sys/un.h-data: Likewise.
11873         * conform/data/sys/utsname.h-data: Likewise.
11874         * conform/data/sys/wait.h-data: Likewise.
11875         * conform/data/syslog.h-data: Likewise.
11876         * conform/data/tar.h-data: Likewise.
11877         * conform/data/termios.h-data: Likewise.
11878         * conform/data/utime.h-data: Likewise.
11879         * conform/data/utmpx.h-data: Likewise.
11880         * conform/data/varargs.h-data: Likewise.
11881         * conform/data/wchar.h-data: Likewise.
11882         * conform/data/wctype.h-data: Likewise.
11883         * conform/data/wordexp.h-data: Likewise.
11884
11885         * include/stropts.h: New file.
11886         * include/uchar.h: New file.
11887         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11888         * include/assert.h: Likewise.
11889         * include/ctype.h: Likewise.
11890         * include/dirent.h: Likewise.
11891         * include/dlfcn.h: Likewise.
11892         * include/fcntl.h: Likewise.
11893         * include/fnmatch.h: Likewise.
11894         * include/glob.h: Likewise.
11895         * include/grp.h: Likewise.
11896         * include/libio.h: Likewise.
11897         * include/locale.h: Likewise.
11898         * include/math.h: Likewise.
11899         * include/net/if.h: Likewise.
11900         * include/netdb.h: Likewise.
11901         * include/netinet/in.h: Likewise.
11902         * include/pthread.h: Likewise.
11903         * include/pwd.h: Likewise.
11904         * include/regex.h: Likewise.
11905         * include/sched.h: Likewise.
11906         * include/search.h: Likewise.
11907         * include/setjmp.h: Likewise.
11908         * include/signal.h: Likewise.
11909         * include/stdio.h: Likewise.
11910         * include/stdlib.h: Likewise.
11911         * include/string.h: Likewise.
11912         * include/sys/cdefs.h: Likewise.
11913         * include/sys/mman.h: Likewise.
11914         * include/sys/msg.h: Likewise.
11915         * include/sys/resource.h: Likewise.
11916         * include/sys/select.h: Likewise.
11917         * include/sys/socket.h: Likewise.
11918         * include/sys/stat.h: Likewise.
11919         * include/sys/statvfs.h: Likewise.
11920         * include/sys/time.h: Likewise.
11921         * include/sys/times.h: Likewise.
11922         * include/sys/uio.h: Likewise.
11923         * include/sys/utsname.h: Likewise.
11924         * include/sys/wait.h: Likewise.
11925         * include/termios.h: Likewise.
11926         * include/time.h: Likewise.
11927         * include/ulimit.h: Likewise.
11928         * include/unistd.h: Likewise.
11929         * include/utime.h: Likewise.
11930         * include/wchar.h: Likewise.
11931         * include/wctype.h: Likewise.
11932         * include/wordexp.h: Likewise.
11933
11934         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11935
11936         * time/time.h: TIME_UTC must be a macro.
11937         Make timespec_get available for ISO C11 only as well.
11938
11939 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11940
11941         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11942         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11943
11944 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11945
11946         * configure.in: Use -o not -a in test for unsupported multi-arch.
11947
11948 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11949
11950         * manual/texinfo.tex: Update to version 2012-01-19.16.
11951
11952 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11953
11954         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11955
11956 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11957
11958         [BZ #13738]
11959         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11960         * manual/fdl-1.3.texi: New file.
11961         * manual/fdl-1.1.texi: File removed.
11962
11963         [BZ #13738]
11964         * manual/libc.texinfo (FDL_VERSION): New @set.
11965         Use it for mention of FDL in cover text.
11966         (Documentation License): Use it in @include file name.
11967
11968 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11969             Roland McGrath  <roland@hack.frob.com>
11970
11971         [BZ #5461]
11972         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11973         not LONG_LONG_MAX and LONG_LONG_MIN.
11974         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11975         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11976         name.
11977         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11978
11979 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11980
11981         [BZ #2547]
11982         [BZ #11365]
11983         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11984         manipulate bits before adding and subtracting TWO23[sx].
11985         * math/libm-test.inc (nearbyint_test): Add more tests.
11986
11987 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11988
11989         [BZ #2548]
11990         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11991         bits before adding and subtracting TWO23[sx].
11992         * math/libm-test.inc (rint_test): Add more tests.
11993         (rint_test_tonearest): Likewise.
11994         (rint_test_towardzero): Likewise.
11995         (rint_test_downward): Likewise.
11996         (rint_test_upward: Likewise.
11997
11998 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11999
12000         [BZ #10110]
12001         * include/stdc-predef.h: New file.  Extracted from features.h.
12002         * include/features.h: Include stdc-predef.h.
12003         * Makefile (headers): Add stdc-predef.h.
12004         * CONFORMANCE (Compiler limitations): Update.
12005
12006 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12007
12008         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12009
12010 2012-02-21  David S. Miller  <davem@davemloft.net>
12011
12012         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12013         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12014
12015 2012-02-20  David S. Miller  <davem@davemloft.net>
12016
12017         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12018         using a normal save/restore sequence, rather than allocating a
12019         dummy stack frame just to store a frame pointer and restore.
12020         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12021
12022 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12023
12024         * manual/install.texi: Fix stray word in line-wrapped comment.
12025
12026 2012-02-20  David S. Miller  <davem@davemloft.net>
12027
12028         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12029         both binutils and gcc support GOTDATA.
12030
12031         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12032         "rd %pc" in the PIC register setup sequences.
12033
12034         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12035         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12036         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12037         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12038         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12039         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12040         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12041         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12042         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12043         (SYSCALL_ERROR_HANDLER): Likewise.
12044         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12045         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12046         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12047         (SYSCALL_ERROR_HANDLER): Likewise.
12048
12049         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12050         (HAVE_GCC_GOTDATA): New.
12051         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12052         relocation support in both binutils and gcc.
12053         * sysdeps/sparc/elf/configure: Regenerate.
12054
12055         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12056         * sysdeps/sparc/sparc32/elf/configure: Delete.
12057         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12058         * sysdeps/sparc/sparc64/elf/configure: Delete.
12059         * sysdeps/sparc/elf/configure.in: New file.
12060         * sysdeps/sparc/elf/configure: Generate.
12061
12062         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12063         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12064         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12065         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12066         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12067
12068 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12069
12070         * manual/install.texi: Do not mention specific glibc version
12071         numbers.
12072         * manual/libc.texinfo (VERSION, UPDATED): Update.
12073         (@copying): Use @copyright{} and range of years.
12074
12075 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12076
12077         [BZ #13695]
12078         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12079         [crti.S not in sysdirs] (generated): Do not append.
12080         [crti.S not in sysdirs] (omit-deps): Likewise.
12081         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12082         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12083         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12084         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12085         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12086         Likewise.
12087         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12088         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12089         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12090         * csu/defs.awk: Remove file.
12091         * sysdeps/generic/initfini.c: Likewise.
12092         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12093         variable.
12094         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12095         Likewise.
12096
12097 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12098
12099         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12100         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12101         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12102         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12103         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12104         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12105         <bits/epoll.h>.
12106         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12107         (__EPOLL_PACKED): Define to empty if not defined by
12108         <bits/epoll.h>.
12109         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12110         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12111         bits/epoll.h.
12112
12113 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12114
12115         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12116         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12117         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12118         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12119         <bits/timerfd.h>.
12120         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12121         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12122         bits/timerfd.h.
12123
12124 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12125
12126         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12127         in C locale.
12128         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12129         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12130         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12132
12133 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12134
12135         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12136         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12137
12138 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12139
12140         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12141         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12142         defined.
12143         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12144         Likewise.
12145         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12146         entry for 2.16.
12147
12148 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12149
12150         * math/w_acos.c: Use non-signaling floating-point comparisons.
12151         * math/w_acosf.c: Likewise.
12152         * math/w_acosh.c: Likewise.
12153         * math/w_acoshf.c: Likewise.
12154         * math/w_acoshl.c: Likewise.
12155         * math/w_acosl.c: Likewise.
12156         * math/w_asin.c: Likewise.
12157         * math/w_asinf.c: Likewise.
12158         * math/w_asinl.c: Likewise.
12159         * math/w_atanh.c: Likewise.
12160         * math/w_atanhf.c: Likewise.
12161         * math/w_atanhl.c: Likewise.
12162         * math/w_exp2.c: Likewise.
12163         * math/w_exp2f.c: Likewise.
12164         * math/w_exp2l.c: Likewise.
12165         * math/w_j0.c: Likewise.
12166         * math/w_j0f.c: Likewise.
12167         * math/w_j0l.c: Likewise.
12168         * math/w_j1.c: Likewise.
12169         * math/w_j1f.c: Likewise.
12170         * math/w_j1l.c: Likewise.
12171         * math/w_jn.c: Likewise.
12172         * math/w_jnf.c: Likewise.
12173         * math/w_log.c: Likewise.
12174         * math/w_log10.c: Likewise.
12175         * math/w_log10f.c: Likewise.
12176         * math/w_log10l.c: Likewise.
12177         * math/w_log2.c: Likewise.
12178         * math/w_log2f.c: Likewise.
12179         * math/w_log2l.c: Likewise.
12180         * math/w_logf.c: Likewise.
12181         * math/w_logl.c: Likewise.
12182         * math/w_sqrt.c: Likewise.
12183         * math/w_sqrtf.c: Likewise.
12184         * math/w_sqrtl.c: Likewise.
12185         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12186         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12187         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12188         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12189         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12190
12191 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12192
12193         [BZ #9739]
12194         * manual/string.texi (strnlen): Use correct parameter name in
12195         equivalent expression.
12196
12197 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12198
12199         [BZ #11174]
12200         * manual/users.texi (seteuid): Consistently use neweuid for
12201         argument name.
12202
12203 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12204
12205         [BZ #13704]
12206         * manual/nss.texi (Services in the NSS configuration): Correct
12207         list of services in example configuration file.
12208
12209 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12210
12211         [BZ #11322]
12212         * manual/arith.texi: Remove statements about negative zero
12213         behaving identically to zero.
12214
12215 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12216
12217         [BZ #5993]
12218         * manual/install.texi: Do not document upgrading from libc5.
12219
12220 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12221
12222         [BZ #4596]
12223         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12224
12225 2012-02-18  David S. Miller  <davem@davemloft.net>
12226
12227         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12228         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12229         %o7 across the call.
12230         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12231         instead.
12232         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12233         SETUP_PIC_REG_LEAF.
12234         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12235         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12236         * sysdeps/sparc/crtn.S: Likewise.
12237
12238 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12239
12240         * aout/Makefile: Remove.
12241
12242 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12243
12244         [BZ #13058]
12245         * manual/examples/argp-ex1.c (main): Format definition in GNU
12246         style.
12247         * manual/examples/argp-ex2.c (main): Likewise.
12248         * manual/examples/argp-ex3.c (main): Likewise.
12249         * manual/examples/argp-ex4.c (main): Likewise.
12250         * manual/examples/longopt.c (main): Use new-style prototype
12251         definition.
12252         * manual/examples/strncat.c (main): Specify return type and use
12253         (void) for arguments.
12254         * manual/examples/subopt.c (main): Use char **argv argument.
12255
12256 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12257
12258         [BZ #5077]
12259         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12260         rounding modes.
12261
12262 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12263
12264         [BZ #6907]
12265         * manual/string.texi (strchr): Change when strchrnul is
12266         recommended.
12267
12268 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12269
12270         [BZ #174]
12271         * manual/locale.texi (setlocale): Document LOCPATH.
12272
12273 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12274
12275         [BZ #10210]
12276         * manual/process.texi (execle): Move @dots{} before last argument.
12277
12278 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12279
12280         [BZ #12047]
12281         * manual/charset.texi (Generic Charset Conversion): Fix typo
12282         (LC_TYPE -> LC_CTYPE).
12283
12284 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12285
12286         [BZ #5805]
12287         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12288         (scalbnf): Likewise.
12289         (scalbnl): Likewise.
12290         (scalbln): Likewise.
12291         (scalblnf): Likewise.
12292         (scalblnl): Likewise.
12293         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12294         (vwarnx): Likewise.
12295         (verr): Likewise.
12296         (verrx): Likewise.
12297         * manual/filesys.texi (telldir): Use braces around return type.
12298         * manual/llio.texi (mmap): Add space after comma.
12299         (mmap64): Likewise.
12300         * manual/math.texi (jn): Use @var{} on parameter names.
12301         (jnf): Likewise.
12302         (jnl): Likewise.
12303         (yn): Likewise.
12304         (ynf): Likewise.
12305         (ynl): Likewise.
12306         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12307         line.
12308         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12309         "...".
12310         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12311         (sched_get_priority_max): Likewise.
12312         * manual/signal.texi (sigvec): Add space after comma.
12313         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12314         names.
12315         (if_indextoname): Likewise.
12316         (if_freenameindex): Likewise.
12317         (sendto): Use ',' instead of '.' in prototype.
12318         * manual/startup.texi (syscall): Use @dots{} instead of literal
12319         "...".
12320         * manual/stdio.texi (__fpending): Separate initial words of
12321         paragraph from @deftypefun line.
12322         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12323         "...".
12324         (vsyslog): Use @var{} on parameter names.
12325         * manual/terminal.texi (stty): Use @var{} on parameter names.
12326         * manual/users.texi (getutmp): Use @var{} on parameter names.
12327         (getutmpx): Likewise.
12328
12329 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12330
12331         [BZ #6884]
12332         * manual/stdio.texi (fopen): Fix typos in description of
12333         ",ccs=STRING".
12334
12335 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12336
12337         [BZ #4026]
12338         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12339         get clock_id definition.
12340
12341 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12342
12343         [BZ #4822]
12344         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12345         (madvise): Cast every argument to void on its own.
12346
12347 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12348
12349         [BZ #9902]
12350         * manual/startup.texi (Exit Status): Fix typo.
12351
12352 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12353
12354         [BZ #10140]
12355         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12356         * manual/examples/argp-ex2.c: Likewise.
12357         * manual/examples/argp-ex3.c: Likewise.
12358
12359 2012-02-16  Richard Henderson  <rth@redhat.com>
12360
12361         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12362         * sysdeps/s390/s390-32/initfini.c: Remove.
12363         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12364         * sysdeps/s390/s390-64/initfini.c: Remove.
12365
12366 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12367
12368         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12369         compiler output for sysdeps/generic/initfini.c.
12370         * sysdeps/sh/elf/initfini.c: Remove file.
12371
12372 2012-02-16  David S. Miller  <davem@davemloft.net>
12373
12374         [BZ #11494]
12375         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12376
12377         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12378         * sysdeps/sparc/crti.S: New file.
12379         * sysdeps/sparc/crtn.S: New file.
12380         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12381         * sysdeps/sparc/sparc64/Makefile: Likewise.
12382
12383 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12384
12385         [BZ #3335]
12386         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12387
12388 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12389
12390         [BZ #4822]
12391         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12392
12393         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12394         (write, read, close): Likewise.
12395         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12396
12397 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12398
12399         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12400         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12401         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12402         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12403         <bits/signalfd.h>.
12404         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12405         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12406         bits/signalfd.h.
12407
12408 2012-02-14  Marek Polacek  <polacek@redhat.com>
12409
12410         * sysdeps/x86_64/crti.S: New file.
12411         * sysdeps/x86_64/crtn.S: New file.
12412         * sysdeps/x86_64/elf/initfini.c: Remove file.
12413
12414 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12415
12416         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12417         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12418         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12419         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12420         <bits/inotify.h>.
12421         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12422         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12423         bits/inotify.h.
12424
12425 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12426
12427         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12428         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12429         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12430         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12431         <bits/eventfd.h>.
12432         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12433         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12434         bits/eventfd.h.
12435
12436 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12437
12438         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12439         __feraiseexcept instead of feraiseexcept.
12440
12441         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12442         nanosleep invocations.
12443         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12444         strings, and add error checking for a nanosleep invocations.
12445
12446 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12447
12448         Replace FSF snail mail address with URLs, as per GNU coding standards.
12449         Most of the snail mail addresses were wrong anyway, and omitting
12450         them makes the source code easier to maintain.  Almost all of the
12451         changes are to license notices and to locale LC_IDENTIFICATION
12452         addresses, except for this one:
12453         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12454         not its snail mail address.
12455
12456 2012-02-09  Richard Henderson  <rth@twiddle.net>
12457
12458         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12459         of kernel-features.h.
12460
12461         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12462
12463 2012-02-08  Marek Polacek  <polacek@redhat.com>
12464
12465         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12466         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12467         * sysdeps/gnu/_G_config.h: Likewise.
12468         * sysdeps/generic/_G_config.h: Likewise.
12469
12470 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12471
12472         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12473         tests.
12474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12475
12476         * sysdeps/powerpc/powerpc32/crti.S: New file.
12477         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12478         * sysdeps/powerpc/powerpc64/crti.S: New file.
12479         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12480
12481         * Makeconfig (have-initfini): Don't set.
12482         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12483         * configure.in (nopic_initfini): Don't substitute.
12484         * config.h.in (HAVE_INITFINI): Don't #undef.
12485         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12486         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12487
12488 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12489
12490         Support crti.S and crtn.S provided directly by architectures.
12491         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12492         [crti.S in sysdirs] (omit-deps): Likewise.
12493         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12494         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12495         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12496         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12497         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12498         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12499         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12500         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12501         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12502         compiler output for sysdeps/generic/initfini.c.
12503         * sysdeps/i386/elf/Makefile: Remove file.
12504         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12505
12506 2012-02-07  Marek Polacek  <polacek@redhat.com>
12507
12508         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12509         * sysdeps/gnu/_G_config.h: Likewise.
12510         * sysdeps/mach/hurd/_G_config.h: Likewise.
12511
12512 2012-02-07  Marek Polacek  <polacek@redhat.com>
12513
12514         * math/Makefile (tests): Add tst-CMPLX2.
12515         * math/tst-CMPLX2.c: New file.
12516
12517 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12518
12519         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12520
12521         * math/libm-test.inc (jn_test): Add missing L suffix.
12522
12523 2012-02-06  Marek Polacek  <polacek@redhat.com>
12524
12525         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12526         * sysdeps/i386/fpu/e_powf.S: Likewise.
12527         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12528         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12529         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12530         * sysdeps/i386/fpu/e_pow.S: Likewise.
12531         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12532         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12533         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12534         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12535         * sysdeps/i386/fpu/e_log2.S: Likewise.
12536         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12537         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12538         * sysdeps/i386/fpu/e_powl.S: Likewise.
12539         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12540         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12541         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12542         * sysdeps/i386/fpu/e_logl.S: Likewise.
12543         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12544         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12545         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12546         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12547         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12548         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12549         * sysdeps/i386/fpu/e_log.S: Likewise.
12550         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12551         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12552         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12553         * sysdeps/i386/fpu/e_logf.S: Likewise.
12554         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12555         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12556         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12557         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12558         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12559         * sysdeps/i386/fpu/e_log10.S: Likewise.
12560         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12561         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12562         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12563         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12564         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12565         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12566         * sysdeps/i386/asm-syntax.h: Likewise.
12567         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12568         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12569         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12570         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12571         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12572         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12573         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12574         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12575         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12576         * sysdeps/powerpc/sysdep.h: Likewise.
12577         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12578         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12579
12580 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12581
12582         [BZ #411]
12583         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12584
12585 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12586
12587         * sysdeps/i386/sysdep.h: Include <features.h>.
12588         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12589         version.
12590
12591 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12592
12593         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12594         Define.
12595         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12596         LOAD_PIC_REG_STR.
12597
12598 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12599
12600         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12601         (SETUP_PIC_REG): Use GET_PC_THUNK.
12602         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12603         macro.
12604
12605 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12606
12607         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12608         for non-PIC compilation.
12609         (SETUP_PIC_REG): Add .p2align directive.
12610         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12611         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12612         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12613         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12614         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12615         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12616         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12617         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12618         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12619         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12620         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12621         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12622         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12623         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12624         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12625         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12626         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12627         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12628         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12629         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12630         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12631         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12632         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12633         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12634         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12635         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12636         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12637         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12638         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12639         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12640         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12641         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12642         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12643         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12644         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12645         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12646         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12647         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12648         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12649         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12650         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12651
12652 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12653
12654         * math/tst-CMPLX.c: Include <stdio.h>.
12655
12656 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12657
12658         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12659         float.
12660         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12661         * sysdeps/sparc/bits/mathdef.h: Likewise.
12662
12663 2012-01-31  Marek Polacek  <polacek@redhat.com>
12664
12665         * libio/libio.h: Don't define _PARAMS.
12666         * locale/programs/config.h: Don't define PARAMS.
12667         * stdlib/strtol_l.c: Likewise.
12668         (__strtol_l): Remove PARAMS from the prototype.
12669
12670 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12671
12672         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12673         names.  Just use the correct names.  Remove unnecessary wrapper
12674         functions.
12675         * malloc/arena.c: Likewise.
12676         * malloc/hooks.c: Likewise.
12677
12678         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12679         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12680         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12681
12682 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12683
12684         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12685         into tail calls.
12686         (update_get_addr): New function.
12687         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12688         GET_ADDR_MODULE parameter.
12689
12690 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12691
12692         * crypt/cert.c: Remove __STDC__ conditionals.
12693         * crypt/crypt-entry.c: Likewise.
12694         * crypt/crypt_util.c: Likewise.
12695         * libio/filedoalloc.c: Likewise.
12696         * libio/fileops.c: Likewise.
12697         * libio/genops.c: Likewise.
12698         * libio/iofclose.c: Likewise.
12699         * libio/iofdopen.c: Likewise.
12700         * libio/iofopen.c: Likewise.
12701         * libio/iofopen64.c: Likewise.
12702         * libio/iogetdelim.c: Likewise.
12703         * libio/iopopen.c: Likewise.
12704         * libio/obprintf.c: Likewise.
12705         * libio/oldfileops.c: Likewise.
12706         * libio/oldiofclose.c: Likewise.
12707         * libio/oldiofdopen.c: Likewise.
12708         * libio/oldiofopen.c: Likewise.
12709         * libio/oldiopopen.c: Likewise.
12710         * libio/wfiledoalloc.c: Likewise.
12711         * libio/wgenops.c: Likewise.
12712         * locale/programs/xmalloc.c: Likewise.
12713         * misc/syslog.c: Likewise.
12714         * stdio-common/xbug.c: Likewise.
12715         * string/memchr.c: Likewise.
12716         * string/memcmp.c: Likewise.
12717         * string/memrchr.c: Likewise.
12718         * string/rawmemchr.c: Likewise.
12719         * sysdeps/posix/getcwd.c: Likewise.
12720         * time/strftime_l.c: Likewise.
12721
12722 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12723
12724         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12725         * config.make.in (config-cflags-sse2avx): Define.
12726         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12727         Fix typo.
12728
12729 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12730
12731         * scripts/config.guess: Update from upstream config git repository.
12732         * scripts/config.sub: Likewise.
12733
12734 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12735
12736         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12737         (EM_NUM): Update.
12738         (R_TILEPRO_*, R_TILEGX_*): New macros.
12739
12740         * scripts/firstversions.awk: Fix bug in version range handling.
12741
12742         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12743
12744         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12745
12746         * include/sys/epoll.h: New file.
12747         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12748         libc_hidden_def.
12749
12750 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12751
12752         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12753         Avoid unnecessary __WORDSIZE == 64 test.
12754         (fmaxf): Use VEX format if possible.
12755         (fmax): Likewise.
12756         (fminf): Likewise.
12757         (fmin): Likewise.
12758
12759         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12760         * math/math_private.h: Remove libc_fegetround* and
12761         libc_fesetround*.
12762         * sysdeps/i386/configure.in: Check for -msse2avx.
12763         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12764         also if SSE2AVX is defined.
12765         Remove libc_fegetround* and libc_fesetround*.
12766         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12767         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12768         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12769         of HAS_YMM_USABLE.
12770         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12771         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12772         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12773         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12774         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12775
12776         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12777
12778 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12779
12780         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12781         size is not set.
12782         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12783
12784 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12785
12786         [BZ #13618]
12787         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12788         relocation.
12789         * Makeconfig (libm): Define.
12790         * elf/Makefile: Add rules to build and run tst-relsort1.
12791         * elf/tst-relsort1.c: New file.
12792         * elf/tst-relsort1mod1.c: New file.
12793         * elf/tst-relsort1mod2.c: New file.
12794
12795 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12796
12797         * math/s_ldexp.c: Remove __STDC__ conditionals.
12798         * math/s_ldexpf.c: Likewise.
12799         * math/s_ldexpl.c: Likewise.
12800         * math/s_nextafter.c: Likewise.
12801         * math/s_nexttowardf.c: Likewise.
12802         * math/s_significand.c: Likewise.
12803         * math/s_significandf.c: Likewise.
12804         * math/s_significandl.c: Likewise.
12805         * math/w_jnl.c: Likewise.
12806         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12807         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12808         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12809         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12810         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12811         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12812         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12813         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12814         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12815         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12816         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12817         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12818         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12819         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12820         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12821         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12822         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12823         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12824         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12825         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12826         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12827         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12828         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12829         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12830         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12831         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12832         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12833         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12834         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12835         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12836         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12837         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12838         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12839         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12840         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12841         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12842         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12843         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12844         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12845         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12846         * sysdeps/ieee754/k_standard.c: Likewise.
12847         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12848         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12849         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12850         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12851         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12852         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12853         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12854         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12855         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12856         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12857         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12858         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12859         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12860         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12861         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12862         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12863         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12864         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12865         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12866         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12867         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12868         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12869         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12870         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12871         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12872         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12873         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12874         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12875         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12876         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12877         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12878         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12879         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12880         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12881         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12882         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12883         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12884         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12885         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12886         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12887         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12888         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12889         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12890         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12891         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12892         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12893         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12894         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12895         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12896         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12897         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12898         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12899         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12900         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12901         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12902         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12903         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12904         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12905         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12906         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12907         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12908         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12909         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12910         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12911         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12912         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12913         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12914         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12915         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12916         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12917         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12918         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12919         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12920         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12921         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12922         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12923         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12924         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12925         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12926         * sysdeps/ieee754/s_matherr.c: Likewise.
12927         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12928         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12929         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12930         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12931
12932 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12933
12934         * crypt/md5.h: Remove __STDC__ conditionals.
12935         * libio/libioP.h: Likewise.
12936         * locale/programs/config.h: Likewise.
12937         * sysdeps/generic/sysdep.h: Likewise.
12938         * sysdeps/i386/asm-syntax.h: Likewise.
12939         * sysdeps/s390/asm-syntax.h: Likewise.
12940         * sysdeps/unix/sysdep.h: Likewise.
12941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12943
12944 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12945
12946         * libio/libio.h: Remove __STDC__ conditionals.
12947         * malloc/obstack.h: Likewise.
12948         * math/complex.h: Likewise.
12949         * math/math.h: Likewise.
12950         * sysdeps/generic/_G_config.h: Likewise.
12951         * sysdeps/gnu/_G_config.h: Likewise.
12952         * sysdeps/mach/hurd/_G_config.h: Likewise.
12953         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12954         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12955         * sysdeps/sparc/bits/mathdef.h: Likewise.
12956
12957 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12958
12959         [BZ #13583]
12960         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12961         Clean up HAS_* macros.
12962         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12963         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12964         possible.
12965         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12966         HAS_AVX.
12967         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12968         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12969         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12970         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12971         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12972
12973 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12974
12975         * elf/tst-unique3.cc (gets): Remove declaration.
12976         * elf/tst-unique3lib.cc (gets): Likewise.
12977         * elf/tst-unique3lib2.cc (gets): Likewise.
12978         * elf/tst-unique4.cc (gets): Likewise.
12979
12980 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12981
12982         * include/stdio.h: Add C++ protection.  Add gets declarations and
12983         definitions.
12984         * debug/tst-chk1.c: Don't declare gets here.
12985         * stdio-common/tst-gets.c: Likewise.
12986
12987 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12988
12989         * posix/glob: Remove directory.
12990
12991 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12992
12993         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12994
12995 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12996
12997         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12998         of the non-standard EPFNOSUPPORT.
12999
13000 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13001
13002         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13003         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13004         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13005
13006 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13007
13008         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13009
13010 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13011
13012         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13013         transient errors.
13014         * nscd/grpcache.c (cache_addgr): Likewise.
13015         * nscd/hstcache.c (cache_addhst): Likewise.
13016         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13017         * nscd/pwdcache.c (cache_addpw): Likewise.
13018         * nscd/servicescache.c (cache_addserv): Likewise.
13019
13020 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13021
13022         * malloc/malloc.c: Various cleanups.
13023         * malloc/hooks.c: Likewise.
13024
13025         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13026         * stdlib/bug-fmtmsg1.c: New file.
13027
13028         * stdlib/fmtmsg.c (init): Add missing unlock.
13029         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13030
13031 2012-01-12  Marek Polacek  <polacek@redhat.com>
13032
13033         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13034         and _GNU_SOURCE.
13035
13036 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13037
13038         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13039         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13040         macro to ensure uniqueness of label name.
13041         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13042         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13043
13044 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13045
13046         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13047
13048         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13049         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13050         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13051         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13052
13053 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13054
13055         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13056
13057         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13058         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13059         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13060
13061         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13062
13063         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13064         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13065         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13066         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13067
13068         * math/bits/math-finite.h: Add ldexp support.
13069
13070 2012-01-10  Marek Polacek  <polacek@redhat.com>
13071
13072         * locale/programs/localedef.h (show_archive_content): Add noreturn
13073         attribute.
13074
13075 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13076
13077         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13078
13079 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13080
13081         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13082
13083         * io/Makefile (headers): Add bits/poll2.h.
13084
13085 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13086
13087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13088         typo #include statement.
13089
13090 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13091
13092         * include/sys/cdefs.h: Define __attribute_alloc_size.
13093         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13094         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13095         * elf/pldd.c: Likewise.
13096         * iconv/iconv_charmap.c: Likewise.
13097         * iconv/iconvconfig.c: Likewise.
13098         * iconv/strtab.c: Likewise.
13099         * locale/programs/locale.c: Likewise.
13100         * locale/programs/localedef.h: Likewise.
13101         * locale/programs/simple-hash.c: Likewise.
13102         * nscd/nscd.h: Likewise.
13103         * nss/makedb.c: Likewise.
13104         * sysdeps/generic/ldconfig.h: Likewise.
13105         * locale/programs/localedef.c: Remove xmalloc prototype.
13106         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13107
13108 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13109
13110         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13111         appropriate.
13112
13113 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13114
13115         * math/Makefile (tests): Add tst-CMPLX.
13116         * math/tst-CMPLX.c: New file.
13117
13118         * math/complex.h (CMPLXL): Fix typo.
13119
13120         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13121         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13122         GLIBC_2.16.
13123         * debug/tst-chk1.c: Add poll and ppoll tests.
13124         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13125         * include/sys/poll.h: Add hidden proto for ppoll.
13126         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13127         * sysdeps/mach/hurd/ppoll.c: Likewise.
13128         * io/ppoll.c: Likewise.
13129         * debug/poll_chk.c: New file.
13130         * debug/ppoll_chk.c: New file.
13131         * include/bits/poll2.h: New file.
13132         * io/bits/poll2.h: New file.
13133
13134         [BZ #1350]
13135         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13136
13137         * configure.in: static is always set to yes.  Remove.
13138         * config.make.in: Don't set build-static.
13139         * Makeconfig: Remove use of build-static.
13140         * dlfcn/Makefile: Likewise.
13141         * elf/Makefile: Likewise.
13142         * math/Makefile: Likewise.
13143         * misc/Makefile: Likewise.
13144         * nptl/Makefile: Likewise.
13145         * sysdeps/mach/hurd/Makefile: Likewise.
13146
13147         * configure.in: PWD_P is not used anymore.
13148         * config.make.in: Remove PWD_P entry.
13149
13150         * configure.in: Remove last remnants of RANLIB.
13151         No need to check for signed size_t anymore.
13152         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13153         and IA-64.
13154         Remove __builtin_expect test because we require at least gcc 3.4.
13155         * aclocal.m4: Likewise.
13156
13157         * wcsmbs/mbrtoc16.c: Implement using towc function.
13158         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13159         * wcsmbs/wcsmbsload.c: Likewise.
13160         * iconv/gconv_simple.c: Likewise.
13161         * iconv/gconv_int.h: Likewise.
13162         * iconv/gconv_builtin.h: Likewise.
13163         * iconv/iconv_prog.c: Remove CHAR16 handling.
13164
13165         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13166
13167         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13168
13169         * configure.in: Remove --with-elf and --enable-bounded options.
13170         Dont set base_machine for ia64.  More non-ELF conditions removed.
13171         Remove testing and setting of leading underscore information.
13172         * config.make.in (build-bounded): Set to no.
13173         * config.h.in: Remove NO_UNDERSCORES entry.
13174         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13175         them.
13176         * csu/start.c: Remove !NO_UNDERSCORE code.
13177         * locale/localeinfo.h: Likewise.
13178         * sysdeps/generic/machine-gmon.h: Likewise.
13179         * sysdeps/generic/sysdep.h: Likewise.
13180         * sysdeps/i386/sysdep.h: Likewise.
13181         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13182         * sysdeps/mach/sysdep.h: Likewise.
13183         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13184         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13185         * sysdeps/sh/sysdep.h: Likewise.
13186         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13187         * sysdeps/unix/i386/sysdep.S: Likewise.
13188         * sysdeps/unix/sparc/start.c: Likewise.
13189         * sysdeps/unix/sparc/sysdep.S: Likewise.
13190         * sysdeps/unix/sparc/sysdep.h: Likewise.
13191         * sysdeps/unix/start.c: Likewise.
13192         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13193         * sysdeps/x86_64/sysdep.h: Likewise.
13194
13195 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13196
13197         [BZ #13553]
13198         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13199         for non-gcc.
13200         * argp/argp-fmtstream.h: Use const instead __const.
13201         * argp/argp.h: Likewise.
13202         * assert/assert.h: Likewise.
13203         * bits/fenv.h: Likewise.
13204         * bits/sched.h: Likewise.
13205         * bits/sigset.h: Likewise.
13206         * bits/sigthread.h: Likewise.
13207         * catgets/nl_types.h: Likewise.
13208         * conform/data/pthread.h-data: Likewise.
13209         * crypt/crypt-private.h: Likewise.
13210         * crypt/crypt.h: Likewise.
13211         * crypt/crypt_util.c: Likewise.
13212         * ctype/ctype.h: Likewise.
13213         * debug/execinfo.h: Likewise.
13214         * debug/mbsnrtowcs_chk.c: Likewise.
13215         * debug/mbsrtowcs_chk.c: Likewise.
13216         * debug/wcsnrtombs_chk.c: Likewise.
13217         * debug/wcsrtombs_chk.c: Likewise.
13218         * debug/wcstombs_chk.c: Likewise.
13219         * dirent/dirent.h: Likewise.
13220         * dlfcn/dlfcn.h: Likewise.
13221         * elf/neededtest4.c: Likewise.
13222         * grp/grp.h: Likewise.
13223         * gshadow/gshadow.h: Likewise.
13224         * iconv/gconv.h: Likewise.
13225         * iconv/gconv_int.h: Likewise.
13226         * iconv/gconv_simple.c: Likewise.
13227         * iconv/iconv.h: Likewise.
13228         * iconv/loop.c: Likewise.
13229         * iconv/skeleton.c: Likewise.
13230         * include/aio.h: Likewise.
13231         * include/aliases.h: Likewise.
13232         * include/argz.h: Likewise.
13233         * include/arpa/inet.h: Likewise.
13234         * include/assert.h: Likewise.
13235         * include/dirent.h: Likewise.
13236         * include/dlfcn.h: Likewise.
13237         * include/execinfo.h: Likewise.
13238         * include/fcntl.h: Likewise.
13239         * include/fenv.h: Likewise.
13240         * include/glob.h: Likewise.
13241         * include/grp.h: Likewise.
13242         * include/libintl.h: Likewise.
13243         * include/mntent.h: Likewise.
13244         * include/netdb.h: Likewise.
13245         * include/pwd.h: Likewise.
13246         * include/rpc/netdb.h: Likewise.
13247         * include/sched.h: Likewise.
13248         * include/search.h: Likewise.
13249         * include/shadow.h: Likewise.
13250         * include/signal.h: Likewise.
13251         * include/stdio.h: Likewise.
13252         * include/stdlib.h: Likewise.
13253         * include/string.h: Likewise.
13254         * include/sys/socket.h: Likewise.
13255         * include/sys/stat.h: Likewise.
13256         * include/sys/statfs.h: Likewise.
13257         * include/sys/statvfs.h: Likewise.
13258         * include/sys/syslog.h: Likewise.
13259         * include/sys/time.h: Likewise.
13260         * include/sys/uio.h: Likewise.
13261         * include/time.h: Likewise.
13262         * include/unistd.h: Likewise.
13263         * include/utmp.h: Likewise.
13264         * include/wchar.h: Likewise.
13265         * include/wctype.h: Likewise.
13266         * inet/aliases.h: Likewise.
13267         * inet/arpa/inet.h: Likewise.
13268         * inet/netinet/ether.h: Likewise.
13269         * inet/netinet/in.h: Likewise.
13270         * intl/libintl.h: Likewise.
13271         * io/bits/fcntl2.h: Likewise.
13272         * io/fcntl.h: Likewise.
13273         * io/ftw.h: Likewise.
13274         * io/sys/poll.h: Likewise.
13275         * io/sys/stat.h: Likewise.
13276         * io/sys/statfs.h: Likewise.
13277         * io/sys/statvfs.h: Likewise.
13278         * io/utime.h: Likewise.
13279         * libio/bits/stdio.h: Likewise.
13280         * libio/bits/stdio2.h: Likewise.
13281         * libio/libio.h: Likewise.
13282         * libio/libioP.h: Likewise.
13283         * libio/stdio.h: Likewise.
13284         * locale/lc-ctype.c: Likewise.
13285         * locale/locale.h: Likewise.
13286         * login/utmp.h: Likewise.
13287         * malloc/arena.c: Likewise.
13288         * malloc/malloc.c: Likewise.
13289         * malloc/malloc.h: Likewise.
13290         * malloc/mcheck.c: Likewise.
13291         * malloc/mtrace.c: Likewise.
13292         * math/bits/mathcalls.h: Likewise.
13293         * math/fenv.h: Likewise.
13294         * math/math_private.h: Likewise.
13295         * misc/bits/error.h: Likewise.
13296         * misc/bits/syslog.h: Likewise.
13297         * misc/err.h: Likewise.
13298         * misc/error.h: Likewise.
13299         * misc/fstab.h: Likewise.
13300         * misc/mntent.h: Likewise.
13301         * misc/regexp.h: Likewise.
13302         * misc/search.h: Likewise.
13303         * misc/sgtty.h: Likewise.
13304         * misc/sys/mman.h: Likewise.
13305         * misc/sys/syslog.h: Likewise.
13306         * misc/sys/uio.h: Likewise.
13307         * misc/sys/xattr.h: Likewise.
13308         * misc/ttyent.h: Likewise.
13309         * nis/rpcsvc/ypclnt.h: Likewise.
13310         * nss/nss.h: Likewise.
13311         * posix/bits/unistd.h: Likewise.
13312         * posix/fnmatch.h: Likewise.
13313         * posix/glob.h: Likewise.
13314         * posix/sched.h: Likewise.
13315         * posix/spawn.h: Likewise.
13316         * posix/sys/wait.h: Likewise.
13317         * posix/unistd.h: Likewise.
13318         * posix/wordexp.h: Likewise.
13319         * pwd/pwd.h: Likewise.
13320         * resolv/netdb.h: Likewise.
13321         * resource/sys/resource.h: Likewise.
13322         * rt/aio.h: Likewise.
13323         * rt/bits/mqueue2.h: Likewise.
13324         * rt/mqueue.h: Likewise.
13325         * shadow/shadow.h: Likewise.
13326         * signal/signal.h: Likewise.
13327         * socket/send.c: Likewise.
13328         * socket/sendto.c: Likewise.
13329         * socket/sys/socket.h: Likewise.
13330         * stdio-common/printf.h: Likewise.
13331         * stdlib/bits/stdlib.h: Likewise.
13332         * stdlib/fmtmsg.h: Likewise.
13333         * stdlib/monetary.h: Likewise.
13334         * stdlib/stdlib.h: Likewise.
13335         * stdlib/ucontext.h: Likewise.
13336         * streams/stropts.h: Likewise.
13337         * string/argz.h: Likewise.
13338         * string/bits/string2.h: Likewise.
13339         * string/string.h: Likewise.
13340         * string/strings.h: Likewise.
13341         * sunrpc/rpc/auth.h: Likewise.
13342         * sunrpc/rpc/auth_des.h: Likewise.
13343         * sunrpc/rpc/clnt.h: Likewise.
13344         * sunrpc/rpc/netdb.h: Likewise.
13345         * sunrpc/rpc/pmap_clnt.h: Likewise.
13346         * sunrpc/rpc/xdr.h: Likewise.
13347         * sysdeps/generic/inttypes.h: Likewise.
13348         * sysdeps/generic/net/if.h: Likewise.
13349         * sysdeps/generic/sys/swap.h: Likewise.
13350         * sysdeps/gnu/net/if.h: Likewise.
13351         * sysdeps/gnu/utmpx.h: Likewise.
13352         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13353         * sysdeps/i386/i486/bits/string.h: Likewise.
13354         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13355         * sysdeps/s390/bits/string.h: Likewise.
13356         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13357         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13358         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13359         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13360         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13361         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13362         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13363         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13364         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13365         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13366         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13367         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13368         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13369         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13370         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13371         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13372         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13373         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13374         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13375         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13376         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13377         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13378         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13379         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13380         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13381         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13382         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13383         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13384         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13385         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13386         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13387         * sysvipc/sys/ipc.h: Likewise.
13388         * sysvipc/sys/msg.h: Likewise.
13389         * sysvipc/sys/sem.h: Likewise.
13390         * sysvipc/sys/shm.h: Likewise.
13391         * termios/termios.h: Likewise.
13392         * time/sys/time.h: Likewise.
13393         * time/time.h: Likewise.
13394         * wcsmbs/bits/wchar2.h: Likewise.
13395         * wcsmbs/uchar.h: Likewise.
13396         * wcsmbs/wchar.h: Likewise.
13397         * wctype/wctype.h: Likewise.
13398
13399         [BZ #13551]
13400         * Makeconfig: Remove all but ELF support including AIX support.
13401         * Makerules: Likewise.
13402         * config.h.in: Likewise.
13403         * config.make.in: Likewise.
13404         * configure: Likewise.
13405         * configure.in: Likewise.
13406         * csu/Makefile: Likewise.
13407         * csu/version.c: Likewise.
13408         * debug/Makefile: Likewise.
13409         * dlfcn/Makefile: Likewise.
13410         * elf/Makefile: Likewise.
13411         * extra-lib.mk: Likewise.
13412         * iconv/Makefile: Likewise.
13413         * include/libc-symbols.h: Likewise.
13414         * include/shlib-compat.h: Likewise.
13415         * resolv/Makefile: Likewise.
13416         * resolv/res_libc.c: Likewise.
13417         * rt/Makefile: Likewise.
13418         * sysdeps/i386/asm-syntax.h: Likewise.
13419         * sysdeps/i386/sysdep.h: Likewise.
13420         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13421         * sysdeps/mach/sysdep.h: Likewise.
13422         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13423         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13424         * sysdeps/s390/asm-syntax.h: Likewise.
13425         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13426         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13427         * sysdeps/sh/sysdep.h: Likewise.
13428         * sysdeps/unix/sparc/sysdep.h: Likewise.
13429         * sysdeps/wordsize-32/divdi3.c: Likewise.
13430         * sysdeps/x86_64/sysdep.h: Likewise.
13431
13432         * argp/Versions: Remove _argp_unlock_xxx.
13433
13434         [BZ #13559]
13435         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13436         * abilist/libBrokenLocale.abilist: Likewise.
13437         * abilist/libanl.abilist: Likewise.
13438         * abilist/libc.abilist: Likewise.
13439         * abilist/libcrypt.abilist: Likewise.
13440         * abilist/libdl.abilist: Likewise.
13441         * abilist/libm.abilist: Likewise.
13442         * abilist/libnsl.abilist: Likewise.
13443         * abilist/libpthread.abilist: Likewise.
13444         * abilist/libresolv.abilist: Likewise.
13445         * abilist/librt.abilist: Likewise.
13446         * abilist/libthread_db.abilist: Likewise.
13447         * abilist/libutil.abilist: Likewise.
13448         * abilist/libnss_db.abilist: New file.
13449
13450         * scripts/abilist.awk: Add support for indirect functions.
13451
13452         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13453
13454         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13455
13456         * shlib-versions: Remove entries for ports architectures.
13457
13458         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13459         files in ports.
13460         * elf/stackguard-macros.h: Remove support for IA-64.
13461         * elf/tst-auditmod1.c: Likewise.
13462         * sysdeps/generic/ldsodefs.h: Likewise.
13463
13464         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13465         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13466         configure files.
13467
13468         [BZ #13552]
13469         * configure.in: Remove --enable-omitfp support.
13470         * FAQ.in: Adjust.
13471         * config.make.in: Likewise.
13472         * Makeconfig: Likewise.
13473         * manual/install.texi: Likewise.
13474
13475         In case anyone cares, the IA-64 architecture could move to ports.
13476         * sysdeps/ia64/*: Removed.
13477         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13478         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13479
13480         [BZ #13555]
13481         * configure.in: Remove entries for unsupported architectures.
13482
13483         [BZ #13533]
13484         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13485         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13486         routines.
13487         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13488         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13489         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13490         fall back to using wcrtomb.
13491         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13492         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13493         renaming.
13494         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13495         * wcsmbs/tst-c16c32-1.c: New file.
13496
13497         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13498         local variable.
13499
13500         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13501
13502         * elf/tst-unique3.cc: Add explicit declaration of gets.
13503         * elf/tst-unique3lib.cc: Likewise.
13504         * elf/tst-unique3lib2.cc: Likewise.
13505         * elf/tst-unique4.cc: Likewise.
13506
13507         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13508
13509 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13510
13511         [BZ #13566]
13512         * assert/assert.h (static_assert): Don't define for C++.
13513         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13514         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13515
13516 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13517
13518         * iconv/loop.c (single loop): Fix assertion in storing of
13519         remaining bytes.
13520
13521         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13522
13523 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13524
13525         * posix/getconf.c: Update copyright year.
13526         * nss/getent.c: Likewise.
13527         * nss/makedb.c: Likewise.
13528         * iconv/iconvconfig.c: Likewise.
13529         * iconv/iconv_prog.c: Likewise.
13530         * elf/ldconfig.c: Likewise.
13531         * elf/pldd.c: Likewise.
13532         * elf/sotruss.ksh: Likewise.
13533         * catgets/gencat.c: Likewise.
13534         * csu/version.c: Likewise.
13535         * elf/ldd.bash.in: Likewise.
13536         * elf/sprof.c (print_version): Likewise.
13537         * locale/programs/locale.c: Likewise.
13538         * locale/programs/localedef.c: Likewise.
13539         * login/programs/pt_chown.c: Likewise.
13540         * nscd/nscd.c (print_version): Likewise.
13541         * debug/xtrace.sh: Likewise.
13542         * malloc/memusage.sh: Likewise.
13543         * malloc/mtrace.pl: Likewise.
13544         * debug/catchsegv.sh: Likewise.
13545
13546 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13547
13548         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13549         pure attribute.
13550
13551 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13552
13553         [BZ #13533]
13554         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13555         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13556         transformations.
13557         * iconv/gconv_int.h: Likewise.
13558         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13559         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13560         from libc for GLIBC_2.16.
13561         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13562         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13563         * wcsmbs/uchar.h: Really define mbstate_t.
13564         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13565         * wcsmbs/c16rtomb.c: New file.
13566         * wcsmbs/mbrtoc16.c: New file.
13567         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13568         for C/POSIX locale.
13569         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13570         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13571
13572         * wcsmbs/wchar.h: Add missing __restrict.
13573
13574 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13575
13576         [BZ #13532]
13577         * time/Makefile (routines): Add timespec_get.
13578         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13579         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13580         timespec for ISO C11.
13581         * time/timespec_get.c: New file.
13582         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13583         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13584
13585         [BZ #13531]
13586         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13587         * stdlib/stdlib.h: Declare aligned_alloc.
13588         * Versions.def: Add GLIBC_2.16 for libc.
13589         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13590
13591         [BZ 13527]
13592         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13593         ISO C11.
13594
13595         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13596         code.
13597
13598         [BZ #13528]
13599         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13600
13601         [BZ #13529]
13602         * assert/assert.h (static_assert): Define.
13603
13604         * version.h: Update for 2.16 development version.
13605
13606         [BZ #13526]
13607         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13608         _ISOC11_SOURCE.
13609
13610         * version.h (RELEASE): Bump for 2.15 release.
13611         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13612
13613         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13614         Patch by Marek Polacek <mpolacek@redhat.com>.
13615
13616         * bits/byteswap.h: Protect long long constants with __extension__.
13617         * sysdeps/i386/bits/byteswap.h: Likewise.
13618         * sysdeps/ia64/bits/byteswap.h: Likewise.
13619         * sysdeps/s390/bits/byteswap.h: Likewise.
13620         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13621
13622 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13623
13624         [BZ #13540]
13625         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13626         destination buffer.
13627         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13628
13629 2011-12-23  Marek Polacek  <polacek@redhat.com>
13630
13631         * elf/dl-addr.c (determine_info): Add inline keyword.
13632         * elf/tst-auditmod4b.c (check_avx): Likewise.
13633         * elf/tst-auditmod6b.c (check_avx): Likewise.
13634         * elf/tst-auditmod6c.c (check_avx): Likewise.
13635         * elf/tst-auditmod7b.c (check_avx): Likewise.
13636
13637 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13638
13639         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13640         !__SSE_MATH__.
13641
13642 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13643
13644         [BZ #13540]
13645         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13646         processing for last bytes.
13647
13648 2011-08-06  Bruno Haible  <bruno@clisp.org>
13649
13650         [BZ #13061]
13651         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13652         U+0385, not to U+1FEE.
13653
13654         [BZ #13062]
13655         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13656         entry for U+00A5 U+0301.
13657
13658 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13659
13660         [BZ #13166]
13661         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13662         buffer for the output is too small.
13663
13664         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13665         optimization.
13666
13667         [BZ #13185]
13668         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13669         SSE flags if possible.
13670
13671 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13672
13673         [BZ #13540]
13674         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13675         processing for last bytes.
13676
13677 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13678
13679         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13680         (syscall-list-default-options, syscall-list-default-condition)
13681         (syscall-list-includes): Define.
13682         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13683         list of ABIs and options and #if conditions for each ABI.  Do not
13684         handle common syscalls between ABIs specially.
13685         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13686         Remove.
13687         (syscall-list-variants, syscall-list-32bit-options)
13688         (syscall-list-32bit-condition, syscall-list-64bit-options)
13689         (syscall-list-64bit-condition): Define.
13690         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13691         (syscall-list-variants, syscall-list-32bit-options)
13692         (syscall-list-32bit-condition, syscall-list-64bit-options)
13693         (syscall-list-64bit-condition): Define.
13694         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13695         Remove.
13696         (syscall-list-variants, syscall-list-32bit-options)
13697         (syscall-list-32bit-condition, syscall-list-64bit-options)
13698         (syscall-list-64bit-condition): Define.
13699         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13700         Remove.
13701         (syscall-list-variants, syscall-list-32bit-options)
13702         (syscall-list-32bit-condition, syscall-list-64bit-options)
13703         (syscall-list-64bit-condition): Define.
13704
13705 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13706
13707         * locale/iso-639.def: Add brx entry.
13708
13709         [BZ #13328]
13710         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13711         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13712
13713         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13714         __feraiseexcept_renamed.
13715
13716 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13717
13718         [BZ #13538]
13719         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13720         EPOLLET with unsigned values.
13721         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13722         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13723
13724         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13725         to large cancellation.
13726         * math/s_cacoshf.c: Likewise.
13727         * math/s_cacoshl.c: Likewise.
13728
13729 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13730
13731         [BZ #13305]
13732         [BZ #12786]
13733         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13734         * math/s_cacoshf.c: Likewise.
13735         * math/s_cacoshl.c: Likewise.
13736
13737 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13738
13739         [BZ #13439]
13740         * iconv/gconv.h: Define __GCONV_SWAP.
13741         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13742         * iconvdata/utf-16.c: Likewise.
13743         * iconvdata/utf-32.c: Likewise.
13744
13745 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13746
13747         [BZ #13524]
13748         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13749         numerator after shifting it by one limb.
13750
13751 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13752
13753         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13754         under [__USE_EXTERN_INLINES].
13755
13756 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13757
13758         [BZ #13446]
13759         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13760
13761 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13762
13763         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13764         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13765         optimized code.
13766         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13767         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13768         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13769         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13770         for strncasecmp/strncasecmp_l compilation.
13771         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13772         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13773
13774 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13775
13776         [BZ #13484]
13777         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13778         of __asm__.
13779
13780 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13781
13782         [BZ #13506]
13783         * time/tzfile.c (__tzfile_read): Check values from file header.
13784
13785 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13786
13787         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13788         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13789         * powerpc/powerpc32/dl-start.S: Likewise.
13790         * powerpc/powerpc32/elf/start.S: Likewise.
13791         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13792         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13793         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13794         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13795         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13796         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13797         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13798         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13799         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13800         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13801         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13802         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13803         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13804         * powerpc/powerpc32/memset.S: Likewise.
13805         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13806         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13807         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13808         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13809         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13810         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13811         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13812         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13813         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13814         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13815         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13816         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13817         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13818
13819 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13820
13821         * math/libm-test.inc: Added more nearbyint tests.
13822         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13823         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13824         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13825         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13826
13827 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13828
13829         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13830         FD_CLOEXEC.
13831
13832 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13833
13834         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13835         Add wcscpy-ssse3 wcscpy-c.
13836         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13837         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13838         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13839         * sysdeps/x86_64/wcschr.S: New file.
13840         * sysdeps/x86_64/wcsrchr.S: New file.
13841         * string/test-strcmp.c: Remove checking of wcscmp function for
13842         wrong alignments.
13843         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13844         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13845         wcsrchr-sse2 wcsrchr-c.
13846         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13847         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13848         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13849         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13850         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13851         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13852         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13853         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13854         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13855         * wcsmbc/wcschr.c (WCSCHR): New macro.
13856
13857 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13858
13859         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13860         * wcsmbs/test-wcsrchr.c: New file.
13861         * string/test-strrchr.c: Add wcsrchr support.
13862         (WIDE): New macro.
13863         * wcsmbs/test-wcscpy.c: New file.
13864         * string/test-strcpy.c: Add wcscpy support.
13865         (WIDE): New macro.
13866
13867 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13868
13869         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13870         the inner loop.
13871
13872 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13873
13874         [BZ #13472]
13875         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13876
13877 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13878
13879         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13880         Minor optimizations.
13881
13882         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13883         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13884         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13885
13886 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13887
13888         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13889         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13890         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13891         for gcc to avoid warnings.
13892         * inet/Makefile (tests): Add tst-checks.
13893         * inet/tst-checks.c: New file.
13894
13895         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13896         warning.
13897
13898         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13899         __wmemcmp_sse2.
13900
13901         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13902         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13903
13904         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13905
13906 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13907
13908         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13909         problem.
13910
13911         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13912
13913 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13914
13915         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13916         conditional on GCC version.
13917         (__arch_compare_and_exchange_val_8_acq)
13918         (__arch_compare_and_exchange_val_16_acq)
13919         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13920         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13921         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13922
13923 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13924
13925         * sysdeps/sh/backtrace.c: New file.
13926
13927 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13928
13929         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13930         parenthesis.
13931
13932 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13933
13934         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13935         falling back to utime.
13936
13937 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13938
13939         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13940         expectations for float.
13941
13942 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13943
13944         * locale/weight.h (findidx): Add parameter len.
13945         * locale/weightwc.h (findidx): Likewise.
13946         * posix/fnmatch_loop.c (FCT): Adjust caller.
13947         * posix/regcomp.c (build_equiv_class): Likewise.
13948         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13949         * posix/regexec.c (check_node_accept_bytes): Likewise.
13950         * string/strcoll_l.c (STRCOLL): Likewise.
13951         * string/strxfrm_l.c (STRXFRM): Likewise.
13952
13953 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13954
13955         * Makefile.in: Remove CVSOPT handling.
13956         * configure.in: Remove use of AC_REVISION.
13957         * iconvdata/Makefile (distribute): No need to filter out CVS.
13958         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13959         handling.
13960
13961 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13962
13963         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13964         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13965         [USE_AS_STRNCASECMP_L]: Likewise.
13966         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13967         NO_TLS_DIRECT_SEG_REFS.
13968         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13969         Fix argument offsets for non-PIC.
13970         [USE_AS_STRNCASECMP_L]: Likewise.
13971         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13972         NO_TLS_DIRECT_SEG_REFS.
13973
13974 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13975
13976         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13977         O_CLOEXEC.
13978         * locale/loadlocale.c (_nl_load_locale): Likewise.
13979
13980 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13981
13982         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13983         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13984         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13985         (SYSCALL_GETTIME): Set errno on error.
13986
13987         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13988         count references to noai6ai_cached.
13989
13990 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13991
13992         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13993
13994         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13995         FD_CLOEXEC for /proc/self/maps.
13996
13997         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13998         FD_CLOEXEC for /proc/meminfo.
13999
14000         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14001         gai.conf.
14002
14003         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14004         FD_CLOEXEC for given file.
14005
14006         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14007
14008         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14009         FD_CLOEXEC for /etc/hosts.
14010         (_gethtent): Likewise.
14011
14012         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14013
14014         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14015         cancellation and set FD_CLOEXEC for /etc/netgroup.
14016
14017         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14018         reading /etc/publickey.
14019
14020         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14021         allow cancellation when reading /etc/group.
14022
14023         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14024         cancellation.
14025         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14026
14027         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14028         when using data file.
14029
14030         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14031
14032         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14033         (write_nis_obj): Use "c" and "e" in fopen.
14034
14035         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14036
14037         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14038
14039         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14040
14041         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14042
14043         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14044         locale.alias.
14045
14046         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14047
14048         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14049
14050         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14051
14052         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14053         file parsing and set FD_CLOEXEC.
14054
14055 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14056
14057         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14058
14059 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14060
14061         * malloc/arena.c (arena_get2): Don't call reused_arena when
14062         _int_new_arena failed.
14063
14064 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14065
14066         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14067         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14068         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14069         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14070         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14071         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14072         to compile strcasecmp and strncasecmp.
14073         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14074         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14075
14076         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14077
14078 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14079
14080         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14081         locale-defines.sym to gen-as-const-headers.
14082         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14083         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14084         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14085         to compile strcasecmp and strncasecmp.
14086         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14087         strcasecmp_l and strncasecmp_l.
14088         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14089         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14090         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14091         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14092         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14093         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14094         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14095         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14096         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14097         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14098         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14099
14100 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14101
14102         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14103         result of SYSDEP_GETTIME_CPU to retval.
14104         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14105         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14106
14107         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14108         variable.
14109
14110         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14111         mantissa words.
14112         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14113
14114         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14115         from unused variable.
14116
14117         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14118         DWARF definitions.
14119         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14120         for assembling.
14121
14122         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14123         over namespaces.
14124
14125         * sunrpc/rpc_prot.c (rejected): Fix case value.
14126
14127         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14128         unsigned long long int to avoid warnings in shift.
14129
14130         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14131         of use of trans.
14132         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14133         variable tmp.
14134
14135         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14136         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14137         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14138
14139         * nis/nis_table.c (nis_list): Use variable of correct type for
14140         result of __follow_path call.
14141
14142 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14143
14144         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14145         of math functions ceil, trunc, floor, round, and sqrt, when
14146         avaliable on the platform.
14147         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14148         name clash.
14149         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14150         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14151         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14152
14153 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14154
14155         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14156         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14157
14158 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14159
14160         * include/unistd.h: Fix __readlink return type.
14161         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14162
14163 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14164
14165         * stdlib/ucontext.h: Undo last change for makecontext.
14166
14167 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14168
14169         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14170
14171         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14172         * setjmp/setjmp.h: Mark functions as non-leaf.
14173         * setjmp/bits/setjmp2.h: Likewise.
14174         * stdlib/ucontext.h: Likewise.
14175
14176 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14177
14178         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14179         (reused_arena): Don't check arena limit.
14180         (arena_get2): Atomically check arena limit.
14181
14182 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14183
14184         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14185         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14186
14187         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14188         instructions.
14189
14190 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14191
14192         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14193         handler when locking.
14194
14195         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14196         Fix size of allocated buffer.
14197
14198 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14199
14200         [BZ #10103]
14201         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14202         declarations for long double functions.
14203         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14204
14205         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14206
14207 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14208
14209         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14210         installed.
14211
14212         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14213         is disabled.
14214
14215 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14216
14217         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14218
14219 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14220
14221         * include/alloca.h (stackinfo_alloca_round): Define.
14222         (extend_alloca): Use it.
14223         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14224         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14225         here.
14226
14227         * scripts/check-local-headers.sh: Ignore libaudit.h.
14228
14229         * nscd/Makefile (extra-objs): Make recursively expanded.
14230
14231 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14232
14233         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14234         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14235
14236         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14237         * posix/tst-rfc3484-2.c: Likewise.
14238         * posix/tst-rfc3484-3.c: Likewise.
14239
14240         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14241         process_vm_writev.
14242         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14243         process_vm_writev.
14244         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14245         process_vm_writev from libc using GLIBC_2.15 version.
14246
14247         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14248
14249 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14250
14251         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14252         stack usage.
14253
14254 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14255
14256         [BZ #13367]
14257         * nss/getent.c (initgroups_keys): Show error message in case no group
14258         names are given.
14259
14260         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14261         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14262         __bump_nl_timestamp.
14263         * nscd/connections (nscd_init): When host database is served open
14264         netlink socket and request notification about configuration changes.
14265         (main_loop_poll): Track netlink file descriptor and bump timestamp
14266         in case data becomes available.
14267         (main_loop_epoll): Likewise.
14268         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14269         (database_pers_head): Add extra_data fileds.
14270         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14271         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14272         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14273         Adjust caller.
14274         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14275         in6ai data, call __free_in6ai.
14276         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14277         Add -DHAVE_NETLINK.
14278         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14279         interface information.  Reuse previous data if netlink timestamp
14280         is not changed.
14281         (__bump_nl_timestamp): New function.
14282         (__free_in6ai): New function.
14283
14284 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14285
14286         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14287         close_not_cancel_no_status here.
14288         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14289
14290 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14291
14292         [BZ #13276]
14293         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14294         return value.
14295
14296         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14297         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14298         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14299
14300 2011-07-03  Andreas Jaeger  <aj@suse.de>
14301
14302         [BZ #10709]
14303         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14304         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14305         * math/libm-test.inc (sin_test): Add test case.
14306
14307 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14308
14309         [BZ #13337]
14310         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14311         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14312
14313         * elf/chroot_canon.c (chroot_canon): Cleanups.
14314
14315         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14316
14317         [BZ #13335]
14318         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14319         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14320
14321         * string/test-strchr.c: Make usable for strchrnul testing.
14322         * string/test-strchrnul.c: New file.
14323         * string/Makefile (strop-tests): Add strchrnul.
14324
14325         * po/it.po: Update from translation team.
14326         * po/es.po: Likewise.
14327
14328 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14329
14330         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14331         the three constants needed as parameters.  Drop the others.
14332         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14333         __m128i_strloadu_tolower.
14334         Create and initialize variable zero and use it in all the places
14335         where _mm_setzero_si128 was used.
14336
14337         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14338         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14339         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14340         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14341         anymore.
14342         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14343         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14344         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14345         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14346         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14347         __mpranred, __mptan.
14348         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14349         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14350         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14351         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14352         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14353         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14354         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14355         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14356         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14357
14358 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14359
14360         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14361         redefine if SHARED.
14362         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14363
14364         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14365         wide char related routines to wcsmbs subdir.
14366
14367 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14368
14369         [BZ #13344]
14370         * misc/sys/cdefs.h (__THROWNL): Define.
14371         * posix/unistd.h: Use __THREADNL instead of __THREAD
14372         for memory synchronization functions.
14373
14374 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14375
14376         [BZ #13349]
14377         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14378         doesn't exist.
14379         * manual/stdio.texi (Obstack Streams): Node removed.
14380
14381 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14382
14383         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14384         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14385         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14386
14387         * math/math_private.h (math_force_eval): Allow non-addressable
14388         arguments.
14389         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14390
14391 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14392
14393         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14394         file is not needed.
14395
14396         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14397         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14398         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14399         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14400         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14401         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14402         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14403         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14404         Add AVX variants.
14405         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14406         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14407         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14408         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14409         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14410         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14411         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14412         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14413         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14414         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14415         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14416         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14417         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14418         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14419         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14420         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14421         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14422         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14423         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14424
14425         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14426         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14427
14428         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14429         place.  Use VEX encoding when compiling for AVX.
14430
14431 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14432
14433         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14434         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14435
14436         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14437
14438 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14439
14440         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14441         useless if() expression.
14442         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14443         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14444         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14445         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14446         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14447         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14448         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14449         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14450         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14451         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14452         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14453         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14454         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14455         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14456         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14457         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14458         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14459         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14460         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14461
14462         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14463
14464 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14465
14466         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14467         condition.
14468         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14469
14470 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14471
14472         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14473         .text section.  Avoid duplicate constants.
14474         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14475         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14476         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14477         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14478         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14479         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14480         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14481         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14482         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14483         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14484         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14485         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14486         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14487         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14488         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14489         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14490         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14491         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14492         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14493         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14494         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14495         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14496         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14497         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14498         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14499         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14500         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14501         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14502         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14503         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14504         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14505         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14506         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14507         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14508         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14509         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14510         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14511         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14512         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14513         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14514         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14515         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14516         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14517         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14518         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14519
14520 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14521
14522         * sysdeps/x86_64/dla.h: Move to ...
14523         * sysdeps/x86_64/fpu/dla.h: ...here.
14524         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14525         situations.  Use __builtin_fma only for gcc 4.6 and up.
14526
14527         * config.make.in: Add have-mfma4 entry.
14528         * configure.in: Substitute libc_cv_cc_fma4.
14529         * math/Makefile (dbl-only-routines): Add sincostab.
14530         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14531         Use __sincostab not sincos.
14532         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14533         name is a macro.
14534         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14535         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14536         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14537         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14538         using __copysign.
14539         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14540         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14541         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14542         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14543         and __inv.
14544         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14545         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14546         __copysign.
14547         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14548         define aliases when function name is a macro.
14549         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14550         sysdeps/ieee754/dbl-64/sincos.tbl.
14551         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14552         fma4-enabled routines.
14553         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14554         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14555         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14556         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14557         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14558         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14559         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14560         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14561         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14562         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14563         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14564         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14565         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14566         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14567         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14568         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14569         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14570         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14571         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14572         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14573         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14574         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14575         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14576         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14577         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14578         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14579         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14580         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14581         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14582         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14583
14584         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14585         rename.
14586         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14587         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14588         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14589         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14590         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14591         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14592         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14593         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14594
14595 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14596
14597         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14598
14599 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14600
14601         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14602
14603         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14604         prediction.
14605         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14606
14607         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14608         Remove unused variable magic_bits.
14609         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14610
14611         * string/strnlen.c: Define and use STRNLEN macro.
14612         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14613         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14614         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14615         * wcsmbs/wcslen.c: Define and use WCSLEN.
14616         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14617         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14618         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14619         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14620         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14621         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14622         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14623
14624 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14625
14626         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14627         strnlen-sse2-no-bsf.
14628         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14629         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14630         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14631         Add strnlen support.
14632         (USE_AS_STRNLEN): New macro.
14633         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14634         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14635         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14636         * sysdeps/x86_64/wcslen.S: New file.
14637
14638 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14639
14640         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14641         XMM-moves are used for copying on small sizes.
14642
14643 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14644
14645         * wcsmbs/Makefile (strop-tests): Add wcschr.
14646         * wcsmbs/test-wcschr.c: New file.
14647         * string/test-strchr.c: Update.
14648         Add wcschr support.
14649         (WIDE): New macro.
14650
14651 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14652
14653         * wcsmbs/Makefile (strop-tests): Add wcslen.
14654         * wcsmbs/test-wcslen.c: New file.
14655         * string/test-strlen.c: Update.
14656         Add wcslen support.
14657         (WIDE): New macro.
14658
14659 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14660
14661         * po/it.po: Update from translation team.
14662
14663 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14664
14665         * sysdeps/x86_64/wcscmp.S: Update.
14666         Fix wrong comparison semantics.
14667         wcscmp shall use signed comparison not unsigned.
14668         Don't use substraction to avoid overflow bug.
14669         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14670         * wcsmbc/wcscmp.c: Likewise.
14671         * string/test-strcmp.c: Likewise.
14672         Add new tests to check cases with negative values.
14673
14674 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14675
14676         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14677         * sysdeps/x86_64/dla.h: ...here.  New file.
14678         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14679         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14680         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14681         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14682         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14683         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14684         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14685         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14686         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14687
14688 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14689
14690         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14691         __ynl_finite aliases.
14692
14693 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14694
14695         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14696
14697         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14698         define DLA_FMA.
14699         [DLA_FMA] (EMULV): Use DLA_FMA.
14700         [DLA_FMA] (MUL12): Use EMULV.
14701         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14702         that are not needed.
14703         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14704         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14705         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14706         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14707         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14708         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14709         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14710
14711 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14712
14713         * math/s_nan.c: Undef __nan.
14714         * math/s_nanf.c: Undef __nanf.
14715         * math/s_nanl.c: Undef __nanl.
14716         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14717         "math_private.h".
14718
14719 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14720
14721         * math/s_catan.c: Add branch predictions.
14722         * math/s_catanf.c: Likewise.
14723         * math/s_catanh.c: Likewise.
14724         * math/s_catanhf.c: Likewise.
14725         * math/s_catanhl.c: Likewise.
14726         * math/s_catanl.c: Likewise.
14727         * math/s_cexp.c: Likewise.
14728         * math/s_cexpf.c: Likewise.
14729         * math/s_cexpl.c: Likewise.
14730         * math/s_clog.c: Likewise.
14731         * math/s_clog10.c: Likewise.
14732         * math/s_clog10f.c: Likewise.
14733         * math/s_clog10l.c: Likewise.
14734         * math/s_clogf.c: Likewise.
14735         * math/s_clogl.c: Likewise.
14736         * math/s_csqrt.c: Likewise.
14737         * math/s_csqrtf.c: Likewise.
14738         * math/s_csqrtl.c: Likewise.
14739         * math/s_ctanf.c: Likewise.
14740         * math/s_ctanh.c: Likewise.
14741         * math/s_ctanhf.c: Likewise.
14742         * math/s_ctanhl.c: Likewise.
14743         * math/s_ctanl.c: Likewise.
14744
14745         * math/math_private.h: Define __nan, __nanf, __nanl.
14746         * math/s_cacosh.c: Include <math_private.h>.
14747         * math/s_cacoshl.c: Likewise.
14748         * math/s_casinh.c: Likewise.
14749         * math/s_casinhf.c: Likewise.
14750         * math/s_casinhl.c: Likewise.
14751         * math/s_ccos.c: Rely entire on ccosh.
14752         * math/s_ccosf.c: Rely entire on ccoshf.
14753         * math/s_ccosl.c: Rely entirely on ccoshl.
14754         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14755         Remove tests for FE_INVALID.
14756         * math/s_ccoshf.c: Likewise.
14757         * math/s_ccoshl.c: Likewise.
14758         * math/s_csin.c: Likewise.
14759         * math/s_csinf.c: Likewise.
14760         * math/s_csinh.c Likewise.
14761         * math/s_csinhf.c: Likewise.
14762         * math/s_csinhl.c: Likewise.
14763         * math/s_csinl.c: Likewise.
14764         * math/s_ctan.c: Likewise.
14765         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14766         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14767         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14768
14769 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14770
14771         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14772         compilation problems.
14773
14774         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14775         __builtin_expect.
14776
14777 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14778
14779         * sysdeps/i386/configure.in: Test for -mfma4 option.
14780         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14781         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14782         COMMON_CPUID_INDEX_80000001.
14783         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14784         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14785         use it if FMA3 is not supported.
14786         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14787
14788         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14789         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14790
14791 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14792
14793         [BZ #12892]
14794         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14795         it would create a cycle with a link time dependency.
14796
14797 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14798
14799         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14800         instruction.
14801         * string/Makefile (strop-tests): Add rawmemchr.
14802         * string/test-rawmemchr.c: New file.
14803
14804         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14805         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14806         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14807         when compiling str{,n}casecmp and when AVX is available.  Hook up
14808         new optimized code in initializers.
14809
14810 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14811
14812         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14813         __feraiseexcept instead of feraiseexcept.
14814
14815 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14816
14817         * math/math_private.h: Define defaults for libc_fetestexcept and
14818         libc_feupdateenv.
14819         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14820         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14821         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14822         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14823         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14824         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14825         libc_fetestexcept and libc_feupdateenv.
14826
14827         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14828         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14829         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14830         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14831         libc_feholdexcept_setround.
14832
14833         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14834         Add s_nearbyint-c and s_nearbyintf-c.
14835         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14836         nearbyintf inlines.
14837         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14838         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14839         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14840         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14841
14842         * math/math_private.h: Define defaults for libc_fegetround,
14843         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14844         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14845         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14846         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14847         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14848         standard functions.
14849         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14850         Remove comments and hacks for old compiler versions.
14851         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14852         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14853         libc_feholdexceptl.
14854
14855 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14856
14857         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14858         (__feraiseexcept_renamed): Add __NTH.
14859         (feraiseexcept): Add __NTH.  Rename local variables to fix
14860         namespace violations.
14861
14862 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14863
14864         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14865
14866         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14867
14868         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14869         recently added interfaces.
14870         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14871
14872         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14873         about macro parameter expansion.
14874
14875         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14876         __NO_MATH_INLINES is defined.  Cleanups.
14877
14878         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14879         and __floorf is target has SSE4.1.
14880         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14881         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14882         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14883         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14884
14885         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14886         name.
14887         (floorf): Likewise.
14888
14889         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14890
14891 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14892
14893         * misc/sys/cdefs.h: Fix last change.
14894
14895         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14896         database lookup.
14897
14898 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14899
14900         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14901
14902         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14903         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14904         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14905         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14906         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14907         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14908         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14909         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14910         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14911         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14912         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14913         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14914         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14915         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14916         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14917         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14918         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14919         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14920         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14921         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14922         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14923         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14924
14925         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14926         ceil, ceilf, floor, floorf.
14927
14928         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14929         Perform IRELATIVE relocations last.
14930
14931         * elf/do-rel.h: Add another parameter nrelative, replacing the
14932         local variable with the same name.  Change name of the function
14933         to end in Rel or Rela (uppercase).
14934         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14935         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14936         elf_dynamic_do_##reloc function.
14937
14938 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14939
14940         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14941         is sufficient, at least on modern CPUs.
14942
14943         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14944
14945         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14946         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14947
14948         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14949         __expl_finite.
14950         * math/bits/math-finite.h: Add entries for exp.
14951         * math/e_expl.c: Add __*_finite alias.
14952         * sysdeps/i386/fpu/e_exp.S: Likewise.
14953         * sysdeps/i386/fpu/e_expf.S: Likewise.
14954         * sysdeps/i386/fpu/e_expl.c: Likewise.
14955         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14956         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14957         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14958         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14959         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14960         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14961         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14962
14963         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14964         is sufficient, at least on modern CPUs.
14965
14966         * ctype/ctype-info.c (__ctype_init): Define.
14967         * include/ctype.h (__ctype_init): Declare.
14968         (__ctype_b_loc): The variable is always initialized.
14969         (__ctype_toupper_loc): Likewise.
14970         (__ctype_tolower_loc): Likewise.
14971         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14972         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14973
14974 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14975
14976         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14977
14978         * configure.in: Also look in $cxxmachine/include for C++ system
14979         headers.
14980
14981 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14982
14983         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14984         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14985         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14986         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14987         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14988         (USE_AS_WMEMCMP): New macro.
14989         Fixing indents.
14990         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14991         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14992         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14993         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14994         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14995         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14996         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14997         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14998         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14999         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15000         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15001         (USE_AS_WMEMCMP): New macro.
15002         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15003         * sysdeps/string/test-memcmp.c: Update.
15004         Fix simple_wmemcmp.
15005         Add new tests.
15006         * wcsmbs/wmemcmp.c: Update.
15007         (WMEMCMP): New macro.
15008         Fix overflow bug.
15009
15010 2011-10-12  Andreas Jaeger  <aj@suse.de>
15011
15012         [BZ #13268]
15013         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15014
15015 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15016
15017         * libio/iofwide.c (do_length): Avoid warning.
15018
15019         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15020
15021 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15022
15023         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15024
15025         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15026         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15027         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15028         * sysdeps/i386/i686/fpu/e_log.S: New file.
15029         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15030         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15031
15032         * ctype/ctype.h: Add support for inlined isXXX functions when
15033         compiling C++ code.
15034
15035 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15036
15037         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15038
15039         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15040
15041 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15042
15043         [BZ #13291]
15044         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15045
15046 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15047
15048         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15049         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15050         feraiseexcept.
15051
15052         * sysdeps/x86_64/memrchr.S: Check for zero size.
15053
15054         * string/stratcliff.c: Add memrchr tests.
15055
15056 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15057
15058         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15059         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15060         rawmemchr-sse2 rawmemchr-sse2-bsf.
15061         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15062         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15063         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15064         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15065         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15066         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15067         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15068         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15069         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15070         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15071         * string/memrchr.c (MEMRCHR): New macro.
15072
15073 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15074
15075         Add integration with gcc's -ffinite-math-only and optimize wrapper
15076         functions in libm.
15077         * Versions.def: Define GLIBC_2.15 version for libm.
15078         * math/Makefile (headers): Add bits/math-finite.h.
15079         * math/bits/math-finite.h: New file.
15080         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15081         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15082         * math/e_acoshl.c: Add __*_finite alias.
15083         * math/e_acosl.c: Likewise.
15084         * math/e_asinl.c: Likewise.
15085         * math/e_atan2l.c: Likewise.
15086         * math/e_atanhl.c: Likewise.
15087         * math/e_coshl.c: Likewise.
15088         * math/e_exp10.c: Likewise.
15089         * math/e_exp10f.c: Likewise.
15090         * math/e_exp10l.c: Likewise.
15091         * math/e_exp2l.c: Likewise.
15092         * math/e_fmodl.c: Likewise.
15093         * math/e_gammal_r.c: Likewise.
15094         * math/e_hypotl.c: Likewise.
15095         * math/e_j0l.c: Likewise.
15096         * math/e_j1l.c: Likewise.
15097         * math/e_jnl.c: Likewise.
15098         * math/e_lgammal_r.c: Likewise.
15099         * math/e_log10l.c: Likewise.
15100         * math/e_log2l.c: Likewise.
15101         * math/e_logl.c: Likewise.
15102         * math/e_powl.c: Likewise.
15103         * math/e_sinhl.c: Likewise.
15104         * math/e_sqrtl.c: Likewise.
15105         * math/e_scalb.c: Completely rewritten and optimized.
15106         * math/e_scalbf.c: Likewise.
15107         * math/e_scalbl.c: Likewise.
15108         * math/w_acos.c: Likewise.
15109         * math/w_acosf.c: Likewise.
15110         * math/w_acosl.c: Likewise.
15111         * math/w_acosh.c: Likewise.
15112         * math/w_acoshf.c: Likewise.
15113         * math/w_acoshl.c: Likewise.
15114         * math/w_asin.c: Likewise.
15115         * math/w_asinf.c: Likewise.
15116         * math/w_asinl.c: Likewise.
15117         * math/w_atan2.c: Likewise.
15118         * math/w_atan2f.c: Likewise.
15119         * math/w_atan2l.c: Likewise.
15120         * math/w_atanh.c: Likewise.
15121         * math/w_atanhf.c: Likewise.
15122         * math/w_atanhl.c: Likewise.
15123         * math/w_exp10.c: Likewise.
15124         * math/w_exp10f.c: Likewise.
15125         * math/w_exp10l.c: Likewise.
15126         * math/w_fmod.c: Likewise.
15127         * math/w_fmodf.c: Likewise.
15128         * math/w_fmodl.c: Likewise.
15129         * math/w_j0.c: Likewise.
15130         * math/w_j0f.c: Likewise.
15131         * math/w_j0l.c: Likewise.
15132         * math/w_j1.c: Likewise.
15133         * math/w_j1f.c: Likewise.
15134         * math/w_j1l.c: Likewise.
15135         * math/w_jn.c: Likewise.
15136         * math/w_jnf.c: Likewise.
15137         * math/w_log.c: Likewise.
15138         * math/w_logf.c: Likewise.
15139         * math/w_logl.c: Likewise.
15140         * math/w_log10.c: Likewise.
15141         * math/w_log10f.c: Likewise.
15142         * math/w_log10l.c: Likewise.
15143         * math/w_log2.c: Likewise.
15144         * math/w_log2f.c: Likewise.
15145         * math/w_log2l.c: Likewise.
15146         * math/w_pow.c: Likewise.
15147         * math/w_powf.c: Likewise.
15148         * math/w_powl.c: Likewise.
15149         * math/w_remainder.c: Likewise.
15150         * math/w_remainderf.c: Likewise.
15151         * math/w_remainderl.c: Likewise.
15152         * math/w_scalb.c: Likewise.
15153         * math/w_scalbf.c: Likewise.
15154         * math/w_scalbl.c: Likewise.
15155         * math/w_sqrt.c: Likewise.
15156         * math/w_sqrtf.c: Likewise.
15157         * math/w_sqrtl.c: Likewise.
15158         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15159         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15160         used.
15161         * math/math_private.h: Declare __kernel_standard_f.
15162         * math/w_cosh.c: Remove cruft and optimize a bit.
15163         * math/w_coshf.c: Likewise.
15164         * math/w_coshl.c: Likewise.
15165         * math/w_exp2.c: Likewise.
15166         * math/w_exp2f.c: Likewise.
15167         * math/w_exp2l.c: Likewise.
15168         * math/w_hypot.c: Likewise.
15169         * math/w_hypotf.c: Likewise.
15170         * math/w_hypotl.c: Likewise.
15171         * math/w_lgamma.c: Likewise.
15172         * math/w_lgamma_r.c: Likewise.
15173         * math/w_lgammaf.c: Likewise.
15174         * math/w_lgammaf_r.c: Likewise.
15175         * math/w_lgammal.c: Likewise.
15176         * math/w_lgammal_r.c: Likewise.
15177         * math/w_sinh.c: Likewise.
15178         * math/w_sinhf.c: Likewise.
15179         * math/w_sinhl.c: Likewise.
15180         * math/w_tgamma.c: Likewise.
15181         * math/w_tgammaf.c: Likewise.
15182         * math/w_tgammal.c: Likewise.
15183         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15184         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15185         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15186         Minor optimizations.  Pretty printing.  Remove cruft.
15187         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15188         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15189         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15190         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15191         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15192         * sysdeps/i386/fpu/e_asin.S: Likewise.
15193         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15194         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15195         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15196         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15197         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15198         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15199         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15200         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15201         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15202         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15203         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15204         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15205         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15206         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15207         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15208         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15209         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15210         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15211         * sysdeps/i386/fpu/e_log.S: Likewise.
15212         * sysdeps/i386/fpu/e_log10.S: Likewise.
15213         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15214         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15215         * sysdeps/i386/fpu/e_log2.S: Likewise.
15216         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15217         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15218         * sysdeps/i386/fpu/e_logf.S: Likewise.
15219         * sysdeps/i386/fpu/e_logl.S: Likewise.
15220         * sysdeps/i386/fpu/e_pow.S: Likewise.
15221         * sysdeps/i386/fpu/e_powf.S: Likewise.
15222         * sysdeps/i386/fpu/e_powl.S: Likewise.
15223         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15224         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15225         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15226         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15227         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15228         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15229         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15230         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15231         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15232         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15233         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15234         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15235         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15236         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15237         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15238         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15239         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15240         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15241         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15242         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15243         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15244         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15245         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15246         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15247         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15248         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15249         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15250         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15251         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15252         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15253         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15254         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15255         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15256         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15257         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15258         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15259         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15260         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15261         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15262         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15263         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15264         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15265         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15266         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15267         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15268         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15269         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15270         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15271         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15272         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15273         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15274         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15275         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15276         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15277         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15278         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15279         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15280         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15281         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15282         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15283         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15284         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15285         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15286         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15287         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15288         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15289         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15290         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15291         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15292         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15293         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15294         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15295         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15296         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15297         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15298         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15299         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15300         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15301         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15302         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15303         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15304         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15305         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15306         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15307         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15308         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15309         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15310         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15311         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15312         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15313         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15314         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15315         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15316         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15317         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15318         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15319         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15320         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15321         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15322         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15323         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15324         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15325         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15326         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15327         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15328         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15329         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15330         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15331         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15332         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15333         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15334         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15335         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15336         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15337         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15338         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15339         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15340         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15341         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15342         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15343         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15344         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15345         (__isnanf): Likewise.
15346         (__isinf_ns): Likewise.
15347         (__isinf_nsf): Likewise.
15348         (__finite): Likewise.
15349         (__finitef): Likewise.
15350         (__ieee754_sqrt): Define as macro.
15351         (__ieee754_sqrtf): Define as macro.
15352         (__ieee754_sqrtl): Define as macro.
15353         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15354         inlined copy.
15355         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15356         __FINITE_MATH_ONLY__ consistent.
15357         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15358
15359 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15360
15361         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15362         of rawmemchr.
15363
15364         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15365
15366 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15367
15368         * po/ja.po: Update from translation team.
15369
15370 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15371
15372         * locale/programs/locarchive.c (prepare_address_space): New function.
15373         (create_archive, enlarge_archive, open_archive): Use it.
15374
15375         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15376         inside [SHARED], where it is used.
15377
15378         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15379
15380         * nss/getent.c (netgroup_keys): Remove unused variable.
15381         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15382
15383 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15384
15385         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15386         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15387         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15388         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15389         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15390         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15391         * math/Makefile (libm-calls): Add s_isinf_ns.
15392         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15393         * math/multc3.c: Likewise.
15394         * math/s_casin.c: Likewise.
15395         * math/s_casinf.c: Likewise.
15396         * math/s_casinl.c: Likewise.
15397         * math/s_ccos.c: Likewise.
15398         * math/s_ccosf.c: Likewise.
15399         * math/s_ccosl.c: Likewise.
15400         * math/s_ctan.c: Likewise.
15401         * math/s_ctanf.c: Likewise.
15402         * math/s_ctanh.c: Likewise.
15403         * math/s_ctanhf.c: Likewise.
15404         * math/s_ctanhl.c: Likewise.
15405         * math/s_ctanl.c: Likewise.
15406         * math/w_fmod.c: Likewise.
15407         * math/w_fmodf.c: Likewise.
15408         * math/w_fmodl.c: Likewise.
15409         * math/w_remainder.c: Likewise.
15410         * math/w_remainderf.c: Likewise.
15411         * math/w_remainderl.c: Likewise.
15412         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15413         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15414         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15415         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15416         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15417         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15418         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15419         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15420
15421         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15422         of the number.
15423         * stdio-common/printf_fphex.c: Likewise.
15424         * stdio-common/printf_size.c: Likewise.
15425
15426         * math/e_exp10.c: Include math_private.h using <...> not "...".
15427         * math/e_exp10f.c: Likewise.
15428         * math/e_exp10l.c: Likewise.
15429         * math/e_exp2l.c: Likewise.
15430         * math/e_j0l.c: Likewise.
15431         * math/e_j1l.c: Likewise.
15432         * math/e_jnl.c: Likewise.
15433         * math/e_lgammal_r.c: Likewise.
15434         * math/e_rem_pio2l.c: Likewise.
15435         * math/e_scalb.c: Likewise.
15436         * math/e_scalbf.c: Likewise.
15437         * math/e_scalbl.c: Likewise.
15438         * math/k_cosl.c: Likewise.
15439         * math/k_sinl.c: Likewise.
15440         * math/k_tanl.c: Likewise.
15441         * math/s_cacoshf.c: Likewise.
15442         * math/s_catan.c: Likewise.
15443         * math/s_catanf.c: Likewise.
15444         * math/s_catanh.c: Likewise.
15445         * math/s_catanhf.c: Likewise.
15446         * math/s_catanhl.c: Likewise.
15447         * math/s_catanl.c: Likewise.
15448         * math/s_ccosh.c: Likewise.
15449         * math/s_ccoshf.c: Likewise.
15450         * math/s_ccoshl.c: Likewise.
15451         * math/s_cexp.c: Likewise.
15452         * math/s_cexpf.c: Likewise.
15453         * math/s_cexpl.c: Likewise.
15454         * math/s_clog.c: Likewise.
15455         * math/s_clog10.c: Likewise.
15456         * math/s_clog10f.c: Likewise.
15457         * math/s_clog10l.c: Likewise.
15458         * math/s_clogf.c: Likewise.
15459         * math/s_clogl.c: Likewise.
15460         * math/s_csin.c: Likewise.
15461         * math/s_csinf.c: Likewise.
15462         * math/s_csinh.c: Likewise.
15463         * math/s_csinhf.c: Likewise.
15464         * math/s_csinhl.c: Likewise.
15465         * math/s_csinl.c: Likewise.
15466         * math/s_csqrt.c: Likewise.
15467         * math/s_csqrtf.c: Likewise.
15468         * math/s_csqrtl.c: Likewise.
15469         * math/s_ctan.c: Likewise.
15470         * math/s_ctanf.c: Likewise.
15471         * math/s_ctanh.c: Likewise.
15472         * math/s_ctanhf.c: Likewise.
15473         * math/s_ctanhl.c: Likewise.
15474         * math/s_ctanl.c: Likewise.
15475         * math/s_ldexp.c: Likewise.
15476         * math/s_ldexpf.c: Likewise.
15477         * math/s_ldexpl.c: Likewise.
15478         * math/s_significand.c: Likewise.
15479         * math/s_significandf.c: Likewise.
15480         * math/s_significandl.c: Likewise.
15481         * math/w_acos.c: Likewise.
15482         * math/w_acosf.c: Likewise.
15483         * math/w_acosh.c: Likewise.
15484         * math/w_acoshf.c: Likewise.
15485         * math/w_acoshl.c: Likewise.
15486         * math/w_acosl.c: Likewise.
15487         * math/w_asin.c: Likewise.
15488         * math/w_asinf.c: Likewise.
15489         * math/w_asinl.c: Likewise.
15490         * math/w_atan2.c: Likewise.
15491         * math/w_atan2f.c: Likewise.
15492         * math/w_atan2l.c: Likewise.
15493         * math/w_atanh.c: Likewise.
15494         * math/w_atanhf.c: Likewise.
15495         * math/w_atanhl.c: Likewise.
15496         * math/w_cosh.c: Likewise.
15497         * math/w_coshf.c: Likewise.
15498         * math/w_coshl.c: Likewise.
15499         * math/w_dremf.c: Likewise.
15500         * math/w_exp10.c: Likewise.
15501         * math/w_exp10f.c: Likewise.
15502         * math/w_exp10l.c: Likewise.
15503         * math/w_exp2.c: Likewise.
15504         * math/w_exp2f.c: Likewise.
15505         * math/w_fmod.c: Likewise.
15506         * math/w_fmodf.c: Likewise.
15507         * math/w_fmodl.c: Likewise.
15508         * math/w_hypot.c: Likewise.
15509         * math/w_hypotf.c: Likewise.
15510         * math/w_hypotl.c: Likewise.
15511         * math/w_j0.c: Likewise.
15512         * math/w_j0f.c: Likewise.
15513         * math/w_j0l.c: Likewise.
15514         * math/w_j1.c: Likewise.
15515         * math/w_j1f.c: Likewise.
15516         * math/w_j1l.c: Likewise.
15517         * math/w_jn.c: Likewise.
15518         * math/w_jnf.c: Likewise.
15519         * math/w_jnl.c: Likewise.
15520         * math/w_lgamma.c: Likewise.
15521         * math/w_lgamma_r.c: Likewise.
15522         * math/w_lgammaf.c: Likewise.
15523         * math/w_lgammaf_r.c: Likewise.
15524         * math/w_lgammal.c: Likewise.
15525         * math/w_lgammal_r.c: Likewise.
15526         * math/w_log.c: Likewise.
15527         * math/w_log10.c: Likewise.
15528         * math/w_log10f.c: Likewise.
15529         * math/w_log10l.c: Likewise.
15530         * math/w_log2.c: Likewise.
15531         * math/w_log2f.c: Likewise.
15532         * math/w_log2l.c: Likewise.
15533         * math/w_logf.c: Likewise.
15534         * math/w_logl.c: Likewise.
15535         * math/w_pow.c: Likewise.
15536         * math/w_powf.c: Likewise.
15537         * math/w_powl.c: Likewise.
15538         * math/w_remainder.c: Likewise.
15539         * math/w_remainderf.c: Likewise.
15540         * math/w_remainderl.c: Likewise.
15541         * math/w_scalb.c: Likewise.
15542         * math/w_scalbf.c: Likewise.
15543         * math/w_scalbl.c: Likewise.
15544         * math/w_sinh.c: Likewise.
15545         * math/w_sinhf.c: Likewise.
15546         * math/w_sinhl.c: Likewise.
15547         * math/w_sqrt.c: Likewise.
15548         * math/w_sqrtf.c: Likewise.
15549         * math/w_sqrtl.c: Likewise.
15550         * math/w_tgamma.c: Likewise.
15551         * math/w_tgammaf.c: Likewise.
15552         * math/w_tgammal.c: Likewise.
15553
15554         * po/ja.po: Update from translation team.
15555
15556 2011-09-29  Andreas Jaeger  <aj@suse.de>
15557
15558         [BZ #13179]
15559         * sunrpc/netname.c (netname2host): Fix logic.
15560
15561         [BZ #6779]
15562         [BZ #6783]
15563         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15564         correctly.
15565         * math/w_remainder.c (__remainder): Likewise.
15566         * math/w_remainderf.c (__remainderf): Likewise.
15567         * math/libm-test.inc (remainder_test): Add test cases.
15568
15569 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15570
15571         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15572         sdiv_qrnnd.
15573
15574 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15575
15576         * string/test-memcmp.c: Avoid unncessary #defines.
15577         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15578
15579 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15580
15581         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15582         Use new sse2 version for core i3 - i7 as it's faster
15583         than sse42 version.
15584         (bit_Prefer_PMINUB_for_stringop): New.
15585         * sysdeps/x86_64/rawmemchr.S: Update.
15586         Replace with faster SSE2 version.
15587         * sysdeps/x86_64/memrchr.S: New file.
15588         * sysdeps/x86_64/memchr.S: Update.
15589         Replace with faster SSE2 version.
15590
15591 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15592
15593         * elf/dl-load.c (lose): Add cast to avoid warning.
15594
15595 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15596
15597         * po/ca.po: Update from translation team.
15598
15599         * inet/getnetgrent_r.c: Hook up nscd.
15600         * nscd/Makefile (routines): Add nscd_netgroup.
15601         (nscd-modules): Add netgroupcache.
15602         (CFLAGS-netgroupcache.c): Define.
15603         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15604         (cache_search): Add const to second parameter.
15605         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15606         INNETGR.
15607         (dbs): Add netgrdb entry.
15608         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15609         (verify_persistent_db): Handle netgrdb.
15610         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15611         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15612         GETFDNETGR.
15613         (netgroup_response_header): Define.
15614         (innetgroup_response_header): Define.
15615         (datahead): Add netgroup_response_header and innetgroup_response_header
15616         elements.
15617         * nscd/nscd.conf: Add entries for netgroup cache.
15618         * nscd/nscd.h (dbtype): Add netgrdb.
15619         (_PATH_NSCD_NETGROUP_DB): Define.
15620         (netgroup_iov_disabled): Declare.
15621         (xmalloc, xcalloc, xrealloc): Move declarations here.
15622         (cache_search): Adjust prototype.
15623         Add netgroup-related prototypes.
15624         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15625         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15626         (__nscd_innetgr): Declare.
15627         * nscd/selinux.c (perms): Use access_vector_t as element type and
15628         add netgroup-related initializers.
15629         * nscd/netgroupcache.c: New file.
15630         * nscd/nscd_netgroup.c: New file.
15631         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15632         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15633         For four parameters use innetgr.
15634         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15635         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15636         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15637         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15638
15639         * nscd/connections.c (register_traced_file): Don't register file
15640         for disabled databases.
15641
15642 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15643
15644         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15645
15646         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15647         from tree and freeing node.
15648
15649 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15650
15651         * nss/nsswitch.c (__nss_database_lookup): Handle
15652         nss_parse_service_list out of memory case.
15653
15654 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15655
15656         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15657         out of memory case.
15658
15659 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15660
15661         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15662         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15663         pass it down.
15664         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15665         elf_machine_rela, elf_machine_lazy_rel.
15666         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15667         (ELF_DYNAMIC_DO_REL): Likewise.
15668         (ELF_DYNAMIC_DO_RELA): Likewise.
15669         (ELF_DYNAMIC_RELOCATE): Likewise.
15670         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15671         to ELF_DYNAMIC_DO_REL.
15672         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15673         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15674         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15675         elf_machine_rela.
15676         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15677         skip_ifunc, don't call ifunc function if non-zero.
15678         (elf_machine_rela): Likewise.
15679         (elf_machine_lazy_rel): Likewise.
15680         (elf_machine_lazy_rela): Likewise.
15681         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15682         (elf_machine_lazy_rel): Likewise.
15683         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15684         Likewise.
15685         (elf_machine_lazy_rel): Likewise.
15686         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15687         Likewise.
15688         (elf_machine_lazy_rel): Likewise.
15689         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15690         (elf_machine_lazy_rel): Likewise.
15691         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15692         (elf_machine_lazy_rel): Likewise.
15693         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15694         (elf_machine_lazy_rel): Likewise.
15695         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15696         (elf_machine_lazy_rel): Likewise.
15697         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15698         (elf_machine_lazy_rel): Likewise.
15699         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15700         (elf_machine_lazy_rel): Likewise.
15701
15702 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15703
15704         * nss/nss_files/files-init.c (_nss_files_init): Use static
15705         initialization for all the *_traced_file variables.
15706
15707 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15708
15709         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15710
15711 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15712
15713         [BZ #13226]
15714         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15715
15716 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15717
15718         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15719         Reread the line before reparsing it.
15720
15721 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15722
15723         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15724
15725 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15726             Maxim Kuvyrkov  <maxim@codesourcery.com>
15727             Joseph Myers  <joseph@codesourcery.com>
15728
15729         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15730         if needed for __stack_chk_guard.
15731
15732 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15733
15734         * sysdeps/posix/spawni.c (script_execute): Always define it.
15735         It will be optimized away if unused.
15736         (maybe_script_execute): New function.
15737         (__spawni): Call it.
15738
15739         * Makerules: Don't include tls.make.
15740         (config-tls): Always set to thread.
15741         * tls.make.c: File removed.
15742
15743 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15744
15745         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15746         * config.make.in (CPPFLAGS-config): New substituted variable.
15747
15748 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15749
15750         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15751
15752         [BZ #13192]
15753         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15754         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15755
15756 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15757
15758         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15759         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15760         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15761         (CALL_FAIL): Likewise.
15762         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15763         (CALL_FAIL): Macro removed.
15764         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15765
15766 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15767
15768         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15769         for __FINITE_MATH_ONLY__ == 1.
15770
15771 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15772
15773         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15774         __ieee754_sqrt instead of sqrt.
15775         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15776         __ieee754_sqrtf instead of sqrtf.
15777         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15778         __floorf instead of floorf.
15779         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15780         __floorf, __truncf instead of floorf, truncf.
15781
15782 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15783
15784         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15785
15786         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15787         __extern_always_inline.
15788         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15789         32-bit.
15790
15791 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15792
15793         * elf/rtld.c (dl_main): Also relocate in dependency order when
15794         doing symbol dependency testing.
15795
15796 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15797
15798         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15799         Always define `refsym'.
15800
15801 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15802
15803         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15804         (__FD_ELT): Renamed from __FDELT.
15805         * misc/bits/select2.h (__FD_ELT): Likewise.
15806         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15807         __FD_MASK instead of __FDELT, __FDMASK.
15808         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15809         Likewise.
15810         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15811         Likewise.
15812
15813         * elf/Makefile (gen-ldd): Fix pattern.
15814
15815         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15816         (init_tls): Likewise.
15817
15818 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15819
15820         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15821
15822 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15823
15824         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15825         `struct cmsghdr *' instead of `void *'.
15826         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15827         Likewise.
15828
15829 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15830
15831         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15832         if non-absolute.
15833         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15834         ldd_rewrite_script.
15835
15836 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15837
15838         * configure.in: Remove --with-tls option.
15839         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15840         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15841         out in case it is missing.
15842         * sysdeps/ia64/elf/configure.in: Likewise.
15843         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15844         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15845         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15846         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15847         * sysdeps/sh/elf/configure.in: Likewise.
15848         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15849         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15850         * sysdeps/x86_64/elf/configure.in: Likewise.
15851         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15852         * sysdeps/mach/hurd/tls.h: Likewise.
15853
15854         [BZ #13067]
15855         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15856
15857         [BZ #13090]
15858         * configure.in: Fix use of AC_INIT.
15859
15860         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15861
15862 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15863
15864         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15865         __set_errno.
15866         * malloc/hooks.c: Likewise.
15867
15868         [BZ #11929]
15869         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15870         variables statically.
15871         (narenas): Initialize.
15872         (list_lock): Initialize.
15873         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15874         initializtion of main_arena and list_lock.  Small cleanups.
15875         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15876         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15877         Add initializers to main_arena and mp_.
15878         (malloc_state): Remove pagesize member.  Change all users to use
15879         GLRO(dl_pagesize).
15880
15881         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15882         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15883         is always initialized.
15884
15885         * malloc/malloc.c: Removed unused configurations and dead code.
15886         * malloc/arena.c: Likewise.
15887         * malloc/hooks.c: Likewise.
15888         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15889
15890         * include/tls.h: Removed.  USE___THREAD must always be defined.
15891         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15892         * elf/dl-libc.c: Likewise.
15893         * elf/dl-tsd.c: Likewise.
15894         * include/errno.h: Likewise.
15895         * include/netdb.h: Likewise.
15896         * include/resolv.h: Likewise.
15897         * inet/herrno-loc.c: Likewise.
15898         * inet/herrno.c: Likewise.
15899         * malloc/arena.c: Likewise.
15900         * malloc/hooks.c: Likewise.
15901         * malloc/malloc.c: Likewise.
15902         * resolv/res-state.c: Likewise.
15903         * resolv/res_libc.c: Likewise.
15904         * sysdeps/i386/dl-machine.h: Likewise.
15905         * sysdeps/ia64/dl-machine.h: Likewise.
15906         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15907         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15908         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15909         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15910         * sysdeps/sh/dl-machine.h: Likewise.
15911         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15912         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15913         * sysdeps/unix/i386/sysdep.S: Likewise.
15914         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15915         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15916         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15917         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15918         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15919         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15920         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15921         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15922         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15923         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15924         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15925         * sysdeps/x86_64/dl-machine.h: Likewise.
15926         * tls.make.c: Likewise.
15927
15928         * configure.in: Remove --with-__thread option.  Make tests for
15929         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15930         tls_model attribute fail if no support is available.  Remove
15931         USE_IN_LIBIO.
15932         * Makeconfig: Adjust for dropped configure option.  All features are
15933         now mandatory.
15934         * Makerules: Likewise.
15935         * Versions.def: Likewise.
15936         * argp/argp-fmtstream.c: Likewise.
15937         * argp/argp-fmtstream.h: Likewise.
15938         * argp/argp-help.c: Likewise.
15939         * assert/assert.c: Likewise.
15940         * config.h.in: Likewise.
15941         * config.make.in: Likewise.
15942         * configure: Likewise.
15943         * configure.in: Likewise.
15944         * csu/Versions: Likewise.
15945         * csu/init.c: Likewise.
15946         * elf/tst-audit2.c: Likewise.
15947         * elf/tst-tls10.c: Likewise.
15948         * elf/tst-tls10.h: Likewise.
15949         * elf/tst-tls11.c: Likewise.
15950         * elf/tst-tls12.c: Likewise.
15951         * elf/tst-tls14.c: Likewise.
15952         * elf/tst-tlsmod11.c: Likewise.
15953         * elf/tst-tlsmod12.c: Likewise.
15954         * elf/tst-tlsmod13.c: Likewise.
15955         * elf/tst-tlsmod13a.c: Likewise.
15956         * elf/tst-tlsmod14a.c: Likewise.
15957         * elf/tst-tlsmod15b.c: Likewise.
15958         * elf/tst-tlsmod16a.c: Likewise.
15959         * elf/tst-tlsmod16b.c: Likewise.
15960         * elf/tst-tlsmod7.c: Likewise.
15961         * elf/tst-tlsmod8.c: Likewise.
15962         * elf/tst-tlsmod9.c: Likewise.
15963         * gmon/gmon.c: Likewise.
15964         * grp/fgetgrent_r.c: Likewise.
15965         * grp/putgrent.c: Likewise.
15966         * hurd/fopenport.c: Likewise.
15967         * include/libc-symbols.h: Likewise.
15968         * include/tls.h: Likewise.
15969         * intl/gettextP.h: Likewise.
15970         * intl/loadinfo.h: Likewise.
15971         * locale/global-locale.c: Likewise.
15972         * locale/localeinfo.h: Likewise.
15973         * mach/devstream.c: Likewise.
15974         * malloc/arena.c: Likewise.
15975         * malloc/set-freeres.c: Likewise.
15976         * misc/err.c: Likewise.
15977         * misc/getttyent.c: Likewise.
15978         * misc/mntent_r.c: Likewise.
15979         * posix/getopt.c: Likewise.
15980         * posix/wordexp.c: Likewise.
15981         * pwd/fgetpwent_r.c: Likewise.
15982         * resolv/Versions: Likewise.
15983         * resolv/res_hconf.c: Likewise.
15984         * shadow/fgetspent_r.c: Likewise.
15985         * shadow/putspent.c: Likewise.
15986         * stdio-common/printf_fphex.c: Likewise.
15987         * stdio-common/tmpfile.c: Likewise.
15988         * stdlib/abort.c: Likewise.
15989         * stdlib/fmtmsg.c: Likewise.
15990         * sunrpc/auth_unix.c: Likewise.
15991         * sunrpc/clnt_perr.c: Likewise.
15992         * sunrpc/clnt_tcp.c: Likewise.
15993         * sunrpc/clnt_udp.c: Likewise.
15994         * sunrpc/clnt_unix.c: Likewise.
15995         * sunrpc/openchild.c: Likewise.
15996         * sunrpc/svc_simple.c: Likewise.
15997         * sunrpc/svc_tcp.c: Likewise.
15998         * sunrpc/svc_udp.c: Likewise.
15999         * sunrpc/svc_unix.c: Likewise.
16000         * sunrpc/xdr.c: Likewise.
16001         * sunrpc/xdr_array.c: Likewise.
16002         * sunrpc/xdr_rec.c: Likewise.
16003         * sunrpc/xdr_ref.c: Likewise.
16004         * sunrpc/xdr_stdio.c: Likewise.
16005
16006 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16007
16008         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16009
16010 2011-07-03  Andreas Jaeger  <aj@suse.de>
16011
16012         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16013         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16014         regenerate with gen-libm-tests.pl.
16015
16016 2010-05-12  Petr Baudis  <pasky@suse.cz>
16017
16018         [BZ #11589]
16019         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16020         around j0() zero points by switching to j1().
16021         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16022         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16023         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16024         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16025
16026 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16027
16028         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16029         instead of 0.
16030         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16031         instead of 0.                              .
16032         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16033         Patch in part by Pavel Roskin <proski@gnu.org>.
16034
16035         [BZ #13138]
16036         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16037         realloc.
16038         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16039         Free memory block if necessary.
16040
16041         [BZ #12847]
16042         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16043         be NULL.  Don't lock in this case.
16044
16045 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16046
16047         * elf/elf.h (ELFOSABI_GNU): New macro.
16048         (ELFOSABI_LINUX): Define to that.
16049
16050 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16051
16052         * string/strncat.c (strncat): Undef the symbol in case it has been
16053         defined in bits/string.h.
16054
16055 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16056
16057         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16058
16059         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16060         link map.
16061
16062 2011-08-17  Andreas Jaeger  <aj@suse.de>
16063
16064         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16065
16066 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16067             Ian Lance Taylor  <iant@google.com>
16068
16069         * math/libm-test.inc (lround_test): New testcase.
16070         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16071
16072 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16073
16074         * Makefile: Remove support for automatic cvs check-ins.
16075         * Makerules: Likewise.
16076         * config.make.in: Likewise.
16077         * configure.in: Likewise.
16078         * intl/Makefile: Likewise.
16079         * locale/Makefile: Likewise.
16080         * po/Makefile: Likewise.
16081         * posix/Makefile: Likewise.
16082         * sysdeps/gnu/Makefile: Likewise.
16083         * sysdeps/mach/hurd/Makefile: Likewise.
16084         * sysdeps/sparc/sparc32/Makefile: Likewise.
16085
16086         [BZ #13118]
16087         * posix/Makefile (bug-regex32-ENV): Define.
16088         Patch by John Stanley <jpsinthemix@verizon.net>.
16089
16090         * misc/Makefile (headers): Add bits/select2.h.
16091         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16092         * misc/bits/select2.h: New file.
16093         * include/bits/select2.h: New file.
16094         * debug/Makefile (routines): Add fdelt_chk.
16095         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16096         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16097         FD_ISSET.
16098         * debug/fdelt_chk.c: New file.
16099
16100         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16101         * wcsmbs/test-wmemcmp.c: Likewise.
16102         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16103         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16104
16105 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16106
16107         * string/Makefile (strop-tests): Add memcmp.
16108         * string/test-wmemcmp.c: New file.
16109         * string/test-memcmp.c: Add wmemcmp support.
16110
16111 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16112
16113         [BZ #13153]
16114         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16115         2011-07-19 change.
16116
16117         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16118         garbage value in a __mach_port_mod_refs call in the cases of the
16119         task-self and thread-self ports.
16120
16121 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16122
16123         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16124
16125 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16126
16127         * elf/dl-load.c (lose): Check for non-null L.
16128
16129 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16130
16131         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16132
16133         * elf/dl-libc.c (dlerror_run): Pass back error code from
16134         dl_catch_error.
16135
16136         [BZ #13123]
16137         * elf/dl-load.c (lose): Free l_origin if it is valid.
16138
16139         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16140         names.
16141         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16142         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16143         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16144         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16145         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16146         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16147
16148 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16149
16150         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16151         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16152         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16153         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16154         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16155         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16156         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16157         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16158         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16159         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16160
16161 2011-08-15  Alan Modra  <amodra@gmail.com>
16162
16163         [BZ #13092]
16164         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16165         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16166         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16167         ppc_mcount to static-only-routines.
16168         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16169         __mcount_internal.
16170         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16171         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16172
16173 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16174
16175         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16176         for finite and infinity parameters.
16177
16178 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16179
16180         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16181         and add nop instructions for throughput optimization.
16182         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16183
16184 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16185
16186         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16187         aligned copy for power7 with vector-scalar instructions.
16188         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16189
16190 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16191
16192         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16193         AVX check.
16194
16195 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16196
16197         [BZ #13144]
16198         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16199         last change.
16200
16201 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16202
16203         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16204         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16205         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16206         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16207         clock_gettime.
16208
16209 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16210
16211         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16212         Forgot to demangle the pointer.
16213
16214         * sysdeps/i386/sysdep.h: Define atom_text_section.
16215         * sysdeps/x86_64/sysdep.h: Likewise.
16216         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16217         section with atom_text_section.
16218         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16219         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16220         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16221         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16222         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16223
16224         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16225         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16226         already be defined.  Change to take two parameters and don't assign
16227         result to variable.  Adjust all users.
16228         Define INTERNAL_GETTIME if not already defined.
16229         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16230         call.
16231         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16232         HAVE_CLOCK_GETTIME_VSYSCALL.
16233         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16234
16235         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16236         gettimeofday vsyscall, just use time.
16237
16238 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16239
16240         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16241         <errno.h>.
16242
16243 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16244
16245         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16246         syscall on x86-64.
16247         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16248         syscall.
16249         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16250         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16251         syscall if possible.
16252
16253 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16254
16255         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16256         e_ident.  Don't pass to find_mapsXX.
16257         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16258
16259 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16260
16261         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16262         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16263         * sysdeps/x86_64/multiarch/strchr.S: Update.
16264         Check bit_slow_BSF bit.
16265         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16266         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16267         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16268
16269 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16270
16271         [BZ #13134]
16272         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16273         before glibc 2.15.
16274         (tryshell): Define.
16275         (__spawni): Change last parameter to be flag.  Test
16276         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16277         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16278         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16279         * posix/spawni.c: Likewise.
16280         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16281         * posix/spawnp.c: Likewise.  Change normal version to use
16282         SPAWN_XFLAGS_USE_PATH.
16283         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16284         SPAWN_XFLAGS_TRY_SHELL.
16285
16286         [BZ #13150]
16287         * posix/glob.h: Remove gcc 1.x support.
16288
16289         [BZ #13068]
16290         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16291
16292 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16293
16294         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16295         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16296         strrchr-sse2-bsf
16297         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16298         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16299         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16300         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16301         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16302         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16303
16304 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16305
16306         * sysdeps/x86_64/wcscmp.S: New file.
16307
16308         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16309         wcscmp-c wcscmp-sse2
16310         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16311         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16312         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16313         * wcsmbs/wcscmp.c: Allow renaming.
16314
16315 2011-09-05  David S. Miller  <davem@davemloft.net>
16316
16317         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16318         stack slot, rather than the struct return pointer slot.
16319         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16320         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16321         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16322         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16323
16324 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16325
16326         * po/ja.po: Update from translation team.
16327
16328         [BZ #13144]
16329         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16330         kernel in 64-bit binaries.
16331
16332 2011-09-01  David S. Miller  <davem@davemloft.net>
16333
16334         * elf/elf.h (HWCAP_SPARC_*): Move to..
16335         * sysdeps/sparc/sysdep.h: this new file and add new values.
16336         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16337         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16338         _DL_HWCAP_COUNT to 24.
16339         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16340         entries.
16341         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16342         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16343         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16344         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16345         instead of magic constants.
16346         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16347
16348 2011-08-31  David S. Miller  <davem@davemloft.net>
16349
16350         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16351         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16352         Reimplement to do errno handling inline.
16353         (SYSCALL_ERROR_HANDLER): New macro.
16354         (__SYSCALL_STRING): Do not do errno handling in asm.
16355         (__CLONE_SYSCALL_STRING): Delete.
16356         (__INTERNAL_SYSCALL_STRING): Delete.
16357         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16358         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16359         (PSEUDO): Reimplement to do errno handling inline.
16360         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16361         (SYSCALL_ERROR_HANDLER): New macro.
16362         (__SYSCALL_STRING): Do not do errno handling in asm.
16363         (__CLONE_SYSCALL_STRING): Delete.
16364         (__INTERNAL_SYSCALL_STRING): Delete.
16365         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16366         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16367         i386.
16368         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16369         (inline_syscall*): Add 'err' argument.
16370         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16371         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16372         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16373         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16374
16375         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16376         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16377
16378 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16379
16380         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16381
16382 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16383
16384         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16385         directive.
16386
16387 2011-08-24  David S. Miller  <davem@davemloft.net>
16388
16389         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16390
16391 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16392
16393         * elf/Makefile: Add rules to build and run unload8 test.
16394         * elf/unload8.c: New file.
16395         * elf/unload8mod1.c: New file.
16396         * elf/unload8mod1x.c: New file.
16397         * elf/unload8mod2.c: New file.
16398         * elf/unload8mod3.c: New file.
16399
16400         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16401         it wasn't used.
16402
16403 2011-08-23  David S. Miller  <davem@davemloft.net>
16404
16405         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16406         subtract stack bias.
16407         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16408         %sp not %fp in calculations.
16409         (_JMPBUF_UNWINDS_ADJ): Likewise.
16410
16411         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16412         (aio_suspend): Call it to force an exception region around the
16413         AIO_MISC_WAIT() invocation.
16414
16415 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16416
16417         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16418         backslash.
16419
16420 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16421
16422         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16423         protection macro.
16424         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16425         and <dl-machine.h>.
16426         (Elf64_FuncDesc): Remove.
16427
16428 2011-08-22  David S. Miller  <davem@davemloft.net>
16429
16430         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16431         sigaltstack check, add missing cfi directives.
16432         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16433         missing cfi directives, and sigaltstack handling.
16434
16435 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16436
16437         [BZ #11724]
16438         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16439         object is seen twice.
16440         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16441
16442         * elf/Makefile (distribute): Add tst-initorder2.c.
16443         (tests): Add tst-initorder2.
16444         (modules-names): Add tst-initorder2a tst-initorder2b
16445         tst-initorder2c tst-initorder2d.  Add rules to build them.
16446         ($(objpfx)tst-initorder2.out): New rule.
16447         * elf/tst-initorder2.c: New file.
16448         * elf/tst-initorder2.exp: New file.
16449
16450 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16451
16452         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16453
16454         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16455         dependencies back to end of function.
16456
16457         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16458         $(elfobjdir)/ld.so.
16459
16460 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16461
16462         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16463         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16464         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16465         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16466         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16467         of __vdso_gettimeofday.
16468         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16469         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16470         attribute_hidden.
16471         (_libc_vdso_platform_setup): Remove initialization of
16472         __vdso_gettimeofday and __vdso_time.
16473
16474 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16475
16476         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16477         and fgetc_unlocked.
16478         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16479         getc_unlocked.
16480
16481         * elf/dl-open.c (add_to_global): Report additions to the global scope
16482         for LD_DEBUG=scopes.
16483         (dl_open_worker): Also print scope of newly loaded dependencies.
16484         (_dl_show_scope): Indicate if there is no scope.
16485
16486         [BZ #13114]
16487         * stdio-common/Makefile (tests): Add bug24.
16488         * stdio-common/bug24.c: New file.
16489
16490 2011-08-19  Andreas Jaeger  <aj@suse.de>
16491
16492         [BZ #13114]
16493         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16494         non-existant file when using close-on-exec mode.
16495
16496 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16497
16498         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16499         the very first instruction.
16500
16501         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16502         the CFI state in the end.
16503         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16504         inclusion of dl-trampoline.h.
16505         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16506
16507 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16508
16509         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16510         expectations for long double.
16511
16512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16513         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16514
16515 2011-08-14  David S. Miller  <davem@davemloft.net>
16516
16517         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16518         artificual limit depends upon the system page size.
16519
16520 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16521
16522         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16523         * resolv/Makefile: Define CFLAGS-libresolv.
16524
16525 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16526
16527         * nss/makedb.c (compute_tables): Make variables used in nested
16528         function static.
16529
16530 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16531
16532         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16533         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16534         if buffer was too small.
16535
16536         * elf/pldd.c (main): Attach to all threads in the process.
16537         Rewrite /proc handling to use *at functions.
16538
16539 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16540
16541         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16542         specifies first scope to show.
16543         (dl_open_worker): Update callers.  Move printing scope of new
16544         object to before the relocation.
16545         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16546         * sysdeps/generic/ldsodefs.h: Update declaration.
16547
16548         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16549         string for the scope number.
16550
16551 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16552
16553         * nscd/servicescache.c (cache_addserv): Make sure written is always
16554         initialized.
16555
16556 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16557
16558         * sysdeps/i386/i486/bits/atomic.h
16559         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16560         statement expression, so as to suppress "set but not used" warning.
16561         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16562
16563         * string/strncat.c (STRNCAT): Use prototype definition.
16564
16565         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16566         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16567         -Iprograms here.
16568         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16569         (localedef-modules): Add localedef.
16570         (locale-modules): Add locale.
16571
16572         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16573         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16574         to avoid a warning.
16575
16576 2011-08-14  David S. Miller  <davem@davemloft.net>
16577
16578         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16579         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16580
16581 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16582
16583         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16584         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16585         * elf/rtld.c (dl_main): Set l_name of vDSO.
16586         Call _dl_show_scope when DL_DEBUG_SCOPES.
16587         (process_dl_debug): Recognize scopes flag and also set it for all.
16588         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16589         Declare _dl_show_scope.
16590
16591         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16592         (do_dlopen): Pass caller_dlopen to dl_open.
16593         (__libc_dlopen_mode): Initialize caller_dlopen.
16594
16595         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16596         of libc.  Make tolower call locale-independent.  Optimize a bit by
16597         using isdigit instead of isalnum.
16598         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16599
16600 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16601
16602         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16603         was a dependency or dynamically loaded.
16604
16605 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16606
16607         * intl/l10nflist.c: Allow architecture-specific pop function.
16608         * sysdeps/x86_64/l10nflist.c: New file.
16609
16610         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16611         classification.
16612
16613 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16614
16615         * include/dirent.h: Add libc_hidden_proto for scandirat and
16616         scandirat64.  Don't declare __scandirat64.
16617         * dirent/scandirat.c: Add libc_hidden_def.
16618         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16619         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16620
16621 2011-08-10  David S. Miller  <davem@davemloft.net>
16622
16623         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16624         enum.
16625         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16626         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16627         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16628
16629 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16630
16631         * Versions.def [libc]: Add GLIBC_2.15.
16632         * dirent/Makefile (routines): Add scandirat and scandirat64.
16633         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16634         GLIBC_2.15.
16635         * dirent/dirent.h: Declare scandirat and scandirat64.
16636         * dirent/scandirat.c: New file.
16637         * dirent/scandirat64.c: New file.
16638         * sysdeps/wordsize-64/scandirat.c: New file.
16639         * sysdeps/wordsize-64/scandirat64.c: New file.
16640         * dirent/opendir.c: Define opendirat.
16641         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16642         using scandirat.
16643         * dirent/scandir64.c: Adjust for scandir.c change.
16644         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16645         __scandirat64, and __scandir_cancel_handler.
16646         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16647         additional parameter and use openat instead of open (outside of ld.so).
16648         Add new __opendir as wrapper around __opendirat.
16649         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16650         here without requiring old scandirat implementation.
16651
16652 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16653
16654         * dirent/scandir.c (cancel_handler): Renamed to
16655         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16656         defined.  Adjust users.
16657         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16658         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16659
16660 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16661
16662         * string/test-string.h (IMPL): Use __STRING to expand name and then
16663         stringify it.
16664
16665         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16666         of cleanups.
16667
16668 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16669
16670         * string/Makefile: Update.
16671         (strop-tests): Append strncat.
16672         * string/test-wcscmp.c: New file.
16673         New comprehensive test for wcscmp.
16674         * string/test-strcmp.c: Update.
16675         (WIDE): New define.
16676
16677 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16678
16679         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16680         line.
16681
16682 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16683
16684         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16685         encoding to ACE if AI_IDN.
16686
16687 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16688
16689         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16690         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16691
16692 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16693
16694         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16695         Fix overflow bug in strncat.
16696         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16697
16698         * string/test-strncat.c: Update.
16699         Add new tests for checking overflow bugs.
16700
16701 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16702
16703         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16704         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16705         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16706         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16707         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16708         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16709         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16710         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16711         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16712
16713         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16714         (USE_AS_STRCAT): Define.
16715         Add strcat and strncat support.
16716         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16717
16718 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16719
16720         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16721         __n bigger than INT_MAX+1.
16722         (__strncmp_g): Likewise.
16723
16724 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16725
16726         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16727         * libio/stido.h: Likewise.
16728
16729         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16730         (AF_NFC): Define.
16731         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16732         (AF_NFC): Define.
16733
16734         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16735         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16736         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16737         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16738         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16739
16740         [BZ #13021]
16741         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16742         installed.
16743
16744         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16745         typo.
16746         (_dl_x86_64_save_sse): Likewise.
16747
16748 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16749
16750         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16751         OSXSAVE.
16752         (_dl_x86_64_save_sse): Likewise.
16753
16754         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16755
16756         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16757
16758 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16759
16760         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16761         change.
16762         (_dl_x86_64_save_sse): Use correct AVX check.
16763
16764 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16765
16766         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16767         bug in strncpy/strncat.
16768         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16769
16770 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16771
16772         * string/tester.c (test_strcat): Add tests for different alignments
16773         of source and destination.
16774         (test_strncat): Likewise.
16775
16776 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16777
16778         [BZ #12852]
16779         * posix/glob.c (glob): Check passed in values before using them in
16780         expressions to avoid some overflows.
16781         (glob_in_dir): Likewise.
16782
16783         [BZ #13007]
16784         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16785         check for AVX enablement so that we don't crash with old kernels and
16786         new hardware.
16787         * elf/tst-audit4.c: Add same checks here.
16788         * elf/tst-audit6.c: Likewise.
16789
16790         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16791
16792 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16793
16794         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16795
16796 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16797
16798         * po/cs.po: Update from translation team.
16799         * po/bg.po: Likewise.
16800
16801 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16802
16803         * misc/sys/cdefs.h: Add support for const attribute.
16804         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16805         to gnu_dev_{major,minor,makedev} functions.
16806
16807 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16808
16809         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16810
16811 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16812
16813         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16814         strlen results.
16815
16816 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16817
16818         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16819         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16820         register in order to avoid conflicts with the soft frame pointer
16821         being held in r11 when necessary.
16822         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16823         (INTERNAL_VSYSCALL_NCS): Likewise.
16824
16825 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16826
16827         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16828         * elf/dl-fini.c (_dl_fini): Adjust caller.
16829         * elf/dl-close.c (_dl_close_worker): Likewise.
16830         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16831
16832 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16833
16834         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16835         "aux_cache->nlibs < 0".
16836
16837         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16838         in the reload-count case.
16839
16840 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16841
16842         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16843         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16844         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16845         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16846         * sysdeps/x86_64/multiarch/strcat.S: New file.
16847         * sysdeps/x86_64/multiarch/strncat.S: New file.
16848         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16849         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16850         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16851         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16852         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16853         (USE_AS_STRCAT): Define.
16854         Add strcat and strncat support.
16855         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16856         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16857         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16858         * string/strncat.c: Update.
16859         (USE_AS_STRNCAT): Define.
16860         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16861         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16862         and i7.
16863         * sysdeps/x86_64/multiarch/init-arch.h
16864         (bit_Prefer_PMINUB_for_stringop): New.
16865         (index_Prefer_PMINUB_for_stringop): Likewise.
16866         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16867         bit_Prefer_PMINUB_for_stringop.
16868
16869 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16870
16871         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16872         buffer64.
16873         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16874         of casting of buffer.
16875         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16876         buffer32 and buffer64.
16877         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16878         writes instead of casting of buffer.
16879         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16880         buffer32.
16881         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16882         casting of buffer.
16883
16884 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16885
16886         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16887
16888 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16889
16890         * nscd/nscd.c (termination_handler): Don't do anything for a database
16891         if it has not yet been initialized.
16892
16893 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16894
16895         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16896
16897 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16898
16899         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16900
16901 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16902
16903         * po/nl.po: Update from translation team.
16904         * po/sv.po: Likewise.
16905
16906 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16907
16908         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16909         now disallowed by GCC.
16910
16911         * configure.in (use-default-link): Default to yes if a test -shared
16912         link meets our qualifications.
16913         * configure: Regenerated.
16914
16915         * config.make.in (output-format): New variable.
16916         * configure.in: Check for ld --print-output-format support.
16917         * configure: Regenerated.
16918         * Makerules ($(common-objpfx)format.lds)
16919         [$(output-format) != unknown]: Just use $(output-format),
16920         instead of the linker-script munging.
16921
16922 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16923
16924         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16925         of $(common-objpfx)shlib.lds.
16926         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16927
16928         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16929         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16930
16931         * configure.in (-z relro check): Adjust test code to add a large
16932         writable data section after it.
16933         * configure: Regenerated.
16934
16935 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16936
16937         * configure.in (-z relro check): Fix test code to make the variable
16938         truly const.
16939         * configure: Regenerated.
16940
16941 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16942
16943         * nscd/nscd.h (struct traced_file): Define.
16944         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16945         elements.  Add traced_files.
16946         (inotify_fd): Declare.
16947         (register_traced_file): Declare.
16948         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16949         (inotify_fd): Export.
16950         (resolv_conf_descr): Remove.
16951         (nscd_init): Move inotify descriptor creation to main.
16952         Don't register files for notification here.
16953         (register_traced_file): New function.
16954         (invalidate_cache): Don't use reset_res to determine whether to call
16955         res_init, go through the list of registered files.
16956         (main_loop_poll): The inotify descriptors are now stored in the
16957         structures for the traced files.
16958         (main_loop_epoll): Likewise
16959         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16960         to __nss_disable_nscd.
16961         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16962         for a database anymore.  Check the records for all the registered
16963         files instead.
16964         * nss/Makefile (libnss_files-routines): Add files-init.
16965         (libnss_db-routines): Add db-init.
16966         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16967         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16968         * nss/nss_db/db-init.c: New file.
16969         * nss/nss_files/files-init.c: New file.
16970         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16971         __nss_lookup_function.
16972         (__nss_lookup_function): Call nss_load_library.
16973         (nss_load_all_libraries): New function.
16974         (__nss_disable_nscd): Take parameter with callback function for files
16975         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16976         used for the cached services.
16977         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16978         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16979         options for features to all the files in nscd.
16980
16981         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16982
16983 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16984
16985         * csu/elf-init.c (__libc_csu_init): Comment typo.
16986
16987 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16988
16989         * po/pl.po: Update from translation team.
16990         * po/ja.po: Likewise.
16991         * po/ru.po: Likewise.
16992         * po/ko.po: Likewise.
16993         * po/fr.po: Likewise.
16994
16995 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16996
16997         * configure.in (.ctors/.dtors header and trailer check):
16998         Use an empirical test on a built program.
16999         * configure: Regenerated.
17000
17001         * configure.in (-z relro check): Use an empirical test on a built DSO.
17002         Detect, but do not require, on ia64.
17003         * configure: Regenerated.
17004
17005         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17006         Update tests that use readelf to use $READELF instead.
17007         * configure: Regenerated.
17008
17009 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17010
17011         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17012         if the result is not used.
17013
17014 2011-07-05  Andreas Jaeger  <aj@suse.de>
17015
17016         [BZ#9696]
17017         * stdlib/tst-strtod.c: Add testcase.
17018
17019 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17020
17021         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17022         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17023         The latter has a higher limit.  Take additional parameter to pass to
17024         the new function.
17025         (__pathconf): Pass file to __statfs_link_max.
17026         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17027         __statfs_link_max.
17028         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17029         __statfs_link_max.
17030
17031         [BZ #12868]
17032         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17033         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17034         Handle Lustre.
17035         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17036         (__statfs_filesize_max): Likewise.
17037         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17038
17039 2011-07-05  Andreas Jaeger  <aj@suse.de>
17040
17041         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17042
17043 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17044
17045         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17046         `status' variable.
17047         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17048         Likewise.
17049
17050 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17051
17052         * Makefile (strop-tests): Add strncat.
17053         * string/test-strncat.c: New file.
17054
17055 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17056
17057         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17058
17059 2011-06-21  Andreas Jaeger  <aj@suse.de>
17060
17061         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17062         Copy rule from iconvdata/Makefile.
17063
17064 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17065
17066         [BZ #12922]
17067         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17068         but no long options are defined, just return 'W'.
17069
17070 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17071
17072         [BZ #9696]
17073         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17074
17075 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17076
17077         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17078         netgroups to read.
17079         (innetgr): Likewise.
17080
17081 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17082
17083         * config.make.in (install_root): Default to $(DESTDIR).
17084
17085 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17086
17087         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17088
17089 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17090
17091         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17092
17093         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17094         containing directory rather than embedding absolute directory names.
17095
17096         * scripts/check-local-headers.sh: Rewritten using awk.
17097         Match by word, not by line.  Print error messages for matches.
17098         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17099
17100         * Makerules [shlib-lds-flags empty]:
17101         ($(common-objpfx)libc_pic.opts): New target.
17102         ($(common-objpfx)libc_pic.os.clean): New target.
17103         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17104
17105         * config.make.in (OBJCOPY): New variable.
17106         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17107         * configure: Regenerated.
17108
17109         * config.make.in (use-default-link): New variable.
17110         * configure.in (use_default_link): Grok --with-default-link to set it.
17111         * configure: Regenerated.
17112         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17113         (shlib-lds, shlib-lds-flags): Define to empty.
17114
17115         * Makerules (shlib-lds): New variable.
17116         (shlib-lds-flags): New variable.
17117         (build-shlib, build-moduile, build-module-asneeded): Use it.
17118         ($(common-objpfx)libc.so): Use $(shlib-lds).
17119         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17120         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17121
17122         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17123         DT_FLAGS/DT_FLAGS_1 with zero flags.
17124
17125         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17126         linker script munging.
17127
17128 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17129
17130         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17131         as 128-bit value.
17132         * crypt/sha512.c (sha512_process_block): Perform total addition using
17133         128-bit if possible.
17134         (__sha512_finish_ctx): Likewise.
17135         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17136         as 64-bit value.
17137         * crypt/sha256.c (SWAP64): Define.
17138         (sha256_process_block): Perform total addition using 64-bit if
17139         possible.
17140         (__sha256_finish_ctx): Likewise.
17141
17142 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17143
17144         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17145         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17146         * nscd/hstcache.c (cache_addhst): Likewise.
17147         * nscd/grpcache.c (cache_addgr): Likewise.
17148         * nscd/aicache.c (addhstaiX): Likewise
17149         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17150
17151 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17152
17153         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17154         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17155         * nscd/hstcache.c (cache_addhst): Likewise.
17156         * nscd/grpcache.c (cache_addgr): Likewise.
17157         * nscd/aicache.c (addhstaiX): Likewise
17158
17159 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17160
17161         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17162         domain only when needed.
17163
17164 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17165
17166         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17167         is always restored.
17168
17169 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17170
17171         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17172         are re-adding the entry.
17173         * nscd/servicescache.c (cache_addserv): Likewise.
17174
17175 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17176
17177         * sysdeps/generic/dl-irel.h: fix protection against multiple
17178         inclusions.
17179         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17180
17181 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17182
17183         [BZ #12935]
17184         * malloc/memusage.sh: Fix quoting in message.
17185         * debug/xtrace.sh: Likewise.
17186
17187         * configure.in: Remove support for --experimental-malloc option, make
17188         it the default.
17189         * config.make.in: Likewise.
17190         * malloc/Makefile: Likewise.
17191
17192 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17193
17194         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17195         two-byte characters.
17196
17197 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17198
17199         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17200         AC_CACHE_CHECK invocation.
17201         * configure: Regenerated.
17202
17203         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17204
17205 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17206
17207         [BZ #12350]
17208         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17209         bit from old_res_options.
17210
17211         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17212
17213         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17214         value type for setfct.
17215
17216 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17217
17218         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17219         __gettimeofday instead of gettimeofday.
17220
17221 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17222
17223         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17224
17225 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17226
17227         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17228
17229         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17230         info.
17231
17232 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17233
17234         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17235         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17236         strcpy-sse2-unaligned strncpy-sse2-unaligned
17237         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17238         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17239         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17240         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17241         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17242         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17243         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17244         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17245         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17246         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17247         (STRCPY): Support SSE2 and SSSE3 versions.
17248
17249 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17250
17251         [BZ #12874]
17252         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17253         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17254         kernels which artificially limit size of requests.
17255
17256 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17257
17258         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17259         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17260         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17261         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17262         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17263         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17264         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17265         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17266         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17267         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17268         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17269         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17270         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17271         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17272         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17273         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17274         Enable unaligned load optimization for Intel Core i3, i5 and i7
17275         processors.
17276         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17277         Define.
17278         (index_Fast_Unaligned_Load): Define.
17279         (HAS_FAST_UNALIGNED_LOAD): Define.
17280
17281 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17282
17283         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17284
17285 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17286
17287         [BZ #12907]
17288         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17289         until it is clear that the information is realy needed.
17290         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17291
17292 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17293
17294         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17295
17296 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17297
17298         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17299         /sys/devices/system/cpu/online if it is usable.
17300
17301         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17302         reading the information from the /proc filesystem to once a second.
17303
17304 2011-06-21  Andreas Jaeger  <aj@suse.de>
17305
17306         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17307         NULL after inclusion of kernel headers.
17308
17309 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17310
17311         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17312         calls to internal_setent.
17313
17314         [BZ #12885]
17315         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17316         addresses using gethostbyname4_r ignore IPv4 addresses.
17317
17318         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17319         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17320
17321         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17322
17323 2011-06-20  David S. Miller  <davem@davemloft.net>
17324
17325         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17326         inclusions.
17327         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17328
17329         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17330         (elf_irel): Use it.
17331         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17332         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17333         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17334         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17335         * sysdeps/x86_64/dl-irel.h: Likewise.
17336
17337         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17338         * elf/dl-sym.c: Likewise.
17339
17340 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17341
17342         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17343         need to dereference resplen2.
17344
17345 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17346
17347         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17348
17349 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17350
17351         * Makeconfig: Define vardbdir and inst_vardbdir.
17352         * nss/Makefile: Add rules to install db-Makefile.
17353
17354         * nss/nss_db/db-XXX.c: Cleanup.
17355
17356         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17357         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17358         GLIBC_PRIVATE.
17359         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17360         * nss/makedb.c: Implement -g option to specify that value strings
17361         are generated and should not be added to table iterated over for
17362         get*ent calls.
17363         * nss/nss_db/db-initgroups.c: New file.
17364
17365         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17366         interface.
17367
17368         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17369         (internal_getgrouplist): Adjust to name change.
17370         Update use_initgroups_entry if this is not the first call.
17371         * nss/databases.def: Add initgroups entry.
17372
17373         * nss/makedb.c (compute_tables): Check result of multiple hash table
17374         sizes to minimize maximum chain length.
17375
17376 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17377
17378         * Versions.def: Add entry for libnss_db.
17379         * shlib-versions: Likewise.
17380         * nss/Makefile: Add rules to build libnss_db.
17381         * nss/Versions: Add libnss_db information.  Organize libnss_files
17382         entries better.
17383         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17384         makedb progra.  Some minor improvements to generate smaller files.
17385         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17386         here from...
17387         * nss/makedb.c: ...here.
17388         Improve database format to be smaller and require less memory at
17389         runtime.
17390         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17391         db anymore.
17392         * nss/nss_db/db-netgrp.c: Likewise.
17393         * nss/nss_db/db-open.c: Likewise.
17394         * nss/nss_files/flies-XXX.x: Adjust comments.
17395         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17396         * nss/nss_files/files-grp.c: Likewise.
17397         * nss/nss_files/files-hosts.c: Likewise.
17398         * nss/nss_files/files-network.c: Likewise.
17399         * nss/nss_files/files-proto.c: Likewise.
17400         * nss/nss_files/files-pwd.c: Likewise.
17401         * nss/nss_files/files-rpc.c: Likewise.
17402         * nss/nss_files/files-service.c: Likewise.
17403         * nss/nss_files/files-sgrp.c: Likewise.
17404         * nss/nss_files/files-spwd.c: Likewise.
17405         * nss/nss_db/db-alias.c: Removed.
17406         * nss/nss_db/dummy-db.h: Removed.
17407
17408 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17409
17410         * nss/makedb.c: Rewritten to not use database library.
17411         * nss/Makefile: Update to build new makedb program.
17412
17413 2011-06-14  Andreas Jaeger  <aj@suse.de>
17414
17415         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17416         memset declaration.
17417
17418 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17419
17420         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17421         tmpbuf.
17422
17423 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17424
17425         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17426         * elf/Makefile ($(objpfx)ld.so): Likewise.
17427
17428         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17429         Don't list ld.so twice in dependencies.
17430
17431         * posix/bug-regex31.c: Include <stdlib.h>.
17432
17433         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17434
17435         * nis/nss_compat/compat-spwd.c
17436         (getspent_next_nss_netgr): Remove unused variable.
17437         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17438
17439         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17440         nonmembers" output to use the right array.
17441
17442         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17443
17444         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17445
17446         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17447         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17448         * catgets/gencat.c (read_input_file): Likewise.
17449         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17450
17451         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17452         variable definition inside #if's controlling its use.
17453
17454         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17455
17456         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17457
17458         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17459
17460         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17461         unreachable code.
17462
17463         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17464
17465         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17466         * configure: Regenerated.
17467
17468         * Makerules: Revert last change.
17469         * elf/Makefile: Likewise.
17470
17471 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17472
17473         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17474         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17475         (reloc-link): Likewise.
17476
17477 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17478
17479         * elf/Makefile: Add rules to build pldd.
17480         * elf/pldd.c: New file.
17481         * elf/pldd-xx.c: New file.
17482
17483 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17484
17485         * version.h: Update for 2.15 development version.
17486
17487 2011-06-07  David S. Miller  <davem@davemloft.net>
17488
17489         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17490         ifuncs.
17491         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17492         elf_machine_lazy_rel): Likewise.
17493         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17494         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17495         elf_machine_lazy_rel): Likewise.
17496         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17497         dl_hwcap via passed in argument.
17498         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17499         Likewise.
17500
17501 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17502
17503         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17504
17505 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17506
17507         [BZ #12849]
17508         * manual/fdl-1.1.texi: New file, verbatim from:
17509         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17510         * manual/lgpl-2.1.texi: New file, verbatim from:
17511         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17512         * manual/Makefile (licenses): New variable, list those new file names.
17513         (texis): Use it.
17514         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17515
17516         * manual/fdl.texi: File removed.
17517         * manual/lesser.texi: File removed.
17518         * manual/libc.texinfo (Copying, Documentation License):
17519         Use new @include file names, put @appendix directive before @include.
17520
17521 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17522
17523         [BZ #12841]
17524         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17525         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17526         (mq_open): Add __NTH.
17527
17528 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17529
17530         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17531         Assume Intel Core i3/i5/i7 processor if AVX is available.
17532
17533 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17534
17535         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17536         typo.
17537
17538 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17539
17540         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17541         memory.  Use alloca_account.  Fix memory leak when retrying.
17542
17543 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17544
17545         * version.h (RELEASE): Bump for 2.14 release.
17546         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17547
17548         * config.make.in (RANLIB): Remove entry.
17549
17550 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17551
17552         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17553         (libc.pot): Work around missing support for .ksh extension in xgettext.
17554
17555         [BZ #12684]
17556         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17557         if both request failed.
17558         (send_dg): In case of server errors clear resplen or *resplen2.
17559
17560         [BZ #12454]
17561         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17562         when there are multiple maps.
17563         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17564         (_dl_fini): Remove test here.
17565
17566         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17567
17568 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17569
17570         [BZ #12350]
17571         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17572         bit from old_res_options.
17573         (gaih_inet): Likewise.
17574
17575         [BZ #11099]
17576         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17577         as signed.
17578
17579         * resolv/res_init.c (res_setoptions): Make the code more compact.
17580
17581         [BZ #11558]
17582         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17583         set RES_USEVC.
17584
17585         [BZ #11634]
17586         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17587
17588         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17589
17590         [BZ #11781]
17591         * malloc/malloc.h: Declare malloc hook variables as volatile.
17592
17593         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17594         in last patch.
17595
17596         [BZ #11799]
17597         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17598         raise in the comment.
17599         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17600         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17601         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17602
17603 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17604
17605         [BZ #12811]
17606         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17607         grow the buffers more if it already has to be sufficient.
17608         (build_wcs_upper_buffer): Likewise.
17609         * posix/regexec.c (check_matching): Likewise.
17610         (clean_state_log_if_needed): Likewise.
17611         (extend_buffers): Don't enlarge buffers beyond size of the input
17612         buffer.
17613         Patches mostly by Emil Wojak <emil@wojak.eu>.
17614         * posix/bug-regex32.c: New file.
17615         * posix/Makefile (tests): Add bug-regex32.
17616
17617         * locale/findlocale.c (_nl_find_locale): Return right away if
17618         _nl_explode_name failed.
17619         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17620
17621         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17622
17623         * debug/xtrace.sh: Unify messages.
17624         * malloc/memusage.sh: Likewise.
17625
17626         [BZ #12813]
17627         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17628         time symbol from vDSO.  Substitute with vsyscall if not available.
17629         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17630         __vdso_time.
17631
17632         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17633         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17634         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17635         Add sendmmsg and internal_sendmmsg.
17636         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17637         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17638         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17639
17640         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17641         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17642         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17643
17644 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17645
17646         [BZ #12813]
17647         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17648         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17649         available.
17650         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17651         __vdso_getcpu.
17652
17653         [BZ #12814]
17654         * iconvdata/Makefile (tests): Add bug-iconv9.
17655         * iconvdata/bug-iconv9.c: New file.
17656
17657 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17658
17659         [BZ #12814]
17660         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17661
17662 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17663
17664         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17665         (struct user_regs_struct): Change intcs field back to cs.
17666
17667 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17668
17669         * po/ja.po: Update from translation team.
17670
17671 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17672
17673         [BZ #12795]
17674         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17675         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17676
17677 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17678
17679         * stdlib/longlong.h: Update from GCC.
17680
17681 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17682
17683         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17684         parameter name.
17685         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17686         Add parameter name.
17687         (__sysconf): Pass it down.
17688
17689 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17690
17691         [BZ #12671]
17692         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17693         some situations.
17694         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17695         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17696         add in in __libc_use_alloca calls.  Adjust callers.
17697         (glob): Use malloc in some situations.
17698
17699         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17700         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17701         pltexit.
17702
17703 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17704
17705         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17706         and CLOCK_BOOTTIME_ALARM.
17707
17708         [BZ #12782]
17709         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17710         is returned.
17711
17712         * string/_strerror.c (__strerror_r): Print negative errors as signed
17713         numbers.
17714
17715         [BZ #12777]
17716         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17717         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17718         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17719
17720         * configure.in: Fix typo in redirection and correct removal of test
17721         files in two cases.
17722
17723         [BZ #12788]
17724         * locale/setlocale.c (new_composite_name): Fix test to check for
17725         identical name of all categories.
17726
17727         [BZ #12792]
17728         * libio/filedoalloc.c (local_isatty): New function.
17729         (_IO_file_doallocate): Use local_isatty.
17730         * stdio-common/perror.c (perror): In case a new stream is used
17731         forward the stream error.
17732         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17733         error flag.
17734
17735 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17736
17737         [BZ #11869]
17738         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17739         alloca.
17740         * include/alloca.h (extend_alloca_account): Define.
17741
17742         [BZ #11857]
17743         * posix/regex.h: Fix comments with documentation of user-accessible
17744         fields after compilation and describe correct free'ing of pattern
17745         after re_compile_pattern.
17746         Patch by Reuben Thomas <rrt@sc3d.org>.
17747
17748 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17749
17750         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17751         and -mno-altivec to prevent the compiler from using Altivec and/or
17752         VSX instructions when the corresponding registers are not available.
17753
17754 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17755
17756         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17757
17758 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17759
17760         * libio/freopen.c (freopen): Use __dup2, not dup2.
17761         * libio/freopen64.c (freopen64): Likewise.
17762
17763 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17764
17765         [BZ #12775]
17766         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17767         * math/Makefile (tests): Add test-powl.
17768         (CFLAGS-test-powl.c): Define.
17769         * math/test-powl.c: New file.
17770
17771 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17772
17773         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17774
17775 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17776
17777         [BZ #11837]
17778         * iconvdata/gb18030.c: Update to GB18020-2005.
17779
17780 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17781
17782         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17783         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17784         Patch by Aharon Robbins <arnold@skeeve.com>.
17785
17786         [BZ #11892]
17787         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17788         on the stack.
17789
17790         [BZ #11895]
17791         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17792         through underflows.
17793
17794         [BZ #12766]
17795         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17796         point to strings before performing equality test for error_one_per_line
17797         mode.
17798
17799         [BZ #11697]
17800         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17801
17802         [BZ #11820]
17803         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17804         (struct user_fpregs_struct): Avoid __uint*_t types.
17805
17806         [BZ #6420]
17807         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17808         symbol info.  Use it instead of calling _dl_addr locally.
17809         (lock_and_info): New function.
17810         (tr_freehook): Call lock_and_info and pass symbol info as additional
17811         parameter to tr_where.
17812         (tr_mallochook): Likewise.
17813         (tr_reallochook): Likewise.
17814         (tr_memalignhook): Likewise.
17815
17816         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17817         used and couldn't be at all thread-safe.
17818
17819 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17820
17821         * libio/freopen.c (freopen): Don't close old file descriptor
17822         before the new one is opened.  Instead dup the new file descriptor
17823         to the old one after the new stream is created.
17824         * libio/freopen64.c (freopen64): Likewise.
17825         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17826         * libio/fileops.c (_IO_new_file_close_it): Handle new
17827         _IO_FLAGS2_NOCLOSE flag.
17828         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17829         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17830         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17831         _IO_FLAGS2_NOCLOSE flag.
17832         * include/unistd.h: Add hidden_proto for dup3.
17833         Define __have_dup3.
17834         * io/dup3.c: Define hidden symbol.
17835         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17836
17837         [BZ #7101]
17838         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17839         when an incomplete long option is used.
17840         * posix/tst-getopt_long1.c: New file.
17841         * posix/Makefile (tests): Add tst-getopt_long1.
17842
17843         [BZ #10138]
17844         * scripts/config.guess: Update from autoconf-2.68.
17845         * scripts/config.sub: Likewise.
17846
17847         [BZ #10157]
17848         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17849         tests into ...
17850         (has_cpuclock): ...this.  New function.
17851         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17852         macro here based on has_cpuclock code.
17853
17854         [BZ #10149]
17855         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17856         First byte (not low byte) is now always NUL.
17857         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17858
17859         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17860         Use non-cancelable interfaces.
17861
17862         [BZ #9809]
17863         * locale/iso-639.def: Add entry for Sorani.
17864
17865         [BZ #11901]
17866         * include/stdlib.h: Move include protection to the right place.
17867         Define abort_msg_s.  Declare __abort_msg with it.
17868         * stdlib/abort.c (__abort_msg): Adjust type.
17869         * assert/assert.c (__assert_fail_base): New function.  Majority
17870         of code from __assert_fail.  Allocate memory for __abort_msg with
17871         mmap.
17872         (__assert_fail): Now call __assert_fail_base.
17873         * assert/assert-perr.c: Remove bulk of implementation.  Use
17874         __assert_fail_base.
17875         * include/assert.hL Declare __assert_fail_base.
17876         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17877         mmap.
17878         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17879
17880 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17881
17882         [BZ #11952]
17883         [BZ #12453]
17884         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17885         until all modules are registered in the DTV.
17886         * elf/Makefile: Add rules to build and run tst-tls19.
17887         * elf/tst-tls19.c: New file.
17888         * elf/tst-tls19mod1.c: New file.
17889         * elf/tst-tls19mod2.c: New file.
17890         * elf/tst-tls19mod3.c: New file.
17891         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17892
17893         [BZ #12083]
17894         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17895         correctly.
17896
17897         [BZ #12601]
17898         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17899         two-byte sequence errors.
17900         * iconvdata/Makefile (tests): Add bug-iconv8.
17901         * iconvdata/bug-iconv8.c: New file.
17902
17903         [BZ #12626]
17904         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17905         buf2 definition.
17906
17907         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17908
17909         [BZ #12432]
17910         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17911         (dummy_getcfa): New function.
17912         (init): Get _Unwind_GetCFA address, use dummy if not found.
17913         (backtrace_helper): In recursion check, also check whether CFA changes.
17914         (__backtrace): Completely initialize arg.
17915
17916         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17917         storing incomplete byte sequence in state object.  Avoid testing for
17918         guaranteed too small input if we know there is enough data available.
17919
17920 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17921
17922         * Makeconfig (+link-pie): Indent.
17923         * Rules (binaries-pie): Define if $(have-fpie) and
17924         $(build-shared).
17925         (binaries-shared): Also filter out $(binaries-pie).
17926         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17927         * nscd/Makefile (others-pie): Add nscd.
17928         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17929         ($(objpfx)nscd): Remove command override.
17930         * login/Makefile (others-pie): Add pt_chown.
17931         ($(objpfx)pt_chown): Remove command override.
17932         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17933         remove command overrides.
17934
17935 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17936
17937         * libio/tst_putwc.c: Fix error messages.
17938
17939         [BZ #12724]
17940         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17941         currently writing and seek to current position when not.
17942         * libio/Makefile (tests): Add bug-fclose1.
17943         * libio/bug-fclose1.c: New file.
17944
17945 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17946
17947         [BZ #12511]
17948         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17949         don't set DF_1_NODELETE here.
17950         (do_lookup_x): When entering new entry test for copy relocation
17951         and if necessary set DF_1_NODELETE flag.
17952         * elf/tst-unique4.cc: New file.
17953         * elf/tst-unique4.h: New file.
17954         * elf/tst-unique4lib.cc: New file.
17955         * elf/Makefile: Add rules to build and run tst-unique4.
17956         Patch by Piotr Bury <pbury@goahead.com>.
17957
17958 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17959
17960         [BZ #12052]
17961         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17962
17963         [BZ #12625]
17964         * misc/mntent_r.c (addmntent): Flush the stream after the output
17965
17966         [BZ #12393]
17967         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17968         (is_trusted_path_normalize): Skip initial colon.  Append slash
17969         to empty buffer.  Duplicate is_trusted_path code but allow
17970         constructed patch to be prefix.
17971         (is_dst): Allow $ORIGIN followed by /.
17972         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17973         Correct testing of result of is_trusted_path_normalize
17974         (decompose_rpath): Fix warning.
17975
17976 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17977
17978         [BZ #11257]
17979         * grp/initgroups.c (internal_getgrouplist): When we found the service
17980         list through the initgroups entry in nsswitch.conf do not always
17981         continue on a successful lookup.  Don't always use the
17982         __nss_group_database value if it is set.
17983         * nss/nsswitch.conf (initgroups): Change action for successful db
17984         lookup to continue for compatibility.
17985
17986 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17987
17988         [BZ #11532]
17989         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17990         and CP774 modules.
17991         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17992         and CP774 modules.
17993         * iconvdata/tst-tables.sh: Likewise.
17994         * iconvdata/cp770.c: New file.
17995         * iconvdata/cp771.c: New file.
17996         * iconvdata/cp772.c: New file.
17997         * iconvdata/cp773.c: New file.
17998         * iconvdata/cp774.c: New file.
17999         * iconvdata/testdata/CP770: New file.
18000         * iconvdata/testdata/CP770..UTF8: New file.
18001         * iconvdata/testdata/CP771: New file.
18002         * iconvdata/testdata/CP771..UTF8: New file.
18003         * iconvdata/testdata/CP772: New file.
18004         * iconvdata/testdata/CP772..UTF8: New file.
18005         * iconvdata/testdata/CP773: New file.
18006         * iconvdata/testdata/CP773..UTF8: New file.
18007         * iconvdata/testdata/CP774: New file.
18008         * iconvdata/testdata/CP774..UTF8: New file.
18009
18010         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18011         END CHARMAP line.
18012         * iconvdata/gen-8bit-gap.sh: Likewise.
18013         * iconvdata/gen-8bit.sh: Likewise.
18014
18015         * locale/iso-639.def: Add ary entry.
18016
18017         [BZ #11258]
18018         * locale/C-translit.h.in: Add U20A1 transliteration.
18019
18020         [BZ #12178]
18021         * locale/iso-639.def: Add wae entry.
18022         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18023
18024         [BZ #12545]
18025         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18026         for n.
18027
18028         [BZ #12711]
18029         * locale/C-translit.h.in: Add entry for U20B9.
18030         Patch by pravin.d.s@gmail.com.
18031
18032 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18033
18034         [BZ #12713]
18035         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18036         ENAMETOOLONG use generic getcwd.
18037         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18038         in rtld.  Use *stat64.
18039         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18040         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18041         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18042         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18043         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18044         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18045         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18046         __fstatat64 macros.
18047         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18048         * dirent/rewinddir.c: Add libc_hidden_def.
18049         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18050         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18051
18052         * include/dirent.h (__alloc_dir): Add flags parameter.
18053         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18054         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18055         __alloc_dir.
18056         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18057         from fdopendir if O_CLOEXEC is already set.
18058
18059 2011-03-15  Alan Modra  <amodra@gmail.com>
18060
18061         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18062         l_tls_firstbyte_offset non-zero.  Save padding offset in
18063         l_tls_firstbyte_offset for later use.
18064         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18065         freeing static tls block.
18066
18067 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18068
18069         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18070         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18071         being defined by the kernel headers.
18072
18073 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18074
18075         [BZ #12734]
18076         * resolv/resolv.h: Define RES_NOTLDQUERY.
18077         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18078         no-tld-query and set RES_NOTLDQUERY.
18079         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18080         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18081         modern BIND to search name as TLD unless forbidden.
18082
18083 2011-05-07  Petr Baudis  <pasky@suse.cz>
18084             Ulrich Drepper  <drepper@gmail.com>
18085
18086         [BZ #12393]
18087         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18088         (is_trusted_path): ...to here.
18089         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18090         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18091         using is_trusted_path_normalize() in setuid scripts.
18092
18093 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18094
18095         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18096         __BEGIN/__END_DECLS.
18097
18098 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18099
18100         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18101         NSS_STATUS_NOTFOUND if no record was found.
18102
18103 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18104
18105         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18106         (headers-not-in-tirpc): Remove rpc/netdb.h
18107         * resolv/netdb.h: Revert last change.
18108
18109 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18110
18111         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18112         circular dependency between libgcc.a and libc.a.
18113
18114 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18115
18116         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18117         * nis/Makefile: Don't install rpcsvc/*.
18118         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18119         instead of <rpc/types.h>.
18120         (MAXHOSTNAMELEN): Define.
18121
18122 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18123
18124         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18125
18126 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18127
18128         [BZ #12714]
18129         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18130         gethostbyname4_r when IPv6 results are possible.
18131
18132 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18133
18134         [BZ #12723]
18135         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18136         _PC_PIPE_BUF handling.
18137
18138 2011-04-30  Bruno Haible  <bruno@clisp.org>
18139
18140         [BZ #12717]
18141         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18142         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18143         to 'int'.
18144         * inet/getnameinfo.c (getnameinfo): Likewise.
18145
18146 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18147
18148         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18149         to groups setting in database lookup.
18150         * nss/nsswitch.conf: Add initgroups entry.
18151
18152 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18153
18154         [BZ #12685]
18155         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18156         mode string.
18157         Patch by Eric Blake <eblake@redhat.com>.
18158
18159 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18160
18161         * sunrpc/Makefile (need-export-routines): Add svc_run.
18162         (routines): Remove svc_run.
18163         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18164         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18165         * sunrpc/svc_run.c (svc_run): Likewise.
18166         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18167
18168 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18169
18170         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18171         problem in reallocation in last patch.
18172
18173 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18174
18175         * sunrpc/Makefile: Move inclusion of Rules.
18176
18177 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18178
18179         * nss/nss_files/files-initgroups.c: New file.
18180         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18181         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18182         _nss_files_initgroups_dyn.
18183
18184 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18185
18186         * elf/elf.h (R_ARM_IRELATIVE): Define.
18187
18188 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18189
18190         * po/ru.po: Update from translation team.
18191
18192 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18193
18194         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18195         dependencies.
18196
18197 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18198
18199         [BZ #12653]
18200         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18201         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18202         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18203         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18204         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18205
18206 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18207
18208         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18209         differing bytes.
18210         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18211         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18212         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18213
18214 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18215
18216         [BZ #12420]
18217         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18218         storing it.
18219         * stdlib/bug-getcontext.c: New file.
18220         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18221
18222 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18223
18224         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18225         instructions into .machine "z9-109".
18226         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18227         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18228
18229 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18230
18231         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18232         between environment variables and auxiliary vector.
18233
18234 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18235
18236         * Makefile: Add rules to build linkobj/libc.so.
18237         * include/libc-symbols.h: Define libc_hidden_nolink.
18238         * include/rpc/auth.h: Mark functions which are to be hidden.
18239         * include/rpc/auth_des.h: Likewise.
18240         * include/rpc/auth_unix.h: Likewise.
18241         * include/rpc/clnt.h: Likewise.
18242         * include/rpc/des_crypt.h: Likewise.
18243         * include/rpc/key_prot.h: Likewise.
18244         * include/rpc/pmap_clnt.h: Likewise.
18245         * include/rpc/pmap_prot.h: Likewise.
18246         * include/rpc/pmap_rmt.h: Likewise.
18247         * include/rpc/rpc_msg.h: Likewise.
18248         * include/rpc/svc.h: Likewise.
18249         * include/rpc/svc_auth.h: Likewise.
18250         * include/rpc/xdr.h: Likewise.
18251         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18252         * nss/Makefile: Likewise.
18253         * sunrpc/Makefile: Don't install headers.  Build library with normal
18254         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18255         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18256         for the compat linking library.  Remove use of INTDEF/INTUSE.
18257         * sunrpc/auth_none.c: Likewise.
18258         * sunrpc/auth_unix.c: Likewise.
18259         * sunrpc/authdes_prot.c: Likewise.
18260         * sunrpc/authuxprot.c: Likewise.
18261         * sunrpc/clnt_gen.c: Likewise.
18262         * sunrpc/clnt_perr.c: Likewise.
18263         * sunrpc/clnt_raw.c: Likewise.
18264         * sunrpc/clnt_simp.c: Likewise.
18265         * sunrpc/clnt_tcp.c: Likewise.
18266         * sunrpc/clnt_udp.c: Likewise.
18267         * sunrpc/clnt_unix.c: Likewise.
18268         * sunrpc/des_crypt.c: Likewise.
18269         * sunrpc/des_soft.c: Likewise.
18270         * sunrpc/get_myaddr.c: Likewise.
18271         * sunrpc/key_call.c: Likewise.
18272         * sunrpc/key_prot.c: Likewise.
18273         * sunrpc/netname.c: Likewise.
18274         * sunrpc/pm_getmaps.c: Likewise.
18275         * sunrpc/pm_getport.c: Likewise.
18276         * sunrpc/pmap_clnt.c: Likewise.
18277         * sunrpc/pmap_prot.c: Likewise.
18278         * sunrpc/pmap_prot2.c: Likewise.
18279         * sunrpc/pmap_rmt.c: Likewise.
18280         * sunrpc/publickey.c: Likewise.
18281         * sunrpc/rpc_cmsg.c: Likewise.
18282         * sunrpc/rpc_common.c: Likewise.
18283         * sunrpc/rpc_dtable.c: Likewise.
18284         * sunrpc/rpc_prot.c: Likewise.
18285         * sunrpc/rpc_thread.c: Likewise.
18286         * sunrpc/rtime.c: Likewise.
18287         * sunrpc/svc.c: Likewise.
18288         * sunrpc/svc_auth.c: Likewise.
18289         * sunrpc/svc_authux.c: Likewise.
18290         * sunrpc/svc_raw.c: Likewise.
18291         * sunrpc/svc_run.c: Likewise.
18292         * sunrpc/svc_simple.c: Likewise.
18293         * sunrpc/svc_tcp.c: Likewise.
18294         * sunrpc/svc_udp.c: Likewise.
18295         * sunrpc/svc_unix.c: Likewise.
18296         * sunrpc/svcauth_des.c: Likewise.
18297         * sunrpc/xcrypt.c: Likewise.
18298         * sunrpc/xdr.c: Likewise.
18299         * sunrpc/xdr_array.c: Likewise.
18300         * sunrpc/xdr_float.c: Likewise.
18301         * sunrpc/xdr_intXX_t.c: Likewise.
18302         * sunrpc/xdr_mem.c: Likewise.
18303         * sunrpc/xdr_rec.c: Likewise.
18304         * sunrpc/xdr_ref.c: Likewise.
18305         * sunrpc/xdr_sizeof.c: Likewise.
18306         * sunrpc/xdr_stdio.c: Likewise.
18307
18308 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18309
18310         [BZ #12650]
18311         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18312         * sysdeps/ia64/dl-tls.h: Likewise.
18313         * sysdeps/powerpc/dl-tls.h: Likewise.
18314         * sysdeps/s390/dl-tls.h: Likewise.
18315         * sysdeps/sh/dl-tls.h: Likewise.
18316         * sysdeps/sparc/dl-tls.h: Likewise.
18317         * sysdeps/x86_64/dl-tls.h: Likewise.
18318         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18319
18320 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18321
18322         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18323         rpath element also skip the following colon.
18324         (expand_dynamic_string_token): Add is_path parameter and pass
18325         down to DL_DST_REQUIRED and _dl_dst_substitute.
18326         (decompose_rpath): Call expand_dynamic_string_token with
18327         non-zero is_path.  Ignore empty rpaths.
18328         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18329         with zero is_path.
18330
18331 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18332
18333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18334         Make cancelable.
18335
18336 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18337
18338         [BZ #12655]
18339         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18340         Patch by Filipe David Manana <fdmanana@apache.org>.
18341
18342 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18343
18344         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18345         Maintain aligned stack.
18346         (CHECK_RSP): Remove unused macro.
18347
18348 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18349
18350         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18351         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18352
18353 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18354
18355         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18356
18357         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18358
18359 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18360
18361         [BZ #12518]
18362         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18363         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18364         * sysdeps/x86_64/memmove.c: New file.
18365         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18366         (memcpy): Renamed to ...
18367         (__new_memcpy): This.
18368         (memcpy): Provide GLIBC_2_14 memcpy.
18369         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18370         (memcpy): Provide GLIBC_2_2_5 memcpy.
18371
18372 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18373
18374         [BZ #12631]
18375         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18376
18377 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18378
18379         * misc/syncfs.c: New file.
18380         * misc/Makefile (routines): Add syncfs.
18381         * posix/unistd.h: Declare syncfs.
18382         * sysdeps/unix/syscalls.list: Add syncfs.
18383
18384 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18385
18386         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18387         open_by_handle_at.
18388         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18389         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18390         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18391         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18392         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18393         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18394         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18395
18396 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18397
18398         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18399         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18400         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18401         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18402         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18403         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18404         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18405
18406         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18407         sync_file_range.c with -fexceptions.
18408         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18409         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18410         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18411         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18412         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18413         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18414         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18415         sync_file_range as cancellation point
18416         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18417         now a wrapper around __call_sync_file_range with cancellation handling.
18418         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18419         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18420         function name to __call_sync_file_range.
18421         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18422         Add call_sync_file_range.
18423
18424 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18425
18426         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18427         bits/timex.h.
18428
18429 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18430
18431         * iconv/iconv.h: Fix typo in comment.
18432         * io/fcntl.h: Likewise.
18433         * libio/stdio.h: Likewise.
18434         * posix/spawn.h: Likewise.
18435         * posix/unistd.h: Likewise.
18436         * stdlib/stdlib.h: Likewise.
18437         * time/time.h: Likewise.
18438         * wcsmbs/wchar.h: Likewise.
18439
18440         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18441         open_by_handle): Add.
18442         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18443         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18444         Augment a few comments.
18445         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18446         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18447         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18448         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18449         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18450         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18451         open_by_handle.
18452
18453         * io/fcntl.h (AT_EMPTY_PATH): Define.
18454
18455 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18456
18457         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18458         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18459         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18460         to...
18461         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18462         * Versions.def: Add GLIBC_2.14.
18463         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18464         Export.
18465
18466 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18467
18468         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18469         round counter.
18470         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18471
18472 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18473
18474         [BZ #12597]
18475         * string/test-strncmp.c (do_page_test): New function.
18476         (check2): Likewise.
18477         (test_main): Call check2.
18478         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18479
18480 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18481
18482         [BZ #12587]
18483         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18484         Handle cache information in CPU leaf 4.
18485         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18486
18487 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18488
18489         [BZ #12583]
18490         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18491         character representation.
18492         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18493
18494 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18495
18496         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18497         END(__isnan) to END(__isnanf) to match function entry point/label
18498         EALIGN(__isnanf,...).
18499
18500 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18501
18502         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18503
18504 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18505
18506         [BZ #12510]
18507         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18508         copy from the symbol referenced in the relocation to initialize the
18509         used variable.
18510         Patch by Piotr Bury <pbury@goahead.com>.
18511         * elf/Makefile: Add rules to build and tst-unique3.
18512         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18513         * elf/tst-unique3.cc: New file.
18514         * elf/tst-unique3.h: New file.
18515         * elf/tst-unique3lib.cc: New file.
18516         * elf/tst-unique3lib2.cc: New file.
18517
18518         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18519
18520 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18521
18522         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18523         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18524         to _start.
18525
18526 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18527
18528         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18529         to-be-loaded object along a path to loader is ld.so.
18530
18531 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18532             Ulrich Drepper  <drepper@gmail.com>
18533
18534         * sysdeps/x86_64/memset.S: After aligning destination, code
18535         branches to different locations depending on the value of
18536         misalignment, when multiarch is enabled. Fix this.
18537
18538 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18539
18540         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18541         Set _x86_64_preferred_memory_instruction for AMD processsors.
18542         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18543         Set bit_Prefer_SSE_for_memop for AMD processors.
18544
18545 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18546
18547         * libio/fmemopen.c (fmemopen): Optimize a bit.
18548
18549 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18550
18551         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18552
18553 2011-03-03  Roland McGrath  <roland@redhat.com>
18554
18555         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18556
18557 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18558
18559         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18560         __bzero_ultra1 instead of __memset_ultra1.
18561
18562 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18563             Ulrich Drepper  <drepper@gmail.com>
18564
18565         [BZ #12509]
18566         * include/link.h (struct link_map): Add l_orig_initfini.
18567         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18568         returning unsuccessfully.
18569         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18570         close of a file loaded at startup, restore the original l_initfini
18571         list.
18572         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18573         list, store the pointer.
18574         * elf/Makefile ($(objpfx)noload-mem): New rule.
18575         (noload-ENV): Define.
18576         (tests): Add $(objpfx)noload-mem.
18577         * elf/noload.c: Include <memcheck.h>.
18578         (main): Call mtrace.  Close all opened handles.
18579
18580 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18581
18582         [BZ #12454]
18583         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18584         dependencies are missing.
18585
18586 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18587
18588         Fix __if_freereq crash: Unlike the generic version which uses free,
18589         Hurd needs munmap.
18590         * sysdeps/mach/hurd/ifreq.h: New file.
18591
18592 2011-01-27  Petr Baudis  <pasky@suse.cz>
18593             Ulrich Drepper  <drepper@gmail.com>
18594
18595         [BZ 12445]#
18596         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18597         to extend_alloca().
18598         * stdio-common/bug23.c: New file.
18599         * stdio-common/Makefile (tests): Add bug23.
18600
18601 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18602             Ulrich Drepper  <drepper@gmail.com>
18603
18604         [BZ #12489]
18605         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18606         before performing relro protection.  At old place add assertion
18607         to make sure nothing changed.
18608
18609 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18610             Glauber de Oliveira Costa  <glommer@gmail.com>
18611
18612         * elf/elf.h: Add new ARM TLS relocs.
18613
18614 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18615
18616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18617         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18618         cast from r3.
18619         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18620         'tests' variable.
18621         * sysdeps/wordsize-64/tst-writev.c: New file.
18622
18623 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18624
18625         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18626         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18627         insns in _dl_start to prevent a TOC reference before relocs are
18628         resolved.
18629
18630 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18631
18632         [BZ #12469]
18633         * Makeconfig: Remove RANLIB definition.
18634         * Makerules: Don't use RANLIB.
18635         * aclocal.m4: Remove ranlib test.
18636         * configure.in: No need to check for ranlib.
18637         * elf/rtld-Rules: Don't use RANLIB.
18638
18639 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18640
18641         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18642         protection macro.
18643         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18644         inclusion protection macro.
18645
18646         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18647         SIGRTMIN and SIGRTMAX and print information in that case only when
18648         SIGRTMIN is defined.
18649
18650 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18651
18652         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18653         arginfo fn returning -1.
18654
18655         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18656         and thousands string is zero terminated.
18657
18658 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18659
18660         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18661         sysdeps/unix/sysv/linux/bits/socket.h.
18662
18663 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18664
18665         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18666         (__CPU_COUNT): Remove old macros.
18667         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18668         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18669         (__CPU_ALLOC, __CPU_FREE): Add macros.
18670         (__sched_cpualloc, __sched_cpufree): Add declarations.
18671
18672 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18673
18674         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18675         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18676         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18677         (readdhstai): Return value of addhstaiX call.
18678         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18679         (addgrbyX): Return value returned by cache_addgr.
18680         (readdgrbyname): Return value returned by addgrbyX.
18681         (readdgrbygid): Likewise.
18682         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18683         (addpwbyX): Return value returned by cache_addpw.
18684         (readdpwbyname): Return value returned by addhstbyX.
18685         (readdpwbyuid): Likewise.
18686         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18687         (addservbyX): Return value returned by cache_addserv.
18688         (readdservbyname): Return value returned by addservbyX:
18689         (readdservbyport): Likewise.
18690         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18691         (addhstbyX): Return value returned by cache_addhst.
18692         (readdhstbyname): Return value returned by addhstbyX.
18693         (readdhstbyaddr): Likewise.
18694         (readdhstbynamev6): Likewise.
18695         (readdhstbyaddrv6): Likewise.
18696         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18697         (readdinitgroups): Return value returned by addinitgroupsX.
18698         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18699         (prune_cache): Keep track of timeout value of re-added entries.
18700         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18701         * nscd/nscd.h: Adjust prototypes of readd* functions.
18702
18703 2011-02-04  Roland McGrath  <roland@redhat.com>
18704
18705         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18706         (nis_stats): Likewise.
18707         * nis/nis_modify.c (nis_modify): Likewise.
18708         * nis/nis_remove.c (nis_remove): Likewise.
18709         * nis/nis_add.c (nis_add): Likewise.
18710
18711         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18712
18713         * posix/fnmatch_loop.c: Add some consts.
18714
18715         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18716
18717 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18718
18719         [BZ #12460]
18720         * config.make.in (config-cflags-novzeroupper): Define.
18721         * configure.in: Substitute libc_cv_cc_novzeroupper.
18722         * elf/Makefile (AVX-CFLAGS): Define.
18723         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18724         (CFLAGS-tst-auditmod4a.c): Likewise.
18725         (CFLAGS-tst-auditmod4b.c): Likewise.
18726         (CFLAGS-tst-auditmod6b.c): Likewise.
18727         (CFLAGS-tst-auditmod6c.c): Likewise.
18728         (CFLAGS-tst-auditmod7b.c): Likewise.
18729         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18730
18731 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18732
18733         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18734         function to the callback.
18735         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18736
18737 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18738
18739         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18740         of errno.
18741
18742 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18743
18744         [BZ #11724]
18745         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18746         of constructors.
18747         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18748         of destructors.
18749         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18750
18751         [BZ #11724]
18752         * elf/Makefile: Add rules to build and run new test.
18753         * elf/tst-initorder.c: New file.
18754         * elf/tst-initorder.exp: New file.
18755         * elf/tst-initordera1.c: New file.
18756         * elf/tst-initordera2.c: New file.
18757         * elf/tst-initordera3.c: New file.
18758         * elf/tst-initordera4.c: New file.
18759         * elf/tst-initorderb1.c: New file.
18760         * elf/tst-initorderb2.c: New file.
18761         * elf/tst-order-a1.c: New file.
18762         * elf/tst-order-a2.c: New file.
18763         * elf/tst-order-a3.c: New file.
18764         * elf/tst-order-a4.c: New file.
18765         * elf/tst-order-b1.c: New file.
18766         * elf/tst-order-b2.c: New file.
18767         * elf/tst-order-main.c: New file.
18768         New test case by George Gensure <werkt0@gmail.com>.
18769
18770 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18771
18772         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18773         decoding ACE if AI_CANONIDN.
18774
18775 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18776
18777         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18778
18779 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18780
18781         * version.h (RELEASE): Bump for 2.13 release.
18782         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18783
18784         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18785
18786         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18787         MADV_NOHUGEPAGE.
18788         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18789         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18790         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18791         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18792         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18793         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18794
18795         * posix/getconf.c: Update copyright year.
18796         * catgets/gencat.c: Likewise.
18797         * csu/version.c: Likewise.
18798         * debug/catchsegv.sh: Likewise.
18799         * debug/xtrace.sh: Likewise.
18800         * elf/ldconfig.c: Likewise.
18801         * elf/ldd.bash.in: Likewise.
18802         * elf/sprof.c (print_version): Likewise.
18803         * iconv/iconv_prog.c: Likewise.
18804         * iconv/iconvconfig.c: Likewise.
18805         * locale/programs/locale.c: Likewise.
18806         * locale/programs/localedef.c: Likewise.
18807         * malloc/memusage.sh: Likewise.
18808         * malloc/mtrace.pl: Likewise.
18809         * nscd/nscd.c (print_version): Likewise.
18810         * nss/getent.c: Likewise.
18811
18812         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18813         PF_CAIF, and PF_ALG.
18814         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18815
18816 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18817
18818         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18819         (modules-names): Use them.
18820         (ifunc-test-modules, ifunc-pie-tests): Define.
18821         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18822         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18823         (test-extras): Likewise.
18824         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18825         $(compile-command.c).
18826         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18827         (all-built-dso): Define.
18828         (check-textrel.out, check-execstack.out): Depend on it.
18829
18830         * configure.in: Don't override --enable-multi-arch.
18831
18832 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18833
18834         [BZ #6812]
18835         * nscd/hstcache.c (tryagain): Define.
18836         (cache_addhst): Return tryagain not notfound for temporary errors.
18837         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18838         failed.
18839
18840 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18841
18842         [BZ #10563]
18843         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18844         to make the syscall.
18845         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18846
18847         [BZ #12378]
18848         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18849         and fall back to matching as normal character if the string ends before
18850         the matching ']' is found.  This is what POSIX requires.
18851         * posix/testfnm.c: Adjust test result.
18852         * posix/globtest.sh: Adjust test result.  Add new test.
18853         * posix/tst-fnmatch.input: Likewise.
18854         * posix/tst-fnmatch2.c: Add new test.
18855
18856 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18857
18858         * elf/Makefile (check-execstack): Revert last change.  Depend on
18859         check-execstack.h.
18860         (check-execstack.h): New target.
18861         (generated): Add check-execstack.h.
18862         * elf/check-execstack.c: Include "check-execstack.h".
18863         (main): Revert last change.
18864         (handle_file): Return zero if GNU_STACK is absent and
18865         DEFAULT_STACK_PERMS doesn't include PF_X.
18866
18867 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18868
18869         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18870         in child fails because the descriptor is already closed.
18871         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18872         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18873         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18874
18875         [BZ #12397]
18876         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18877         syscall.
18878
18879         [BZ #10484]
18880         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18881         temporary buffer used to handle multi lookups locally.
18882         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18883
18884 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18885
18886         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18887         loader is ld.so.
18888
18889 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18890
18891         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18892         alignment for SSE2.
18893
18894 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18895
18896         [BZ #12394]
18897         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18898         characters.  When rounding increased number of integer digits recompute
18899         number of groups.
18900         * stdio-common/tst-grouping.c: New file.
18901         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18902
18903 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18904
18905         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18906         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18907
18908         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18909         void.
18910         * bits/select.h: Likewise.
18911
18912 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18913
18914         * po/ja.po: Update from translation team.
18915
18916 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18917
18918         [BZ #11155]
18919         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18920         implementation just like for lxstat, fxstatat, et al.
18921
18922 2010-12-27  Jim Meyering  <meyering@redhat.com>
18923
18924         [BZ #12348]
18925         * posix/regexec.c (build_trtable): Return failure indication upon
18926         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18927
18928 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18929
18930         [BZ #12201]
18931         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18932         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18933         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18934         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18935
18936         [BZ #12207]
18937         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18938
18939         [BZ #12204]
18940         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18941         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18942
18943 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18944
18945         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18946         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18947         script has SORT_BY_INIT_PRIORITY.
18948         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18949         NO_CTORS_DTORS_SECTIONS is defined.
18950         * elf/soinit.c: Likewise.
18951         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18952         NO_CTORS_DTORS_SECTIONS is defined.
18953         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18954         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18955         * sysdeps/sh/init-first.c: Likewise.
18956         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18957
18958 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18959
18960         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18961         always use the slow path.
18962
18963 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18964
18965         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18966         similar rule which adds the sysdep directories to the header search in
18967         order to pick up the correct platform stackinfo.h.
18968         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18969         perform test if it is, otherwise return successfully without testing.
18970         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18971         DEFAULT_STACK_PERMS define in stackinfo.h.
18972         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18973         defined in stackinfo.h.
18974         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18975         DEFAULT_STACK_PERMS defined in stackinfo.h.
18976         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18977         * sysdeps/ia64/stackinfo.h: Likewise.
18978         * sysdeps/s390/stackinfo.h: Likewise.
18979         * sysdeps/sh/stackinfo.h: Likewise.
18980         * sysdeps/sparc/stackinfo.h: Likewise.
18981         * sysdeps/x86_64/stackinfo.h: Likewise.
18982         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18983         PF_X for powerpc64.  Retain PF_X for powerpc32.
18984
18985 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18986
18987         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18988         accurately.
18989         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18990         GETDENTS_64BIT_ALIGNED.
18991
18992 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18993
18994         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18995
18996 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18997
18998         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18999         _GNU_SOURCE.
19000
19001         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19002         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19003         Remove __restrict.
19004         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19005         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19006
19007 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19008
19009         [BZ #11655]
19010         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19011         are initialized.
19012
19013 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19014
19015         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19016
19017 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19018
19019         * po/it.po: Update from translation team.
19020
19021 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19022
19023         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19024         unused codes.
19025
19026 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19027
19028         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19029
19030 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19031
19032         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19033         specially.
19034         (gaih_getanswer_slice): Likewise.
19035
19036 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19037
19038         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19039
19040 2010-05-31  Petr Baudis  <pasky@suse.cz>
19041
19042         [BZ #11149]
19043         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19044         silently even in the chroot mode.
19045
19046 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19047
19048         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19049         last patch a bit.  Pretty printing
19050
19051 2010-05-31  Petr Baudis <pasky@suse.cz>
19052
19053         [BZ #10085]
19054         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19055         initialization of skip_initgroups_dyn.
19056
19057 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19058
19059         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19060         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19061
19062 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19063
19064         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19065
19066 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19067
19068         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19069         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19070         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19071         ($(objpfx)tst-fnmatch-mem): New rule.
19072         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19073         * posix/tst-fnmatch.c (main): Call mtrace.
19074
19075 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19076
19077         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19078         Support Intel processor model 6 and model 0x2c.
19079
19080 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19081
19082         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19083           signed comparison.
19084
19085 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19086
19087         [BZ #12205]
19088         * string/test-strncasecmp.c (check_result): New function.
19089         (do_one_test): Use it.
19090         (check1): New function.
19091         (test_main): Use it.
19092         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19093         Support strcasecmp and strncasecmp.
19094
19095 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19096
19097         [BZ #12194]
19098         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19099         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19100
19101 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19102
19103         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19104         IFUNC support.
19105         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19106         memset-x86-64.
19107         * sysdeps/x86_64/multiarch/bzero.S: New file.
19108         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19109         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19110         * sysdeps/x86_64/multiarch/memset.S: New file.
19111         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19112         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19113         Set bit_Prefer_SSE_for_memop for Intel processors.
19114         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19115         Define.
19116         (index_Prefer_SSE_for_memop): Define.
19117         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19118
19119 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19120
19121         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19122         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19123
19124 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19125
19126         [BZ #12191]
19127         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19128         (__x86_64_raw_data_cache_size_half): Likewise.
19129         (__x86_64_raw_shared_cache_size): Likewise.
19130         (__x86_64_raw_shared_cache_size_half): Likewise.
19131
19132         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19133         (__x86_64_raw_data_cache_size_half): Likewise.
19134         (__x86_64_raw_shared_cache_size): Likewise.
19135         (__x86_64_raw_shared_cache_size_half): Likewise.
19136         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19137         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19138         and __x86_64_raw_shared_cache_size_half.  Round
19139         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19140         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19141         to multiple of 256 bytes.
19142
19143 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19144
19145         [BZ #12167]
19146         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19147         of inacessible symlinks.  Verify result of symlink before returning it.
19148         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19149         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19150
19151 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19152
19153         * math/math.h (isinf): Fix typo in comment.
19154
19155 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19156
19157         * po/da.po: Update from translation team.
19158
19159 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19160
19161         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19162         is added to the list.
19163
19164 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19165             Ulrich Drepper  <drepper@gmail.com>
19166
19167         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19168         the global list here.  Move code to...
19169         (_dl_add_to_namespace_list): ...here.  New function.
19170         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19171         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19172         * elf/dl-load.c (lose): Don't remove the element from the list.
19173         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19174         (_dl_map_object): Likewise.
19175
19176 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19177
19178         [BZ #12159]
19179         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19180         into all bytes of SSE register.
19181         Patch by Richard Li <richardpku@gmail.com>.
19182
19183 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19184
19185         [BZ #12140]
19186         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19187         perturbing.
19188
19189 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19190
19191         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19192         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19193         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19194         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19196         submachine.
19197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19198
19199 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19200
19201         * include/dlfcn.h (__RTLD_SECURE): Define.
19202         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19203         mode & __RTLD_SECURE instead.
19204         (open_path): Rename preloaded parameter to secure.
19205         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19206         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19207         * elf/dl-deps.c (openaux): Likewise.
19208         * elf/rtld.c (struct map_args): Remove is_preloaded.
19209         (map_doit): Don't use it.
19210         (dl_main): Likewise.
19211         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19212         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19213
19214 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19215
19216         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19217         (sysd-rules-targets): Remove duplicates.
19218         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19219         rtld-%.$o dependency.
19220
19221 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19222
19223         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19224         _dl_map_object do it.
19225
19226 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19227
19228         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19229         fast fma builtins, define the macros in the C99 standard.
19230         (FP_FAST_FMAF): Likewise.
19231         (FP_FAST_FMAL): Likewise.
19232         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19233
19234         * bits/mathdef.h: Update copyright year.
19235         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19236
19237 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19238
19239         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19240         builtins, define the macros in the C99 standard.
19241         (FP_FAST_FMAF): Likewise.
19242         (FP_FAST_FMAL): Likewise.
19243         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19244         multiply/add.
19245         (FP_FAST_FMAF): Likewise.
19246
19247 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19248
19249         [BZ #3268]
19250         * math/libm-test.inc (fma_test): Some new testcases.
19251         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19252         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19253         y and infinite z.  Do multiplication by C already in long double.
19254         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19255         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19256         y and infinite z.  Do bitwise or of inexact bit into u.d.
19257         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19258         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19259         * sysdeps/i386/fpu/s_fma.S: Removed.
19260         * sysdeps/i386/fpu/s_fmal.S: Removed.
19261
19262 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19263
19264         [BZ #3268]
19265         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19266         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19267         computation is not scheduled after fetestexcept.  Fix value
19268         of minimum denormal long double.
19269
19270 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19271
19272         [BZ #3268]
19273         * math/libm-test.inc (fma_test): Add some more tests.
19274         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19275         correctly.
19276
19277 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19278
19279         * scripts/data/localplt-s390-linux-gnu.data: New file.
19280         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19281
19282 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19283
19284         [BZ #3268]
19285         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19286         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19287         instead of dbl-64.
19288         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19289         inlines.
19290         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19291         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19292         if one of x and y is very large and the other is subnormal.
19293         * sysdeps/s390/fpu/s_fmaf.c: New file.
19294         * sysdeps/s390/fpu/s_fma.c: New file.
19295         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19296         * sysdeps/powerpc/fpu/s_fma.S: New file.
19297         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19298         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19299         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19300
19301 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19302
19303         [BZ #3268]
19304         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19305         fma tests.
19306         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19307         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19308         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19309         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19310         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19311         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19312         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19313
19314 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19315
19316         [BZ #12078]
19317         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19318         * posix/bug-regex31.input: Add test case.
19319
19320 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19321
19322         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19323         * posix/bug-regex31.input: New file.
19324
19325         [BZ #12078]
19326         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19327         (parse_sub_exp): Fix last change, use postorder.
19328
19329         * posix/bug-regex31.c: New file.
19330         * posix/Makefile: Add rules to build and run bug-regex31.
19331
19332         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19333
19334         [BZ #12078]
19335         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19336
19337         [BZ #12108]
19338         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19339         to have entries in sys_siglist.
19340
19341         [BZ #12093]
19342         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19343         be NULL.
19344
19345 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19346
19347         [BZ #3268]
19348         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19349         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19350         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19351         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19352         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19353         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19354         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19355         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19356         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19357         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19358         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19359         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19360         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19361         * math/ftestexcept.c (fetestexcept): Likewise.
19362         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19363         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19364         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19365         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19366         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19367         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19368         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19369
19370 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19371
19372         [BZ #12107]
19373         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19374         newline.
19375
19376 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19377
19378         * string/bug-strstr1.c: New file.
19379         * string/Makefile: Add rules to build and run bug-strstr1.
19380
19381 2010-10-05  Eric Blake  <eblake@redhat.com>
19382
19383         [BZ #12092]
19384         * string/str-two-way.h (two_way_long_needle): Always clear memory
19385         when skipping input due to the shift table.
19386
19387 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19388
19389         [BZ #12005]
19390         * malloc/mcheck.c: Handle large requests.
19391
19392         [BZ #12077]
19393         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19394         for strncmp and strncasecmp.
19395         * string/stratcliff.c: Add tests for strcmp and strncmp.
19396         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19397
19398 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19399
19400         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19401         __set_fpscr.
19402
19403 2010-09-30  Andreas Jaeger  <aj@suse.de>
19404
19405         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19406         (CGROUP_SUPER_MAGIC): Define.
19407         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19408         Handle btrfs and cgroup file systems.
19409         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19410         Likewise.
19411
19412 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19413
19414         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19415         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19416
19417 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19418
19419         [BZ #12067]
19420         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19421         trying to locate the ELF header.
19422
19423 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19424
19425         [BZ #11611]
19426         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19427         Mask out sign-bit copies when constructing f_fsid.
19428
19429 2010-09-24  Petr Baudis <pasky@suse.cz>
19430
19431         * debug/stack_chk_fail_local.c: Add missing licence exception.
19432         * debug/warning-nop.c: Likewise.
19433
19434 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19435
19436         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19437         implementing getdents64 using getdents syscall, set d_type if
19438         __ASSUME_GETDENTS32_D_TYPE.
19439
19440 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19441
19442         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19443         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19444
19445 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19446
19447         [BZ #12037]
19448         * posix/unistd.h: Undo change of feature selection for ftruncate from
19449         2010-01-11.
19450
19451 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19452
19453         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19454         detection.
19455
19456 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19457
19458         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19459         fanotify_mark.
19460         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19461
19462 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19463
19464         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19465         variables after CHECK_SP call.
19466         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19467
19468 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19469             Ulrich Drepper  <drepper@redhat.com>
19470
19471         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19472         re-relocationg ld.so.
19473         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19474         _dl_init_paths call.
19475         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19476         here anymore.
19477
19478 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19479
19480         * resolv/res_init.c (__res_vinit): Count the default server we added.
19481
19482 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19483             Ulrich Drepper  <drepper@redhat.com>
19484
19485         [BZ #11968]
19486         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19487         (____longjmp_chk): Use %ebx for saving value across system call.
19488         Add unwind info.
19489
19490 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19491
19492         * manual/Makefile: Don't mix pattern rules with normal rules.
19493
19494 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19495
19496         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19497         operation.
19498         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19499         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19500         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19501         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19502         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19503         Likewise.
19504
19505 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19506
19507         [BZ #11979]
19508         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19509         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19510
19511 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19512
19513         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19514         * sysdeps/x86_64/addmul_1.S: Likewise.
19515         * sysdeps/x86_64/lshift.S: Likewise.
19516         * sysdeps/x86_64/mul_1.S: Likewise.
19517         * sysdeps/x86_64/rshift.S: Likewise.
19518         * sysdeps/x86_64/sub_n.S: Likewise.
19519         * sysdeps/x86_64/submul_1.S: Likewise.
19520
19521 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19522
19523         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19524         Define __sched_param instead of SCHED_* and sched_param when
19525         <bits/sched.h> is included with __need_schedparam defined.
19526         * bits/sched.h [__need_schedparam]
19527         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19528         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19529         (__defined_schedparam): Define to 1.
19530         (__sched_param): New structure, identical to sched_param.
19531         (__need_schedparam): Undefine.
19532
19533 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19534
19535         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19536         (epoll_create1): Declare.
19537
19538         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19539
19540 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19541
19542         [BZ #7066]
19543         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19544         shifting retval into place.
19545
19546 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19547
19548         * nis/rpcsvc/nis.h: Update copyright notice.
19549         * nis/rpcsvc/nis.x: Likewise.
19550         * nis/rpcsvc/nis_callback.h: Likewise.
19551         * nis/rpcsvc/nis_callback.x: Likewise.
19552         * nis/rpcsvc/nis_object.x: Likewise.
19553         * nis/rpcsvc/nis_tags.h: Likewise.
19554         * nis/rpcsvc/yp.h: Likewise.
19555         * nis/rpcsvc/yp.x: Likewise.
19556         * nis/rpcsvc/ypupd.h: Likewise.
19557         * nis/yp_xdr.c: Likewise.
19558         * nis/ypupdate_xdr.c: Likewise.
19559
19560         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19561         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19562         (pmap_getport): Use __libc_rpc_getport.
19563         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19564         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19565         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19566
19567 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19568
19569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19570         fanotify_mark.
19571
19572 2010-08-27  Roland McGrath  <roland@redhat.com>
19573
19574         * sysdeps/i386/i686/multiarch/Makefile
19575         (CFLAGS-varshift.c): New variable.
19576
19577 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19578
19579         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19580         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19581
19582         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19583
19584         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19585
19586 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19587
19588         * sysdeps/x86_64/strlen.S: Unroll the loop.
19589         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19590         strlen-sse2 strlen-sse2-bsf.
19591         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19592         __strlen_no_bsf if bit_Slow_BSF is set.
19593         (__strlen_sse42): Removed.
19594         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19595         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19596
19597 2010-08-25  Roland McGrath  <roland@redhat.com>
19598
19599         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19600         * sysdeps/x86_64/multiarch/varshift.c: New file.
19601         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19602         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19603         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19604         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19605
19606 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19607
19608         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19609         strlen-sse2 strlen-sse2-bsf.
19610         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19611         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19612         (__strlen_sse2): Removed.
19613         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19614         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19615         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19616         bit_Slow_BSF for Atom.
19617         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19618         (index_Slow_BSF): Define.
19619         (HAS_SLOW_BSF): Define.
19620
19621 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19622
19623         [BZ #10851]
19624         * resolv/res_init.c (__res_vinit): When no server address at all
19625         is given default to loopback.
19626
19627 2010-08-24  Roland McGrath  <roland@redhat.com>
19628
19629         * configure.in: Remove config-name.h generation.
19630         * configure: Regenerated.
19631         * config-name.in: File removed.
19632         * scripts/config-uname.sh: New file.
19633         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19634         ($(objdir)config-name.h): New target.
19635
19636         * sunrpc/rpc_parse.h: Avoid nested comment.
19637
19638 2010-08-24  Richard Henderson  <rth@redhat.com>
19639             Ulrich Drepper  <drepper@redhat.com>
19640             H.J. Lu  <hongjiu.lu@intel.com>
19641
19642         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19643         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19644         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19645         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19646         _mm_alignr_epi8 with _mm_loadu_si128.
19647         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19648         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19649         (__m128i_shift_right): Removed.
19650         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19651         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19652         * sysdeps/x86_64/multiarch/varshift.h: New file.
19653         * sysdeps/x86_64/multiarch/varshift.S: New file.
19654
19655 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19656
19657         * configure.in: Move assembler checks to before sysdep dir checking.
19658
19659 2010-08-20  Petr Baudis  <pasky@suse.cz>
19660
19661         * LICENSES: Sync the sunrpc license.
19662
19663 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19664
19665         * sunrpc/auth_des.c: Update copyright notice once again.
19666         * sunrpc/auth_none.c: Likewise.
19667         * sunrpc/auth_unix.c: Likewise.
19668         * sunrpc/authdes_prot.c: Likewise.
19669         * sunrpc/authuxprot.c: Likewise.
19670         * sunrpc/bindrsvprt.c: Likewise.
19671         * sunrpc/clnt_gen.c: Likewise.
19672         * sunrpc/clnt_perr.c: Likewise.
19673         * sunrpc/clnt_raw.c: Likewise.
19674         * sunrpc/clnt_simp.c: Likewise.
19675         * sunrpc/clnt_tcp.c: Likewise.
19676         * sunrpc/clnt_udp.c: Likewise.
19677         * sunrpc/clnt_unix.c: Likewise.
19678         * sunrpc/des_crypt.c: Likewise.
19679         * sunrpc/des_soft.c: Likewise.
19680         * sunrpc/get_myaddr.c: Likewise.
19681         * sunrpc/getrpcport.c: Likewise.
19682         * sunrpc/key_call.c: Likewise.
19683         * sunrpc/key_prot.c: Likewise.
19684         * sunrpc/openchild.c: Likewise.
19685         * sunrpc/pm_getmaps.c: Likewise.
19686         * sunrpc/pm_getport.c: Likewise.
19687         * sunrpc/pmap_clnt.c: Likewise.
19688         * sunrpc/pmap_prot.c: Likewise.
19689         * sunrpc/pmap_prot2.c: Likewise.
19690         * sunrpc/pmap_rmt.c: Likewise.
19691         * sunrpc/rpc/auth.h: Likewise.
19692         * sunrpc/rpc/auth_unix.h: Likewise.
19693         * sunrpc/rpc/clnt.h: Likewise.
19694         * sunrpc/rpc/des_crypt.h: Likewise.
19695         * sunrpc/rpc/key_prot.h: Likewise.
19696         * sunrpc/rpc/netdb.h: Likewise.
19697         * sunrpc/rpc/pmap_clnt.h: Likewise.
19698         * sunrpc/rpc/pmap_prot.h: Likewise.
19699         * sunrpc/rpc/pmap_rmt.h: Likewise.
19700         * sunrpc/rpc/rpc.h: Likewise.
19701         * sunrpc/rpc/rpc_des.h: Likewise.
19702         * sunrpc/rpc/rpc_msg.h: Likewise.
19703         * sunrpc/rpc/svc.h: Likewise.
19704         * sunrpc/rpc/svc_auth.h: Likewise.
19705         * sunrpc/rpc/types.h: Likewise.
19706         * sunrpc/rpc/xdr.h: Likewise.
19707         * sunrpc/rpc_clntout.c: Likewise.
19708         * sunrpc/rpc_cmsg.c: Likewise.
19709         * sunrpc/rpc_common.c: Likewise.
19710         * sunrpc/rpc_cout.c: Likewise.
19711         * sunrpc/rpc_dtable.c: Likewise.
19712         * sunrpc/rpc_hout.c: Likewise.
19713         * sunrpc/rpc_main.c: Likewise.
19714         * sunrpc/rpc_parse.c: Likewise.
19715         * sunrpc/rpc_parse.h: Likewise.
19716         * sunrpc/rpc_prot.c: Likewise.
19717         * sunrpc/rpc_sample.c: Likewise.
19718         * sunrpc/rpc_scan.c: Likewise.
19719         * sunrpc/rpc_scan.h: Likewise.
19720         * sunrpc/rpc_svcout.c: Likewise.
19721         * sunrpc/rpc_tblout.c: Likewise.
19722         * sunrpc/rpc_util.c: Likewise.
19723         * sunrpc/rpc_util.h: Likewise.
19724         * sunrpc/rpcinfo.c: Likewise.
19725         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19726         * sunrpc/rpcsvc/key_prot.x: Likewise.
19727         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19728         * sunrpc/rpcsvc/mount.x: Likewise.
19729         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19730         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19731         * sunrpc/rpcsvc/rex.x: Likewise.
19732         * sunrpc/rpcsvc/rstat.x: Likewise.
19733         * sunrpc/rpcsvc/rusers.x: Likewise.
19734         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19735         * sunrpc/rpcsvc/spray.x: Likewise.
19736         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19737         * sunrpc/rtime.c: Likewise.
19738         * sunrpc/svc.c: Likewise.
19739         * sunrpc/svc_auth.c: Likewise.
19740         * sunrpc/svc_authux.c: Likewise.
19741         * sunrpc/svc_raw.c: Likewise.
19742         * sunrpc/svc_run.c: Likewise.
19743         * sunrpc/svc_simple.c: Likewise.
19744         * sunrpc/svc_tcp.c: Likewise.
19745         * sunrpc/svc_udp.c: Likewise.
19746         * sunrpc/svc_unix.c: Likewise.
19747         * sunrpc/svcauth_des.c: Likewise.
19748         * sunrpc/xcrypt.c: Likewise.
19749         * sunrpc/xdr.c: Likewise.
19750         * sunrpc/xdr_array.c: Likewise.
19751         * sunrpc/xdr_float.c: Likewise.
19752         * sunrpc/xdr_mem.c: Likewise.
19753         * sunrpc/xdr_rec.c: Likewise.
19754         * sunrpc/xdr_ref.c: Likewise.
19755         * sunrpc/xdr_sizeof.c: Likewise.
19756         * sunrpc/xdr_stdio.c: Likewise.
19757
19758         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19759         handling.
19760
19761 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19762
19763         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19764
19765 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19766
19767         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19768         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19769         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19770         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19771         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19772         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19773         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19774         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19775         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19776         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19777         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19778         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19779         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19780         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19781
19782 2010-07-26  Anton Blanchard  <anton@samba.org>
19783
19784         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19785         * malloc/arena.c (heap_trim): Likewise.
19786
19787 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19788
19789         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19790         here.  Not...
19791         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19792         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19793
19794 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19795
19796         * sysdeps/i386/elf/Makefile: New file.
19797
19798 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19799
19800         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19801         from fanotify_init.
19802         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19803         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19804
19805 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19806
19807         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19808         of strncasecmp_l.
19809         * sysdeps/multiarch/strcmp.S: Likewise.
19810
19811 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19812
19813         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19814         strncase_l-nonascii.
19815         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19816         Add strncase_l-ssse3.
19817         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19818         * sysdeps/x86_64/strcmp.S: Likewise.
19819         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19820         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19821         * sysdeps/x86_64/strncase.S: New file.
19822         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19823         * sysdeps/x86_64/strncase_l.S: New file.
19824         * string/Makefile (strop-tests): Add strncasecmp.
19825         * string/test-strncasecmp.c: New file.
19826
19827         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19828         warning.
19829
19830         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19831         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19832
19833 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19834
19835         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19836
19837 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19838
19839         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19840         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19841         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19842
19843 2010-05-01  Alan Modra  <amodra@gmail.com>
19844
19845         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19846         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19847         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19848         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19849         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19850         tidying.  Don't tail-call __sigjmp_save for static lib.
19851         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19852         save location.
19853         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19854         (CALL_MCOUNT): Add eh info, and nop after bl.
19855         (TAIL_CALL_SYSCALL_ERROR): New macro.
19856         (PSEUDO_RET): Use it.
19857         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19858         Correct save location of integer regs and cr.
19859         (_dl_profile_resolve): Correct cr save location.  Delete nops
19860         after bl when SHARED.  Reduce cfi size a little by better
19861         placement of cfi directives.
19862         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19863         make a stack frame.  Instead use parm save area as a temp.
19864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19865         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19867         Don't make a stack frame for parent, use parm save area.
19868         Increase child stack frame to 112 bytes.  Don't save unused reg,
19869         and adjust reg usage.  Set up cfi on error recovery and
19870         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19872         (__makecontext): Add dummy nop after jump to exit.
19873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19874         Use correct parm save area and cr save, reduce stack frame.
19875         Correct cfi for possible PSEUDO_RET frame setup.
19876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19877         Branch to local label emitted by PSEUDO_RET rather than
19878         __syscall_error.
19879
19880 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19881
19882         [BZ #11904]
19883         * locale/programs/locale.c (print_assignment): New function.
19884         (show_locale_vars): Use it.
19885
19886 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19887
19888         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19889         field.
19890         (struct statfs64): Likewise.
19891         (_STATFS_F_FLAGS): Define.
19892         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19893         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19894         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19895         (ST_VALID): Define locally.
19896         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19897         __statvfs_getflags, use the provided value.
19898         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19899         __ASSUME_STATFS_F_FLAGS.
19900
19901         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19902
19903         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19904         Add sys/fanotify.h.
19905         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19906         fanotify_mask for GLIBC_2.13.
19907         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19908         fanotify_init and fanotify_mark.
19909         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19910         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19911
19912         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19913         Add prlimit.
19914         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19915         prlimit64 for GLIBC_2.13.
19916         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19917         prlimit64.
19918         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19919         syscall.
19920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19921         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19922         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19923         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19924         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19925         add prlimit alias.
19926         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19927
19928         [BZ #11903]
19929         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19930         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19931
19932         * nss/Makefile: Add rules to build and run tst-nss-test1.
19933         * shlib-versions: Add entry for libnss_test1.
19934         * nss/nss_test1.c: New file.
19935         * nss/tst-nss-test1.c: New file.
19936
19937         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19938         (__nss_configure_lookup): Set appropriate entry in
19939         __nss_configure_lookup to true.
19940         * nss/nsswitch.h: Define enum with indeces of databases in
19941         databases and __nss_database_custom arrays.  Declare
19942         __nss_database_custom.
19943         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19944         to avoid using nscd when custom rules are installed.
19945         * nss/getXXbyYY_r.c: Likewise.
19946         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19947
19948         * nss/nss_files/files-parse.c: Whitespace fixes.
19949
19950 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19951
19952         [BZ #11883]
19953         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19954         * posix/fnmatch_loop.c: Likewise.
19955
19956 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19957
19958         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19959         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19960         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19961         * Versions.def [GLIBC_2.13]: Add.
19962
19963 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19964
19965         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19966         Also fail if tpwd after pwuid call is NULL.
19967
19968 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19969
19970         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19971         when converting to ms.
19972
19973 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19974
19975         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19976         EOPNOTSUPP errors with ENOTTY.
19977         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19978         EOPNOTSUPP errors with ENOTTY.
19979
19980 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19981
19982         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19983         Add strcasecmp_l-ssse3.
19984         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19985         strcasecmp.
19986         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19987         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19988         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19989
19990 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19991
19992         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19993
19994         * string/Makefile (strop-tests): Add strcasecmp.
19995         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19996         strcasecmp_l-nonascii.
19997         (gen-as-const-headers): Add locale-defines.sym.
19998         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19999         * sysdeps/x86_64/strcasecmp.S: New file.
20000         * sysdeps/x86_64/strcasecmp_l.S: New file.
20001         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20002         * sysdeps/x86_64/locale-defines.sym: New file.
20003         * string/test-strcasecmp.c: New file.
20004
20005         * string/test-strcasestr.c: Test both ends of the range of characters.
20006         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20007
20008 2010-07-29  Roland McGrath  <roland@redhat.com>
20009
20010         [BZ #11856]
20011         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20012
20013 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20014
20015         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20016         for ld.so.
20017
20018 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20019
20020         * manual/memory.texi (Malloc Tunable Parameters): Document
20021         M_PERTURB.
20022
20023 2010-07-26  Roland McGrath  <roland@redhat.com>
20024
20025         [BZ #11840]
20026         * configure.in (-fgnu89-inline check): Set and substitute
20027         gnu89_inline, not libc_cv_gnu89_inline.
20028         * configure: Regenerated.
20029         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20030
20031 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20032
20033         * string/test-strnlen.c: New file.
20034         * string/Makefile (strop-tests): Add strnlen.
20035         * string/tester.c (test_strnlen): Add a few more test cases.
20036         * string/tst-strlen.c: Better error reporting.
20037
20038         * sysdeps/x86_64/strnlen.S: New file.
20039
20040 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20041
20042         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20043         lower-latency instructions.
20044
20045 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20046
20047         * string/test-strcasestr.c: New file.
20048         * string/test-strstr.c: New file.
20049         * string/Makefile (strop-tests): Add strstr and strcasestr.
20050         * string/str-two-way.h: Don't undefine MAX.
20051         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20052
20053 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20054
20055         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20056         strcasestr-nonascii.
20057         (CFLAGS-strcasestr-nonascii.c): Define.
20058         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20059         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20060         Remove unused attribute.
20061
20062 2010-07-20  Roland McGrath  <roland@redhat.com>
20063
20064         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20065         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20066         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20067         like LD_HWCAP_MASK can disable hwcaps.
20068
20069 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20070
20071         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20072
20073 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20074
20075         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20076         call in strcasestr.
20077         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20078         __strcasestr_sse42_nonascii.
20079         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20080         strcasestr-nonascii.c.
20081         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20082
20083 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20084
20085         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20086         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20087         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20088         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20089
20090 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20091
20092         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20093         fcntl.
20094
20095 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20096
20097         [BZ #11577]
20098         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20099         dl_signal_cerror.
20100
20101 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20102
20103         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20104         _PC_PIPE_BUF using F_GETPIPE_SZ.
20105
20106 2010-07-05  Roland McGrath  <roland@redhat.com>
20107
20108         * manual/arith.texi (Rounding Functions): Fix rint description
20109         implicit in round description.
20110
20111 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20112
20113         * elf/Makefile: Fix linking for a few tests to make recent linker
20114         happy.
20115
20116 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20117
20118         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20119         $(common-objpfx)libc_nonshared.a.
20120
20121 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20122
20123         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20124         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20125         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20126         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20127         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20128         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20129         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20130         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20145         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20146         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20147         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20148         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20149         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20150         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20151         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20152         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20153         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20154         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20155         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20156         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20171
20172 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20173
20174         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20175         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20176         * string/memmove.c (memmove): Renamed to ...
20177         (MEMMOVE): ...this.  Default to memmove.
20178         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20179         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20180         (END_CHK): Define.
20181         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20182         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20183         mempcpy-ssse3-back memmove-ssse3-back.
20184         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20185         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20186         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20187         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20188         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20189         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20190         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20191         * sysdeps/x86_64/multiarch/memmove.c: New file.
20192         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20193         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20194         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20195         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20196         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20197         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20198         Define.
20199         (index_Fast_Copy_Backward): Define.
20200         (HAS_ARCH_FEATURE): Define.
20201         (HAS_FAST_REP_STRING): Define.
20202         (HAS_FAST_COPY_BACKWARD): Define.
20203
20204 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20205
20206         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20207         Restore proper fallback handling.
20208
20209 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20210
20211         [BZ #11701]
20212         * posix/group_member.c (__group_member): Correct checking loop.
20213
20214         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20215         OOM in getpwuid_r correctly.  Return error number when the caller
20216         should return, otherwise -1.
20217         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20218         call returning > 0 value.
20219         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20220
20221 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20222
20223         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20224         libc_nonshared.a from targets in modules-names.
20225
20226 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20227
20228         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20229         requires it.
20230
20231 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20232
20233         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20234         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20235         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20236         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20237
20238 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20239
20240         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20241
20242 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20243
20244         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20245         and F_GETPIPE_SZ.
20246         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20247         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20248         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20249         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20250         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20251         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20252
20253 2010-06-14  Roland McGrath  <roland@redhat.com>
20254
20255         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20256
20257 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20258
20259         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20260         __REDIRECT followed by __THROW.
20261         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20262         * posix/getopt.h (getopt): Likewise.
20263
20264 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20265
20266         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20267         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20268         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20269         in AT_FLAGS.
20270         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20271         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20272
20273 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20274
20275         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20276
20277 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20278
20279         [BZ #11640]
20280         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20281         Properly check family and model.
20282
20283 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20284
20285         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20286
20287 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20288
20289         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20290
20291 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20292
20293         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20294         symbol reference.
20295
20296 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20297
20298         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20299         symbol reference.
20300
20301 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20302
20303         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20304         and internal_recvmmsg.
20305         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20306         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20307         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20308         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20309
20310         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20311         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20312         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20313
20314 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20315
20316         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20317
20318 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20319
20320         POWER7 optimizations.
20321         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20322         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20323
20324 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20325
20326         * version.h: Update for 2.13 development version.
20327
20328 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20329
20330         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20331         exceptions.  Return 0.
20332
20333 2010-05-07  Roland McGrath  <roland@redhat.com>
20334
20335         * elf/ldconfig.c (main): Add a const.
20336
20337 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20338
20339         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20340         (args_options): Add no-idn option.
20341         (ahosts_keys_int): Add idn_flags to ai_flags.
20342         (parse_option): Handle 'i' option to clear idn_flags.
20343
20344         * malloc/malloc.c (_int_free): Possible race in the most recently
20345         added check.  Only act on the data if no current modification
20346         happened.
20347
20348 See ChangeLog.17 for earlier changes.